| 1 | /***************************************************************************** |
| 2 | * \author |
| 3 | * Erwin Aertbelien, Div. PMA, Dep. of Mech. Eng., K.U.Leuven |
| 4 | * |
| 5 | * \version |
| 6 | * LRL V0.2 |
| 7 | * |
| 8 | * \par History |
| 9 | * - $log$ |
| 10 | * |
| 11 | * \par Release |
| 12 | * $Id: trajectory_stationary.h 22 2004-09-21 08:58:54Z eaertbellocal $ |
| 13 | * $Name: $ |
| 14 | ****************************************************************************/ |
| 15 | |
| 16 | #ifndef TRAJECTORY_STATIONARY_H |
| 17 | #define TRAJECTORY_STATIONARY_Hcxx . . $ `orocos_kdl/src/trajectory_stationary.hpp:17:9`! |
| 18 | |
| 19 | #include "trajectory.hpp"cxx . . $ `<file>/orocos_kdl/src/trajectory.hpp`/ |
| 20 | |
| 21 | |
| 22 | namespace KDLcxx . . $ KDL/ { |
| 23 | /** |
| 24 | * Implements a "trajectory" of a stationary position |
| 25 | * for an amount of time. |
| 26 | * @ingroup Motion |
| 27 | */ |
| 28 | class Trajectory_Stationarycxx . . $ KDL/Trajectory_Stationary# : public Trajectorycxx . . $ KDL/Trajectory# |
| 29 | { |
| 30 | double durationcxx . . $ KDL/Trajectory_Stationary#duration.; |
| 31 | Framecxx . . $ KDL/Frame# poscxx . . $ KDL/Trajectory_Stationary#pos.; |
| 32 | public: |
| 33 | Trajectory_Stationarycxx . . $ KDL/Trajectory_Stationary#Trajectory_Stationary(1cfd065ea3ed581d).(double _duration,const Framecxx . . $ KDL/Frame#& _pos): |
| 34 | durationcxx . . $ KDL/Trajectory_Stationary#duration.(_duration),poscxx . . $ KDL/Trajectory_Stationary#pos.(_pos) {} |
| 35 | virtual double Durationcxx . . $ KDL/Trajectory_Stationary#Duration(21b6c25e127938e2).() const { |
| 36 | return durationcxx . . $ KDL/Trajectory_Stationary#duration.; |
| 37 | } |
| 38 | virtual Framecxx . . $ KDL/Frame# Poscxx . . $ KDL/Trajectory_Stationary#Pos(c38b71b4ec6b6db9).(double time) const { |
| 39 | return poscxx . . $ KDL/Frame#Frame(1d4b68aea8fc8597).; |
| 40 | } |
| 41 | virtual Twistcxx . . $ KDL/Twist# Velcxx . . $ KDL/Trajectory_Stationary#Vel(165291356804b476).(double time) const { |
| 42 | return Twistcxx . . $ KDL/Twist#::Zerocxx . . $ KDL/Twist#Zero(ac9ce0bcd295e45e).(); |
| 43 | } |
| 44 | virtual Twistcxx . . $ KDL/Twist# Acccxx . . $ KDL/Trajectory_Stationary#Acc(165291356804b476).(double time) const { |
| 45 | return Twistcxx . . $ KDL/Twist#::Zerocxx . . $ KDL/Twist#Zero(ac9ce0bcd295e45e).(); |
| 46 | } |
| 47 | virtual void Writecxx . . $ KDL/Trajectory_Stationary#Write(490063bd7e6d8d5d).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& os) const; |
| 48 | |
| 49 | virtual Trajectorycxx . . $ KDL/Trajectory#* Clonecxx . . $ KDL/Trajectory_Stationary#Clone(f32c14c424bccb72).() const { |
| 50 | return new Trajectory_Stationarycxx . . $ KDL/Trajectory_Stationary#(durationcxx . . $ KDL/Trajectory_Stationary#duration.,poscxx . . $ KDL/Trajectory_Stationary#pos.); |
| 51 | } |
| 52 | virtual ~cxx . . $ KDL/Trajectory_Stationary#`~Trajectory_Stationary`(ced63f7c635d850d).Trajectory_Stationarycxx . . $ KDL/Trajectory_Stationary#() {} |
| 53 | }; |
| 54 | |
| 55 | |
| 56 | } |
| 57 | |
| 58 | #endif |