Struct rubullet::DynamicsInfo[][src]

pub struct DynamicsInfo {
    pub mass: f64,
    pub lateral_friction: f64,
    pub spinning_friction: f64,
    pub rolling_friction: f64,
    pub restitution: f64,
    pub contact_stiffness_and_damping: Option<(f64, f64)>,
    pub local_inertia_diagonal: Vector3<f64>,
    pub local_inertial_pose: Isometry3<f64>,
    pub body_type: BodyType,
    pub collision_margin: f64,
}
Expand description

Contains information about the mass, center of mass, friction and other properties of the base and links. Is returned by get_dynamics_info.

Fields

mass: f64

mass in kg

lateral_friction: f64

lateral (linear) contact friction

spinning_friction: f64

spinning friction coefficient around contact normal

rolling_friction: f64

rolling friction coefficient orthogonal to contact normal

restitution: f64

coefficient of restitution (bouncyness of contact).

contact_stiffness_and_damping: Option<(f64, f64)>

The contact stiffness and contact damping of the link encoded as tuple (contact_stiffness, contact_damping). Is None if not available

local_inertia_diagonal: Vector3<f64>

diagonal elements of the inertia tensor. Note that the base and links are centered around the center of mass and aligned with the principal axes of inertia so there are no off-diagonal elements in the inertia tensor.

local_inertial_pose: Isometry3<f64>

of inertial frame in local coordinates of the joint frame

body_type: BodyType

body type of the object

collision_margin: f64

collision margin of the collision shape. collision margins depend on the shape type, it is not consistent.

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.