Skip to content

composite messages problem #23

Description

@micmzr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions