This repository contains the vision system for the Eurobot 2026 competition.
On x86 computer:
bash start_docker.shOn nvidia jetson computer:
bash start_docker_jetson.shchange the LAUNCH_SCRIPT in .env if you only want to launch camera or hazelnut detect
On x86 computer:
cd docker/
docker compose up -dOn nvidia jetson computer:
cd docker/
docker compose -f compose.jetson.yaml up -d Attach to the running container:
docker exec -it vision-ws bashInside the container, build the workspace:
source /opt/ros/humble/setup.bash
colcon build
source install/setup.bashrs-enumerate-devicesMake sure the RealSense camera is connected via USB to your computer, then run:
ros2 launch realsense2_camera rs_launch.pyAfter launch the camera node in ros, you can check the camera info using following command:
ros2 topic echo /<your_camera_name>/<color or depth>/camera_infoIf you want to launch three camera at the same time, please run:
ros2 launch realsense2_camera rs_triple_camera_launch.pyros2 launch aruco_robot robot_launch.pyros2 launch aruco_sima sima_launch.pyOptional Arguments:
camera:=true: Also launch the RealSense camera node. (default: false)rviz:=true: Also launch RViz for visualization. (default: false)team:=blue: Select team. (default: blue)
Example launching with both:
ros2 launch aruco_robot robot_launch.py camera:=true rviz:=true team:=blueros2 launch aruco_sima sima_launch.py camera:=true rviz:=true team:=bluebash camera_localization.sh <mode> <team>Necessary Arguments:
mode: [robot|sima|all]: Choose which mode to launch.team: [blue|yellow]: Select team.
Example launching with both:
bash camera_localization.sh all bluebash aruco_robot.shbash aruco_sima.shOpen RViz to visualize camera images and TF frames:
rviz2ros2 launch yolo hazelnut_detect_launch.py| Parameter | Default | Description |
|---|---|---|
team |
blue |
Team color (blue/yellow) |
color_modes |
rgb |
Input image color |
debug |
True |
Enable debug window |
Example:
ros2 launch yolo hazelnut_detect_launc_h.py team:=yellow debug:=False| Topic Name | Type |
|---|---|
pantry_status |
Int32MultiArray |
collection_status |
Int32MultiArray |
hazelnut_storage_score |
Int32 |
hazelnut_bonus_score |
Int32 |
Save RGB pictures for yolo training datasets
ros2 run yolo save_color_training_data.pySave Depth pictures for yolo training datasets
ros2 run yolo save_depth_training_data.py