Joystick.java
Go to the documentation of this file.
1 // -*- Java -*-
9 package jp.go.aist.hrp.joystick.rtc;
10 
11 import jp.go.aist.rtm.RTC.Manager;
12 import jp.go.aist.rtm.RTC.RTObject_impl;
13 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
14 import jp.go.aist.rtm.RTC.RtcNewFunc;
15 import jp.go.aist.rtm.RTC.RegisterModuleFunc;
16 import jp.go.aist.rtm.RTC.util.Properties;
17 
22 public class Joystick implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
23 
24 // Module specification
25 // <rtc-template block="module_spec">
26  public static String component_conf[] = {
27  "implementation_id", "Joystick",
28  "type_name", "Joystick",
29  "description", "Sample component for MobileRobotCanvas component",
30  "version", "1.0.0",
31  "vendor", "HRG team",
32  "category", "Sample",
33  "activity_type", "DataFlowComponent",
34  "max_instance", "0",
35  "language", "Java",
36  "lang_type", "compile",
37  "exec_cxt.periodic.rate", "1000.0",
38  ""
39  };
40 // </rtc-template>
41 
42  public RTObject_impl createRtc(Manager mgr) {
43  return new JoystickImpl(mgr);
44  }
45 
46  public void deleteRtc(RTObject_impl rtcBase) {
47  rtcBase = null;
48  }
49  public void registerModule() {
50  Properties prop = new Properties(component_conf);
51  final Manager manager = Manager.instance();
52  manager.registerFactory(prop, new Joystick(), new Joystick());
53  }
54 }
RTObject_impl *(* RtcNewFunc)(Manager *manager)
Sample component for MobileRobotCanvas component.
#define null
our own NULL pointer
Definition: IceTypes.h:57
manager
RTObject_impl createRtc(Manager mgr)
Definition: Joystick.java:42
prop
Sample component for MobileRobotCanvas component.
Definition: Joystick.java:22
void(* RtcDeleteFunc)(RTObject_impl *rtc)
void deleteRtc(RTObject_impl rtcBase)
Definition: Joystick.java:46


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:39