Joystick2PanTiltAngles.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef JOYSTICK2PANTILTANGLES_H
11 #define JOYSTICK2PANTILTANGLES_H
12 
13 #include <rtm/idl/BasicDataType.hh>
14 #include <rtm/idl/InterfaceDataTypes.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 <rtm/idl/InterfaceDataTypesSkel.h>
22 
23 // Service implementation headers
24 // <rtc-template block="service_impl_h">
25 
26 // </rtc-template>
27 
28 // Service Consumer stub headers
29 // <rtc-template block="consumer_stub_h">
30 
31 // </rtc-template>
32 
33 using namespace RTC;
34 
40 {
41  public:
50  virtual ~Joystick2PanTiltAngles();
51 
52  // The initialize action (on CREATED->ALIVE transition)
53  // formaer rtc_init_entry()
54  virtual RTC::ReturnCode_t onInitialize();
55 
56  // The finalize action (on ALIVE->END transition)
57  // formaer rtc_exiting_entry()
58  // virtual RTC::ReturnCode_t onFinalize();
59 
60  // The startup action when ExecutionContext startup
61  // former rtc_starting_entry()
62  // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
63 
64  // The shutdown action when ExecutionContext stop
65  // former rtc_stopping_entry()
66  // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
67 
68  // The activated action (Active state entry action)
69  // former rtc_active_entry()
70  virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
71 
72  // The deactivated action (Active state exit action)
73  // former rtc_active_exit()
74  virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
75 
76  // The execution action that is invoked periodically
77  // former rtc_active_do()
78  virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
79 
80  // The aborting action when main logic error occurred.
81  // former rtc_aborting_entry()
82  // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
83 
84  // The error action in ERROR state
85  // former rtc_error_do()
86  // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
87 
88  // The reset action that is invoked resetting
89  // This is same but different the former rtc_init_entry()
90  // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
91 
92  // The state update action that is invoked after onExecute() action
93  // no corresponding operation exists in OpenRTm-aist-0.2.0
94  // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
95 
96  // The action that is invoked when execution context's rate is changed
97  // no corresponding operation exists in OpenRTm-aist-0.2.0
98  // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
99 
100 
101  protected:
102  // Configuration variable declaration
103  // <rtc-template block="config_declare">
104 
105  // </rtc-template>
106 
107  TimedFloatSeq m_axes;
108 
109  // DataInPort declaration
110  // <rtc-template block="inport_declare">
112 
113  // </rtc-template>
114 
115  PanTiltAngles m_angles;
116 
117  // DataOutPort declaration
118  // <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  // </rtc-template>
137 
138  private:
139  int dummy, m_debugLevel;
140  std::vector<unsigned int> m_axesIds;
141  std::vector<double> m_scales;
142  std::vector<double> m_neutrals;
143 };
144 
145 
146 extern "C"
147 {
149 };
150 
151 #endif // JOYSTICK2PANTILTANGLES_H
ec_id
sample RT component which has one data input port and one data output port
InPort< TimedFloatSeq > m_axesIn
manager
void Joystick2PanTiltAnglesInit(RTC::Manager *manager)
ExecutionContextHandle_t UniqueId
std::vector< double > m_scales
std::vector< double > m_neutrals
std::vector< unsigned int > m_axesIds
OutPort< PanTiltAngles > m_anglesOut


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