sequenceplanner / r2r

Minimal ROS 2 Rust bindings
Other
309 stars 39 forks source link

sensor_msgs cannot found #86

Closed hikmetli closed 7 months ago

hikmetli commented 8 months ago

Hello I am trying to use sensor_msgs, Intellisense can read the sensor_msgs but when i try to build it with colcon it issues about sensor_msgs. I added sensor_msgs into config.toml but still it is not working.

The error :

error[E0433]: failed to resolve: could not find sensor_msgs in r2r --> ahrar/src/data.rs:14:10 | 14 | use r2r::sensor_msgs::msg::Image; | ^^^^^^^^^^^ could not find sensor_msgs in r2r

Config.toml :

IDL_PACKAGE_FILTER = { value = "std_msgs;geometry_msgs;sensor_msgs;px4_msgs" }

By the way i have tried to build it with cargo build, first it complained about geometry_msgs after adding it into IDL_PACKAGE_FILTER, errors gone for cargo.

m-dahl commented 7 months ago

Hi. I would guess that you don't have sensor_msgs in CMakeLists.txt (in the r2r_cargo function call).

hikmetli commented 7 months ago

yeah I also found that sorry i forgot to close issue