ros:turtlebot:simu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
ros:turtlebot:simu [2013/12/14 16:25] – redox | ros:turtlebot:simu [2014/02/14 12:39] – [Connectivity and bugs] towa45 | ||
---|---|---|---|
Line 19: | Line 19: | ||
If you see your robot, your simulation should run correctly. You can check all the ROS nodes ans topics by launching | If you see your robot, your simulation should run correctly. You can check all the ROS nodes ans topics by launching | ||
- | | + | |
You should see a /gazebo bubble replacing the robot when you are playing with the real robot. | You should see a /gazebo bubble replacing the robot when you are playing with the real robot. | ||
That means you can now use the usual demo software for the turtlebot such as keyboard teleop, revitz navigation, SLAM, ... | That means you can now use the usual demo software for the turtlebot such as keyboard teleop, revitz navigation, SLAM, ... | ||
Line 25: | Line 25: | ||
You will create your physical world in gazebo (placing obstacles, creating a world) and then everything should be as if you were using the real robot including sensons feedback. | You will create your physical world in gazebo (placing obstacles, creating a world) and then everything should be as if you were using the real robot including sensons feedback. | ||
- | ##Advaced | + | ##Advanced |
If you are bored of the flat map, you cal load a map with some obstacles: | If you are bored of the flat map, you cal load a map with some obstacles: | ||
Line 40: | Line 40: | ||
I had more problems with | I had more problems with | ||
roslaunch turtlebot_gazebo turtlebot_playground.launch | roslaunch turtlebot_gazebo turtlebot_playground.launch | ||
- | first launch usualy returns a segmentation fault | + | |
- | second launch usualy works without segfault but seems to strugle | + | It seems to be a bit tricky |
- | After the second try, gazebo is launched and we can see the turtlebot | + | |
- | When launching gmaping | + | My success to make it work is random for now. |
- | update ld=3.3651e-05 ad=0.000384513 | + | |
- | Laser Pose= 0.219767 -0.197273 -2.03917 | + | I'm followig |
- | | + | |
- | | + | * launch gazebo (turtlebot |
- | neff= 79.9996 | + | * wait until gazebo displays |
- | | + | * launch the gazebo gmapping demo |
- | update frame 1355 | + | * waint until you see the SLAM running: this step often fails, and SLAM never starts, I don't know why... |
- | update ld=3.05822e-05 ad=0.000347994 | + | * then you can set up your gazebo environment (willowgarage for instance) |
- | Laser Pose= 0.219738 -0.197264 -2.03882 | + | * finaly you should be able to run rviz view_navigation and build your map with a teleop. |
- | | + | |
- | I started with m_count=0 and stoped manualy at m_count 322 after around 30min. something went wrong... | + | EDIT: Apparently you shoud run the gmapping demo just after lanching gazebo instead of waiting for gazebo being completely launched... weird??? 0_o |
+ | |||
+ | EDIT 2: A solution to fix this issue is to merge gmapping_demo.launch and turtlebot_empty_world.launch (or playgroud) and save it under another name, because you don't necessary need to run gmapping with a simulation. | ||
+ | You can simply add this line at the end of the turtlebot_empty_world.launch file, just before </ | ||
+ | |||
+ | <include file=" | ||
+ | It works fine for me (Ubuntu 13.10, ROS hydro compiled from source) | ||
##Next steps | ##Next steps |