- Set up environment variables for ROS. Make sure to replace '/home/rpi/shared' with your own shared folder location
source /opt/ros/humble/setup.bash
Also do any Windows or Mac specific setup
For example in Mac...
export WEBOTS_HOME=/Applications/Webots.app python3 local_simulation_server.py
For example in windows...
export WEBOTS_HOME=/mnt/c/Program\ Files/Webots
-
Fork your own repository of webots_project1_python (using web interface)
-
Clone your fork
git clone
- Make the package (for python, it really just installs the files
colcon build
- Set up variables to use the package you just created
source install/setup.bash
- Start webots simulation f23_robotics_1_launch.py for indoor or f23_robotics_1_launch_outside.py for outside
ros2 launch webots_project1_python f23_robotics_1_launch.py or ros2 launch webots_project1_python f23_robotics_1_launch_outside.py
Note: To edit to change time of day you can delete the background node and edit the directional light node intensity and direction. Traffic light controllers can be specified under CrossRoadsTrafficLight controller.