verbose.py
Go to the documentation of this file.
00001 from jsk_teleop_joy.joy_plugin import JSKJoyPlugin
00002 
00003 import rospy
00004 
00005 class VerboseStatus(JSKJoyPlugin):
00006   def __init__(self, name, args):
00007     JSKJoyPlugin.__init__(self, name, args)
00008   def joyCB(self, status, history):
00009     rospy.loginfo('analog left (%f, %f)' % (status.left_analog_x, status.left_analog_y))
00010 
00011     rospy.loginfo('analog right (%f, %f)' % (status.right_analog_x, status.right_analog_y))
00012     if status.select:
00013       rospy.loginfo('select')
00014     if status.start:
00015       rospy.loginfo('start')
00016     if status.L1:
00017       rospy.loginfo('L1')
00018     if status.R1:
00019       rospy.loginfo('R1')
00020     if status.L2:
00021       rospy.loginfo('L2')
00022     if status.R2:
00023       rospy.loginfo('R2')
00024     if status.L3:
00025       rospy.loginfo('L3')
00026     if status.R3:
00027       rospy.loginfo('R3')
00028     if status.up:
00029       rospy.loginfo('up')
00030     if status.down:
00031       rospy.loginfo('down')
00032     if status.left:
00033       rospy.loginfo('left')
00034     if status.right:
00035       rospy.loginfo('right')
00036     if status.triangle:
00037       rospy.loginfo('triangle')
00038     if status.circle:
00039       rospy.loginfo('circle')
00040     if status.square:
00041       rospy.loginfo('square')
00042     if status.cross:
00043       rospy.loginfo('cross')
00044     if status.center:
00045       rospy.loginfo('center')    
00046 
00047       


jsk_teleop_joy
Author(s): Ryohei Ueda
autogenerated on Wed Jul 19 2017 02:54:50