Comments (3)
Ok while typing the answer I realized that you were talking about ~/.cargo/config.toml
.
As colcon creates a bunch of files/folders I have its own folder as a workspace under ~/colcon_ws
resulting in the patch configuration for the path of rosidl_runtime_rs
ending up in ~/colcon_ws/.cargo/config.toml
and not being applied.
Copying the file to the correct folder in the homedir fixes the issue.
I suppose in this case it is more an issue with colcon-ros-cargo
?
Looking at the code it the .cargo/config.toml
is place in the working directory https://github.com/colcon/colcon-ros-cargo/blob/main/colcon_ros_cargo/task/ament_cargo/build.py#L100.
So I guess it not working is maybe due to the execution directory of cargo
in the colcon build
, as according to the docs if it is executed in the working dir the configuration should be applied.
Unless passing --manifest-path
or --target-dir
here change that.
Anyway it seems to not be an issue with ros2_rust
.
@nnmm I saw that you are also maintaining colcon-ros-cargo
.
I'm happy to open an issue there and do a PR if you could point me in the right direction.
from ros2_rust.
After a quick search, this might even be just a bug in cargo
itself rust-lang/cargo#2930
from ros2_rust.
Thanks for the report! I'm trying to understand how the two versions got mixed – could you tell me how you depend on rclrs
in your project (i.e. do you have a checkout of the repo, or through crates.io? And how is rclrs referenced in your Cargo.toml?)? And what is listed for rclrs
and rosidl_runtime_rs
in ~/.cargo/config.toml
?
from ros2_rust.
Related Issues (20)
- Investigate the rcl struct drop order HOT 4
- Failed to build depends on `builtin_interfaces` HOT 10
- Cargo can't find `Std_msgs` HOT 6
- Your own installation process crashes HOT 2
- Strange Warning by initial rclrs compilation HOT 2
- Audit drop ordering for rcl handles HOT 2
- Your tutorial is actually too complicated for beginners. HOT 5
- How to build subscribers? HOT 1
- `self.node.get_clock().now().to_ros_msg().unwrap()` doesn't work anymore HOT 12
- QoS for Clients and Services HOT 6
- Prevent message packages from crates.io to be included during the build HOT 15
- Crate imports_granularity requires nightly HOT 4
- Action_msgs not findable, because of relocation from `/ros_ws/install/action_msgs/share/action_msgs/rust` to `/ros_ws/install/share/action_msgs/rust/` HOT 3
- Upgrade to Rust 1.78 HOT 2
- Begin Jazzy Testing HOT 2
- Improve Message Generation Documentation
- Investigate proposed alternatives to the existing message generation pipeline.
- Panic occurs when publish sequence types for Rust 1.78 HOT 7
- Documentation incorrect regarding BoundedSequence.is_empty()
- `impl std::error::Error` for parameter errors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2_rust.