PyBody.h
Go to the documentation of this file.
1 #include <boost/python.hpp>
2 #include "hrpsys/util/BodyRTC.h"
3 #include "hrpsys/util/GLbody.h"
4 
5 class PyLink;
6 class PySimulator;
7 
8 class PyBody : public BodyRTC, public GLbody
9 {
10 public:
12 
14  virtual ~PyBody();
15  //std::vector<double> getPosition();
16  PyObject *getPosition();
17  void setPosition(PyObject *v);
18  PyObject *getRotation();
19  void setRotation(PyObject *v);
20  PyObject *getPosture();
21  void setPosture(PyObject *v);
22  std::string getName();
23  void calcForwardKinematics();
24  PyLink *rootLink();
25  PyLink *link(std::string name);
26  PyObject *links();
27  PyLink *joint(int i);
28  PyObject *joints();
29  PyObject *calcCM();
30  void notifyChanged(int change);
31  void setListener(PySimulator *i_sim);
32  static void moduleInit(RTC::Manager*);
33 private:
34  static const char* pybody_spec[];
36 };
37 
PyBody(RTC::Manager *manager=&RTC::Manager::instance())
Definition: PyBody.cpp:26
PySimulator * simulator
Definition: PyBody.h:35
static const char * pybody_spec[]
Definition: PyBody.h:34
void setListener(PySimulator *i_sim)
Definition: PyBody.cpp:143
PyLink * rootLink()
Definition: PyBody.cpp:81
PyObject * joints()
Definition: PyBody.cpp:105
PyLink * joint(int i)
Definition: PyBody.cpp:101
manager
png_uint_32 i
static Manager & instance()
std::string getName()
Definition: PyBody.cpp:115
Definition: GLbody.h:11
PyObject * getPosition()
Definition: PyBody.cpp:55
PyObject * calcCM()
Definition: PyBody.cpp:120
PyObject * links()
Definition: PyBody.cpp:91
const std::string & name()
Definition: PyBody.h:8
virtual ~PyBody()
Definition: PyBody.cpp:30
void setPosture(PyObject *v)
Definition: PyBody.cpp:45
void setRotation(PyObject *v)
Definition: PyBody.cpp:40
PyLink * link(std::string name)
Definition: PyBody.cpp:86
void setPosition(PyObject *v)
Definition: PyBody.cpp:35
void calcForwardKinematics()
Definition: PyBody.cpp:76
void notifyChanged(int change)
Definition: PyBody.cpp:130
static void moduleInit(RTC::Manager *)
Definition: PyBody.cpp:153
PyObject * getRotation()
Definition: PyBody.cpp:60
PyObject * getPosture()
Definition: PyBody.cpp:65


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:50