cisst-saw
|
Joint types. More...
#include <robJoint.h>
Public Types | |
enum | Type { UNDEFINED, HINGE, SLIDER, UNIVERSAL, BALLSOCKET } |
enum | Mode { ACTIVE, PASSIVE } |
Joint modes. More... | |
enum | Errno { ESUCCESS, EFAILURE } |
Public Member Functions | |
robJoint () | |
Default constructor. More... | |
robJoint (robJoint::Type type, robJoint::Mode mode, double offset, double min, double max, double ftmax) | |
robJoint::Type | GetType () const |
Return the type of the joint. More... | |
robJoint::Mode | GetMode () const |
Return the mode of the joint. More... | |
double | GetPosition () const |
Return the joint position. More... | |
double | GetVelocity () const |
Return the joint velocity. More... | |
double | GetForceTorque () const |
Return the joint force or torque. More... | |
void | SetPosition (double q) |
Set the joint position. More... | |
void | SetVelocity (double qd) |
Set the joint velocity. More... | |
void | SetForceTorque (double ft) |
Set the force/torque. More... | |
double | PositionOffset () const |
Return the offset position. More... | |
double | PositionMin () const |
Return the minimum position. More... | |
double | PositionMax () const |
Return the maximum position. More... | |
double | ForceTorqueMax () const |
Return the maximum force/torque. More... | |
virtual robJoint::Errno | Read (std::istream &is) |
Read from an input stream. More... | |
virtual robJoint::Errno | Write (std::ostream &os) const |
Read from an input stream. More... | |
Joint types.
These are used to identify the type of joints.
enum robJoint::Errno |
enum robJoint::Mode |
enum robJoint::Type |
robJoint::robJoint | ( | ) |
Default constructor.
robJoint::robJoint | ( | robJoint::Type | type, |
robJoint::Mode | mode, | ||
double | offset, | ||
double | min, | ||
double | max, | ||
double | ftmax | ||
) |
double robJoint::ForceTorqueMax | ( | ) | 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.
robJoint::Type robJoint::GetType | ( | ) | const |
Return the type of the joint.
double robJoint::GetVelocity | ( | ) | const |
Return the joint velocity.
If supported, this returns the joint velocity.
double robJoint::PositionMax | ( | ) | const |
Return the maximum position.
double robJoint::PositionMin | ( | ) | 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::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.