Skip to content

Usage

Environment, build, udev, the prep/go start sequence, and syncing the PC with the robot.

The default workspace is ~/1raicom_ws (same layout as raicom2026).

Requirements

ComponentNotes
OSUbuntu 18.04
ROSMelodic
This repository1raicom_ws (catkin root)
~/cartographer_wsCartographer localization (not in this repository)
~/cv_bridge_wsPython 3 cv_bridge for the YOLO node
Conda yolov8ONNX inference
Environment overlay
Overlay order in setup_env.sh

One environment entry

In every new terminal:

source ~/1raicom_ws/scripts/setup_env.sh

setup_env.sh overlays ROS, then cartographer, then 1raicom_ws, then cv_bridge, and forces 1raicom_ws to the front of ROS_PACKAGE_PATH.

Build

cd ~/1raicom_ws
source /opt/ros/melodic/setup.bash
catkin_make
First parallel build of lslidar

If it fails, run catkin_make once more.

Devices and udev

Rules live in config/udev/:

DeviceNode
Chassis/dev/carserial
IMU/dev/imu
Lidar/dev/lslidar
Gimbal gun/dev/gun
Webcam/dev/video*
OrbbecUSB 2bc5
bash ~/1raicom_ws/scripts/check_devices.sh

Match start (two stages)

prep and go

prep

source ~/1raicom_ws/scripts/setup_env.sh
bash ~/1raicom_ws/scripts/start_match_prep.sh
  • Background nav_competition_2026.launch (start_nav:=false, loc_mode:=cartographer)
  • The script exits after person_detect_service is ready. The prep process keeps running.
  • Log: /tmp/prep.log

go

bash ~/1raicom_ws/scripts/start_match_go.sh
  • Clears src/raicom2026/data/reports/
  • Starts only match_go.launch → nav_competition.py

Clean up

bash ~/1raicom_ws/scripts/clean_ros.sh

Maps and models

AssetPath
Match mapsrc/raicom2026/data/maps/map2.yaml
pbstreamsrc/raicom2026/data/maps/map2.pbstream
ONNXdata/models/person.onnx, mine.onnx, antitank.onnx
Waypointsparam/nav_competition.yaml
Reportdata/reports/report.txt

Read these first after clone

FileRole
scripts/setup_env.shEnvironment
scripts/start_match_*.shMatch entry points
launch/nav_competition_2026.launchMain launch
param/nav_competition.yamlWaypoint course
scripts/nav_competition.pyNavigation orchestrator

Sync the PC and the robot

  1. Edit on the PC, then git push
  2. PC → robot: scp src/, scripts/, and config/
  3. On the robot, catkin_make and source setup_env.sh
Note

The robot usually cannot reach GitHub. Do not git push from the robot.