Skip to content

NicKing25/webots_project1_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homework 1 ROS2 Notes

TO INSTALL AND LAUNCH PACKAGE

  1. 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
  1. Fork your own repository of webots_project1_python (using web interface)

  2. Clone your fork

git clone 
  1. Make the package (for python, it really just installs the files
colcon build
  1. Set up variables to use the package you just created
source install/setup.bash
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages