Skip to content

message and crate generation #5

@christianrauch

Description

@christianrauch

I am trying to build https://github.com/esteve/ros2_rust/pull/3 but the examples fail because of the missing std_msgs crate. I manually cloned common_interfaces to the workspace and the std_msgs get successfully generated in install/std_msgs/share/std_msgs/rust/src.
I then added std_msgs = { path = '[...]/rust_ws/install/std_msgs/share/std_msgs/rust' } to the dependencies section in the rclrs_examples but cargo still cannot find the std_msgs crate.
I did not apply the patch rosidl_typesupport_ros2_rust.patch since the rust code was successfully generated.

How do I set the path to the crate such that cargo is able to build the examples?
Also, is it possible to reuse already installed message definitions (e.g. from package ros-crystal-std-msgs) instead of duplicating the messages in the workspace?

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