Aikido
Problem.hpp
Go to the documentation of this file.
1 #ifndef AIKIDO_PLANNER_PROBLEM_HPP_
2 #define AIKIDO_PLANNER_PROBLEM_HPP_
3 
4 #include <string>
5 
8 
9 namespace aikido {
10 namespace planner {
11 
13 class Problem
14 {
15 public:
25  Problem(
27  constraint::ConstTestablePtr constraint = nullptr);
28 
30  virtual ~Problem() = default;
31 
33  virtual const std::string& getType() const = 0;
34 
37 
40 
41 protected:
44 
47 };
48 // Note: All the problem classes intentionally don't have setters. This is
49 // because we assume creating a new problem for different problem settings makes
50 // sense. We can revisit this design decision if we find a compelling reason to
51 // have setters.
52 
53 } // namespace planner
54 } // namespace aikido
55 
56 #endif // AIKIDO_PLANNER_PROBLEM_HPP_
aikido::planner::Problem::getConstraint
constraint::ConstTestablePtr getConstraint() const
Returns the constraint that must be satisfied throughout the trajectory.
aikido::planner::Problem::getType
virtual const std::string & getType() const =0
Returns type of this planning problem.
aikido
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
StateSpace.hpp
aikido::statespace::ConstStateSpacePtr
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
aikido::planner::Problem::mConstraint
constraint::ConstTestablePtr mConstraint
Trajectory-wide constraint that must be satisfied.
Definition: Problem.hpp:46
aikido::planner::Problem::mStateSpace
statespace::ConstStateSpacePtr mStateSpace
State space associated with this problem.
Definition: Problem.hpp:43
aikido::planner::Problem
Base class for various planning problems.
Definition: Problem.hpp:13
Testable.hpp
aikido::planner::Problem::~Problem
virtual ~Problem()=default
Destructor.
aikido::planner::Problem::Problem
Problem(statespace::ConstStateSpacePtr stateSpace, constraint::ConstTestablePtr constraint=nullptr)
Constructor.
aikido::planner::Problem::getStateSpace
statespace::ConstStateSpacePtr getStateSpace() const
Returns const state space.
aikido::constraint::ConstTestablePtr
std::shared_ptr< const Testable > ConstTestablePtr
Definition: Testable.hpp:13