Run an f1 tenth car simulation in Gazebo. Uses hector mapping and teb local planner. Published twist messages from the planner are converted to ackermann messages to move the car.
git clone https://github.com/StevieG47/f1-autonomous-car
Open a new terminal, in 1st terminal:
cd f1-autonomous-car/catkin_ws
catkin_make
source devel/setup.bash
In 2nd terminal:
cd f1-autonomous-car/teb/catkin_ws
catkin_make
source devel/setup.bash
Launch the vehicle in Gazebo and start hector mapping in 1st terminal:
roslaunch f1 f1-Slam.launch
Start the planner and launch rviz in 2nd terminal:
roslaunch teb_local_planner_tutorials robot_carlike_in_stage.launch
Navigation goals can be set using the 2D Nav Goal feature in rviz. Since it is an ackermann vehicle, it may not be able to navigate to the goal if the only path requires the vehicle to turn in place.
Work in progress rosrun read_map readOccMap