The python export class for Trajectory. More...

#include <TrajectoryPy.h>

Public Types

typedef Trajectory * PointerType
 
- Public Types inherited from Base::PersistencePy
typedef Persistence * PointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClass * PointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

virtual PyTypeObject * GetType (void)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constructor) More...
 
std::string representation (void) const
 
 TrajectoryPy (Trajectory *pcObject, PyTypeObject *T=&Type)
 
- Public Member Functions inherited from Base::PersistencePy
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObject * dumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObject * restoreContent (PyObject *args)
 implementer for the restoreContent() method More...
 
Py::String getContent (void) const
 getter for the Content attribute More...
 
Py::Int getMemSize (void) const
 getter for the MemSize attribute More...
 
PyObject * getCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
Persistence * getPersistencePtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::BaseClassPy
 BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObject * isDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObject * getAllDerivedFrom (PyObject *args)
 implementer for the getAllDerivedFrom() method More...
 
Py::String getTypeId (void) const
 getter for the TypeId attribute More...
 
Py::String getModule (void) const
 getter for the Module attribute More...
 
PyObject * getCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
BaseClass * getBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBase * DecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBase * IncRef (void)
 incref method wrapper (see python extending manual) More...
 
bool isConst ()
 
bool isNotTracking () const
 
bool isValid ()
 
 PyObjectBase (void *, PyTypeObject *T)
 Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More...
 
void setConst ()
 
void setInvalid ()
 
void setNotTracking (bool on=true)
 
void setShouldNotify (bool on)
 
bool shouldNotify () const
 
void startNotify ()
 

Static Public Member Functions

static PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObject * staticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObject * staticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObject * staticCallback_getContent (PyObject *self, void *closure)
 getter callback for the Content attribute More...
 
static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure)
 setter callback for the Content attribute More...
 
static PyObject * staticCallback_getMemSize (PyObject *self, void *closure)
 getter callback for the MemSize attribute More...
 
static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure)
 setter callback for the MemSize attribute More...
 
- Static Public Member Functions inherited from Base::BaseClassPy
static PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObject * staticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObject * staticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObject * staticCallback_getTypeId (PyObject *self, void *closure)
 getter callback for the TypeId attribute More...
 
static int staticCallback_setTypeId (PyObject *self, PyObject *value, void *closure)
 setter callback for the TypeId attribute More...
 
static PyObject * staticCallback_getModule (PyObject *self, void *closure)
 getter callback for the Module attribute More...
 
static int staticCallback_setModule (PyObject *self, PyObject *value, void *closure)
 setter callback for the Module attribute More...
 
- Static Public Member Functions inherited from Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of TrajectoryPy. More...
 
static PyMethodDef Methods []
 Methods structure of TrajectoryPy. More...
 
static PyTypeObject Type
 Type structure of TrajectoryPy. More...
 
- Static Public Attributes inherited from Base::PersistencePy
static PyGetSetDef GetterSetter []
 Attribute structure of PersistencePy. More...
 
static PyMethodDef Methods []
 Methods structure of PersistencePy. More...
 
static PyTypeObject Type
 Type structure of PersistencePy. More...
 
- Static Public Attributes inherited from Base::BaseClassPy
static PyGetSetDef GetterSetter []
 Attribute structure of BaseClassPy. More...
 
static PyMethodDef Methods []
 Methods structure of BaseClassPy. More...
 
static PyTypeObject Type
 Type structure of BaseClassPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~TrajectoryPy ()
 
- Protected Member Functions inherited from Base::PersistencePy
 ~PersistencePy ()
 
- Protected Member Functions inherited from Base::BaseClassPy
 ~BaseClassPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObject * insertWaypoints (PyObject *args)
 implementer for the insertWaypoints() method More...
 
PyObject * position (PyObject *args)
 implementer for the position() method More...
 
PyObject * velocity (PyObject *args)
 implementer for the velocity() method More...
 
PyObject * deleteLast (PyObject *args)
 implementer for the deleteLast() method More...
 
