Waypoint.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ROBOT_WAYPOINT_H
00025 #define ROBOT_WAYPOINT_H
00026
00027 #include "kdl_cp/chain.hpp"
00028 #include "kdl_cp/jntarray.hpp"
00029
00030 #include <Base/Persistence.h>
00031 #include <Base/Placement.h>
00032
00033 namespace Robot
00034 {
00035
00036
00039 class RobotExport Waypoint : public Base::Persistence
00040 {
00041 TYPESYSTEM_HEADER();
00042
00043 public:
00044 enum WaypointType {
00045 UNDEF,
00046 PTP,
00047 LINE,
00048 CIRC,
00049 WAIT };
00050
00051 Waypoint();
00053 Waypoint(const char* name,
00054 const Base::Placement &endPos,
00055 WaypointType type=Waypoint::LINE,
00056 float velocity=2000.0,
00057 float accelaration=100.0,
00058 bool cont=false,
00059 unsigned int tool=0,
00060 unsigned int base = 0);
00061
00062 ~Waypoint();
00063
00064
00065 virtual unsigned int getMemSize (void) const;
00066 virtual void Save (Base::Writer &) const;
00067 virtual void Restore(Base::XMLReader &);
00068
00069
00070 std::string Name;
00071 WaypointType Type;
00072 float Velocity;
00073 float Accelaration;
00074 bool Cont;
00075 unsigned int Tool,Base;
00076 Base::Placement EndPos;
00077
00078 };
00079
00080 }
00081
00082
00083 #endif // ROBOT_WAYPOINT_H