generated from wessel/boilerplate
feat: Working v2
This commit is contained in:
@@ -10,6 +10,22 @@
|
||||
- Colcon build tool
|
||||
- Docker compose
|
||||
|
||||
### Paho MQTT library
|
||||
|
||||
For this project the Paho MQTT library is needed, which can be built with the following commands:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/eclipse/paho.mqtt.cpp
|
||||
cd paho.mqtt.cpp
|
||||
git co v1.5.4
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
cmake -Bbuild -H. -DPAHO_WITH_MQTT_C=ON -DPAHO_BUILD_EXAMPLES=ON
|
||||
sudo cmake --build build/ --target install
|
||||
```
|
||||
|
||||
### Clone the Repository
|
||||
|
||||
```bash
|
||||
@@ -38,10 +54,10 @@ You can configure specific database settings in the `docker-compose.yaml` in the
|
||||
|
||||
### Start the IMU Reader program
|
||||
```bash
|
||||
For Serial:
|
||||
# For Serial:
|
||||
ros2 launch g2_2025_imu_reader_pkg serial.launch.xml
|
||||
|
||||
For MQTT:
|
||||
# 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
|
||||
@@ -50,8 +66,10 @@ To change parameters when using the launch file it will need to be edited in the
|
||||
|
||||
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
|
||||
ros2 lifecycle set /lifecycle_manager deactivate
|
||||
ros2 lifecycle set /lifecycle_manager shutdown
|
||||
ros2 lifecycle set /LifecycleManager configure
|
||||
ros2 lifecycle set /LifecycleManager cleanup
|
||||
ros2 lifecycle set /LifecycleManager activate
|
||||
ros2 lifecycle set /LifecycleManager deactivate
|
||||
ros2 lifecycle set /LifecycleManager shutdown
|
||||
```
|
||||

|
||||
|
||||
Reference in New Issue
Block a user