#ros2 #ros #env-var #path-environment #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

3 unstable releases

0.3.0 Feb 8, 2025
0.2.1 Jun 3, 2019
0.2.0 Jun 3, 2019

#42 in Robotics

Download history 52/week @ 2024-11-08 160/week @ 2024-11-15 114/week @ 2024-11-22 119/week @ 2024-11-29 10/week @ 2024-12-06 2/week @ 2024-12-13 9/week @ 2024-12-27 2/week @ 2025-01-10 1/week @ 2025-01-17 129/week @ 2025-02-07 1/week @ 2025-02-14

130 downloads per month
Used in 2 crates

ISC license

7.5MB
339 lines

Contains (rust library, 3MB) libitertools-72df3ca238e1261c.rlib, (rust library, 2.5MB) libament_rs-400f8c333963fb47.rlib, (ELF exe/lib, 2MB) target/debug/examples/package_list, (ELF exe/lib, 2MB) package_list-3dc7b8d5ec276779, (ELF exe/lib, 1.5MB) ament_rs-6f49283d1c0de249, (rust library, 1.5MB) libwalkdir-07d481beda8f9725.rlib and 91 more.

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.

crate.io 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