- Install ROS2. ROS Galactic is the tested version.
- Install dependencies with rosdep. The package
ackermann_msgs
may not be able to be installed automaticly. Install it withapt install ros-VERSION-ackermann-msgs
(replace VERSION with your specific ros version, e.g. galactic). - Clone this repository.
- Update all submodules:
git submodule update --init --recursive
- Build them with
colcon build
- Enjoy!
Launch the test file:
ros2 launch dadsim test.launch.py
Open RViz and add following topics:
- /map_visualize
- /agents
- /agents_array
You will see 20 white cars and 1 green car. You can control the green one by:
ros2 run dadsim ackermann_teleop
Use W/A/S/D to drive it!