18 #ifndef _REFVALJS_PTP_TRAJECTORY_H_ 19 #define _REFVALJS_PTP_TRAJECTORY_H_ 24 #include <trajectory_msgs/JointTrajectory.h> 38 RefValJS_PTP_Trajectory(
const trajectory_msgs::JointTrajectory& trajectory,
double v_rad_s,
double a_rad_s2,
bool smooth=
false);
41 std::vector<double>
r(
double s)
const;
42 double s(
double t)
const;
44 std::vector<double>
dr_ds(
double s)
const;
45 double ds_dt(
double t)
const;
52 double norm(
const std::vector<double>& j);
53 double norm_max(
const std::vector<double>& j);
54 double norm_sqr(
const std::vector<double>& j);
58 typedef std::vector<double>
vecd;
59 typedef std::vector<double>::const_iterator
vecd_it;
96 for (
unsigned int i = 0; i<j.size(); i++)
107 for (
unsigned int i = 0; i < j.size(); i++)
119 for (
unsigned int i = 0; i < j.size(); i++)
126 for (
unsigned int i = 0; i < j.size(); i++)
RefValJS_PTP_Trajectory(const trajectory_msgs::JointTrajectory &trajectory, double v_rad_s, double a_rad_s2, bool smooth=false)
double norm_weighted(const std::vector< double > &j)
BSplineND< std::vector< double > > m_TrajectorySpline
double norm(const std::vector< double > &j)
std::vector< double >::const_iterator vecd_it
double norm_sqr(const std::vector< double > &j)
trajectory_msgs::JointTrajectory m_trajectory
double ds_dt(double t) const
std::vector< double > getLengthParts() const
static const double weigths[]
std::vector< double > r(double s) const
std::vector< double > dr_ds(double s) const
std::vector< std::vector< double > > m_SplinePoints
double norm_max(const std::vector< double > &j)
std::vector< double > vecd
double getTotalTime() const