Run cd <cloned_repo>
echo "xhost +" >> ~/.bashrc && source ~/.bashrc
you can ignore if done already.sudo chmod +x install-nvidia-container-toolkit.sh
./install-nvidia-container-toolkit.sh
sudo docker build -t gazebo-vehicle-ros2-gpu-harmonic:humble .
sudo docker compose run vehicle_simulator_gz_sim
sudo chmod +x launch_simulation.sh
./launch_simulation.sh
- This will build the packages in the top-right terminal.
- After the build is complete you can run what was inputted in the top-left terminal. This will launch gazebo and spawn the robot.
- The GUI is disabled by default.
- You should be able to teleop the robot through the teleop window.
- You can run the default simulation RViz from the bottom-right terminal. As long as you are able to see the lidar pointcloud, the rgb and depth images on RViz, you can safely ignore the texture error messages on the simulation terminal window.
--symlink-install
to work. Whenever you change the launch file, the ros2_ws
needs to be built again using the command colcon build
.
The namespace of the robot is currently set to robot_0
.
The ROS_DOMAIN_ID
is set to 55 in the .bashrc
There are currently two model types. More will be available soon! (Drones, Legged Robots, Multi-Robot Simulations)
You can modify the spawn_robot.launch.py
in the vehicle_packages
to select your desired model.
You can choose from model
and model_with_2_lidars