verbose.py
Go to the documentation of this file.
1 from jsk_teleop_joy.joy_plugin import JSKJoyPlugin
2 
3 import rospy
4 
6  def __init__(self, name, args):
7  JSKJoyPlugin.__init__(self, name, args)
8  def joyCB(self, status, history):
9  rospy.loginfo('analog left (%f, %f)' % (status.left_analog_x, status.left_analog_y))
10 
11  rospy.loginfo('analog right (%f, %f)' % (status.right_analog_x, status.right_analog_y))
12  if status.select:
13  rospy.loginfo('select')
14  if status.start:
15  rospy.loginfo('start')
16  if status.L1:
17  rospy.loginfo('L1')
18  if status.R1:
19  rospy.loginfo('R1')
20  if status.L2:
21  rospy.loginfo('L2')
22  if status.R2:
23  rospy.loginfo('R2')
24  if status.L3:
25  rospy.loginfo('L3')
26  if status.R3:
27  rospy.loginfo('R3')
28  if status.up:
29  rospy.loginfo('up')
30  if status.down:
31  rospy.loginfo('down')
32  if status.left:
33  rospy.loginfo('left')
34  if status.right:
35  rospy.loginfo('right')
36  if status.triangle:
37  rospy.loginfo('triangle')
38  if status.circle:
39  rospy.loginfo('circle')
40  if status.square:
41  rospy.loginfo('square')
42  if status.cross:
43  rospy.loginfo('cross')
44  if status.center:
45  rospy.loginfo('center')
46 
47 
jsk_teleop_joy.plugin.verbose.VerboseStatus.joyCB
def joyCB(self, status, history)
Definition: verbose.py:8
jsk_teleop_joy.joy_plugin
Definition: joy_plugin.py:1
jsk_teleop_joy.joy_plugin.JSKJoyPlugin
Definition: joy_plugin.py:5
jsk_teleop_joy.plugin.verbose.VerboseStatus.__init__
def __init__(self, name, args)
Definition: verbose.py:6
jsk_teleop_joy.plugin.verbose.VerboseStatus
Definition: verbose.py:5


jsk_teleop_joy
Author(s): Ryohei Ueda
autogenerated on Wed Jan 24 2024 04:05:49