Struct rubullet::VisualShapeData [−][src]
pub struct VisualShapeData { pub body_id: BodyId, pub link_index: Option<usize>, pub visual_geometry_type: i32, pub dimensions: [f64; 3], pub mesh_asset_file_name: String, pub local_visual_frame_pose: Isometry3<f64>, pub rgba_color: [f64; 4], pub texture_id: Option<TextureId>, }
Expand description
Contains information about the visual shape of a body. It is returned by get_visual_shape_data
Fields
body_id: BodyId
same id as in the input of get_visual_shape_data
link_index: Option<usize>
link index or None for the base
visual_geometry_type: i32
visual geometry type (TBD)
dimensions: [f64; 3]
dimensions (size, local scale) of the geometry
mesh_asset_file_name: String
path to the triangle mesh, if any. Typically relative to the URDF, SDF or MJCF file location, but could be absolute.
local_visual_frame_pose: Isometry3<f64>
of local visual frame relative to link/joint frame
rgba_color: [f64; 4]
URDF color (if any specified) in red/green/blue/alpha
texture_id: Option<TextureId>
Id of the texture. Is only some when request_texture_id was set to true
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VisualShapeData
impl Send for VisualShapeData
impl Sync for VisualShapeData
impl Unpin for VisualShapeData
impl UnwindSafe for VisualShapeData
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V