ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Two part answer:

1) Your publishing is incorrect. It should be something along these lines:

rostopic pub --once /turtle1/pose turtlesim/Pose "{x: 0.0, y: 0.0, theta: 0.0, linear_velocity: 0.0, angular_velocity: 0.0}"

2) You cannot teleport the turtle by publishing to the pose topic. You need to use a service call:

rosservice call /turtle1/teleport_absolute ... # Use tab-tab and it will auto-fill the '...' part.

Two part answer:

1) Your You are publishing is incorrect. It incorrectly. The command should be something along these lines:

rostopic pub --once /turtle1/pose turtlesim/Pose "{x: 0.0, y: 0.0, theta: 0.0, linear_velocity: 0.0, angular_velocity: 0.0}"

2) You cannot teleport the turtle by publishing to the pose topic. You need to use a service call:

rosservice call /turtle1/teleport_absolute ... # Use tab-tab and it will auto-fill the '...' part.

Two part answer:

1) You are publishing incorrectly. The command should be something along these lines:like:

rostopic pub --once /turtle1/pose turtlesim/Pose "{x: 0.0, y: 0.0, theta: 0.0, linear_velocity: 0.0, angular_velocity: 0.0}"

2) You cannot teleport the turtle by publishing to the pose topic. You need to use a service call:

rosservice call /turtle1/teleport_absolute ... # Use tab-tab and it will auto-fill the '...' part.

Two part answer:

1) You are publishing incorrectly. The command should be something like:

rostopic pub --once /turtle1/pose turtlesim/Pose "{x: 0.0, y: 0.0, theta: 0.0, linear_velocity: 0.0, angular_velocity: 0.0}"

2) You cannot teleport the turtle by publishing to the pose topic. You need to use a service call:

rosservice call /turtle1/teleport_absolute ... # Use tab-tab and it will auto-fill the '...' part.
'...'