#ros2 #ros #env-var #ament

build ament_rs

This crate is a client for ament which is a system for cataloging and referencing resources distributed by software packages used by ROS2

2 releases

0.2.1 Jun 3, 2019
0.2.0 Jun 3, 2019

#156 in Robotics

Download history 126/week @ 2024-03-14 110/week @ 2024-03-21 130/week @ 2024-03-28 146/week @ 2024-04-04 124/week @ 2024-04-11 151/week @ 2024-04-18 164/week @ 2024-04-25 162/week @ 2024-05-02 164/week @ 2024-05-09 139/week @ 2024-05-16 128/week @ 2024-05-23 148/week @ 2024-05-30 136/week @ 2024-06-06 109/week @ 2024-06-13 184/week @ 2024-06-20 105/week @ 2024-06-27

556 downloads per month
Used in 2 crates

ISC license

16KB
251 lines

ament_rs

This crate is a client for ament which is a system for cataloging and referencing resources distributed by software packages used by ROS2.

docs.rs

Examples

use ament_rs::*;
println!("{:#?}", Ament::new()?.get_packages_prefixes());

This snippet will print a list of packages with the prefixes they were found in, depending of the value of the AMENT_PREFIX_PATH environment variable on your system.

{
    "ros_core": [
        "/opt/ros/crystal",
        "/opt/ros/bouncy",
    ],
    "console_bridge_vendor": [
        "/opt/ros/dashing",
        "/opt/ros/crystal",
    ],
    "ament_cmake_export_interfaces": [
        "/opt/ros/dashing",
        "/opt/ros/crystal",
        "/opt/ros/bouncy",
    ],
}

lib.rs:

This crate is a client for ament which is a system for cataloging and referencing resources distributed by software packages used by ROS2.

Examples

use ament_rs::*;
println!("{:#?}", Ament::new()?.get_packages_prefixes());

This snippet will print a list of packages with the prefixes they were found in, depending of the value of the AMENT_PREFIX_PATH environment variable on your system.

{
    "ros_core": [
        "/opt/ros/crystal",
        "/opt/ros/bouncy",
    ],
    "console_bridge_vendor": [
        "/opt/ros/dashing",
        "/opt/ros/crystal",
    ],
    "ament_cmake_export_interfaces": [
        "/opt/ros/dashing",
        "/opt/ros/crystal",
        "/opt/ros/bouncy",
    ],
}

Dependencies

~0.5–8MB
~52K SLoC