PPL API Reference |
|
---|
Public Member Functions | |
Construction | |
BoundaryConstraint (Robot *const _r, std::unique_ptr< Boundary > &&_b) | |
BoundaryConstraint (Robot *const _r, XMLNode &_node) | |
BoundaryConstraint (const BoundaryConstraint &_other) | |
virtual | ~BoundaryConstraint () |
virtual std::unique_ptr< Constraint > | Clone () const override |
Constraint Interface | |
virtual const Boundary * | GetBoundary () const override |
virtual bool | Satisfied (const Cfg &_c) const override |
Constraint Interface | |
virtual void | SetRobot (Robot *const _r) |
Static Public Member Functions | |
Construction | |
static std::unique_ptr< Constraint > | Factory (Robot *const _r, XMLNode &_node) |
Protected Attributes | |
Internal State | |
std::unique_ptr< Boundary > | m_boundary |
The boundary for this constraint. | |
Internal State | |
Robot * | m_robot {nullptr} |
The subject of this constraint. | |
A robot satisfies this constraint if it passes the 'is inside' boundary check. Various boundary types may be considered.
|
explicit |
Construct a constraint from a specific boundary.
_r | The robot to constrain. |
_b | The boundary. |
Construct a constraint from an XML node.
_r | The robot to constrain. |
_node | The node to parse. |
|
overridevirtual |
Copy this constraint.
Implements Constraint.
Reimplemented in CSpaceConstraint.
|
overridevirtual |
Get a sampling boundary that describes the subset of CSpace allowed by this constraint.
Implements Constraint.
|
overridevirtual |
Determine whether a given configuration of the robot satisfies this constraint.
_c | The configuration to check. |
Implements Constraint.
|
staticinherited |
Construct a constraint of the appropriate type from an XML node.
_r | The robot to which the constraint applies. |
_node | The XML node to parse. |
|
virtualinherited |
Change the subject of this constraint.
_r | The new robot to constrain, or null to represent any robot. |