Viewer.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef VIEWER_H
11 #define VIEWER_H
12 
13 #include <rtm/idl/BasicDataType.hh>
14 #include "hrpsys/idl/HRPDataTypes.hh"
15 #include <rtm/Manager.h>
16 #include <rtm/DataFlowComponentBase.h>
17 #include <rtm/CorbaPort.h>
18 #include <rtm/DataInPort.h>
19 #include <rtm/DataOutPort.h>
20 #include <rtm/idl/BasicDataTypeSkel.h>
21 #include "hrpsys/util/LogManager.h"
22 #include "hrpsys/util/SDLUtil.h"
23 #include "GLscene.h"
24 
25 class RTCGLbody;
26 
27 // Service implementation headers
28 // <rtc-template block="service_impl_h">
29 
30 // </rtc-template>
31 
32 // Service Consumer stub headers
33 // <rtc-template block="consumer_stub_h">
34 
35 // </rtc-template>
36 
37 using namespace RTC;
38 
42 class Viewer
44 {
45  public:
54  virtual ~Viewer();
55 
56  // The initialize action (on CREATED->ALIVE transition)
57  // formaer rtc_init_entry()
58  virtual RTC::ReturnCode_t onInitialize();
59 
60  // The finalize action (on ALIVE->END transition)
61  // formaer rtc_exiting_entry()
62  // virtual RTC::ReturnCode_t onFinalize();
63 
64  // The startup action when ExecutionContext startup
65  // former rtc_starting_entry()
66  // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
67 
68  // The shutdown action when ExecutionContext stop
69  // former rtc_stopping_entry()
70  // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
71 
72  // The activated action (Active state entry action)
73  // former rtc_active_entry()
74  virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
75 
76  // The deactivated action (Active state exit action)
77  // former rtc_active_exit()
78  virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
79 
80  // The execution action that is invoked periodically
81  // former rtc_active_do()
82  virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
83 
84  // The aborting action when main logic error occurred.
85  // former rtc_aborting_entry()
86  // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
87 
88  // The error action in ERROR state
89  // former rtc_error_do()
90  // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
91 
92  // The reset action that is invoked resetting
93  // This is same but different the former rtc_init_entry()
94  // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
95 
96  // The state update action that is invoked after onExecute() action
97  // no corresponding operation exists in OpenRTm-aist-0.2.0
98  // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
99 
100  // The action that is invoked when execution context's rate is changed
101  // no corresponding operation exists in OpenRTm-aist-0.2.0
102  // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
103 
104 
105  protected:
106  // Configuration variable declaration
107  // <rtc-template block="config_declare">
108 
109  // </rtc-template>
110 
111  // DataInPort declaration
112  // <rtc-template block="inport_declare">
113  OpenHRP::SceneState m_sceneState;
115 
116  // </rtc-template>
117 
118  // DataOutPort declaration
119  // <rtc-template block="outport_declare">
120 
121  // </rtc-template>
122 
123  // CORBA Port declaration
124  // <rtc-template block="corbaport_declare">
125 
126  // </rtc-template>
127 
128  // Service declaration
129  // <rtc-template block="service_declare">
130 
131  // </rtc-template>
132 
133  // Consumer declaration
134  // <rtc-template block="consumer_declare">
135 
136 
137  // </rtc-template>
138 
139  private:
141  std::map<std::string, RTCGLbody *> m_bodies;
142  std::string m_project;
145  int dummy;
146 };
147 
148 
149 extern "C"
150 {
152 };
153 
154 #endif // VIEWER_H
ec_id
SDLwindow m_window
Definition: Viewer.h:144
InPort< OpenHRP::SceneState > m_sceneStateIn
Definition: Viewer.h:114
manager
void ViewerInit(RTC::Manager *manager)
Definition: Viewer.cpp:233
sample RT component which has one data input port and one data output port
Definition: Viewer.h:42
GLscene m_scene
Definition: Viewer.h:140
std::string m_project
Definition: Viewer.h:142
int dummy
Definition: Viewer.h:145
ExecutionContextHandle_t UniqueId
OpenHRP::SceneState m_sceneState
Definition: Viewer.h:113
std::map< std::string, RTCGLbody * > m_bodies
Definition: Viewer.h:141
LogManager< OpenHRP::SceneState > m_log
Definition: Viewer.h:143


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