src
jsk_teleop_joy
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
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.args
args
Definition:
joy_plugin.py:8
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.name
name
Definition:
joy_plugin.py:7
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.registerManager
def registerManager(self, manager)
Definition:
joy_plugin.py:10
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.joyCB
def joyCB(self, status)
Definition:
joy_plugin.py:12
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.getArg
def getArg(self, key, default=None)
Definition:
joy_plugin.py:19
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.manager
manager
Definition:
joy_plugin.py:9
jsk_teleop_joy.joy_plugin.JSKJoyPlugin
Definition:
joy_plugin.py:5
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.disable
def disable(self)
Definition:
joy_plugin.py:17
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.enable
def enable(self)
Definition:
joy_plugin.py:15
jsk_teleop_joy.joy_plugin.JSKJoyPlugin.__init__
def __init__(self, name, args)
Definition:
joy_plugin.py:6
jsk_teleop_joy
Author(s): Ryohei Ueda
autogenerated on Wed Jan 24 2024 04:05:49