Comments (4)
@kjeremy @jhdcs @gbiggs , I recall you had started discussing this topic on the Rust WG proposal post along this thread:
https://discourse.ros.org/t/proposal-rust-working-group-for-ros/16993/30
from ros2_rust.
As mentioned in that thread the issue is that the included examples copy the Cargo.toml
and inject entries for the messages during build. If you open the build space folder in vscode then rust-analyzer
will give you types. The easiest solution from the rls
/rust-analyzer
POV would be to include those in the Cargo.toml
or maybe build.rs
from the beginning.
from ros2_rust.
The easiest solution from the
rls
/rust-analyzer
POV would be to include those in theCargo.toml
or maybebuild.rs
from the beginning.
I think that this may be the best solution. I can forsee people using rclrs
not knowing that they have to open the build space folder for rclrs
in order to get types for whatever crate they're working on. This would be especially bad if they didn't download ROS 2 from source.
from ros2_rust.
This sounds like we should expect users to do with Cargo.toml
what they have to do with CMakeLists.txt
in a CMake or ament_cmake
package: Include the message information in two places. It's as lovely a solution as it is in those other packages, but it seems it would solve the problem.
from ros2_rust.
Related Issues (20)
- 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 4
- support `rclrs::SerializedMessage`
- compile failed when deserilize msg struct
- Improve support for rust analyzers
- Fix documentation now that rclrs is on crates.io
- 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
- does ros2_rust support autogeneration of code from .idl and .msg files, is there any example implementation to autogenerate rust nodes from .idl/.msg files? HOT 1
- A small tool for creating ros2 rust packages is available. HOT 3
- Build Error: unable to find std_msgs HOT 1
- Support for Bevy HOT 7
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.