I could not drive the turtle with the arrow keys [closed]

asked 2015-07-02 22:42:17 -0500

songde721 gravatar image

Hi,I am just beginning to learn ROS with Ubuntu 14.04 LTS Indigo version. When comming to "ROS/Tutorials/ UnderstandingTopics. 1. Understanding ROS Topics. 1.1.3 turtle keyboard teleoperation"

I typed "rosrun turtlesim turtle_teleop_key",then I only saw: "Reading from keyboard Use arrow keys to move the turtle", without the following part: "[ INFO] 1254264546.878445000: Started node [/teleop_turtle], pid [5528], bound on [aqy], xmlrpc port [43918], tcpros port [55936], logging to [~/ros/ros/log/teleop_turtle_5528.log], using [real] time"

Consequently,I could not drive the turtle with the arrow keys. I am sorry I do not know how to "select the terminal window of the turtle_teleop_key to make sure that the keys that you type are recorded" . Help me ,please.

edit retag flag offensive reopen merge delete

Closed for the following reason Question does not follow our guidelines for questions. Please see: http://wiki.ros.org/Support for more details. by songde721
close date 2015-07-04 02:05:26.116033

Comments

1

Well, "Select the terminal window" just means you need to have the focus on the terminal, where the teleop node is running. I.e. as if you would be able to type therein. Otherwise, the key presses do not get sent to the turtlesim. Click into the window with the teleop and try again.

mgruhler gravatar image mgruhler  ( 2015-07-03 01:18:29 -0500 )edit

Thank you for the explanation,and I see now.

songde721 gravatar image songde721  ( 2015-07-03 11:47:32 -0500 )edit