Skip to content

speed_test

SpeedTestAction #

Bases: Action

Dummy action for pid calibration. Same dummy pose in loop.

Source code in cogip/tools/planner/actions/speed_test.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class SpeedTestAction(Action):
    """
    Dummy action for pid calibration.
    Same dummy pose in loop.
    """

    def __init__(self, planner: "Planner", actions: Actions):
        super().__init__("Pid calibration action", planner, actions)
        self.pose = Pose()
        self.pose.after_pose_func = self.after_pose
        self.poses = [self.pose]

    def weight(self) -> float:
        return 1000000.0

    async def after_pose(self):
        self.poses.append(self.pose)