39 for (i=0;i<
vt.size();i++) {
41 return vt[i]->Pos(time-previoustime);
45 traj =
vt[
vt.size()-1];
59 for (i=0;i<
vt.size();i++) {
61 return vt[i]->Vel(time-previoustime);
65 traj =
vt[
vt.size()-1];
78 for (i=0;i<
vt.size();i++) {
80 return vt[i]->Acc(time-previoustime);
84 traj =
vt[
vt.size()-1];
89 vt.insert(
vt.end(),elem);
95 VectorTraj::iterator it;
96 for (it=
vt.begin();it!=
vt.end();it++) {
99 vt.erase(
vt.begin(),
vt.end());
100 vd.erase(
vd.begin(),
vd.end());
108 os <<
"COMPOSITE[ " <<
vt.size() << std::endl;
110 for (i=0;i<
vt.size();i++) {
113 os <<
"]" << std::endl;
118 for (
unsigned int i = 0; i <
vt.size(); ++i) {
virtual Twist Acc(double time) const
virtual Frame Pos(double time) const
virtual void Add(Trajectory *elem)
virtual Twist Acc(double time) const =0
virtual void Write(std::ostream &os) const
virtual Twist Vel(double time) const
represents both translational and rotational velocities.
virtual Twist Vel(double time) const =0
virtual double Duration() const
virtual Frame Pos(double time) const =0
virtual ~Trajectory_Composite()
virtual double Duration() const =0
represents a frame transformation in 3D space (rotation + translation)
virtual Trajectory * Clone() const