Go to the documentation of this file.00001
00009 package jp.go.aist.hrp.joystick.rtc;
00010
00011 import jp.go.aist.rtm.RTC.Manager;
00012 import jp.go.aist.rtm.RTC.RTObject_impl;
00013 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
00014 import jp.go.aist.rtm.RTC.RtcNewFunc;
00015 import jp.go.aist.rtm.RTC.RegisterModuleFunc;
00016 import jp.go.aist.rtm.RTC.util.Properties;
00017
00022 public class Joystick implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
00023
00024
00025
00026 public static String component_conf[] = {
00027 "implementation_id", "Joystick",
00028 "type_name", "Joystick",
00029 "description", "Sample component for MobileRobotCanvas component",
00030 "version", "1.0.0",
00031 "vendor", "HRG team",
00032 "category", "Sample",
00033 "activity_type", "DataFlowComponent",
00034 "max_instance", "0",
00035 "language", "Java",
00036 "lang_type", "compile",
00037 "exec_cxt.periodic.rate", "1000.0",
00038 ""
00039 };
00040
00041
00042 public RTObject_impl createRtc(Manager mgr) {
00043 return new JoystickImpl(mgr);
00044 }
00045
00046 public void deleteRtc(RTObject_impl rtcBase) {
00047 rtcBase = null;
00048 }
00049 public void registerModule() {
00050 Properties prop = new Properties(component_conf);
00051 final Manager manager = Manager.instance();
00052 manager.registerFactory(prop, new Joystick(), new Joystick());
00053 }
00054 }