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

rostpoic pub & teleop_key

asked 2015-07-09 03:01:33 -0600

sonictl gravatar image

reference: http://wiki.ros.org/ROS/Tutorials/Usi...

I have a question: when 'roslaunch' launchs the turtlemimic.launch file, there appears two turtles' window. Why can I only use 'rostopic pub' command to drive the turtle1, however, I cannot use 'rosrun turtlesim turtle_teleop_key' command to do that. the instruction page: http://wiki.ros.org/ROS/Tutorials/Usi...

the 'rostopic pub' command: $ rostopic pub /turtlesim1/turtle1/cmd_vel geometry_msgs/Twist -r 1 -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, -1.8]'

the 'rosrun turtlesim turtle_teleop_key' command: $ rosrun turtlesim turtle_teleop_key

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-07-09 07:00:54 -0600

tfoote gravatar image

The tutorial had the incorrect syntax. It's been fixed

edit flag offensive delete link more

Comments

I cannot use 'rosrun turtlesim turtle_teleop_key' command to do that. That's my question.

sonictl gravatar image sonictl  ( 2015-07-09 19:57:15 -0600 )edit

the unchanged command: $ rostopic pub /turtlesim1/turtle1/cmd_vel geometry_msgs/Twist -r 1 -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, -1.8]' works well.

sonictl gravatar image sonictl  ( 2015-07-09 19:57:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-07-09 03:01:33 -0600

Seen: 635 times

Last updated: Jul 09 '15