37 #ifndef OMPL_BASE_COST_ 38 #define OMPL_BASE_COST_ 51 explicit Cost(
double v = 0.0) : v_(v) {}
54 double value()
const {
return v_; }
std::ostream & operator<<(std::ostream &stream, Cost c)
Output operator for Cost.
Main namespace. Contains everything in this library.
double value() const
The value of the cost.
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Cost(double v=0.0)
Construct cost with a specified value.