You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `oren_ros` package provides three executables:
166
+
167
+
-`mapping_node` — subscribes to LiDAR / depth + (optional) odometry, runs the trainer online.
168
+
-`sdf_query_node` — samples the learned SDF on a 2D grid and publishes it as a `grid_map_msgs/GridMap` (and optionally `sensor_msgs/PointCloud2`).
169
+
-`clock_node` — replays `/clock` from the bag's TF stamps so `use_sim_time` consumers stay in sync.
170
+
159
171
### Build and source
160
172
161
173
```bash
@@ -166,19 +178,59 @@ source install/setup.bash
166
178
167
179
### Launch with a rosbag
168
180
181
+
The single entrypoint is `mapping.launch.py`. It starts `mapping_node`, `sdf_query_node`, `clock_node`, and (optionally) RViz, then runs `ros2 bag play` after `bag_delay` seconds.
|`bag_path`|`ros2_bag`| Directory passed to `ros2 bag play`. |
207
+
|`trainer_config_path`|`share/oren_ros/configs/trainer-ros.yaml`| Trainer YAML consumed by `mapping_node`. |
208
+
|`play_rate`|`1.0`|`ros2 bag play -r` rate. |
209
+
|`bag_delay`|`1.0`| Seconds to wait before starting bag playback. |
210
+
|`use_sim_time`|`true`| Drives every node's clock from `/clock`. |
211
+
|`visualize_sdf`|`true`| Spawns `sdf_query_node` for live GridMap output. |
212
+
|`rviz`|`false`| Launches RViz alongside the mapping nodes. |
213
+
|`rviz_config`|_(empty)_| Path to a `.rviz` file; empty opens RViz with its default layout. |
214
+
215
+
The launch file remaps `/robot/tf` → `/tf` and `/robot/tf_static` → `/tf_static` for the Newer College bag so `tf2_ros` sees the DLIO frames. Adjust this in `launch/mapping.launch.py` if your bag publishes TF on the default topics.
216
+
217
+
### Configuring topics, modality, and QoS
218
+
219
+
ROS-side parameters (sensor modality, topic names, QoS, sync tolerances, the SDF query grid) live in `oren_ros/configs/ros2-params.yaml` and are loaded automatically by the launch file. The most common knobs:
220
+
221
+
-`modality`: `lidar` or `depth`.
222
+
-`use_odom`: `true` syncs the sensor topic with `odom_topic` via `message_filters`; `false` looks up the sensor pose in the tf2 buffer at the message stamp.
223
+
-`lidar_topic` / `depth_topic` / `odom_topic`: full QoS profile per topic (preset + per-field overrides).
224
+
-`world_frame` / `sensor_frame`: tf2 lookup frames when `use_odom=false`.
225
+
-`sdf_query_node.*`: 2D grid resolution, query plane height, attached frame, publish rate, and which outputs (`publish_grid_map`, `publish_point_cloud`, `publish_gradient`) to enable.
226
+
227
+
Override individual parameters at launch time without editing the YAML:
0 commit comments