1 #ifndef AIKIDO_STATESPACE_DART_JOINTSTATESPACE_HPP_ 2 #define AIKIDO_STATESPACE_DART_JOINTSTATESPACE_HPP_ 4 #include <dart/dynamics/dynamics.hpp> 6 #include "aikido/statespace/StateSpace.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_ std::size_t getNumDofs() const
Return the number of DOFs in the joint.
Definition: JointStateSpace.cpp:46
bool hasPositionLimit(std::size_t index) const
Return whether the index DOF is position-limited.
Definition: JointStateSpace.cpp:58
Static properties from the DART Joint.
Definition: JointStateSpace.hpp:25
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.
bool operator!=(const Properties &otherProperties) const
Return whether two JointStateSpace::Properties are different.
Definition: JointStateSpace.cpp:138
Eigen::VectorXd mVelocityLowerLimits
The joint's velocity lower limits.
Definition: JointStateSpace.hpp:91
const std::string & getName() const
Return the name of the joint.
Definition: JointStateSpace.cpp:34
void checkCompatibility(const ::dart::dynamics::Joint *joint) const
Throws an error if the Joint cannot be used with this state space.
Definition: JointStateSpace.cpp:165
const std::string & getType() const
Return the type of the joint.
Definition: JointStateSpace.cpp:40
const Eigen::VectorXd & getVelocityLowerLimits() const
Return the vector of velocity lower limits.
Definition: JointStateSpace.cpp:92
Definition: FrameMarker.hpp:11
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
std::string mName
Name of the joint.
Definition: JointStateSpace.hpp:73
A tuple of states where the i-th state is from the i-th subspace.
Definition: CartesianProduct.hpp:162
Eigen::VectorXd mPositionLowerLimits
The joint's position lower limits.
Definition: JointStateSpace.hpp:82
virtual void setState(::dart::dynamics::Joint *joint, const StateSpace::State *state) const
Sets the positions of the joint to state.
Definition: JointStateSpace.cpp:186
bool isPositionLimited() const
Return whether any DOF is position-limited.
Definition: JointStateSpace.cpp:72
Properties(const ::dart::dynamics::Joint *joint)
Constructs the joint properties for joint.
Definition: JointStateSpace.cpp:8
StateSpace of a DART Joint.
Definition: JointStateSpace.hpp:20
const std::vector< std::string > & getDofNames() const
Return the names of DOFs in the joint.
Definition: JointStateSpace.cpp:52
std::string mType
Name of the joint type.
Definition: JointStateSpace.hpp:76
std::vector< std::string > mDofNames
Names of DOFs in the Joint.
Definition: JointStateSpace.hpp:79
const Eigen::VectorXd & getPositionUpperLimits() const
Return the vector of position upper limits.
Definition: JointStateSpace.cpp:85
Represents a Lie group and its associated Lie algebra, i.e.
Definition: StateSpace.hpp:33
Eigen::VectorXd mVelocityUpperLimits
The joint's velocity upper limits.
Definition: JointStateSpace.hpp:94
const Eigen::VectorXd & getVelocityUpperLimits() const
Return the vector of velocity upper limits.
Definition: JointStateSpace.cpp:99
Eigen::Matrix< bool, Eigen::Dynamic, 1 > mPositionHasLimits
The joint's position limits.
Definition: JointStateSpace.hpp:88
virtual ~JointStateSpace()=default
Destructor.
const Properties & getProperties() const
Gets the joint properties associated with this state space.
Definition: JointStateSpace.cpp:152
Eigen::VectorXd mPositionUpperLimits
The joint's position upper limits.
Definition: JointStateSpace.hpp:85
JointStateSpace(const ::dart::dynamics::Joint *joint)
Constructs a state space for joint.
Definition: JointStateSpace.cpp:145
const Eigen::VectorXd & getPositionLowerLimits() const
Return the vector of position lower limits.
Definition: JointStateSpace.cpp:78
bool operator==(const Properties &otherProperties) const
Return whether two JointStateSpace::Properties are identical.
Definition: JointStateSpace.cpp:106
virtual void getState(const ::dart::dynamics::Joint *joint, StateSpace::State *state) const
Gets the positions of the joint and store them in state.
Definition: JointStateSpace.cpp:179
bool isCompatible(const ::dart::dynamics::Joint *joint) const
Returns whether the Joint can be used with this state space.
Definition: JointStateSpace.cpp:158
virtual void convertPositionsToState(const Eigen::VectorXd &positions, StateSpace::State *state) const =0
Converts DART Joint positions, e.g.