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

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.