#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

#131 in Robotics

Download history 25/week @ 2024-01-03 40/week @ 2024-01-10 32/week @ 2024-01-17 27/week @ 2024-01-24 47/week @ 2024-01-31 41/week @ 2024-02-07 69/week @ 2024-02-14 104/week @ 2024-02-21 98/week @ 2024-02-28 111/week @ 2024-03-06 116/week @ 2024-03-13 124/week @ 2024-03-20 123/week @ 2024-03-27 147/week @ 2024-04-03 126/week @ 2024-04-10 107/week @ 2024-04-17

525 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–9MB
~54K SLoC