Getting Result Pose of Action #491
-
How are you connecting to your Create 3?USB Ethernet (ROS 2) Computer(s) Model(s) and Operating System(s)No response Which version of ROS 2 is installed on your computer?Humble Which firmware version is installed on your robot?G4.4 Which RMW is your robot running?CycloneDDS Does your robot have an assigned namespace? If so, please share.No response Is the robot connected to a network? If so, what is the network type?No response Are there multiple Create 3 robots connected to your network?No Is multicast enabled?No What is the Adapter Board's USB/BLE Toggle currently switched to?USB Describe your question.Hello, I am using python and rclpy to make the robot turn through the RotateAngle action client. I want to know once the robot has finished moving so that I can send it the next movement command. Using the .done() on the goal_handle does not work because it does not say when the robot is done moving but when it is done executing, which are not the same it seems. https://github.com/iRobotEducation/irobot_create_msgs/blob/rolling/action/RotateAngle.action Anyone have any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @tobias-kausch,
The robot will not move anymore after the action is concluded. From your message it's not clear how you are waiting for that to be completed, but I suspect that you are not waiting for the result correctly.
Yes, the action result will contain the pose of the robot
See this example on how to use ROS 2 actions in python: https://github.com/ros2/examples/blob/rolling/rclpy/actions/minimal_action_client/examples_rclpy_minimal_action_client/client_asyncio.py#L54-L58 This example uses the following action https://github.com/ros2/example_interfaces/blob/rolling/action/Fibonacci.action |
Beta Was this translation helpful? Give feedback.
No,
geometry_msgs/PoseStamped
is just the type of the pose object.Unfortunately I don't have enough context to help you.
I would just say that the ROS 2 action used by the create 3 is functionally identical to those that you can see in the ROS 2 examples, just with a different name (and different internal fields).
So, I would recommend to follow the official documentation step by step, trying to …