|
cisst-saw
|
Joint types. More...
#include <robJoint.h>
Public Types | |
| enum | Mode { ACTIVE , PASSIVE } |
| Joint modes. More... | |
| enum | Errno { ESUCCESS , EFAILURE } |
| typedef cmnJointType | Type |
Public Member Functions | |
| robJoint () | |
| Default constructor. | |
| robJoint (cmnJointType type, robJoint::Mode mode, double offset, double min, double max, double ftmax) | |
| virtual | ~robJoint () |
| const std::string & | Name (void) const |
| std::string & | Name (void) |
| cmnJointType | GetType () const |
| Return the type of the joint. | |
| robJoint::Mode | GetMode () const |
| Return the mode of the joint. | |
| double | GetPosition () const |
| Return the joint position. | |
| double | GetVelocity () const |
| Return the joint velocity. | |
| double | GetForceTorque () const |
| Return the joint force or torque. | |
| void | SetPosition (double q) |
| Set the joint position. | |
| void | SetVelocity (double qd) |
| Set the joint velocity. | |
| void | SetForceTorque (double ft) |
| Set the force/torque. | |
| double | PositionOffset () const |
| Return the offset position. | |
| void | SetPositionOffset (const double offset) |
| const double & | PositionMin (void) const |
| Return the minimum position. | |
| double & | PositionMin (void) |
| const double & | PositionMax (void) const |
| Return the maximum position. | |
| double & | PositionMax (void) |
| const double & | ForceTorqueMax (void) const |
| Return the maximum force/torque. | |
| double & | ForceTorqueMax (void) |
| virtual robJoint::Errno | Read (std::istream &is) |
| Read from an input stream. | |
| virtual robJoint::Errno | Write (std::ostream &os) const |
| Read from an input stream. | |
Static Public Attributes | |
| static const cmnJointType | UNDEFINED = CMN_JOINT_UNDEFINED |
| static const cmnJointType | HINGE = CMN_JOINT_REVOLUTE |
| static const cmnJointType | SLIDER = CMN_JOINT_PRISMATIC |
| static const cmnJointType | UNIVERSAL = CMN_JOINT_UNIVERSAL |
| static const cmnJointType | BALLSOCKET = CMN_JOINT_BALL_SOCKET |
Joint types.
These are used to identify the type of joints.
| typedef cmnJointType robJoint::Type |
| enum robJoint::Errno |
| enum robJoint::Mode |
| robJoint::robJoint | ( | ) |
Default constructor.
| robJoint::robJoint | ( | cmnJointType | type, |
| robJoint::Mode | mode, | ||
| double | offset, | ||
| double | min, | ||
| double | max, | ||
| double | ftmax ) |
|
inlinevirtual |
| double & robJoint::ForceTorqueMax | ( | void | ) |
| const double & robJoint::ForceTorqueMax | ( | void | ) | const |
Return the maximum force/torque.
| double robJoint::GetForceTorque | ( | ) | const |
Return the joint force or torque.
If supported, this returns the joint force or torque.
| robJoint::Mode robJoint::GetMode | ( | ) | const |
Return the mode of the joint.
| double robJoint::GetPosition | ( | ) | const |
Return the joint position.
If supported, this returns the joint position.
| cmnJointType robJoint::GetType | ( | ) | const |
Return the type of the joint.
| double robJoint::GetVelocity | ( | ) | const |
Return the joint velocity.
If supported, this returns the joint velocity.
|
inline |
|
inline |
| double & robJoint::PositionMax | ( | void | ) |
| const double & robJoint::PositionMax | ( | void | ) | const |
Return the maximum position.
| double & robJoint::PositionMin | ( | void | ) |
| const double & robJoint::PositionMin | ( | void | ) | const |
Return the minimum position.
| double robJoint::PositionOffset | ( | ) | const |
Return the offset position.
|
virtual |
Read from an input stream.
Use this method to configure the parameters of the joints from an input stream. The parameters are in the following order: type, mode, position offset, min position, max position, max force/torque.
| is[in] | The input stream |
Reimplemented in robKinematics.
| void robJoint::SetForceTorque | ( | double | ft | ) |
Set the force/torque.
If supported, this sets the force/torque. The new value is NOT clipped to the force/torque limit.
| ft | The new force/torque |
| void robJoint::SetPosition | ( | double | q | ) |
Set the joint position.
If supported, this sets the joint position. The position is NOT clipped to the position limits.
| q | The new joint angular or linear position |
| void robJoint::SetPositionOffset | ( | const double | offset | ) |
| void robJoint::SetVelocity | ( | double | qd | ) |
Set the joint velocity.
If supported, this sets the joint velocity. The velocity is NOT clipped to the velocity limit.
| qd | The new joint angular or linear velocity. |
|
virtual |
Read from an input stream.
Use this method to write the parameters of the joints to an output stream. This method can be overloaded for more specific joints.
| os[in] | The output stream |
Reimplemented in robKinematics.
|
static |
|
static |
|
static |
|
static |
|
static |