Struct arci_ros::RosControlClient
source · pub struct RosControlClient(_);
Implementations§
source§impl RosControlClient
impl RosControlClient
pub fn new_with_joint_state_provider( joint_names: Vec<String>, controller_name: &str, send_partial_joints_goal: bool, joint_state_provider: Arc<Lazy<Box<dyn JointStateProvider + Send + Sync>, Box<dyn FnOnce() -> Box<dyn JointStateProvider + Send + Sync> + Send + Sync>>> ) -> Self
pub fn new( joint_names: Vec<String>, controller_name: &str, send_partial_joints_goal: bool ) -> Self
pub fn new_with_state_topic_name( joint_names: Vec<String>, controller_name: &str, joint_state_topic_name: &str, send_partial_joints_goal: bool ) -> Self
Trait Implementations§
source§impl Clone for RosControlClient
impl Clone for RosControlClient
source§fn clone(&self) -> RosControlClient
fn clone(&self) -> RosControlClient
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 JointTrajectoryClient for RosControlClient
impl JointTrajectoryClient for RosControlClient
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
source§impl SetCompleteCondition for RosControlClient
impl SetCompleteCondition for RosControlClient
fn set_complete_condition(&mut self, condition: Box<dyn CompleteCondition>)
Auto Trait Implementations§
impl !RefUnwindSafe for RosControlClient
impl Send for RosControlClient
impl Sync for RosControlClient
impl Unpin for RosControlClient
impl !UnwindSafe for RosControlClient
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<T> Pointable for T
impl<T> Pointable for T
§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.§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.