joy_plugin.py
Go to the documentation of this file.
1 # joy_plugins.py
2 
3 import rospy
4 
5 class JSKJoyPlugin():
6  def __init__(self, name, args):
7  self.name = name
8  self.args = args
9  self.manager = None
10  def registerManager(self, manager):
11  self.manager = manager;
12  def joyCB(self, status):
13  # a callback function
14  rospy.logerr("%s: no joyCB is overriden" % (self.name))
15  def enable(self):
16  pass
17  def disable(self):
18  pass
19  def getArg(self, key, default=None):
20  if key in self.args:
21  return self.args[key]
22  else:
23  return default
def __init__(self, name, args)
Definition: joy_plugin.py:6
def getArg(self, key, default=None)
Definition: joy_plugin.py:19


jsk_teleop_joy
Author(s): Ryohei Ueda
autogenerated on Sun May 28 2023 03:03:37