#include <chain.hpp>
Public Member Functions | |
void | addEfforts (KDL::JntArray &a) |
set the commanded joint efforts of the chain as a kdl jnt array | |
template<class Vec > | |
void | addEfforts (const Vec &v) |
Adds efforts from any type that implements size() and [] lookup. | |
bool | allCalibrated () |
returns true if all the joints in the chain are calibrated | |
void | getEfforts (std::vector< double > &efforts) |
void | getEfforts (KDL::JntArray &a) |
get the measured joint efforts of the chain as a kdl jnt array | |
JointState * | getJoint (unsigned int actuated_joint_i) |
get a joint state of an actuated joint of the chain. | |
void | getPositions (std::vector< double > &positions) |
void | getPositions (KDL::JntArray &a) |
template<class Vec > | |
void | getPositions (Vec &v) |
gets the joint positions of the chain as any type with size() and [] | |
void | getVelocities (std::vector< double > &velocities) |
get the joint velocities of the chain as a std vector | |
void | getVelocities (KDL::JntArrayVel &a) |
get the joint velocities and position of the chain as a kdl jnt array vel. Fills in the positions too. | |
template<class Vec > | |
void | getVelocities (Vec &v) |
gets the joint velocities of the chain as any type with size() and [] | |
bool | init (RobotState *robot_state, const std::string &root, const std::string &tip) |
initialize the chain object | |
void | setEfforts (KDL::JntArray &a) |
set the commanded joint efforts of the chain as a std vector | |
int | size () const |
Returns the number of actuated joints in the chain. | |
void | toKDL (KDL::Chain &chain) |
get a kdl chain object that represents the chain from root to tip | |
Private Attributes | |
std::vector< JointState * > | joints_ |
KDL::Chain | kdl_chain_ |
RobotState * | robot_state_ |
void ros_ethercat_model::Chain::addEfforts | ( | KDL::JntArray & | a | ) | [inline] |
void ros_ethercat_model::Chain::addEfforts | ( | const Vec & | v | ) | [inline] |
bool ros_ethercat_model::Chain::allCalibrated | ( | ) | [inline] |
void ros_ethercat_model::Chain::getEfforts | ( | std::vector< double > & | efforts | ) | [inline] |
void ros_ethercat_model::Chain::getEfforts | ( | KDL::JntArray & | a | ) | [inline] |
JointState* ros_ethercat_model::Chain::getJoint | ( | unsigned int | actuated_joint_i | ) | [inline] |
void ros_ethercat_model::Chain::getPositions | ( | std::vector< double > & | positions | ) | [inline] |
void ros_ethercat_model::Chain::getPositions | ( | KDL::JntArray & | a | ) | [inline] |
void ros_ethercat_model::Chain::getPositions | ( | Vec & | v | ) | [inline] |
void ros_ethercat_model::Chain::getVelocities | ( | std::vector< double > & | velocities | ) | [inline] |
void ros_ethercat_model::Chain::getVelocities | ( | KDL::JntArrayVel & | a | ) | [inline] |
void ros_ethercat_model::Chain::getVelocities | ( | Vec & | v | ) | [inline] |
bool ros_ethercat_model::Chain::init | ( | RobotState * | robot_state, |
const std::string & | root, | ||
const std::string & | tip | ||
) | [inline] |
void ros_ethercat_model::Chain::setEfforts | ( | KDL::JntArray & | a | ) | [inline] |
int ros_ethercat_model::Chain::size | ( | ) | const [inline] |
void ros_ethercat_model::Chain::toKDL | ( | KDL::Chain & | chain | ) | [inline] |
std::vector< JointState* > ros_ethercat_model::Chain::joints_ [private] |