39 #include <boost/shared_ptr.hpp>
46 namespace stomp_motion_planner
63 virtual bool initialize(
int num_time_steps) = 0;
71 virtual bool execute(std::vector<Eigen::VectorXd>& parameters, Eigen::VectorXd& costs,
const int iteration_number,
bool resample =
false) = 0;
78 virtual bool getPolicy(boost::shared_ptr<stomp_motion_planner::Policy>& policy) = 0;
85 virtual bool setPolicy(
const boost::shared_ptr<stomp_motion_planner::Policy> policy) = 0;
virtual bool initialize(int num_time_steps)=0
Initializes the task for a given number of time steps.
virtual bool setPolicy(const boost::shared_ptr< stomp_motion_planner::Policy > policy)=0
Sets the Policy object of this Task.
virtual bool getControlCostWeight(double &control_cost_weight)=0
Gets the weight of the control cost.
virtual bool getPolicy(boost::shared_ptr< stomp_motion_planner::Policy > &policy)=0
Get the Policy object of this Task.
virtual bool execute(std::vector< Eigen::VectorXd > ¶meters, Eigen::VectorXd &costs, const int iteration_number, bool resample=false)=0
Executes the task for the given policy parameters, and returns the costs per timestep.