=============
Packages for the simulation of the RB-Theron
Launch files and world files to start the models in gazebo
Launch files that launch the complete simulation of the robot
This simulation has been tested using Gazebo 9 version. To facilitate the installation you can use the vcstool:
sudo apt-get install -y python3-vcstool
mkdir catkin_ws
cd catkin_ws
vcs import --input \
https://raw.githubusercontent.com/RobotnikAutomation/rb_theron_sim/melodic-devel/repos/rb_theron_sim.repos
rosdep install --from-paths src --ignore-src -y -r
catkin build
source devel/setup.bash
- RB-Theron:
roslaunch rb_theron_sim_bringup rb_theron_complete.launch
Enviroment | Default Value | Meaning |
---|---|---|
X_INIT_POSE |
0.0 |
robot x init pose |
Y_INIT_POSE |
0.0 |
robot y init pose |
Z_INIT_POSE |
0.15 |
robot z init pose |
INIT_YAW |
0.0 |
robot yaw init pose |
LAUNCH_GMAPPING |
false |
launching gmapping |
LAUNCH_AMCL |
true |
launching amcl |
LAUNCH_MAPSERVER |
true |
launching map server |
LAUNCH_MOVE_BASE |
true |
launching move base |
LAUNCH_PAD |
true |
launching joystick |
LAUNCH_ROSBRIDGE |
true |
launching rosbridge |
LAUNCH_RVIZ |
true |
launching rviz |
USE_GPU |
true |
gazebo use gpu |
VERBOSE |
false |
gazebo verbose |
GUI |
true |
gazebo gui launch |
DEBUG |
false |
gazebo debug |
ROSBRIDGE_PORT |
9090 |
default |
In order to run this simulation you will need nvidia graphical accelation
-
nvidia-drivers
git clone https://github.com/RobotnikAutomation/rb_theron_sim.git
cd rb_theron_sim
git checkout melodic-devel
nvidia-smi &>/dev/null \
&& ln -sf docker-compose-nvidia.yml docker-compose.yml \
|| ln -sf docker-compose-intel.yml docker-compose.yml
cd docker
docker compose up
If you wish to build the image without launching the simulation use the following commands:
cd docker
docker compose build
This is docker requires a graphical interface
-
In order to exit you have to 2 options
-
The
ROS_MASTER_URI
is accessible outside the container, so in the host any ros command should work -
You could also run a
roscore
previous to launch the simulation in order to have some processes on the host running -
if you want to enter on the container use the following command in another terminal
-
Close
gazebo
andrviz
and wait a bit -
execute in another terminal:
docker container rm --force docker-rb-theron-sim-1
-
This is docker requires a graphical interface
-
The
ROS_MASTER_URI
is accessible outside the container, so in the host any ros command should work -
You could also run a
roscore
previous to launch the simulation in order to have some processes on the host running -
if you want to enter on the container use the following command in another terminal
docker container exec -it docker-rb-theron-sim-1 bash
-
In order to exit you have to 2 options
-
Close
gazebo
andrviz
and wait a bit -
execute in another terminal in the same folder than the
docker-compose.yml
:docker compose down