F1Tenth

Car Setups

Physical

Step 1: Checking Domain ID

Ensure ROS_DOMAIN_ID on the car matches with your host machine:

echo $ROS_DOMAIN_ID

If not, set the value (any value works as long as both match):

export ROS_DOMAIN_ID=0

Step 2: Sourcing the Workspace

Navigate to, source, and build the workspace:

cd ~/f1tenth_ws
source install/setup.bash
colcon build

Step 3: Launch

Open a new terminal and launch the controller:

ros2 launch f1tenth_stack bringup_launch.py

In a separate terminal, launch slam_toolbox with the parameter file provided.

Note: Make sure you are within the f1tenth_ws directory:

ros2 launch slam_toolbox online_async_launch.py params_file:=src/f1tenth_system/f1tenth_stack/config/f1tenth_online_async.yaml

Step 4: Viewing the Map

Open a new and separate terminal and launch:

rviz2

In the bottom right corner of the window, select Add then select By topic, then select the two following topics:

/map
/marker_array

AutoDRIVE

Launching Devkit and Simulator

cd ~/AutoDRIVE

In separate terminals, run ./devkit and ./sim to launch both the devkit and the simulator.

Launching EKF and SLAM Toolbox

Open and source two new terminals. After, run:

ros2 launch ucf_icps src/ucf_icps/launch/odom.launch.py
ros2 launch slam_toolbox online_async_launch.py slam_params_file:=src/ucf_icps/config/slam_mapper_params.yaml

Launching Particle Filter

In another terminal, source and run:

ros2 launch particle_filter localize_launch.py