I would like to define my own message type, such as:
geometry_msgs/Point[] waypoints
I add this to: rclrs_example_msgs/msg/VariousTypes.msg
Modifies files accordingly
rclrs_example_msgs/CMakeLists.txt
...
+find_package(geometry_msgs REQUIRED)
set(msg_files
"msg/NestedType.msg"
"msg/VariousTypes.msg"
"msg/MyMessage.idl"
+DEPENDENCIES geometry_msgs
)
...
rclrs_example_msgs/package.xml
...
+geometry_msgs
...
The rclrs_example_msgs package compiles fine, but examples_rclrs_message_demo doesn't compile:
--> /home/mmazur/Projekty/examples/install/rclrs_example_msgs/share/rclrs_example_msgs/rust/src/msg.rs:480:24
|
480 | pub waypoints: Vec<geometry_msgs::msg::Point>,
| ^^^^^^^^^^^^^ use of unresolved module or unlinked crate geometry_msgs
|
= help: if you wanted to use a crate named geometry_msgs, use cargo add geometry_msgs to add it to your Cargo.toml
What can I do?
I haven't had problems with composite messages before.
I would like to define my own message type, such as:
geometry_msgs/Point[] waypoints
I add this to: rclrs_example_msgs/msg/VariousTypes.msg
Modifies files accordingly
rclrs_example_msgs/CMakeLists.txt
...
+find_package(geometry_msgs REQUIRED)
set(msg_files
"msg/NestedType.msg"
"msg/VariousTypes.msg"
"msg/MyMessage.idl"
+DEPENDENCIES geometry_msgs
)
...
rclrs_example_msgs/package.xml
...
+geometry_msgs
...
The rclrs_example_msgs package compiles fine, but examples_rclrs_message_demo doesn't compile:
--> /home/mmazur/Projekty/examples/install/rclrs_example_msgs/share/rclrs_example_msgs/rust/src/msg.rs:480:24
|
480 | pub waypoints: Vec<geometry_msgs::msg::Point>,
| ^^^^^^^^^^^^^ use of unresolved module or unlinked crate
geometry_msgs|
= help: if you wanted to use a crate named
geometry_msgs, usecargo add geometry_msgsto add it to yourCargo.tomlWhat can I do?
I haven't had problems with composite messages before.