Waypoint.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (c) Jürgen Riegel          (juergen.riegel@web.de) 2002     *
00003  *                                                                         *
00004  *   This file is part of the FreeCAD CAx development system.              *
00005  *                                                                         *
00006  *   This library is free software; you can redistribute it and/or         *
00007  *   modify it under the terms of the GNU Library General Public           *
00008  *   License as published by the Free Software Foundation; either          *
00009  *   version 2 of the License, or (at your option) any later version.      *
00010  *                                                                         *
00011  *   This library  is distributed in the hope that it will be useful,      *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU Library General Public License for more details.                  *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Library General Public     *
00017  *   License along with this library; see the file COPYING.LIB. If not,    *
00018  *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
00019  *   Suite 330, Boston, MA  02111-1307, USA                                *
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         // from base class
00065     virtual unsigned int getMemSize (void) const;
00066         virtual void Save (Base::Writer &/*writer*/) const;
00067     virtual void Restore(Base::XMLReader &/*reader*/);
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 } //namespace Part
00081 
00082 
00083 #endif // ROBOT_WAYPOINT_H

Generated on Wed Nov 23 19:01:02 2011 for FreeCAD by  doxygen 1.6.1