37 const std::vector<double>& base_poly_durations,
40 std::vector<PhaseDurations::Ptr> phase_durations,
41 bool durations_change)
43 base_linear_ = std::make_shared<NodeSpline>(base_lin_nodes.get(), base_poly_durations);
44 base_angular_ = std::make_shared<NodeSpline>(base_ang_nodes.get(), base_poly_durations);
47 for (uint ee=0; ee<ee_motion_nodes.size(); ++ee) {
49 if (durations_change) {
51 ee_motion_.push_back(std::make_shared<PhaseSpline>(ee_motion_nodes.at(ee), phase_durations.at(ee).get()));
52 ee_force_.push_back(std::make_shared<PhaseSpline>(ee_force_nodes.at(ee), phase_durations.at(ee).get()));
55 auto ee_motion_poly_durations = ee_motion_nodes.at(ee)->ConvertPhaseToPolyDurations(phase_durations.at(ee)->GetPhaseDurations());
56 auto ee_force_poly_durations = ee_force_nodes.at(ee)->ConvertPhaseToPolyDurations(phase_durations.at(ee)->GetPhaseDurations());
58 ee_motion_.push_back(std::make_shared<NodeSpline>(ee_motion_nodes.at(ee).get(), ee_motion_poly_durations));
59 ee_force_.push_back (std::make_shared<NodeSpline>(ee_force_nodes.at(ee).get(), ee_force_poly_durations));
std::vector< PhaseDurations::Ptr > phase_durations_
static const std::string ee_motion_nodes
static const std::string ee_force_nodes
NodeSpline::Ptr base_linear_
std::shared_ptr< Nodes > Ptr
std::vector< NodeSpline::Ptr > ee_force_
NodeSpline::Ptr base_angular_
static const std::string base_ang_nodes
std::vector< NodeSpline::Ptr > ee_motion_
static const std::string base_lin_nodes