Struct arci::JointPositionLimiter
source · pub struct JointPositionLimiter<C>where
C: JointTrajectoryClient,{ /* private fields */ }
Implementations§
source§impl<C> JointPositionLimiter<C>where
C: JointTrajectoryClient,
impl<C> JointPositionLimiter<C>where C: JointTrajectoryClient,
sourcepub fn new(client: C, limits: Vec<JointPositionLimit>) -> Self
pub fn new(client: C, limits: Vec<JointPositionLimit>) -> Self
Creates a new JointPositionLimiter
with the given position limits.
Panics
Panics if the lengths of limits
and joints that client
handles are different.
pub fn new_with_strategy( client: C, limits: Vec<JointPositionLimit>, strategy: JointPositionLimiterStrategy ) -> Self
sourcepub fn from_urdf(client: C, joints: &[Joint]) -> Result<Self, Error>
pub fn from_urdf(client: C, joints: &[Joint]) -> Result<Self, Error>
Creates a new JointPositionLimiter
with the position limits defined in URDF.
pub fn from_urdf_with_strategy( client: C, joints: &[Joint], strategy: JointPositionLimiterStrategy ) -> Result<Self, Error>
pub fn set_strategy(&mut self, strategy: JointPositionLimiterStrategy)
Trait Implementations§
source§impl<C> Clone for JointPositionLimiter<C>where
C: JointTrajectoryClient + Clone,
impl<C> Clone for JointPositionLimiter<C>where C: JointTrajectoryClient + Clone,
source§fn clone(&self) -> JointPositionLimiter<C>
fn clone(&self) -> JointPositionLimiter<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<C> Debug for JointPositionLimiter<C>where
C: JointTrajectoryClient + Debug,
impl<C> Debug for JointPositionLimiter<C>where C: JointTrajectoryClient + Debug,
source§impl<C> JointTrajectoryClient for JointPositionLimiter<C>where
C: JointTrajectoryClient,
impl<C> JointTrajectoryClient for JointPositionLimiter<C>where C: JointTrajectoryClient,
source§fn joint_names(&self) -> Vec<String>
fn joint_names(&self) -> Vec<String>
Returns names of joints that this client handles.
source§fn current_joint_positions(&self) -> Result<Vec<f64>, Error>
fn current_joint_positions(&self) -> Result<Vec<f64>, Error>
Returns the current joint positions.
source§fn send_joint_positions(
&self,
positions: Vec<f64>,
duration: Duration
) -> Result<WaitFuture, Error>
fn send_joint_positions( &self, positions: Vec<f64>, duration: Duration ) -> Result<WaitFuture, Error>
Send the specified joint positions and returns a future that waits until
complete the move joints. Read more
source§fn send_joint_trajectory(
&self,
trajectory: Vec<TrajectoryPoint>
) -> Result<WaitFuture, Error>
fn send_joint_trajectory( &self, trajectory: Vec<TrajectoryPoint> ) -> Result<WaitFuture, Error>
Send the specified joint trajectory and returns a future that waits until
complete the move joints. Read more
Auto Trait Implementations§
impl<C> RefUnwindSafe for JointPositionLimiter<C>where C: RefUnwindSafe,
impl<C> Send for JointPositionLimiter<C>
impl<C> Sync for JointPositionLimiter<C>
impl<C> Unpin for JointPositionLimiter<C>where C: Unpin,
impl<C> UnwindSafe for JointPositionLimiter<C>where C: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.