upload
This commit is contained in:
@@ -10,7 +10,8 @@ Parity rule (`docs/ARCHITECTURE.md` §6): simulation and real hardware publish t
|
||||
|
||||
| Topic | ROS 1/ROS 2 | Message Type | Publishers | Subscribers | Rate | QoS/Queue | Notes |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| `/scan` | ROS 1 | `sensor_msgs/LaserScan` | sim: `richbeam_lidar` gpu_ray plugin (`libgazebo_ros_gpu_laser.so`); real: RICHBEAM driver — **absent** | `safety_monitor` (1), `slam_core` (10), `move_base` obstacle_layer | 15 Hz *(sim)* | sub 1 / 10 | frame `laser_link`. Sim FOV is ±120° / 960 samples — deliberately narrower than 270° so rays do not hit the robot body (at 270°, 71.7% of rays returned <0.35 m). Real FOV, scan rate and timestamp source all unverified. |
|
||||
| `/scan_raw` | ROS 1 | `sensor_msgs/LaserScan` | sim: `richbeam_lidar` gpu_ray plugin (`libgazebo_ros_gpu_laser.so`); real: `lidar_scan_node` (pkg `lidar`, RichbeamTechnology driver) | `scan_filter` only | 25 Hz | 10 | **Raw, untrusted.** Nothing else may subscribe. Sim publishes an honest 270° / 1081 samples; the real driver publishes a scan that *claims* ±180° with `range_min=0.0` / `range_max=100.0` regardless of the device's true 270° / 0.05–40 m. See `docs/HARDWARE.md` §2 for the three driver bugs. |
|
||||
| `/scan` | ROS 1 | `sensor_msgs/LaserScan` | `scan_filter` (`laser_filters/scan_to_scan_filter_chain`) | `safety_monitor` (1), `slam_core` (10), `move_base` obstacle_layer, RTAB-Map | 25 Hz | sub 1 / 10 | frame `laser_link`. **Sanitised**: header `range_min`/`range_max` corrected to 0.05 / 40.0, zero returns → NaN, body-occluded arc beyond ±118° blanked to `range_max+1`. Effective FOV ~236° of the device's 270°. Identical chain in sim and on hardware. |
|
||||
| `/imu/data_raw` | ROS 1 | `sensor_msgs/Imu` | sim: `libgazebo_ros_imu_sensor`; real: `imu_bridge_node.py` (MCU over serial) | `wheel_odom` (100), `gravity_align` (200), `slam_core` (200), `ekf_odom` (20) | 200 Hz *(sim)* | pub 100 (real) | frame `imu_link`. `ekf_odom` fuses **only** angular velocity Z — linear acceleration is deliberately excluded. Roll/pitch are consumed by `gravity_align`, never estimated. |
|
||||
| `/joint_states` | ROS 1 | `sensor_msgs/JointState` | sim: `diff_drive_controller` (`publishWheelJointState`); L0: `joint_state_publisher` (fake); real: MCU firmware | `wheel_odom` (50), `robot_state_publisher` | ~50 Hz *(sim)* | sub 50 | Joints `left_wheel_joint` / `right_wheel_joint` are **the encoder interface** — identical name in all three sources so `wheel_odom_node` cannot tell where it is running. |
|
||||
| `/camera/depth/image_rect_raw` | ROS 1 | `sensor_msgs/Image` | sim: `libgazebo_ros_openni_kinect`; real: `realsense2_camera` | `depth_to_cloud` nodelet | 30 Hz | — | 640×480. Resolution chosen for Min-Z ~22 cm over 848×480's ~30 cm. |
|
||||
@@ -23,7 +24,7 @@ Parity rule (`docs/ARCHITECTURE.md` §6): simulation and real hardware publish t
|
||||
| `/baro/pressure` | ROS 1 | `sensor_msgs/FluidPressure` | sim: `baro_sim`; real: `imu_bridge` (BMP390) | `floor_detector` (10) | 25 Hz *(sim)* | pub 10 | Only short-term *differences* are usable — absolute pressure drifts hundreds of Pa/hour with weather while one floor is ~40–45 Pa. |
|
||||
| `/baro/temperature` | ROS 1 | `sensor_msgs/Temperature` | `imu_bridge` — **real only** | none in-repo | Unknown / needs confirmation | pub 10 | `baro_sim` does not publish this. |
|
||||
| `/bumper` | ROS 1 | `std_msgs/Bool` | **no publisher** — hardware not purchased | `safety_monitor` (1) | — | sub 1 | Covers the depth camera's Min-Z blind zone. Ideally cuts motor power in hardware, not through ROS. |
|
||||
| `/ultrasonic/*` | ROS 1 | `sensor_msgs/Range` | **no publisher** — hardware not purchased | `safety_monitor`, one sub per entry in `ultrasonic_topics` | — | sub 1 each | ⚠️ `ultrasonic_topics` is currently `[]`. Ultrasound is the **only** sensor in this set that detects glass and mirrors (905 nm LiDAR and IR depth both pass through). Empty list = glass is invisible to the robot. |
|
||||
| `/ultrasonic/*` | ROS 1 | `sensor_msgs/Range` | **no publisher** — hardware not purchased | `safety_monitor`, one sub per entry in `ultrasonic_topics` | — | sub 1 each | ⚠️ `ultrasonic_topics` is currently `[]`. Ultrasound is the **only** sensor in this set that detects glass and mirrors (940 nm LiDAR and IR depth both pass through). Empty list = glass is invisible to the robot. |
|
||||
|
||||
## Odometry And State Estimation
|
||||
|
||||
@@ -48,10 +49,10 @@ Parity rule (`docs/ARCHITECTURE.md` §6): simulation and real hardware publish t
|
||||
|
||||
| Topic | ROS 1/ROS 2 | Message Type | Publishers | Subscribers | Rate | QoS/Queue | Notes |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| `/map` | ROS 1 | `nav_msgs/OccupancyGrid` | **three mutually exclusive sources**: `octomap_server` (`projected_map` remapped, mapping/L3+), `map_server` (localization mode), `multi_map_manager` (multi-floor, latched) | `amcl`, `move_base` global_costmap `static_layer` | on update / latched | latched for `map_server` and `multi_map_manager` | The remap exists so `move_base` and the costmaps never need to know which mode is running. Exactly one publisher must be active. |
|
||||
| `/map` | ROS 1 | `nav_msgs/OccupancyGrid` | **three mutually exclusive sources**: `rtabmap` (`grid_map` remapped, mapping + localization), `map_server`, `multi_map_manager` (multi-floor, latched) | `move_base` global_costmap `static_layer` | on update / latched | latched for `map_server` and `multi_map_manager` | The remap exists so `move_base` and the costmaps never need to know which mode is running. Exactly one publisher must be active. ⚠️ `octomap_server` does **not** publish here — its `projected_map` is remapped to `/octomap_grid` (debug only); see `docs/SIM_VS_REAL.md` §5 for why a projected octomap grid is unusable for navigation. |
|
||||
| `/map_metadata` | ROS 1 | `nav_msgs/MapMetaData` | `map_server`, `multi_map_manager` | standard consumers | latched | 1 | |
|
||||
| `/map_name` | ROS 1 | `std_msgs/String` | `multi_map_manager` | none in-repo | latched | 1 | Which floor map is currently loaded. |
|
||||
| `/initialpose` | ROS 1 | `geometry_msgs/PoseWithCovarianceStamped` | `dock_init`, RViz "2D Pose Estimate" | `amcl` | on demand (`delay: 3.0` after start) | — | frame `map`. Startup pose comes from the charging dock — a *known* pose — so global relocalization is not needed for ~95% of real starts. ⚠️ Dock pose in `floors.yaml` is still `0,0,0` and must be measured after a real map exists. |
|
||||
| `/initialpose` | ROS 1 | `geometry_msgs/PoseWithCovarianceStamped` | `dock_init`, `global_scan_init`, RViz "2D Pose Estimate" | `rtabmap` (via `initialpose` → `/initialpose` remap) | on demand (`delay: 3.0` after start) | — | frame `map`. ⚠️ There is **no `amcl`** in this system — RTAB-Map does localization itself; see `localization.launch` for why. Startup pose comes from the charging dock — a *known* pose — so global relocalization is not needed for ~95% of real starts. ⚠️ Dock pose in `floors.yaml` is still `0,0,0` and must be measured after a real map exists. |
|
||||
| `/floor/current` | ROS 1 | `std_msgs/Int32` | `floor_detector` | `multi_map_manager` (1) | on change | 1, latched | |
|
||||
| `/floor/status` | ROS 1 | `std_msgs/String` | `floor_detector` | none in-repo | on change | 1, latched | |
|
||||
| `/floor/tag_hint` | ROS 1 | `std_msgs/Int32` | `apriltag_ros` — **not installed** | `floor_detector` (5) | — | sub 5 | Barometer says *that* the floor changed; AprilTag says *which* floor. Hotel floors look identical, so geometric and visual recognition both fail — this is the absolute identity source. `tag_to_floor` mapping is in `floors.yaml`. |
|
||||
|
||||
Reference in New Issue
Block a user