A simulation in RViz for Ackermann steering
This code is built and tested on ROS Noetic
- RViz
sudo apt-get install ros-noetic-rviz
- teleop_twist_keyboard
sudo apt-get install ros-noetic-teleop-twist-keyboard
# clone the repo
git clone https://github.com/kerct/ackermann-simulation.git
# make files executable
chmod +x clean_make.sh
chmod +x make.sh
chmod +x run.sh
# to build the program, simply call make.sh (or clean_make.sh for a clean build)
./make.sh
-
Start ROS master
roscore
-
In another terminal, run the program
./run.sh
-
To control the robot, start teleop
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
It is also possible to start with custom speeds as such
rosrun teleop_twist_keyboard teleop_twist_keyboard.py _speed:=0.2 _turn:=0.2
Alternatively, to observe the robot tracking a given path,
- Start ROS master
roscore
- In another terminal, run the program with 'track' function
./run.sh track