Struct openrr_teleop::ControlModesConfig
source · pub struct ControlModesConfig {
pub move_base_mode: Option<String>,
pub joy_joint_teleop_configs: Vec<JoyJointTeleopConfig>,
pub ik_mode_teleop_configs: Vec<IkModeTeleopConfig>,
pub joints_pose_sender_config: Option<JointsPoseSenderConfig>,
pub command_configs: Vec<RobotCommandConfig>,
}
Fields§
§move_base_mode: Option<String>
§joy_joint_teleop_configs: Vec<JoyJointTeleopConfig>
§ik_mode_teleop_configs: Vec<IkModeTeleopConfig>
§joints_pose_sender_config: Option<JointsPoseSenderConfig>
§command_configs: Vec<RobotCommandConfig>
Implementations§
source§impl ControlModesConfig
impl ControlModesConfig
pub fn create_control_modes( &self, base_path: Option<PathBuf>, robot_client: Arc<ArcRobotClient>, speaker: Arc<dyn Speaker>, joint_trajectory_client_map: &HashMap<String, Arc<dyn JointTrajectoryClient>>, ik_solver_with_chain_map: &HashMap<String, Arc<IkSolverWithChain>>, move_base: Option<Arc<dyn MoveBase>>, joints_poses: Vec<JointsPose> ) -> Result<Vec<Arc<dyn ControlMode>>, Error>
Trait Implementations§
source§impl Clone for ControlModesConfig
impl Clone for ControlModesConfig
source§fn clone(&self) -> ControlModesConfig
fn clone(&self) -> ControlModesConfig
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 Debug for ControlModesConfig
impl Debug for ControlModesConfig
source§impl Default for ControlModesConfig
impl Default for ControlModesConfig
source§fn default() -> ControlModesConfig
fn default() -> ControlModesConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ControlModesConfig
impl<'de> Deserialize<'de> for ControlModesConfig
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
source§impl JsonSchema for ControlModesConfig
impl JsonSchema for ControlModesConfig
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ControlModesConfig
impl Send for ControlModesConfig
impl Sync for ControlModesConfig
impl Unpin for ControlModesConfig
impl UnwindSafe for ControlModesConfig
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.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.