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) {
48 if (durations_change) {
50 ee_motion_.push_back(std::make_shared<PhaseSpline>(ee_motion_nodes.at(ee), phase_durations.at(ee).get()));
51 ee_force_.push_back(std::make_shared<PhaseSpline>(ee_force_nodes.at(ee), phase_durations.at(ee).get()));
54 auto ee_motion_poly_durations = ee_motion_nodes.at(ee)->ConvertPhaseToPolyDurations(phase_durations.at(ee)->GetPhaseDurations());
55 auto ee_force_poly_durations = ee_force_nodes.at(ee)->ConvertPhaseToPolyDurations(phase_durations.at(ee)->GetPhaseDurations());
57 ee_motion_.push_back(std::make_shared<NodeSpline>(ee_motion_nodes.at(ee).get(), ee_motion_poly_durations));
58 ee_force_.push_back (std::make_shared<NodeSpline>(ee_force_nodes.at(ee).get(), ee_force_poly_durations));
SplineHolder()=default
Attention, nothing initialized.
std::vector< PhaseDurations::Ptr > phase_durations_
std::shared_ptr< NodesVariables > Ptr
static const std::string ee_motion_nodes
static const std::string ee_force_nodes
NodeSpline::Ptr base_linear_
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