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§
fn from_urdf_robot_with_base_dir(robot: &Robot, path: Option<&Path>) -> Self
Provided Methods§
fn from_urdf_robot(robot: &Robot) -> Selfwhere
Self: Sized,
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>
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>
.