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

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
0

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_teleop.py 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 ( http://wiki.ros.org/turtlebot_teleop ), some remapping is still needed though.

edit flag offensive delete link more

Comments

It is work.Thank you!

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

Question Tools

2 followers

Stats

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

Seen: 6,666 times

Last updated: Apr 07 '16