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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DynamicsInfo
impl Send for DynamicsInfo
impl Sync for DynamicsInfo
impl Unpin for DynamicsInfo
impl UnwindSafe for DynamicsInfo
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