static PyObject * staticCallback_insertWaypoints (PyObject *self, PyObject *args)
 callback for the insertWaypoints() method More...
 
static PyObject * staticCallback_position (PyObject *self, PyObject *args)
 callback for the position() method More...
 
static PyObject * staticCallback_velocity (PyObject *self, PyObject *args)
 callback for the velocity() method More...
 
static PyObject * staticCallback_deleteLast (PyObject *self, PyObject *args)
 callback for the deleteLast() method More...
 

callbacks and implementers for the python object attributes

Py::Float getDuration (void) const
 getter for the Duration attribute More...
 
Py::Float getLength (void) const
 getter for the Length attribute More...
 
Py::List getWaypoints (void) const
 getter for the Waypoints attribute More...
 
void setWaypoints (Py::List arg)
 setter for the Waypoints attribute More...
 
PyObject * getCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
Trajectory * getTrajectoryPtr (void) const
 getter for the object handled by this class More...
 
static PyObject * staticCallback_getDuration (PyObject *self, void *closure)
 getter callback for the Duration attribute More...
 
static int staticCallback_setDuration (PyObject *self, PyObject *value, void *closure)
 setter callback for the Duration attribute More...
 
static PyObject * staticCallback_getLength (PyObject *self, void *closure)
 getter callback for the Length attribute More...
 
static int staticCallback_setLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the Length attribute More...
 
static PyObject * staticCallback_getWaypoints (PyObject *self, void *closure)
 getter callback for the Waypoints attribute More...
 
static int staticCallback_setWaypoints (PyObject *self, PyObject *value, void *closure)
 setter callback for the Waypoints attribute More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for Trajectory.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~TrajectoryPy()

TrajectoryPy::~TrajectoryPy ( )
protected

◆ TrajectoryPy()

TrajectoryPy::TrajectoryPy ( Trajectory *  pcObject,
PyTypeObject *  T = &Type 
)

Referenced by deleteLast(), insertWaypoints(), and PyMake().

Member Function Documentation

◆ deleteLast()

PyObject * TrajectoryPy::deleteLast ( PyObject *  args)

◆ getCustomAttributes()

PyObject * TrajectoryPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ getDuration()

Py::Float TrajectoryPy::getDuration ( void  ) const

getter for the Duration attribute

References getTrajectoryPtr().

Referenced by staticCallback_getDuration().

◆ getLength()

Py::Float TrajectoryPy::getLength ( void  ) const

getter for the Length attribute

References getTrajectoryPtr().

Referenced by staticCallback_getLength().

◆ getTrajectoryPtr()

Trajectory * TrajectoryPy::getTrajectoryPtr ( void  ) const

◆ GetType()

virtual PyTypeObject* Robot::TrajectoryPy::GetType ( void  )
virtual

Reimplemented from Base::PersistencePy.

◆ getWaypoints()

Py::List TrajectoryPy::getWaypoints ( void  ) const

getter for the Waypoints attribute

References Robot::Trajectory::getSize(), and getTrajectoryPtr().

Referenced by staticCallback_getWaypoints().

◆ insertWaypoints()

◆ position()

PyObject * TrajectoryPy::position ( PyObject *  args)

implementer for the position() method

References getTrajectoryPtr().

Referenced by staticCallback_position().

◆ PyInit()

