pub enum JointType {
    Fixed,
    Revolute,
    Continuous,
    Prismatic,
    Floating,
    Planar,
}
Expand description

An enum to represent the the types of Joint.

Currently, only URDF types are listed.

It is important to note that multi-axis jointtypes, like Floating and Planar, are often incompatible with lots of different tooling for ROS/URDF, like sensor_msgs/JointState messages from for example joint_state_publisher which has chosen to ignore it. This is a result of most programs (like kdl_parser and joint_state_publisher) only supporting single axis joints. Gazebo/SDFormat supports multi-access joints, but do not have an Floating or Planar equivalent. However, these JointTypes (Mostly Planar) can be approximated by a combination of other joints.

The sections cited from the URDF specification are accurate as of 2023-08-21.

Variants§

§

Fixed

A Fixed joint.

The URDF Specification says the following:

fixed — this is not really a joint because it cannot move. All degrees of freedom are locked. This type of joint does not require the <axis>, <calibration>, <dynamics>, <limits> or <safety_controller>.

§

Revolute

A Revolute joint. (A limited rotational joint, like a weld)

This joint rotates a limited range around a specified (or default) axis.

The URDF Specification says the following:

revolute — a hinge joint that rotates along the axis and has a limited range specified by the upper and lower limits.

§

Continuous

A Continuous rotational joint. (A bearing or motor connection, like a wheel)

This joint rotates around a specified (or default) axis.

Since this Jointtype is unlimited in its movement, the Limit should not be specified (??TODO: effort and velocity migth be useable??).

The URDF Specification says the following:

continuous — a continuous hinge joint that rotates around the axis and has no upper and lower limits.

§

Prismatic

A Prismitic joint. (A limited sliding joint, like a drawer rail or a linear actuator)

This joint slides a limited range along a specified (or default) axis.

The URDF Specification says the following:

prismatic — a sliding joint that slides along the axis, and has a limited range specified by the upper and lower limits.

§

Floating

A Floating joint. (Or a non-connection)

This is a joint to represent an unconnected link. Most parsers do not handle this JointType, since it’s not an actual joint and it causes problems with lots of different tooling for ROS/URDF, like sensor_msgs/JointState messages from for example joint_state_publisher which has chosen to ignore it.

The URDF Specification says the following:

floating — this joint allows motion for all 6 degrees of freedom.

§

Planar

A Planar joint. (A plane contact, like a magnet on a metal sheet)

This joint slides on the plane perpendicular the specified (or default) axis. This JointType might cause problems with lots of different tooling for ROS/URDF, like sensor_msgs/JointState messages from for example joint_state_publisher which has chosen to ignore it.

The URDF Specification says the following:

planar — this joint allows motion in a plane perpendicular to the axis.

Trait Implementations§

source§

impl Clone for JointType

source§

fn clone(&self) -> JointType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JointType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for JointType

source§

fn default() -> JointType

Returns the “default value” for a type. Read more
source§

impl From<JointType> for Cow<'_, [u8]>

source§

fn from(value: JointType) -> Self

Converts to this type from the input type.
source§

impl PartialEq for JointType

source§

fn eq(&self, other: &JointType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToString for JointType

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl Copy for JointType

source§

impl Eq for JointType

source§

impl StructuralEq for JointType

source§

impl StructuralPartialEq for JointType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,