openrr_planner::collision

Trait FromUrdf

Source
pub trait FromUrdf {
    // Required method
    fn from_urdf_robot_with_base_dir(robot: &Robot, path: Option<&Path>) -> Self;

    // Provided methods
    fn from_urdf_robot(robot: &Robot) -> Self
       where Self: Sized { ... }
    fn from_urdf_file(path: impl AsRef<Path>) -> Result<Self, UrdfError>
       where Self: Sized { ... }
}
Expand description

Convert urdf object into openrr_planner/ncollide3d object

Required Methods§

Provided Methods§

Source

fn from_urdf_robot(robot: &Robot) -> Self
where Self: Sized,

Source

fn from_urdf_file(path: impl AsRef<Path>) -> Result<Self, UrdfError>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromUrdf for Compound<f64>

Create ncollide::shape::Compound from URDF file

The <link> elements are used as obstacles. set the origin/geometry of <visual> and <collision>. You can skip <inertia>.

Source§

fn from_urdf_robot_with_base_dir( urdf_obstacle: &Robot, base_path: Option<&Path>, ) -> Self

Implementors§