int TrajectoryPy::PyInit ( PyObject *  ,
PyObject *   
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from Base::PersistencePy.

References Robot::Trajectory::addWaypoint(), Robot::Trajectory::generateTrajectory(), getTrajectoryPtr(), and Robot::WaypointPy::Type.

◆ PyMake()

PyObject * TrajectoryPy::PyMake ( struct _typeobject *  ,
PyObject *  ,
PyObject *   
)
static

References TrajectoryPy().

◆ representation()

◆ setCustomAttributes()

int TrajectoryPy::setCustomAttributes ( const char *  attr,
PyObject *  obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

◆ setWaypoints()

void TrajectoryPy::setWaypoints ( Py::List  arg)

setter for the Waypoints attribute

Referenced by staticCallback_setWaypoints().

◆ staticCallback_deleteLast()

◆ staticCallback_getDuration()

PyObject * TrajectoryPy::staticCallback_getDuration ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getLength()

PyObject * TrajectoryPy::staticCallback_getLength ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getWaypoints()

PyObject * TrajectoryPy::staticCallback_getWaypoints ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_insertWaypoints()

◆ staticCallback_position()

◆ staticCallback_setDuration()

int TrajectoryPy::staticCallback_setDuration ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Duration attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setLength()

int TrajectoryPy::staticCallback_setLength ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Length attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setWaypoints()

int TrajectoryPy::staticCallback_setWaypoints ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_velocity()

◆ velocity()

PyObject * TrajectoryPy::velocity ( PyObject *  args)

implementer for the velocity() method

References getTrajectoryPtr().

Referenced by staticCallback_velocity().

Member Data Documentation

◆ GetterSetter

PyGetSetDef TrajectoryPy::GetterSetter
static
Initial value:
= {
{"Duration",
"duration of the trajectory",
NULL
},
{"Length",
"length of the trajectory",
NULL
},
{"Waypoints",
"waypoints of this trajectory",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of TrajectoryPy.

◆ Methods

PyMethodDef TrajectoryPy::Methods
static
Initial value:
= {
{"insertWaypoints",
reinterpret_cast<PyCFunction>( staticCallback_insertWaypoints ),
METH_VARARGS,
"\n adds one or a list of waypoint to the end of the trajectory\n "
},
{"position",
reinterpret_cast<PyCFunction>( staticCallback_position ),
METH_VARARGS,
"\n returns a Frame to a given time in the trajectory\n "
},
{"velocity",
reinterpret_cast<PyCFunction>( staticCallback_velocity ),
METH_VARARGS,
"\n returns the velocity to a given time in the trajectory\n "
},
{"deleteLast",
reinterpret_cast<PyCFunction>( staticCallback_deleteLast ),
METH_VARARGS,
"\n deleteLast(n) - delete n waypoints at the end\n deleteLast() - delete the last waypoint\n "
},
{NULL, NULL, 0, NULL}
}

Methods structure of TrajectoryPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Robot/App/TrajectoryPy.h
  • src/Mod/Robot/App/TrajectoryPyImp.cpp
  • build/webdoc/src/Mod/Robot/App/TrajectoryPy.cpp
static int staticCallback_setLength(PyObject *self, PyObject *value, void *closure)
setter callback for the Length attribute
Definition: TrajectoryPy.cpp:513
static PyObject * staticCallback_velocity(PyObject *self, PyObject *args)
callback for the velocity() method
Definition: TrajectoryPy.cpp:297
static PyObject * staticCallback_position(PyObject *self, PyObject *args)
callback for the position() method
Definition: TrajectoryPy.cpp:214
static int staticCallback_setDuration(PyObject *self, PyObject *value, void *closure)
setter callback for the Duration attribute
Definition: TrajectoryPy.cpp:481
static PyObject * staticCallback_getLength(PyObject *self, void *closure)
getter callback for the Length attribute
Definition: TrajectoryPy.cpp:495
static PyObject * staticCallback_getDuration(PyObject *self, void *closure)
getter callback for the Duration attribute
Definition: TrajectoryPy.cpp:463
static int staticCallback_setWaypoints(PyObject *self, PyObject *value, void *closure)
setter callback for the Waypoints attribute
Definition: TrajectoryPy.cpp:545
static PyObject * staticCallback_getWaypoints(PyObject *self, void *closure)
getter callback for the Waypoints attribute
Definition: TrajectoryPy.cpp:527
static PyObject * staticCallback_insertWaypoints(PyObject *self, PyObject *args)
callback for the insertWaypoints() method
Definition: TrajectoryPy.cpp:131
static PyObject * staticCallback_deleteLast(PyObject *self, PyObject *args)
callback for the deleteLast() method
Definition: TrajectoryPy.cpp:380