Struct rubullet::LoadModelFlags[][src]

pub struct LoadModelFlags { /* fields omitted */ }

Use flag for loading the model. Flags can be combined with the |-operator. Example:

let flags = LoadModelFlags::URDF_ENABLE_CACHED_GRAPHICS_SHAPES | LoadModelFlags::URDF_PRINT_URDF_INFO;
assert!(flags.contains(LoadModelFlags::URDF_PRINT_URDF_INFO));

Implementations

impl LoadModelFlags[src]

pub const NONE: LoadModelFlags[src]

use no flags (Default)

pub const URDF_USE_INERTIA_FROM_FILE: LoadModelFlags[src]

Use the inertia tensor provided in the URDF.

By default, Bullet will recompute the inertial tensor based on the mass and volume of the collision shape. Use this is you can provide a more accurate inertia tensor.

pub const URDF_USE_SELF_COLLISION: LoadModelFlags[src]

Enables self-collision.

pub const URDF_USE_SELF_COLLISION_EXCLUDE_PARENT: LoadModelFlags[src]

pub const URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS: LoadModelFlags[src]

will discard self-collisions between a child link and any of its ancestors (parents, parents of parents, up to the base). Needs to be used together with URDF_USE_SELF_COLLISION.

pub const URDF_RESERVED: LoadModelFlags[src]

pub const URDF_USE_IMPLICIT_CYLINDER: LoadModelFlags[src]

will use a smooth implicit cylinder. By default, Bullet will tesselate the cylinder into a convex hull.

pub const URDF_GLOBAL_VELOCITIES_MB: LoadModelFlags[src]

pub const MJCF_COLORS_FROM_FILE: LoadModelFlags[src]

pub const URDF_ENABLE_CACHED_GRAPHICS_SHAPES: LoadModelFlags[src]

Caches as reuses graphics shapes. This will decrease loading times for similar objects

pub const URDF_ENABLE_SLEEPING: LoadModelFlags[src]

Allow the disabling of simulation after a body hasn’t moved for a while.

Interaction with active bodies will re-enable simulation.

pub const URDF_INITIALIZE_SAT_FEATURES: LoadModelFlags[src]

will create triangle meshes for convex shapes. This will improve visualization and also allow usage of the separating axis test (SAT) instead of GJK/EPA. Requires to enable_SAT using set_physics_engine_parameter. TODO

pub const URDF_USE_SELF_COLLISION_INCLUDE_PARENT: LoadModelFlags[src]

will enable collision between child and parent, it is disabled by default. Needs to be used together with URDF_USE_SELF_COLLISION flag.

pub const URDF_PARSE_SENSORS: LoadModelFlags[src]

pub const URDF_USE_MATERIAL_COLORS_FROM_MTL: LoadModelFlags[src]

will use the RGB color from the Wavefront OBJ file, instead of from the URDF file.

pub const URDF_USE_MATERIAL_TRANSPARANCY_FROM_MTL: LoadModelFlags[src]

Try to maintain the link order from the URDF file.

pub const URDF_ENABLE_WAKEUP: LoadModelFlags[src]

this will remove fixed links from the URDF file and merge the resulting links. This is good for performance, since various algorithms (articulated body algorithm, forward kinematics etc) have linear complexity in the number of joints, including fixed joints.

pub const URDF_IGNORE_VISUAL_SHAPES: LoadModelFlags[src]

pub const URDF_IGNORE_COLLISION_SHAPES: LoadModelFlags[src]

pub const URDF_PRINT_URDF_INFO: LoadModelFlags[src]

pub const URDF_GOOGLEY_UNDEFINED_COLORS: LoadModelFlags[src]

pub const fn empty() -> LoadModelFlags[src]

Returns an empty set of flags

pub const fn all() -> LoadModelFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> i32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: i32) -> Option<LoadModelFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: i32) -> LoadModelFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: i32) -> LoadModelFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: LoadModelFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: LoadModelFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: LoadModelFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: LoadModelFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: LoadModelFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: LoadModelFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for LoadModelFlags[src]

impl BitAnd<LoadModelFlags> for LoadModelFlags[src]

type Output = LoadModelFlags

The resulting type after applying the & operator.

fn bitand(self, other: LoadModelFlags) -> LoadModelFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<LoadModelFlags> for LoadModelFlags[src]

fn bitand_assign(&mut self, other: LoadModelFlags)[src]

Disables all flags disabled in the set.

impl BitOr<LoadModelFlags> for LoadModelFlags[src]

type Output = LoadModelFlags

The resulting type after applying the | operator.

fn bitor(self, other: LoadModelFlags) -> LoadModelFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<LoadModelFlags> for LoadModelFlags[src]

fn bitor_assign(&mut self, other: LoadModelFlags)[src]

Adds the set of flags.

impl BitXor<LoadModelFlags> for LoadModelFlags[src]

type Output = LoadModelFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: LoadModelFlags) -> LoadModelFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<LoadModelFlags> for LoadModelFlags[src]

fn bitxor_assign(&mut self, other: LoadModelFlags)[src]

Toggles the set of flags.

impl Clone for LoadModelFlags[src]

impl Copy for LoadModelFlags[src]

impl Debug for LoadModelFlags[src]

impl Default for LoadModelFlags[src]

impl Eq for LoadModelFlags[src]

impl Extend<LoadModelFlags> for LoadModelFlags[src]

impl FromIterator<LoadModelFlags> for LoadModelFlags[src]

impl Hash for LoadModelFlags[src]

impl LowerHex for LoadModelFlags[src]

impl Not for LoadModelFlags[src]

type Output = LoadModelFlags

The resulting type after applying the ! operator.

fn not(self) -> LoadModelFlags[src]

Returns the complement of this set of flags.

impl Octal for LoadModelFlags[src]

impl Ord for LoadModelFlags[src]

impl PartialEq<LoadModelFlags> for LoadModelFlags[src]

impl PartialOrd<LoadModelFlags> for LoadModelFlags[src]

impl StructuralEq for LoadModelFlags[src]

impl StructuralPartialEq for LoadModelFlags[src]

impl Sub<LoadModelFlags> for LoadModelFlags[src]

type Output = LoadModelFlags

The resulting type after applying the - operator.

fn sub(self, other: LoadModelFlags) -> LoadModelFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<LoadModelFlags> for LoadModelFlags[src]

fn sub_assign(&mut self, other: LoadModelFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for LoadModelFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, Right> ClosedSub<Right> for T where
    T: Sub<Right, Output = T> + SubAssign<Right>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,