Aikido
|
Transforms a SE(3) Testable into a MetaSkeleton-Testable by performing forward kinematics on a configuration (metaskeleton state) and checking the resulting SE(3) pose of the asked frame. More...
#include <aikido/constraint/dart/FrameTestable.hpp>
Public Member Functions | |
FrameTestable (statespace::dart::MetaSkeletonStateSpacePtr _metaSkeletonStateSpace, ::dart::dynamics::MetaSkeletonPtr _metaskeleton, ::dart::dynamics::ConstJacobianNodePtr _frame, TestablePtr _poseConstraint) | |
Create a Testable for the MetaSkeleton. More... | |
bool | isSatisfied (const statespace::StateSpace::State *_state, TestableOutcome *outcome=nullptr) const override |
Check if the constraint is satisfied by performing forward kinematics and testing the poseConstraint. More... | |
std::unique_ptr< TestableOutcome > | createOutcome () const override |
Return the outcome of mPoseConstraint->createOutcome(). More... | |
statespace::ConstStateSpacePtr | getStateSpace () const override |
Returns StateSpace in which this constraint operates. More... | |
![]() | |
virtual | ~Testable ()=default |
Private Attributes | |
statespace::dart::ConstMetaSkeletonStateSpacePtr | mMetaSkeletonStateSpace |
::dart::dynamics::MetaSkeletonPtr | mMetaSkeleton |
::dart::dynamics::ConstJacobianNodePtr | mFrame |
TestablePtr | mPoseConstraint |
std::shared_ptr< const statespace::SE3 > | mPoseStateSpace |
Transforms a SE(3) Testable into a MetaSkeleton-Testable by performing forward kinematics on a configuration (metaskeleton state) and checking the resulting SE(3) pose of the asked frame.
aikido::constraint::dart::FrameTestable::FrameTestable | ( | statespace::dart::MetaSkeletonStateSpacePtr | _metaSkeletonStateSpace, |
::dart::dynamics::MetaSkeletonPtr | _metaskeleton, | ||
::dart::dynamics::ConstJacobianNodePtr | _frame, | ||
TestablePtr | _poseConstraint | ||
) |
Create a Testable for the MetaSkeleton.
_metaSkeletonStateSpace | Configuration space of the metaskeleton. |
_metaskeleton | MetaSkeleton to test with |
_frame | Frame constrained by _poseConstraint. |
_poseConstraint | A testable constraint on _frame. |
|
overridevirtual |
Return the outcome of mPoseConstraint->createOutcome().
Reason: isSatisfied in this class will just pass outcome to the isSatisfied method of of mPoseConstraint.
Implements aikido::constraint::Testable.
|
overridevirtual |
Returns StateSpace in which this constraint operates.
Implements aikido::constraint::Testable.
|
overridevirtual |
Check if the constraint is satisfied by performing forward kinematics and testing the poseConstraint.
_state | a MetaskeletonState to set the configuration of this constraint's metaskeketon. This state's StateSpace should match StateSpace returend by getStateSpace(). |
outcome | Testable outcome derivative class. Passed to the isSatisfied method of mPoseConstraint to allow "pass through" of debugging information. |
Implements aikido::constraint::Testable.
|
private |
|
private |
|
private |
|
private |
|
private |