Struct rubullet::ConstraintInfo [−][src]
pub struct ConstraintInfo {}Show fields
pub id: ConstraintId, pub parent_body: BodyId, pub parent_link_index: Option<usize>, pub child_body: Option<BodyId>, pub child_link_index: Option<usize>, pub constraint_type: JointType, pub joint_axis: Vector3<f64>, pub joint_parent_frame_pose: Isometry3<f64>, pub joint_child_frame_pose: Isometry3<f64>, pub max_applied_force: f64, pub gear_ratio: f64, pub gear_aux_link: Option<usize>, pub relative_position_target: f64, pub erp: f64,
Expand description
contains the parameters for change_constraint
method.
Fields
id: ConstraintId
the constraint for which this info is generated
parent_body: BodyId
parent body unique id
parent_link_index: Option<usize>
parent body link index or None
for base link.
child_body: Option<BodyId>
child body unique id or None
or no body (specify a non-dynamic child frame in world coordinates)
child_link_index: Option<usize>
child body link index or None
for base link.
constraint_type: JointType
The JointType
for the constraint
joint_axis: Vector3<f64>
joint axis, in child link frame
joint_parent_frame_pose: Isometry3<f64>
pose of the joint frame relative to parent center of mass frame.
joint_child_frame_pose: Isometry3<f64>
updated child pose, see create_constraint
max_applied_force: f64
maximum force that constraint can apply
gear_ratio: f64
the ratio between the rates at which the two gears rotate
gear_aux_link: Option<usize>
In some cases, such as a differential drive, a third (auxiliary) link is used as reference pose.
relative_position_target: f64
the relative position target offset between two gears
erp: f64
constraint error reduction parameter
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ConstraintInfo
impl Send for ConstraintInfo
impl Sync for ConstraintInfo
impl Unpin for ConstraintInfo
impl UnwindSafe for ConstraintInfo
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