2个版本
0.2.1 | 2019年6月3日 |
---|---|
0.2.0 | 2019年6月3日 |
#156 在 机器人
556 每月下载
用于 2 crates
16KB
251 行
ament_rs
这个crate是ament的客户,ament是一个用于罗列和引用由ROS2使用的软件包分发的资源的系统。
示例
use ament_rs::*;
println!("{:#?}", Ament::new()?.get_packages_prefixes());
此片段将根据系统上AMENT_PREFIX_PATH
环境变量的值,打印出具有它们找到的前缀的包列表。
{
"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
:
这个crate是ament的客户,ament是一个用于罗列和引用由ROS2使用的软件包分发的资源的系统。
示例
use ament_rs::*;
println!("{:#?}", Ament::new()?.get_packages_prefixes());
此片段将根据系统上AMENT_PREFIX_PATH
环境变量的值,打印出具有它们找到的前缀的包列表。
{
"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",
],
}
依赖关系
~0.5–8MB
~52K SLoC