Ask Your Question
0

Internals about Robot Movement

asked 2015-05-14 00:09:11 -0500

Kushal gravatar image

updated 2015-05-14 23:40:53 -0500

As explained on "http://learn.turtlebot.com/" in the video about the teleoperation functionality ie. after running the command "roslaunch turtlebot_teleop keyboard_teleop.launch", some questions arise that are as follows:

  1. What does it actually do after taking the input from keyboard?
    1. Is turtlebot_teleop an ROS node that publishes to some "ROS Topic" and we have a corresponding "NODE" implemented as a subscriber listening to that Topic? If so, are the components "ROS Topic" and "NODE" already implemented in ROS environment or Turtlebot Package? If so, to which topic(name) is the teleop node publishing and which node is listening to that topic?
    2. Or does it directly control the robot movements? If so, what exactly is the information provided to robot for movements? Are there any direct APIs for this?
  2. Can you provide some example source code to control the turtlebot movements?
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-15 06:45:37 -0500

Hi Kushal,

  1. You are on the right track, turtlebot_teleop is a ROS package that contains a launch file called keyboard_teleop.launch. Said launch file invokes a ROS node called turtlebot_teleop_keyboard that takes the input from the keyboard and outputs geometry/Twist messages to the topic cmd_vel_mux/input/teleop. Those Twist messages contain the linear and angular speed that the robot should follow. Then there is another node that subscribes to the same topic and actually moves the robot. The listening node is actually a nodelet that depends on the underlying hardware of your turtlebot.

  2. I can not think of a simple example right now, but you can check out the navigation stack

I hope this helps

edit flag offensive delete link more

Comments

1

Hi Martin, Thank you very much for the response. Your answer provides the information required and will be helpful in progressing further. Thanks a lot.

Kushal gravatar imageKushal ( 2015-05-15 07:44:55 -0500 )edit

Dear Martin, Thanks!, even I was looking for these answers. I just started to learn ROS last week. I have questions: cmd_vel_mux a default topic available ? what is name of listening nodelet, which actually moves the robot, is available by default in Turtle-Bot environment? or need to implement?

mahantesh_kothiwale gravatar imagemahantesh_kothiwale ( 2015-05-18 07:06:57 -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

Stats

Asked: 2015-05-14 00:09:11 -0500

Seen: 81 times

Last updated: May 15 '15