pub struct RobotModel<T> { /* private fields */ }Implementations§
Source§impl<T: Clone> RobotModel<T>
impl<T: Clone> RobotModel<T>
pub fn new() -> Self
pub fn add_body(&mut self, parent: Option<usize>, body: BodySpec<T>) -> usize
pub fn parent(&self, index: usize) -> Option<usize>
pub fn joint(&self, index: usize) -> Option<&BodySpec<T>>
pub fn body_index_for_link(&self, link_name: &str) -> Option<usize>
pub fn dof(&self) -> usize
pub fn validate(&self) -> Result<(), ModelError>
Sourcepub fn topological_order(&self) -> Vec<usize>
pub fn topological_order(&self) -> Vec<usize>
BFS topological order from root bodies (no parent).
Sourcepub fn actuated_indices(&self) -> Vec<usize>
pub fn actuated_indices(&self) -> Vec<usize>
Indices of actuated (non-fixed) bodies in topological order.
Sourcepub fn limits_for_joint(&self, joint_index: usize) -> Option<&JointLimits<T>>
pub fn limits_for_joint(&self, joint_index: usize) -> Option<&JointLimits<T>>
Joint limits for actuated joint joint_index (0-based among actuated joints).
pub fn update_body( &mut self, index: usize, body: BodySpec<T>, ) -> Result<(), ModelError>
Trait Implementations§
Source§impl<T: Clone> Clone for RobotModel<T>
impl<T: Clone> Clone for RobotModel<T>
Source§fn clone(&self) -> RobotModel<T>
fn clone(&self) -> RobotModel<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for RobotModel<T>
impl<T: Debug> Debug for RobotModel<T>
Source§impl<T: Clone> Default for RobotModel<T>
impl<T: Clone> Default for RobotModel<T>
Source§impl<T: NabledReal + Clone> KinematicTreeModel<T> for RobotModel<T>
impl<T: NabledReal + Clone> KinematicTreeModel<T> for RobotModel<T>
fn validate_tree(&self) -> Result<(), KinematicsError>
fn dof(&self) -> usize
fn actuated_indices(&self) -> Vec<usize>
fn topological_order(&self) -> Vec<usize>
fn body_index_for_link(&self, link_name: &str) -> Option<usize>
fn parent_link(&self, body_index: usize) -> &str
fn child_link(&self, body_index: usize) -> &str
fn joint_type(&self, body_index: usize) -> TreeJointType
fn joint_origin(&self, body_index: usize) -> &Transform3<T>
fn joint_axis(&self, body_index: usize) -> [T; 3]
fn chain_indices( &self, base_link: &str, ee_link: &str, ) -> Result<Vec<usize>, KinematicsError>
Source§impl<T: PartialEq> PartialEq for RobotModel<T>
impl<T: PartialEq> PartialEq for RobotModel<T>
Source§fn eq(&self, other: &RobotModel<T>) -> bool
fn eq(&self, other: &RobotModel<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for RobotModel<T>
Auto Trait Implementations§
impl<T> Freeze for RobotModel<T>
impl<T> RefUnwindSafe for RobotModel<T>where
T: RefUnwindSafe,
impl<T> Send for RobotModel<T>where
T: Send,
impl<T> Sync for RobotModel<T>where
T: Sync,
impl<T> Unpin for RobotModel<T>where
T: Unpin,
impl<T> UnsafeUnpin for RobotModel<T>
impl<T> UnwindSafe for RobotModel<T>where
T: UnwindSafe + RefUnwindSafe,
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