1 #ifndef PLANNING_OBJECTIVES_H 2 #define PLANNING_OBJECTIVES_H 5 #include <KrisLibrary/planning/CSpace.h> 6 #include <KrisLibrary/planning/ControlSpace.h> 7 #include <KrisLibrary/math/matrix.h> 50 virtual bool LoadParams(
AnyCollection& collection) {
return false; }
149 InterpolatorPtr desiredPath;
165 void Add(
const std::shared_ptr<ObjectiveFunctionalBase>& obj,Real weight=1.0);
175 std::vector<std::shared_ptr<ObjectiveFunctionalBase> > components;
176 std::vector<Real> weights;
A flexible hierarchical collection of AnyValues, which can be easily initialized to contain primitive...
Definition: AnyCollection.h:73
An objective that merges contributions from multiple other objective functions.
Definition: Objective.h:158
virtual const char * TypeString()
Subclasses: return an identifier for this goal type.
Definition: Objective.h:167
virtual bool SaveParams(AnyCollection &collection)
Subclasses: read and write parameters to collection.
Definition: Objective.h:49
virtual Real PathCost(const MilestonePath &path)
Definition: Objective.cpp:120
Vector Config
an alias for Vector
Definition: RobotKinematics3D.h:14
virtual Real IncrementalCost(const Interpolator *path)
Definition: Objective.h:33
A sequence of locally planned paths between milestones.
Definition: planning/Path.h:15
Stores a kinodynamic path with piecewise constant controls.
Definition: KinodynamicPath.h:23
virtual Real TerminalCost(const Config &qend)
Subclasses: return the cost of a terminal state.
Definition: Objective.h:38
An objective that measures path length.
Definition: Objective.h:87
A cost functional of the form J[x,u] = int_0^T L(x(t),u(t)) dt + Phi(x(T))
Definition: Objective.h:67
A goal that measures quadratic tracking error and control cost. Note that the time must exist in the ...
Definition: Objective.h:140
A base class for all 1D interpolators.
Definition: Interpolator.h:10
virtual const char * TypeString()
Subclasses: return an identifier for this goal type.
Definition: Objective.h:92
A goal that measures distance to a goal configuration qgoal.
Definition: Objective.h:116
virtual const char * TypeString()
Subclasses: return an identifier for this goal type.
Definition: Objective.h:107
virtual std::string Description()
Subclasses: return a string for printing (optional)
Definition: Objective.h:28
virtual const char * TypeString()
Subclasses: return an identifier for this goal type.
Definition: Objective.h:145
The logging system used in KrisLibrary.
virtual const char * TypeString()
Subclasses: return an identifier for this goal type.
Definition: Objective.h:25
virtual const char * TypeString()
Subclasses: return an identifier for this goal type.
Definition: Objective.h:122
virtual bool PathInvariant() const
Subclasses: planners may exploit path-invariant costs for faster performance.
Definition: Objective.h:41
An objective that measures path execution time. Accumulated time is assumed to be part of the state...
Definition: Objective.h:102
virtual bool PathInvariant() const
Subclasses: planners may exploit path-invariant costs for faster performance.
Definition: Objective.h:124
virtual Real IncrementalCost(const Interpolator *path)
Definition: Objective.h:93
A base class for objective functionals of the form J[x,u] = sum_0^N-1 L(xi,ui) dt + Phi(xN) ...
Definition: Objective.h:18