pub struct Planar2rFixture {
pub description: String,
pub link_lengths: Vec<f64>,
pub dh_convention: String,
pub dh_params: Vec<[f64; 4]>,
pub gravity: Option<[f64; 3]>,
pub links: Option<Vec<LinkFixture>>,
pub cases: Vec<Planar2rCase>,
}Fields§
§description: String§link_lengths: Vec<f64>§dh_convention: String§dh_params: Vec<[f64; 4]>§gravity: Option<[f64; 3]>§links: Option<Vec<LinkFixture>>§cases: Vec<Planar2rCase>Implementations§
Source§impl Planar2rFixture
impl Planar2rFixture
Sourcepub fn to_robot_model<T: NabledReal + Default>(
&self,
) -> Result<RobotModel<T>, ModelError>
pub fn to_robot_model<T: NabledReal + Default>( &self, ) -> Result<RobotModel<T>, ModelError>
Build a RobotModel from fixture DH and optional link inertials.
Sourcepub fn to_chain_spec<T: NabledReal>(&self) -> Result<ChainSpec<T>, ModelError>
pub fn to_chain_spec<T: NabledReal>(&self) -> Result<ChainSpec<T>, ModelError>
Build a kinematic ChainSpec from fixture DH parameters.
Sourcepub fn from_file(path: &str) -> Result<Self, ModelError>
pub fn from_file(path: &str) -> Result<Self, ModelError>
Load fixture from JSON file path.
Trait Implementations§
Source§impl Debug for Planar2rFixture
impl Debug for Planar2rFixture
Source§impl<'de> Deserialize<'de> for Planar2rFixture
impl<'de> Deserialize<'de> for Planar2rFixture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Planar2rFixture
impl RefUnwindSafe for Planar2rFixture
impl Send for Planar2rFixture
impl Sync for Planar2rFixture
impl Unpin for Planar2rFixture
impl UnsafeUnpin for Planar2rFixture
impl UnwindSafe for Planar2rFixture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more