feature-from-old-commit branch
- Ubuntu 22.04
- Internet connection
- Root/sudo access
su -
usermod -aG sudo <your-username>
exitNote: Log out and log back in for changes to take effect.
sudo rm -f /etc/apt/sources.list.d/vscode.list
sudo rm -f /etc/apt/keyrings/packages.microsoft.gpg
sudo rm -f /usr/share/keyrings/microsoft.gpg
sudo apt updateNavigate to the project directory and execute the configuration script:
cd ~/Desktop/TrafficSenseAI
sudo bash ./bashScriptCOnfig.shThe script performs the following operations:
- Installs ROS2 Humble
- Installs Gazebo simulator
- Installs Python tools (numpy, scipy, matplotlib, pandas)
- Installs robotics packages (URDF, XACRO, robot state publisher)
- Builds the workspace
- Configures the environment
source ~/.bashrcAlternatively, source manually:
source install/setup.bashcd ~/Desktop/TrafficSenseAI
colcon build
source install/setup.bashcd ~/Desktop/TrafficSenseAI
source install/setup.bash
ros2 launch robot_description gazebo.launch.pycd ~/Desktop/TrafficSenseAI
source install/setup.bash
python3 src/traffic_light_robot/traffic_detector.pyTrafficSenseAI/
├── src/
│ ├── robot_description/ # Robot URDF, meshes, worlds
│ │ ├── launch/
│ │ ├── urdf/
│ │ ├── meshes/
│ │ └── worlds/
│ └── traffic_light_robot/ # Python detection scripts
├── build/ # Build files
├── install/ # Installation files
├── log/ # Build logs
└── bashScriptCOnfig.sh # Setup script
cd ~/Desktop/TrafficSenseAI
colcon build --symlink-install
source install/setup.bashros2 launch robot_description autonomous.launch.pyTerminal 1 - Launch Gazebo:
ros2 launch robot_description gazebo.launch.pyTerminal 2 - Run Teleop:
source ~/Desktop/TrafficSenseAI/install/setup.bash
ros2 run robot_description azerty_teleop.pyIf azerty_teleop is not executable:
chmod +x ~/Desktop/TrafficSenseAI/src/robot_description/scripts/azerty_teleop.pysudo apt install ros-humble-teleop-twist-keyboard xterm -ycd ~/Desktop/TrafficSenseAI
colcon build --packages-select traffic_light_robot
source install/setup.bashros2 launch robot_description autonomous.launch.pyIn a new terminal:
ros2 run traffic_light_robot visualizer_nodecd ~/Desktop/TrafficSenseAI
colcon build --packages-select traffic_light_robot
./auto_tune.shEnsure the user is added to the sudo group and has logged out and back in after the change.
sudo apt update
source /opt/ros/humble/setup.bashVerify that the workspace is properly sourced:
source install/setup.bashClean and rebuild the workspace:
rm -rf build install log
colcon buildRebuild workspace:
colcon buildClean build:
colcon build --cmake-clean-cacheSource workspace:
source install/setup.bashList available launch files:
ros2 launch robot_description <TAB><TAB>Check ROS topics:
ros2 topic list- ROS2 Humble
- Gazebo
- Python 3.10+
- NumPy, SciPy, Matplotlib, Pandas
- robot_state_publisher, joint_state_publisher
- XACRO, URDF tools
- Implementation of YOLO small version
- Testing of YOLO system
- Implementation of hybrid version (YOLO + HSV)
- Addition of pedestrian entities to world implementation
- Refactoring of world into improved version
- System documentation and iteration reporting