PythonAPI/examples/ros2/README.md
This example demonstrates how to utilize the ROS 2 native interface in CARLA.
To run this example, ensure docker is installed in your system, which is used to launch an instance of rviz for visualizing sensor data.
Launch the CARLA simulator with the ROS 2 integration enabled:
./CarlaUnreal.sh --ros2
Execute the ROS 2 example script:
python3 ros2_native.py --file stack.json
stack.json file defines the sensor configuration.Start rviz to visualize the sensor output from CARLA:
[!NOTE] Docker must be installed on your system to complete this step.
./run_rviz.sh