Struct rubullet::LoadModelFlags [−][src]
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]
pub const URDF_MAINTAIN_LINK_ORDER: LoadModelFlags
[src]
Try to maintain the link order from the URDF file.
pub const URDF_ENABLE_WAKEUP: LoadModelFlags
[src]
pub const URDF_MERGE_FIXED_LINKS: 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]
fn clone(&self) -> LoadModelFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn extend<T: IntoIterator<Item = LoadModelFlags>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<LoadModelFlags> for LoadModelFlags
[src]
fn from_iter<T: IntoIterator<Item = LoadModelFlags>>(
iterator: T
) -> LoadModelFlags
[src]
iterator: T
) -> LoadModelFlags
impl Hash for LoadModelFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
fn cmp(&self, other: &LoadModelFlags) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<LoadModelFlags> for LoadModelFlags
[src]
fn eq(&self, other: &LoadModelFlags) -> bool
[src]
fn ne(&self, other: &LoadModelFlags) -> bool
[src]
impl PartialOrd<LoadModelFlags> for LoadModelFlags
[src]
fn partial_cmp(&self, other: &LoadModelFlags) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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
impl RefUnwindSafe for LoadModelFlags
impl Send for LoadModelFlags
impl Sync for LoadModelFlags
impl Unpin for LoadModelFlags
impl UnwindSafe for LoadModelFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
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]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,