RobWorkProject
24.12.4-
|
Class representing a single leg in a ParallelDevice. More...
#include <ParallelLeg.hpp>
Public Types | |
typedef rw::core::Ptr< ParallelLeg > | Ptr |
smart pointer type to this class | |
Public Member Functions | |
ParallelLeg (std::vector< rw::kinematics::Frame * > frames) | |
Constructs leg from frames. More... | |
ParallelLeg (std::vector< rw::core::Ptr< rw::kinematics::Frame >> frames) | |
Constructs leg from frames. More... | |
virtual | ~ParallelLeg () |
Destructor. | |
const rw::math::Jacobian & | baseJend (const rw::kinematics::State &state) |
Returns the base to end Jacobian. More... | |
rw::math::Jacobian | baseJframe (rw::core::Ptr< const rw::kinematics::Frame > frame, const rw::kinematics::State &state) const |
Returns the Jacobian of frame relative to base frame. More... | |
rw::math::Transform3D< double > | baseTend (const rw::kinematics::State &state) const |
Returns the base to end transformation. More... | |
rw::math::Transform3D< double > | baseTframe (rw::core::Ptr< const rw::kinematics::Frame > frame, const rw::kinematics::State &state) const |
Returns the transformation of a frame relative to the base. More... | |
const std::vector< rw::kinematics::Frame * > & | getKinematicChain () const |
Returns the kinematic chain of the leg. More... | |
rw::kinematics::Frame * | getBase () |
the base of the leg More... | |
rw::kinematics::Frame * | getEnd () |
the end of the leg More... | |
size_t | nrOfActiveJoints () |
Number of active joints. More... | |
size_t | nrOfPassiveJoints () |
Number of passive joints. More... | |
size_t | nrOfJoints () |
Number of joints (both active and passive) More... | |
const std::vector< models::Joint * > & | getActuatedJoints () |
Returns list of the actuated (active) joints. More... | |
const std::vector< models::Joint * > & | getUnactuatedJoints () |
Returns list of unactuated (passive) joints. More... | |
std::size_t | getJointDOFs () const |
Get the total degrees of freedom (includes both active and passive joints). More... | |
rw::math::Q | getQ (const rw::kinematics::State &state) const |
Get configuration of the leg. More... | |
void | setQ (const rw::math::Q &q, rw::kinematics::State &state) const |
Sets q for the leg in the state. More... | |
Class representing a single leg in a ParallelDevice.
ParallelLeg | ( | std::vector< rw::kinematics::Frame * > | frames | ) |
Constructs leg from frames.
frames | [in] list of Frame's |
ParallelLeg | ( | std::vector< rw::core::Ptr< rw::kinematics::Frame >> | frames | ) |
Constructs leg from frames.
frames | [in] list of Frame's |
const rw::math::Jacobian& baseJend | ( | const rw::kinematics::State & | state | ) |
Returns the base to end Jacobian.
state | [in] State for which to calculate the Jacobian |
rw::math::Jacobian baseJframe | ( | rw::core::Ptr< const rw::kinematics::Frame > | frame, |
const rw::kinematics::State & | state | ||
) | const |
Returns the Jacobian of frame relative to base frame.
frame | [in] the frame to find Jacobian for. |
state | [in] State for which to calculate the Jacobian |
rw::math::Transform3D<double> baseTend | ( | const rw::kinematics::State & | state | ) | const |
Returns the base to end transformation.
state | [in] State for which to calculate the transform |
rw::math::Transform3D<double> baseTframe | ( | rw::core::Ptr< const rw::kinematics::Frame > | frame, |
const rw::kinematics::State & | state | ||
) | const |
Returns the transformation of a frame relative to the base.
frame | [in] the frame to find transformation to. |
state | [in] State for which to calculate the transform |
|
inline |
Returns list of the actuated (active) joints.
rw::kinematics::Frame* getBase | ( | ) |
the base of the leg
rw::kinematics::Frame* getEnd | ( | ) |
the end of the leg
std::size_t getJointDOFs | ( | ) | const |
Get the total degrees of freedom (includes both active and passive joints).
const std::vector<rw::kinematics::Frame*>& getKinematicChain | ( | ) | const |
Returns the kinematic chain of the leg.
rw::math::Q getQ | ( | const rw::kinematics::State & | state | ) | const |
Get configuration of the leg.
state | [in] the state with the configuration values. |
|
inline |
Returns list of unactuated (passive) joints.
size_t nrOfActiveJoints | ( | ) |
Number of active joints.
|
inline |
Number of joints (both active and passive)
size_t nrOfPassiveJoints | ( | ) |
Number of passive joints.
void setQ | ( | const rw::math::Q & | q, |
rw::kinematics::State & | state | ||
) | const |
Sets q for the leg in the state.
q | [in] q to set |
state | [out] the State to modify |