Repo contains experiments with mobile robots. Currently repo contains:
- Simple Diff drive robot simulation with:
- Lidar slam
- RGLGazeboPlugin
- Tracked vehicle simulation
Clone repo with submodules:
git clone --recurse-submodules
To run in devcontainer you need to:
- Download NVidia OptiX 7.2.
- Add following to .bashrc
export OptiX_INSTALL_DIR=<your-OptiX-path>
. - Open repo in the devcontainer via vscode .with devcontainer plugin.
- Run following commands.
colcon build && source install/setup.bash
export GZ_SIM_SYSTEM_PLUGIN_PATH=`pwd`/src/RGLGazeboPlugin/install/RGLServerPlugin:$GZ_SIM_SYSTEM_PLUGIN_PATH
export GZ_GUI_PLUGIN_PATH=`pwd`/src/RGLGazeboPlugin/install/RGLVisualize:$GZ_GUI_PLUGIN_PATH
In the first terminal run:
ros2 launch diffdrive_bringup diffdrive_bringup.launch.py use_lidar_slam:=True
In the third terminal:
ros2 run teleop_twist_keyboard teleop_twist_keyboard
To save the map use:
ros2 service call /map_save std_srvs/Empty
Just build the whole project or following packages with packages-select option:
- tracked_vehicle_interfaces
- tracked_vehicle_simulation
- tracks_controller
Run simulation with
ros2 launch tracked_vehicle_simulation tracked_vehicle_bringup.launch.py