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 Noneor 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

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.