joy_plugin.py
Go to the documentation of this file.
00001 # joy_plugins.py
00002 
00003 import rospy
00004 
00005 class JSKJoyPlugin():
00006     def __init__(self, name, args):
00007         self.name = name
00008         self.args = args
00009         self.manager = None
00010     def registerManager(self, manager):
00011         self.manager = manager;
00012     def joyCB(self, status):
00013         # a callback function
00014         rospy.logerr("%s: no joyCB is overriden" % (self.name))
00015     def enable(self):
00016         pass
00017     def disable(self):
00018         pass
00019     def getArg(self, key, default=None):
00020         if self.args.has_key(key):
00021             return self.args[key]
00022         else:
00023             return default


jsk_teleop_joy
Author(s): Ryohei Ueda
autogenerated on Fri Apr 19 2019 03:45:43