Joystick2Velocity3D.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef JOYSTICK2VELOCITY_H
11 #define JOYSTICK2VELOCITY_H
12 
13 #include <rtm/idl/BasicDataType.hh>
14 #include <rtm/idl/ExtendedDataTypes.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/ExtendedDataTypesSkel.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:
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  TimedBooleanSeq m_buttons;
109 
110  // DataInPort declaration
111  // <rtc-template block="inport_declare">
114 
115  // </rtc-template>
116 
117  TimedVelocity3D m_vel, m_mirroredVel;
118 
119  // DataOutPort declaration
120  // <rtc-template block="outport_declare">
122 
123  // </rtc-template>
124 
125  // CORBA Port declaration
126  // <rtc-template block="corbaport_declare">
127 
128  // </rtc-template>
129 
130  // Service declaration
131  // <rtc-template block="service_declare">
132 
133  // </rtc-template>
134 
135  // Consumer declaration
136  // <rtc-template block="consumer_declare">
137 
138  // </rtc-template>
139 
140  private:
141  int dummy, m_debugLevel;
142  std::vector<unsigned int> m_axesIds;
143  std::vector<double> m_scalesTranslation, m_scalesRotation;
145 };
146 
147 
148 extern "C"
149 {
151 };
152 
153 #endif // JOYSTICK2VELOCITY_H
ec_id
InPort< TimedFloatSeq > m_axesIn
sample RT component which has one data input port and one data output port
manager
OutPort< TimedVelocity3D > m_velOut
void Joystick2Velocity3DInit(RTC::Manager *manager)
ExecutionContextHandle_t UniqueId
std::vector< double > m_scalesTranslation
TimedBooleanSeq m_buttons
InPort< TimedBooleanSeq > m_buttonsIn
std::vector< unsigned int > m_axesIds


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