PySimulator.h
Go to the documentation of this file.
1 #ifndef __PYSIMULATOR_H__
2 #define __PYSIMULATOR_H__
3 
4 #include "hrpsys/util/SDLUtil.h"
5 #include "Simulator.h"
6 #include "GLscene.h"
7 
8 class PyBody;
9 
10 class PySimulator : public Simulator
11 {
12 public:
13  PySimulator();
14  PySimulator(PyObject *pyo);
15  ~PySimulator();
16  void initRTCmanager();
17  void initRTCmanager(PyObject *pyo);
18  void initRTCmanager(int argc, char **argv);
19  void initViewer();
20  PyBody* loadBody(std::string name, std::string url);
21  PyBody* createBody(std::string name);
22  bool loadProject(std::string fname);
23  void simulate();
24  void simulate(double time);
25  void start(double time);
26  void endless(bool flag);
27  void clear();
28  void play();
29  void pause();
30  void notifyChanged();
31  void addCollisionCheckPair(PyBody *b1, PyBody *b2);
32  void capture(std::string);
33  unsigned int logLength();
34  PyObject *bodies();
35  PyBody *getBody(std::string name);
36  bool showSensors();
37  void setShowSensors(bool flag);
38  void reset();
39  void setUseBBox(bool flag);
40  void setWindowSize(int s);
41  void setMaxLogLength(double len);
42  double maxLogLength();
43 private:
48  bool useBBox;
49  double maxLogLen;
50 };
51 
52 #endif
void setWindowSize(int s)
double maxLogLength()
double maxLogLen
Definition: PySimulator.h:49
void initViewer()
RTC::Manager * manager
Definition: PySimulator.h:47
png_infop png_charpp name
void setShowSensors(bool flag)
void addCollisionCheckPair(PyBody *b1, PyBody *b2)
void initRTCmanager()
sample RT component which has one data input port and one data output port
void notifyChanged()
PyBody * getBody(std::string name)
PyBody * createBody(std::string name)
LogManager< SceneState > log
Definition: PySimulator.h:44
void endless(bool flag)
PyObject * bodies()
void setUseBBox(bool flag)
void capture(std::string)
SDLwindow window
Definition: PySimulator.h:46
bool loadProject(std::string fname)
Definition: PyBody.h:8
unsigned int logLength()
void setMaxLogLength(double len)
GLscene scene
Definition: PySimulator.h:45
bool useBBox
Definition: PySimulator.h:48
void simulate()
png_infop png_uint_32 flag
bool showSensors()
PyBody * loadBody(std::string name, std::string url)


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