![]() |
- 3.0.2 rigid body dynamics module.
|
joint state and joint velocity More...
#include <JointState.h>
Public Types | |
| enum | NDOFS { NDOFS = NJOINTS } |
| typedef Eigen::Matrix< SCALAR, 2 *NJOINTS, 1 > | joint_state_vector_t |
| typedef Eigen::Matrix< SCALAR, NJOINTS, 1 > | Position |
| typedef Eigen::Matrix< SCALAR, NJOINTS, 1 > | Velocity |
| typedef Eigen::VectorBlock< joint_state_vector_t, NJOINTS > | JointPositionBlock |
| typedef Eigen::VectorBlock< const joint_state_vector_t, NJOINTS > | JointPositionBlockConst |
Public Member Functions | |
| JointState () | |
| JointState (const joint_state_vector_t &state) | |
| bool | operator== (const JointState &rhs) const |
| bool | operator!= (const JointState< NJOINTS, SCALAR > &rhs) const |
| JointState< NJOINTS, SCALAR > | operator+ (const JointState< NJOINTS, SCALAR > &rhs) const |
| JointState< NJOINTS, SCALAR > | operator- (const JointState< NJOINTS, SCALAR > &rhs) const |
| JointState< NJOINTS, SCALAR > | operator* (const SCALAR &scalar) const |
| JointState< NJOINTS, SCALAR > | operator/ (const SCALAR &scalar) const |
| bool | operator< (const JointState< NJOINTS, SCALAR > &rhs) const |
| bool | operator> (const JointState< NJOINTS, SCALAR > &rhs) const |
| bool | isApprox (const JointState< NJOINTS, SCALAR > &rhs, const SCALAR &tol=1e-10) |
| JointPositionBlock | getPositions () |
| get joint state More... | |
| const JointPositionBlockConst | getPositions () const |
| get constant joint state More... | |
| SCALAR & | getPosition (size_t i) |
| const SCALAR & | getPosition (size_t i) const |
| template<typename T > | |
| void | toUniquePosition (T lowerLimitVec, double tolerance=0.0) |
| normalize the joint state to be in the range [lowerLimitVec, lowerLimitVec + 2pi) More... | |
| template<typename T > | |
| bool | checkPositionLimits (const T lowerLimit, const T upperLimit, const double tolerance=0.0) |
| check joint position limits assuming limits and joint position are in the same range e.g. [-pi, pi) More... | |
| JointPositionBlock | getVelocities () |
| get joint velocity More... | |
| const JointPositionBlockConst | getVelocities () const |
| get constant joint velocity More... | |
| SCALAR & | getVelocity (size_t i) |
| const SCALAR & | getVelocity (size_t i) const |
| template<typename T > | |
| bool | checkVelocityLimits (T limit) |
| check joint velocity limits More... | |
| joint_state_vector_t & | toImplementation () |
| const joint_state_vector_t & | toImplementation () const |
| void | setZero () |
| set states to zero More... | |
| void | setRandom () |
Protected Attributes | |
| joint_state_vector_t | state_ |
joint state and joint velocity
| typedef Eigen::Matrix<SCALAR, 2 * NJOINTS, 1> ct::rbd::JointState< NJOINTS, SCALAR >::joint_state_vector_t |
| typedef Eigen::Matrix<SCALAR, NJOINTS, 1> ct::rbd::JointState< NJOINTS, SCALAR >::Position |
| typedef Eigen::Matrix<SCALAR, NJOINTS, 1> ct::rbd::JointState< NJOINTS, SCALAR >::Velocity |
| typedef Eigen::VectorBlock<joint_state_vector_t, NJOINTS> ct::rbd::JointState< NJOINTS, SCALAR >::JointPositionBlock |
| typedef Eigen::VectorBlock<const joint_state_vector_t, NJOINTS> ct::rbd::JointState< NJOINTS, SCALAR >::JointPositionBlockConst |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by TEST().
|
inline |
get joint state
Referenced by ct::rbd::FixBaseFDSystem< RBDDynamics, ACT_STATE_DIM, EE_ARE_CONTROL_INPUTS >::computeControlledDynamics(), ct::rbd::SEADynamicsFirstOrder< NJOINTS, SCALAR >::computeControlOutput(), ct::rbd::SEADynamicsFirstOrder< NJOINTS, SCALAR >::computeStateFromOutput(), ct::rbd::Dynamics< RBD, NEE >::FixBaseForwardDynamics(), ct::rbd::Dynamics< RBD, NEE >::FixBaseID(), ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::fromStateVector(), ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::jointStateFromVector(), ct::rbd::ProjectedDynamics< RBD, NEE >::ProjectedDynamics(), TEST(), and ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::toStateVector().
|
inline |
get constant joint state
|
inline |
|
inline |
|
inline |
normalize the joint state to be in the range [lowerLimitVec, lowerLimitVec + 2pi)
Referenced by TEST().
|
inline |
check joint position limits assuming limits and joint position are in the same range e.g. [-pi, pi)
Referenced by TEST().
|
inline |
get joint velocity
Referenced by ct::rbd::FixBaseFDSystem< RBDDynamics, ACT_STATE_DIM, EE_ARE_CONTROL_INPUTS >::computeControlledDynamics(), ct::rbd::Dynamics< RBD, NEE >::FixBaseForwardDynamics(), ct::rbd::Dynamics< RBD, NEE >::FixBaseID(), ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::fromStateVector(), ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::jointStateFromVector(), ct::rbd::ProjectedDynamics< RBD, NEE >::ProjectedDynamics(), TEST(), and ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::toStateVector().
|
inline |
get constant joint velocity
|
inline |
|
inline |
|
inline |
check joint velocity limits
Referenced by TEST().
|
inline |
|
inline |
|
inline |
set states to zero
Referenced by ct::rbd::JointState< NJOINTS, Scalar >::JointState(), ct::rbd::FixBaseRobotState< NJOINTS, ACT_STATE_DIM, SCALAR >::setZero(), and TEST().
|
inline |
Referenced by TEST().
|
protected |
Referenced by ct::rbd::JointState< NJOINTS, Scalar >::getPosition(), ct::rbd::JointState< NJOINTS, Scalar >::getPositions(), ct::rbd::JointState< NJOINTS, Scalar >::getVelocities(), ct::rbd::JointState< NJOINTS, Scalar >::getVelocity(), ct::rbd::JointState< NJOINTS, Scalar >::isApprox(), ct::rbd::JointState< NJOINTS, Scalar >::operator!=(), ct::rbd::JointState< NJOINTS, Scalar >::operator*(), ct::rbd::JointState< NJOINTS, Scalar >::operator+(), ct::rbd::JointState< NJOINTS, Scalar >::operator-(), ct::rbd::JointState< NJOINTS, Scalar >::operator/(), ct::rbd::JointState< NJOINTS, Scalar >::operator==(), ct::rbd::JointState< NJOINTS, Scalar >::setRandom(), ct::rbd::JointState< NJOINTS, Scalar >::setZero(), and ct::rbd::JointState< NJOINTS, Scalar >::toImplementation().