Skip to content

error in wait_while_is_moving #109

Description

@gntoni

In the function wait_while_is_moving, there is this piece of code:

            if actuator in [
                Actuators.left_wheel_vel,
                Actuators.right_wheel_vel,
                Actuators.base_rotate,
                Actuators.base_translate,
            ]:
                current_position = actuator.get_position_relative(
                    self.pull_status()
                )

however the get_position_relative that is being called will fail every time for left_wheel_vel and right_wheel_vel

    def get_position_relative(self, status: StatusStretchJoints) -> tuple[float, float, float]:
        if self not in [Actuators.base_rotate, Actuators.base_translate]:
            raise Exception(f"Please use `get_position()` for {self.name}")
        return self._get_base_status_attribute(True, status)

Here is one case where it is failing in the robot simulation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions