turtlebot / turtlebot4

Turtlebot4 common packages.
Apache License 2.0
99 stars 45 forks source link

Reset the position of Turtlebot 4 #265

Closed ACdu22330 closed 11 months ago

ACdu22330 commented 1 year ago

Reset the position of Turtlebot 4 question :

Setup

I'm using the Turtlebot 4 and I have a question about the reset_pose service. Is it possible to reset the position of the Turtlebot 4 in a different position from the origin point ?

Actual behaviour I've tried with this ros2 command :

ros2 service call /reset_pose irobot_create_msgs/srv/ResetPose "pose: position: x: 1.0 y: 2.0 z: 0.0 orientation: x: 0.0 y: 0.0 z: 0.0 w: 0.0 "

But the robot just reste the position at 0 (as you can see in the 2 screens attached). Does the service reset_pose can change the position of the robot or an other topic or service is capable to do that ?

To Reproduce

  1. Run position_subscriber node to get the current position of the TB4
  2. Call the /reset-pose service with a position diffrent than (0,0,0)
  3. See the robot position is going back to (0,0,0)

Thank you for your answers !

image

hilary-luo commented 1 year ago

In your instructions on how to reproduce please be explicit in regards to the exact commands that you are running. Specifically in this case, what position_subscriber node are you running and how are you launching it? Also, do you have any other nodes running on the network or on the robot (other than those that are started automatically by the robot)?

hilary-luo commented 11 months ago

This issue is being closed due to inactivity. If you are still experiencing the issue, feel free to reopen this ticket when you are ready to continue the troubleshooting process.