ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A
Ask Your Question

using keyboard to control the robot in gazebo.

asked 2016-04-06 22:53:51 -0500

littlestar gravatar image

I want to use keyboard to control my robot in gazebo. And I don't know which package should I use. I install the "ros-indigo-key-teleop" but I don't find which node can I use. Somebody can help? Thank you very much!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-07 01:41:54 -0500

DavidN gravatar image

updated 2016-04-07 01:42:17 -0500

You can run rosrun key_teleop key_vel:=cmd_vel

I assum your robot alrd listened to cmd_vel topic to move. The key-teleop node is publising to key_vel topic by default so you need to remap to cmd_vel.

By the way, the value published by key-teleop is 0.8 when pressing up button, -0.5 when pressing down button, 1.0 rotation speed when pressing left/right button. So the motion might not be very smooth. You can take a look at another option which is turtle teleop ( ), some remapping is still needed though.

edit flag offensive delete link more


It is work.Thank you!

littlestar gravatar imagelittlestar ( 2016-04-14 21:23:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-04-06 22:53:51 -0500

Seen: 1,050 times

Last updated: Apr 07 '16