Skip to content

Instantly share code, notes, and snippets.

@kendemu
Created December 21, 2014 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kendemu/86a7fe1ecdaf9cc320f4 to your computer and use it in GitHub Desktop.
Save kendemu/86a7fe1ecdaf9cc320f4 to your computer and use it in GitHub Desktop.
ROS_Indigo_turtlebot2_gazebo_simulator
== Documentation ==
This documentation shows you how to use turtlebot Gazebo simulator in ROS Indigo.
== Installation ==
Install software dependencies:
$sudo apt-get install ros-indigo-viz
$sudo apt-get install gazebo4
Optional software dependencies, if you are using NVIDIA or RADEON GPUs)
$sudo apt-get install mesa-utils
Source Installation①
$cd ~/catkin_ws/src
$git clone https://github.com/turtlebot/turtlebot_simulator.git
$rosinstall ~/catkin_ws/src/turtlebot_simulator /opt/ros/indigo
$echo "source ~/catkin_ws/src/turtlebot_simulator/setup.bash" >> ~/.bashrc
Source Installation②
$source ~/.bashrc
$roslocate info turtlebot_simulator > turtlebot_simulator.rosinstall
$rosinstall ~/catkin_ws/src/turtlebot_simulator turtlebot_simulator.rosinstall
Install software dependencies for source install:
$ls ~/catkin_ws/src/turtlebot_simulator
$rosdep install PACKAGE_NAME
$rosmake PACKAGE_NAME
PACKAGE_NAME refers to the directories you see in:
$ls ~/catkin_ws/src/turtlebot_simulator
some packages become error with:
$rosdep install PACKAGE_NAME
$rosmake
Ignore those package because the packages are probabilly catkinized(you can get those packages by apt). The names of packages are diffent from these packages you see in:
$ls ~/catkin_ws/src/turtlebot_simulator
Installation of catkinized packages which have dependencies in turtlebot simulator:
$apt-cache search ros-indigo-gazebo
$sudo apt-get install ros-indigo-gazebo4-ros
$apt-cache search ros-indigo-yocs
$sudo apt-get install ros-indigo-yocs-XYZ
XYZ refers to the package you see in:
$apt-cache search ros-indigo-yocs
if the simulator doesn't work, then install other packages listed in:
$apt-cache search ros-indigo-gazebo
However, don't install the "prereleased" pakages because the dependencies will be nested. If you installed them, use the command:
$sudo aptitude install
to recover.(sudo apt-get -f install cannot recover this situation.) You have to kill the apt process to execute this package manager. To kill the apt package manager:
$ps -ae ~| grep "apt*"
$pkill --signal SIGKILL apt(or aptd)
ros-indigo-yocs are the package provided from Yujin Robotics(developed turtlebot).
They are probably the packages for turtlebot in ROS Indigo.
It is highly recommended to install all the package provided from Yujin Robotics.
== Start the simulation ==
$cd ~/catkin_ws/src/turtlebot_simulator/turtlebot_gazebo/launch
$roslaunch turtlebot_world.launch
@kendemu
Copy link
Author

kendemu commented Dec 21, 2014

@goupil35000
Copy link

Hi,
Thanks for this install, but it doesn't work for me.
Gazebo 4 works.

1/ I got this problem when using:
roslocate info turtlebot_simulator

Using ROS_DISTRO: indigo
Not found via rosdistro - falling back to information provided by rosdoc
error contacting http://ros.org/doc/indigo/api/turtlebot_simulator/stack.yaml:
HTTP Error 404: Not Found
error contacting http://ros.org/doc/indigo/api/turtlebot_simulator/manifest.yaml:
HTTP Error 404: Not Found
cannot locate information about turtlebot_simulator

2/ I'm not sure but it seems that the version with the following command (git clone https://github.com/turtlebot/turtlebot_simulator.git) is different from the zip (turtlebot_simulator-indigo.zip)

Thanks for help

@kendemu
Copy link
Author

kendemu commented Jan 20, 2015

sorry for my late reply, in my memory, some of the commands don't work well, and you can skip it. Also the turtlebot indigo package have been released 4 days ago(you can check at ros wiki), and this installation is obsolute now. They have gazebo turtlebot simulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment