Skip to content

Link against ROS crates for a new ROS node #477

Open
@George-Gi

Description

@George-Gi

I have created a new ROS node and I have declared its dependencies in its Cargo.toml. If I do a symlink of my node's .cargo to the /ros2_ws/.cargo , cargo build works fine. However, if I don't do this symlink, the ROS crates can't be found or I have to explicitly declare their path like sensor_msgs = { version = "5.3.6", path = "/workspace/ros2_ws/install/sensor_msgs/share/sensor_msgs/rust" }.
Is there another method that I am missing? I want to avoid the overhead of explicitly adding the paths and I still need the .cargo of my project to declare some env variables in the config.toml

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