-
Notifications
You must be signed in to change notification settings - Fork 153
What's going on with rosidl_generator_rs? #470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also ran into this and it took me an embarrassingly long time to figure out what the problem was despite the fact that I reviewed and approved the PR that led to it.
All you need to do is use |
Although what you're describing sounds slightly different than what I experienced. If you do have |
Thank you so much, I really appreciate the help. I did double check both colcon-cargo and colcon-ros-cargo were installed (they were), and I tried doing the vcs import again, still to no avail. I'm able to use other bindings fine and build ROS2 packages with cargo just fine, so long as I don't include rosidl_generator_rs. |
When you say
Do you mean that inside your Cargo.toml you're doing something like this? [dependencies]
rosidl_generator_rs = "*" If that's what you're doing then you should remove that. In fact for your custom message package you shouldn't be using cargo at all. You should just use the typical cmake and package.xml files. As long as you have The auto-generated Rust bindings will produce a [dependencies]
my_message_package = "*" into the |
That is precisely what I was doing. I'm not sure when, but some point awhile ago I stopped using colcon and have just been using cargo. I'll give it another go! Thank you! :) |
Hello!
Sorry if this is a dumb question, but what's going on with rosidl_generator_rs? I've been working creating a bridge for the Blue Robotics Flight Controller (API is written in Rust) for some time now, and while I have a working version using standard message types, I'd really like to implement custom message types to avoid issues with string parsing down the road. However, whenever I try to include rosidl_generator_rs for type support functionality, it can't find the crate and the build fails. Tried following the instructions at the end of the building.md by sourcing the install directory, but no dice. Digging into ~/workspace/install/rosidl_generator_rs/share/rosidl_generator_rs, I can see it's missing the /rust directory (which I was looking for to hard code the path into the Cargo.toml in my custom_msgs directory).
Tl;dr: what's going on with rosidl_generator_rs? Am I just dumb? The basic pub/sub example works for me just fine. If anyone can offer any advice/wisdom, I'd really appreciate it.
The text was updated successfully, but these errors were encountered: