Aikido
CartesianProductTestable.hpp
Go to the documentation of this file.
1 #ifndef AIKIDO_CONSTRAINT_TESTABLESUBSPACE_HPP_
2 #define AIKIDO_CONSTRAINT_TESTABLESUBSPACE_HPP_
3 
4 #include <vector>
5 
8 
9 namespace aikido {
10 namespace constraint {
11 
16 {
17 public:
24  std::shared_ptr<const statespace::CartesianProduct> _stateSpace,
25  std::vector<ConstTestablePtr> _constraints);
26 
28 
29  bool isSatisfied(
31  TestableOutcome* outcome = nullptr) const override;
32 
35  std::unique_ptr<TestableOutcome> createOutcome() const override;
36 
37 private:
38  std::shared_ptr<const statespace::CartesianProduct> mStateSpace;
39  std::vector<ConstTestablePtr> mConstraints;
40 };
41 
42 } // namespace constraint
43 } // namespace aikido
44 
45 #endif // define AIKIDO_CONSTRAINT_SAMPLEABLESUBSPACE_HPP_
aikido
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
aikido::constraint::CartesianProductTestable::isSatisfied
bool isSatisfied(const aikido::statespace::StateSpace::State *_state, TestableOutcome *outcome=nullptr) const override
Returns true if state satisfies this constraint.
aikido::constraint::Testable
Constraint which can be tested.
Definition: Testable.hpp:17
aikido::statespace::ConstStateSpacePtr
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
CartesianProduct.hpp
aikido::constraint::CartesianProductTestable::CartesianProductTestable
CartesianProductTestable(std::shared_ptr< const statespace::CartesianProduct > _stateSpace, std::vector< ConstTestablePtr > _constraints)
Constructor.
aikido::constraint::CartesianProductTestable::getStateSpace
statespace::ConstStateSpacePtr getStateSpace() const override
Returns StateSpace in which this constraint operates.
aikido::constraint::TestableOutcome
Base class for constraint outcomes.
Definition: TestableOutcome.hpp:13
Testable.hpp
aikido::constraint::CartesianProductTestable::mStateSpace
std::shared_ptr< const statespace::CartesianProduct > mStateSpace
Definition: CartesianProductTestable.hpp:38
aikido::constraint::CartesianProductTestable
Testable for CompoundStates.
Definition: CartesianProductTestable.hpp:15
aikido::statespace::StateSpace::State
Definition: StateSpace.hpp:167
aikido::constraint::CartesianProductTestable::mConstraints
std::vector< ConstTestablePtr > mConstraints
Definition: CartesianProductTestable.hpp:39
aikido::constraint::CartesianProductTestable::createOutcome
std::unique_ptr< TestableOutcome > createOutcome() const override
Return an instance of DefaultTestableOutcome, since this class doesn't have a more specialized Testab...