- Ubuntu 22.04
- Internet connection
- Root/sudo access
su -
usermod -aG sudo <your-username>
exitLog 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 project directory and run:
cd ~/Desktop/TrafficSenseAI
sudo bash ./bashScriptCOnfig.shThe script will:
- Install ROS2 Humble
- Install Gazebo simulator
- Install Python tools (numpy, scipy, matplotlib, pandas)
- Install robotics packages (URDF, XACRO, robot state publisher)
- Build the workspace
- Configure environment
source ~/.bashrcOr 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
Ensure user is in sudo group and logged out/in after adding.
sudo apt update
source /opt/ros/humble/setup.bashCheck if workspace is sourced:
source install/setup.bashClean and rebuild:
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
bashcd ~/Desktop/TrafficSenseAI source install/setup.bash ros2 launch robot_description gazebo.launch.py
sudo apt install ros-humble-teleop-twist-keyboard xterm -y
< commands to be able to run the different type of simulations that we can use to develop this project here >
bashcd ~/Desktop/TrafficSenseAI colcon build --symlink-install source install/setup.bash Autonomous mode: bashros2 launch robot_description autonomous.launch.py Teleop mode (AZERTY script): bash# Terminal 1 - Launch Gazebo: ros2 launch robot_description gazebo.launch.py
source ~/Desktop/TrafficSenseAI/install/setup.bash ros2 run robot_description azerty_teleop.py If azerty_teleop not executable: bashchmod +x ~/Desktop/TrafficSenseAI/src/robot_description/scripts/azerty_teleop.py
the git issue , testing if it is solved
Rebuild:
bash cd ~/Desktop/TrafficSenseAI colcon build --packages-select traffic_light_robot source install/setup.bash Run: bash ros2 launch robot_description autonomous.launch.py
ros2 run traffic_light_robot visualizer_node
cd ~/Desktop/TrafficSenseAI colcon build --packages-select traffic_light_robot ./auto_tune.sh
#implmenting a custom build gazebo data set collector, trainer , and implmentation
New work planification : 1/ implmentation of the Yolo small version of this system 2/ testing the yolo of this system 3/ implmenting the hybrid version YOLO +HSV 4/ adding those walking person for the world implemntation 5/ refactoring the world into a slighlty better version 6/ setting up the rapport of the system + documenting the different iterations of this sysetm