Go to the documentation of this file. 1 #ifndef AIKIDO_STATESPACE_DART_JOINTSTATESPACE_HPP_
2 #define AIKIDO_STATESPACE_DART_JOINTSTATESPACE_HPP_
4 #include <dart/dynamics/dynamics.hpp>
31 explicit Properties(const ::dart::dynamics::Joint* joint);
34 const std::string&
getName()
const;
37 const std::string&
getType()
const;
43 const std::vector<std::string>&
getDofNames()
const;
117 bool isCompatible(const ::dart::dynamics::Joint* joint)
const;
163 #endif // ifndef AIKIDO_STATESPACE_DART_JOINTSTATESPACE_HPP_
virtual void convertStateToPositions(const StateSpace::State *state, Eigen::VectorXd &positions) const =0
Converts a State in this state space to DART Joint positions, e.g.
const Eigen::VectorXd & getVelocityLowerLimits() const
Return the vector of velocity lower limits.
bool isCompatible(const ::dart::dynamics::Joint *joint) const
Returns whether the Joint can be used with this state space.
std::vector< std::string > mDofNames
Names of DOFs in the Joint.
Definition: JointStateSpace.hpp:79
const std::string & getType() const
Return the type of the joint.
bool operator==(const Properties &otherProperties) const
Return whether two JointStateSpace::Properties are identical.
virtual void getState(const ::dart::dynamics::Joint *joint, StateSpace::State *state) const
Gets the positions of the joint and store them in state.
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
const std::vector< std::string > & getDofNames() const
Return the names of DOFs in the joint.
void checkCompatibility(const ::dart::dynamics::Joint *joint) const
Throws an error if the Joint cannot be used with this state space.
Properties mProperties
Definition: JointStateSpace.hpp:156
Eigen::VectorXd mPositionLowerLimits
The joint's position lower limits.
Definition: JointStateSpace.hpp:82
const Eigen::VectorXd & getPositionLowerLimits() const
Return the vector of position lower limits.
Eigen::Matrix< bool, Eigen::Dynamic, 1 > mPositionHasLimits
The joint's position limits.
Definition: JointStateSpace.hpp:88
virtual void setState(::dart::dynamics::Joint *joint, const StateSpace::State *state) const
Sets the positions of the joint to state.
const Properties & getProperties() const
Gets the joint properties associated with this state space.
Static properties from the DART Joint.
Definition: JointStateSpace.hpp:25
std::size_t getNumDofs() const
Return the number of DOFs in the joint.
bool hasPositionLimit(std::size_t index) const
Return whether the index DOF is position-limited.
bool operator!=(const Properties &otherProperties) const
Return whether two JointStateSpace::Properties are different.
const Eigen::VectorXd & getPositionUpperLimits() const
Return the vector of position upper limits.
Represents a Lie group and its associated Lie algebra, i.e.
Definition: StateSpace.hpp:33
std::string mType
Name of the joint type.
Definition: JointStateSpace.hpp:76
Eigen::VectorXd mVelocityUpperLimits
The joint's velocity upper limits.
Definition: JointStateSpace.hpp:94
virtual ~JointStateSpace()=default
Destructor.
Eigen::VectorXd mPositionUpperLimits
The joint's position upper limits.
Definition: JointStateSpace.hpp:85
const Eigen::VectorXd & getVelocityUpperLimits() const
Return the vector of velocity upper limits.
Definition: StateSpace.hpp:167
StateSpace of a DART Joint.
Definition: JointStateSpace.hpp:20
JointStateSpace(const ::dart::dynamics::Joint *joint)
Constructs a state space for joint.
Definition: FrameMarker.hpp:11
Properties(const ::dart::dynamics::Joint *joint)
Constructs the joint properties for joint.
bool isPositionLimited() const
Return whether any DOF is position-limited.
Eigen::VectorXd mVelocityLowerLimits
The joint's velocity lower limits.
Definition: JointStateSpace.hpp:91
virtual void convertPositionsToState(const Eigen::VectorXd &positions, StateSpace::State *state) const =0
Converts DART Joint positions, e.g.
const std::string & getName() const
Return the name of the joint.
std::string mName
Name of the joint.
Definition: JointStateSpace.hpp:73