Comments (1)
We can generate rust code for idl and msg files thanks to the rosidl_generator_rs and rosidl_runtime_rs packages in this repo.
In the rclrs_example_msgs package, we define a few .msg files and then we consume them in message_demo example. There is nothing special about the rclrs_example_msgs
package, the "magic" is in message_demo
's package.xml where we specify our dependency on the rosidl_runtime_rs
package.
As for the second part of your question, there is no way to generate nodes from just .idl/.msg files. To quote the ROS 2 docs
A node is a fundamental ROS 2 element that serves a single, modular purpose in a robotics system.
So having codegen for types defined in .idl/.msg files is different from automatically generating a node. You'll still need to write code that uses your auto-generated types.
from ros2_rust.
Related Issues (20)
- Example of package with `srv` definitions HOT 5
- Is this project abandoned? HOT 5
- rosidl_runtime_rs differences between main and crate breaks colcon build HOT 3
- Does ROS2_Rust support .srv code generation? HOT 3
- Support for building Debian packages HOT 1
- Getting an Result::unwrap() Error when launching a launch file. HOT 2
- Remove Support for Foxy HOT 1
- Add support for Iron Irwini
- Zero copy publisher example fails HOT 1
- `extern` block uses type `u128`, which is not FFI-safe HOT 7
- support `rclrs::SerializedMessage`
- compile failed when deserilize msg struct
- Improve support for rust analyzers
- Fix documentation now that rclrs is on crates.io HOT 1
- Does it make sense to publish Docker images? HOT 2
- Docs Fail to Generate on Docs.rs HOT 3
- Barebone Compile of Repository Fails HOT 3
- 0.4 Release Tracking Issue HOT 5
- A small tool for creating ros2 rust packages is available. 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.