How dlekgns145-hue/robot_project works
This repository combines a ROS 2 mobile-robot system with desktop control and mapping tools, plus a separate orchard-visual-mapping package and apple-image analysis tools. The principal workflow is selecting a robot mode: perception detects and publishes a person, follow converts detections into motion commands, or navigation sends a goal to Nav2. A second major workflow autonomously explores and saves a LiDAR map for desktop transfer and postprocessing. Several links are based on README or source-index references; unsampled implementations are not inferred beyond those references.
Main entry points: robot_gateway.py Desktop gateway · main.py Mode runner · autonomous_mapping.py Autonomous mapping · follow_person.py Person following
Components 24
Robot behavior
- Mode runner
robot_project/main.py - Mode rules
robot_project/runtime.py - Person detection
robot_project/perception/detect.py - Person following
robot_project/follow/follow_person.py - Nav goal
robot_project/navigation/nav.py - Identity-aware detection
robot_docker/perception/detect.py - Target identity
robot_docker/perception/target_identity.py - Robot command bridge
robot_docker/robot_cmd_bridge.py - Robot service
ubuntu_v2/robot_app/robot_service.py
Mapping and maps
- Autonomous mapping
robot_docker/autonomous_mapping.py - Frontier exploration
robot_docker/frontier_core.py - SLAM mapping core
robot_docker/mapping_core.py - Map bundle
robot_docker/map_bundle.py
Desktop control
- Desktop gateway
ubuntu_v2/robot_app/robot_gateway.py - Robot locator
ubuntu_v2/robot_app/robot_locator.py - Map inbox
ubuntu_v2/robot_app/map_inbox.py - Map payload
ubuntu_v2/robot_app/map_payload.py - Map postprocessing
ubuntu_v2/robot_app/map_postprocess.py - Operations state
ubuntu_v2/robot_app/operations_store.py
Visual mapping and analysis
- Visual map mosaic
orchard_mapper/orchard_mapper/global_visual_mapper.py - Frame database
orchard_mapper/orchard_mapper/frame_database.py - Coordinate transforms
orchard_mapper/orchard_mapper/coordinate_transform.py - Apple defect analysis
apple_defect_detection/scripts/analyze_image.py
Other components
- Operator
Connections 22
- Operator → Mode runner: selects mode
- Mode runner → Mode rules: gets components
robot_project/main.py - Mode runner → Person detection: starts
robot_project/main.py - Mode runner → Person following: starts
robot_project/main.py - Mode runner → Nav goal: starts
robot_project/main.py - Person detection → Person following: publishes detections
- Person following → Operator: commands motion
- Nav goal → Operator: sends Nav2 goal
robot_project/navigation/nav.py - Identity-aware detection → Target identity: uses gallery
robot_docker/perception/detect.py - Autonomous mapping → Frontier exploration: uses exploration
robot_docker/autonomous_mapping.py - Autonomous mapping → SLAM mapping core: uses mapping
robot_docker/autonomous_mapping.py - Autonomous mapping → Map bundle: saves map
- Robot command bridge → Map bundle: uses bundle
robot_docker/robot_cmd_bridge.py - Operator → Desktop gateway: sends commands
- Desktop gateway → Robot service: relays commands
- Desktop gateway → Robot locator: resolves robot
ubuntu_v2/robot_app/robot_gateway.py - Desktop gateway → Map inbox: checks map transfer
ubuntu_v2/robot_app/robot_gateway.py - Desktop gateway → Map payload: prepares map
ubuntu_v2/robot_app/robot_gateway.py - Desktop gateway → Operations state: updates state
ubuntu_v2/robot_app/robot_gateway.py - Desktop gateway → Map postprocessing: offers correction
- Visual map mosaic → Frame database: stores frames
orchard_mapper/orchard_mapper/global_visual_mapper.py - Visual map mosaic → Coordinate transforms: uses transforms
orchard_mapper/orchard_mapper/global_visual_mapper.py