pub struct PinSlotJoint<N: RealField + Copy> { /* private fields */ }
Expand description
A joint that allows one translational and one rotational degrees of freedom.
Both are not required to be along the same direction.
Implementations§
Source§impl<N: RealField + Copy> PinSlotJoint<N>
impl<N: RealField + Copy> PinSlotJoint<N>
Source§impl<N: RealField + Copy> PinSlotJoint<N>
impl<N: RealField + Copy> PinSlotJoint<N>
Sourcepub fn min_offset(&self) -> Option<N>
pub fn min_offset(&self) -> Option<N>
The lower limit of the relative translational displacement of the attached multibody links along the joint axis.
Sourcepub fn max_offset(&self) -> Option<N>
pub fn max_offset(&self) -> Option<N>
The upper limit of the relative translational displacement of the attached multibody links along the joint axis.
Sourcepub fn disable_min_offset(&mut self)
pub fn disable_min_offset(&mut self)
Disable the lower limit of the relative translational displacement of the attached multibody links along the joint axis.
Sourcepub fn disable_max_offset(&mut self)
pub fn disable_max_offset(&mut self)
Disable the upper limit of the relative translational displacement of the attached multibody links along the joint axis.
Sourcepub fn enable_min_offset(&mut self, limit: N)
pub fn enable_min_offset(&mut self, limit: N)
Set the lower limit of the relative translational displacement of the attached multibody links along the joint axis.
Sourcepub fn enable_max_offset(&mut self, limit: N)
pub fn enable_max_offset(&mut self, limit: N)
Set the upper limit of the relative translational displacement of the attached multibody links along the joint axis.
Sourcepub fn is_linear_motor_enabled(&self) -> bool
pub fn is_linear_motor_enabled(&self) -> bool
Returns true
if the joint translational motor is enabled.
Sourcepub fn enable_linear_motor(&mut self)
pub fn enable_linear_motor(&mut self)
Enable the joint translational motor.
Sourcepub fn disable_linear_motor(&mut self)
pub fn disable_linear_motor(&mut self)
Disable the joint translational motor.
Sourcepub fn desired_linear_motor_velocity(&self) -> N
pub fn desired_linear_motor_velocity(&self) -> N
The desired relative translational velocity to be enforced by the joint motor.
Sourcepub fn set_desired_linear_motor_velocity(&mut self, vel: N)
pub fn set_desired_linear_motor_velocity(&mut self, vel: N)
Set the desired relative translational velocity to be enforced by the joint motor.
Sourcepub fn max_linear_motor_force(&self) -> N
pub fn max_linear_motor_force(&self) -> N
The maximum force that can be output by the joint translational motor.
Sourcepub fn set_max_linear_motor_force(&mut self, force: N)
pub fn set_max_linear_motor_force(&mut self, force: N)
Set the maximum force that can be output by the joint translational motor.
Source§impl<N: RealField + Copy> PinSlotJoint<N>
impl<N: RealField + Copy> PinSlotJoint<N>
Sourcepub fn disable_min_angle(&mut self)
pub fn disable_min_angle(&mut self)
Disable the lower limit of the rotation angle.
Sourcepub fn disable_max_angle(&mut self)
pub fn disable_max_angle(&mut self)
Disable the upper limit of the rotation angle.
Sourcepub fn enable_min_angle(&mut self, limit: N)
pub fn enable_min_angle(&mut self, limit: N)
Enable and set the lower limit of the rotation angle.
Sourcepub fn enable_max_angle(&mut self, limit: N)
pub fn enable_max_angle(&mut self, limit: N)
Enable and set the upper limit of the rotation angle.
Sourcepub fn is_angular_motor_enabled(&self) -> bool
pub fn is_angular_motor_enabled(&self) -> bool
Return true
if the angular motor of this joint is enabled.
Sourcepub fn enable_angular_motor(&mut self)
pub fn enable_angular_motor(&mut self)
Enable the angular motor of this joint.
Sourcepub fn disable_angular_motor(&mut self)
pub fn disable_angular_motor(&mut self)
Disable the angular motor of this joint.
Sourcepub fn desired_angular_motor_velocity(&self) -> N
pub fn desired_angular_motor_velocity(&self) -> N
The desired angular velocity of the joint motor.
Sourcepub fn set_desired_angular_motor_velocity(&mut self, vel: N)
pub fn set_desired_angular_motor_velocity(&mut self, vel: N)
Set the desired angular velocity of the joint motor.
Sourcepub fn max_angular_motor_torque(&self) -> N
pub fn max_angular_motor_torque(&self) -> N
The maximum torque that can be delivered by the joint motor.
Sourcepub fn set_max_angular_motor_torque(&mut self, torque: N)
pub fn set_max_angular_motor_torque(&mut self, torque: N)
Set the maximum torque that can be delivered by the joint motor.
Trait Implementations§
Source§impl<N: Clone + RealField + Copy> Clone for PinSlotJoint<N>
impl<N: Clone + RealField + Copy> Clone for PinSlotJoint<N>
Source§fn clone(&self) -> PinSlotJoint<N>
fn clone(&self) -> PinSlotJoint<N>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<N: RealField + Copy> Joint<N> for PinSlotJoint<N>
impl<N: RealField + Copy> Joint<N> for PinSlotJoint<N>
Source§fn body_to_parent(
&self,
parent_shift: &Vector3<N>,
body_shift: &Vector3<N>,
) -> Isometry3<N>
fn body_to_parent( &self, parent_shift: &Vector3<N>, body_shift: &Vector3<N>, ) -> Isometry3<N>
Source§fn update_jacobians(&mut self, body_shift: &Vector3<N>, vels: &[N])
fn update_jacobians(&mut self, body_shift: &Vector3<N>, vels: &[N])
Source§fn jacobian(&self, transform: &Isometry3<N>, out: &mut JacobianSliceMut<'_, N>)
fn jacobian(&self, transform: &Isometry3<N>, out: &mut JacobianSliceMut<'_, N>)
out
the non-zero entries of the joint jacobian transformed by transform
.Source§fn jacobian_dot(
&self,
transform: &Isometry3<N>,
out: &mut JacobianSliceMut<'_, N>,
)
fn jacobian_dot( &self, transform: &Isometry3<N>, out: &mut JacobianSliceMut<'_, N>, )
out
the non-zero entries of the time-derivative of the joint jacobian transformed by transform
.Source§fn jacobian_dot_veldiff_mul_coordinates(
&self,
transform: &Isometry3<N>,
vels: &[N],
out: &mut JacobianSliceMut<'_, N>,
)
fn jacobian_dot_veldiff_mul_coordinates( &self, transform: &Isometry3<N>, vels: &[N], out: &mut JacobianSliceMut<'_, N>, )
out
the non-zero entries of the velocity-derivative of the time-derivative of the joint jacobian transformed by transform
.Source§fn jacobian_mul_coordinates(&self, vels: &[N]) -> Velocity<N>
fn jacobian_mul_coordinates(&self, vels: &[N]) -> Velocity<N>
Source§fn jacobian_dot_mul_coordinates(&self, vels: &[N]) -> Velocity<N>
fn jacobian_dot_mul_coordinates(&self, vels: &[N]) -> Velocity<N>
Source§fn default_damping(&self, out: &mut DVectorSliceMut<'_, N>)
fn default_damping(&self, out: &mut DVectorSliceMut<'_, N>)
out
with the non-zero entries of a damping that can be applied by default to ensure a good stability of the joint.Source§fn integrate(&mut self, parameters: &IntegrationParameters<N>, vels: &[N])
fn integrate(&mut self, parameters: &IntegrationParameters<N>, vels: &[N])
Source§fn apply_displacement(&mut self, disp: &[N])
fn apply_displacement(&mut self, disp: &[N])
fn clone(&self) -> Box<dyn Joint<N>>
Source§fn num_velocity_constraints(&self) -> usize
fn num_velocity_constraints(&self) -> usize
Source§fn velocity_constraints(
&self,
parameters: &IntegrationParameters<N>,
multibody: &Multibody<N>,
link: &MultibodyLink<N>,
assembly_id: usize,
dof_id: usize,
ext_vels: &[N],
ground_j_id: &mut usize,
jacobians: &mut [N],
constraints: &mut ConstraintSet<N, (), (), usize>,
)
fn velocity_constraints( &self, parameters: &IntegrationParameters<N>, multibody: &Multibody<N>, link: &MultibodyLink<N>, assembly_id: usize, dof_id: usize, ext_vels: &[N], ground_j_id: &mut usize, jacobians: &mut [N], constraints: &mut ConstraintSet<N, (), (), usize>, )
Source§fn num_position_constraints(&self) -> usize
fn num_position_constraints(&self) -> usize
Source§fn position_constraint(
&self,
i: usize,
multibody: &Multibody<N>,
link: &MultibodyLink<N>,
handle: BodyPartHandle<()>,
dof_id: usize,
jacobians: &mut [N],
) -> Option<GenericNonlinearConstraint<N, ()>>
fn position_constraint( &self, i: usize, multibody: &Multibody<N>, link: &MultibodyLink<N>, handle: BodyPartHandle<()>, dof_id: usize, jacobians: &mut [N], ) -> Option<GenericNonlinearConstraint<N, ()>>
impl<N: Copy + RealField + Copy> Copy for PinSlotJoint<N>
Auto Trait Implementations§
impl<N> Freeze for PinSlotJoint<N>where
N: Freeze,
impl<N> RefUnwindSafe for PinSlotJoint<N>where
N: RefUnwindSafe,
impl<N> Send for PinSlotJoint<N>
impl<N> Sync for PinSlotJoint<N>
impl<N> Unpin for PinSlotJoint<N>where
N: Unpin,
impl<N> UnwindSafe for PinSlotJoint<N>where
N: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.