|
|
|
@@ -27,7 +27,7 @@ To enable the bridge, use these steps: |
|
|
|
- Optional: Source package-specific ROS2 setup files if you want to use custom package-specific ROS2 messages in the bridge (see [ROS2 docs](https://docs.ros.org/en/rolling/Tutorials/Beginner-Client-Libraries/Creating-Your-First-ROS2-Package.html#source-the-setup-file)) |
|
|
|
- Build the `dora-node-api-cxx` package **with the `ros2-bridge` feature enabled**: |
|
|
|
```bash |
|
|
|
cargo build --package dora-node-api-cxx --feature ros2-bridge |
|
|
|
cargo build --package dora-node-api-cxx --features ros2-bridge |
|
|
|
``` |
|
|
|
- In addition to the `dora-node-api.h` and `dora-node-api.cc` files, this will place a `dora-ros2-bindings.h` and a `dora-ros2-bindings.cc` file in the `target/cxxbridge/dora-node-api-cxx` directory. |
|
|
|
- Include both the `dora-node-api.h` and the `dora-ros2-bindings.h` header files in your source file. |
|
|
|
|