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
That is, the linker does not know where to look forthe `rclrs_example_msgs` libraries. This location is containedin an environment variable set by the `setup.sh` script for`rclrs_example_msgs`. So we can just source the `install/setup.sh`, and after that, `rclrs_examples` can be built.
187
-
188
177
To summarize:
189
178
190
179
```shell
191
180
# Initial build of the package with colcon
192
-
# The --lookup-in-workspace flag is optional
181
+
# The --lookup-in-workspace flag is recommended for a cargo-based workflow
193
182
# Compare .cargo/config.toml with and without it to see its effect
# Run cargo build, or cargo check, cargo doc, etc.
198
186
cargo build
@@ -207,7 +195,7 @@ How can a binary created in Rust be made available to `ros2 run`, `ros2 launch`
207
195
208
196
It's not necessary to learn about which marker file goes where. The functionality to properly set up the install directory was extracted from `colcon-ros-cargo` into a `cargo` plugin, so that `colcon` is not required: [`cargo-ament-build`](https://github.com/ros2-rust/cargo-ament-build).
209
197
210
-
Simply use `cargo ament-build --install-base <path to install dir>` as a drop-in replacement for `cargo build`. After building, simply `. install/setup.sh` and you're good to run your executable with `ros2 run`.
198
+
Simply use `cargo ament-build --install-base <path to install dir>` as a drop-in replacement for `cargo build`. After building, run `. install/setup.sh` and you're good to run your executable with `ros2 run`.
0 commit comments