How bytesizedrobotics/autonomous-navigation works
Main Components
• SENSORS & DATA SOURCES:
– Lidar Sensors: Leveraged via the packages “rplidar_ros”, “lidar_testing”, and the Lidar-related configurations in “obstacle_detection”.
– Camera: Managed by the “csi_camera_stream” package for capturing and streaming video, with additional inference (using a best.pt model) capabilities.
– GPS/Navigation: Provided by the “nmea_navsat_driver-ros2” package which parses NMEA data from various drivers (serial, socket, TCP-client).
– Additional: “pothole_detection” for surface condition monitoring and “wave_rover_serial_control” for controlling the robotic platform via serial commands.
Components by Function
• SENSOR INTERFACE LAYER:
– All packages that directly interface with hardware (rplidar_ros, csi_camera_stream, nmea_navsat_driver-ros2) fall into this layer.
• PERCEPTION & PROCESSING LAYER:
– “obstacle_detection” processes Lidar inputs to detect obstacles.
– “lidar_testing” can be seen as a verification component to check sensor outputs.
– “pothole_detection” leverages image or sensor data (note the presence of a model file and testing scripts) for detecting road surface issues.
• CONTROL & ACTUATION LAYER:
– “wave_rover_serial_control” handles the drive commands and possibly other actuation signals based on the processed data.
– Although future plans include path planning (per the roadmap), the current focus is on sensing and basic obstacle detection.
• INFRASTRUCTURE:
– ROS2 launch files across multiple packages manage node initialization and topic setup.
– Shared configuration files (e.g., YAML files in “config”) ensure consistency across nodes.
Relationships and Data Flow
• Processed data (such as detected obstacles) then flows to the control layer, which instructs the rover’s movement via the serial control node.
• External dependencies, such as physical sensors and the ROS2 message passing system, that integrate all these components.
Architectural Patterns and Design Principles
• MODULAR DESIGN: Each ROS2 package is self-contained – note the structure with dedicated src, launch, config, and test directories, which promotes reusability and independence.
• SEPARATION OF CONCERNS: Sensors, processing, and control logic are separated in different packages.
• EXTENSIBILITY: The roadmap shows plans for additional functionalities (path planning) indicating the system is designed to evolve by adding new modules.