#[non_exhaustive]pub struct Opt {Show 27 fields
pub input_urdf_or_xacro: String,
pub xacro_arguments: Vec<(String, String)>,
pub end_link_names: Vec<String>,
pub is_collision: bool,
pub disable_texture: bool,
pub web_server_port: Option<u16>,
pub ignore_ik_position_x: bool,
pub ignore_ik_position_y: bool,
pub ignore_ik_position_z: bool,
pub ignore_ik_rotation_x: bool,
pub ignore_ik_rotation_y: bool,
pub ignore_ik_rotation_z: bool,
pub back_ground_color_r: f32,
pub back_ground_color_g: f32,
pub back_ground_color_b: f32,
pub tile_color1_r: f32,
pub tile_color1_g: f32,
pub tile_color1_b: f32,
pub tile_color2_r: f32,
pub tile_color2_g: f32,
pub tile_color2_b: f32,
pub ground_height: Option<f32>,
pub package_path: Vec<String>,
pub hide_menu: bool,
pub axis_scale: f32,
pub move_base_diff_unit: f32,
pub move_joint_diff_unit: f32,
}Expand description
Option for visualizing urdf
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_urdf_or_xacro: StringInput urdf or xacro
xacro_arguments: Vec<(String, String)>Xacro arguments
end_link_names: Vec<String>end link names
is_collision: boolShow collision element instead of visual
disable_texture: boolDisable texture rendering
web_server_port: Option<u16>Port number for web server interface (default to 7777)
ignore_ik_position_x: bool§ignore_ik_position_y: bool§ignore_ik_position_z: bool§ignore_ik_rotation_x: bool§ignore_ik_rotation_y: bool§ignore_ik_rotation_z: bool§back_ground_color_r: f32§back_ground_color_g: f32§back_ground_color_b: f32§tile_color1_r: f32§tile_color1_g: f32§tile_color1_b: f32§tile_color2_r: f32§tile_color2_g: f32§tile_color2_b: f32§ground_height: Option<f32>§package_path: Vec<String>Replace package://PACKAGE in mesh tag with PATH.
Hide the menu by default.
axis_scale: f32§move_base_diff_unit: f32§move_joint_diff_unit: f32Implementations§
Source§impl Opt
impl Opt
pub fn create_ik_constraints(&self) -> Constraints
pub fn create_package_path_map(&self) -> Result<HashMap<String, String>, Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Opt
impl<'de> Deserialize<'de> for Opt
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 StructOpt for Opt
impl StructOpt for Opt
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for Opt
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnwindSafe for Opt
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§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.Source§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> DowncastSync for T
impl<T> DowncastSync for T
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.