Rust + ROS2 Project

Hi everyone :waving_hand:

As part of my upskilling journey in Rust, I’ve started building a small robotics-focused project to put my learning into practice. The idea was to connect Rust to ROS2 and see how well it performs in a real robotics use case.

I’d love feedback and contributions from the community!

Feel free to comment below or reach out directly via GitHub:

result:


rust_controller_vi

Thanks in advance, and long live Rust & ROS2

4 Likes

I think the implementation is great. Especially the fact that you basically added your own lifecycle system, even though rclrs can’t do that natively yet, I think is really great.

On the negative side, I would like to point out that you are basically implementing two different types of nodes and this is not reflected in your package.xml. The package.xml of a ros package should help with its integration into your own processes and for this all dependencies used must be specified. In your case, this is still missing:

  • rclpy
  • turtlesim

I really liked it overall. :blush:

1 Like

Thank you for your feedback—it’s very enlightening. Initially, I simply wanted to implement a Rust node without any extra dependencies (rclpy and turtlesim); I only added those two to test the node. However, you’re absolutely right that it makes sense to include the dependencies in the main node.