docs: Update lifecycle node documentation

This commit is contained in:
2025-11-06 14:35:16 +01:00
parent a1e480c8b6
commit 808880738c
4 changed files with 15 additions and 108 deletions

View File

@@ -38,18 +38,17 @@ You can configure specific database settings in the `docker-compose.yaml` in the
### Start the IMU Reader program
```bash
ros2 launch g2_2025_imu_reader_pkg imu_reader.launch.xml
For Serial:
ros2 launch g2_2025_imu_reader_pkg serial.launch.xml
For MQTT:
ros2 launch g2_2025_imu_reader_pkg mqtt.launch.xml
```
To change parameters when using the launch file it will need to be edited in the `src/g2_2025_imu_reader_pkg/launch` folder. All parameters are already added to this document and thus only the values will need to be changed
## For launching lifecycle mqtt node
### Use the Lifecycle Node
First:
```bash
ros2 run g2_2025_imu_reader_pkg g2_2025_lifecycle_node --ros-args -p comm_t:='mqtt'
```
and in other terminal to inialize the subscriber:
To setup the lifecycle node the following commands can be used. They must be used in this order.
```bash
ros2 lifecycle set /lifecycle_manager configure
ros2 lifecycle set /lifecycle_manager activate