gaunthan / Turtlebot2-On-Melodic

Make your Turtlebot2 runs on ROS Melodic (Ubuntu 18.04).
GNU Lesser General Public License v3.0
92 stars 57 forks source link

Turtlebot2 Simulation #1

Closed rmerriam closed 4 years ago

rmerriam commented 5 years ago

Trying to run this in simulation. Gazebo runs and shows the Turtlebot and other objects. Running the

roslaunch turtlebot_teleop keyboard_teleop.launch

doesn't cause any movement. I don't see any message when looking at

/cmd_vel_mux/input/teleop

Any suggestions?

Also the depthimage_to_laserscan nodelet doesn't load but I'm not concerned about it at the moment.

Ircbarros commented 5 years ago

Hi! Can you send your stdout showed in the terminal?

gaunthan commented 5 years ago

Hi. I think your problem may be caused by communication problem with rosmaster.

Try use roscore to start a rosmaster in advance, and then bring up other nodes.

Otherwise, if you use turtlebot_teleop to start a rosmaster by default, and after that you restart the turtlebot_teleop, all communications created before will be broken. So rostopic echo /cmd_vel_mux/input/teleop won't prompt anything new!

hlq1025 commented 4 years ago

Does anyone know how to solve this problem?

hlq1025 commented 4 years ago

Hi! Can you send your stdout showed in the terminal?

Control Your Turtlebot!

Moving around: u i o j k l m , .

q/z : increase/decrease max speeds by 10% w/x : increase/decrease only linear speed by 10% e/c : increase/decrease only angular speed by 10% space key, k : force stop anything else : stop smoothly

CTRL-C to quit

currently: speed 0.000239264854169 turn 0.00119632427085 currently: speed 0.000215338368752 turn 0.00107669184376 currently: speed 0.000193804531877 turn 0.000969022659386 currently: speed 0.000174424078689 turn 0.000872120393447 currently: speed 0.00015698167082 turn 0.000784908354102 currently: speed 0.000141283503738 turn 0.000706417518692 currently: speed 0.000127155153365 turn 0.000635775766823 currently: speed 0.000114439638028 turn 0.000572198190141 currently: speed 0.000102995674225 turn 0.000514978371127 currently: speed 9.26961068028e-05 turn 0.000463480534014 currently: speed 8.34264961225e-05 turn 0.000417132480612 currently: speed 7.50838465102e-05 turn 0.000375419232551 currently: speed 6.75754618592e-05 turn 0.000337877309296 currently: speed 6.08179156733e-05 turn 0.000304089578366 currently: speed 5.4736124106e-05 turn 0.00027368062053

hlq1025 commented 4 years ago

I figured out this problem.follow the following tutorial ,then you can use keyboard to control turtlebot. https://www.ncnynl.com/archives/201904/2924.html.

gaunthan commented 4 years ago

Thanks! You may want to check out https://github.com/gaunthan/Turtlebot2-On-Melodic/issues/2#issuecomment-562667082 and https://github.com/gaunthan/Turtlebot2-On-Melodic/issues/2#issuecomment-563581360