mouse.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import rospy
00004 
00005 try:
00006     import joy_mouse.joy
00007 except:
00008     import roslib; roslib.load_manifest("joy_mouse")
00009     import joy_mouse.joy
00010     
00011 if __name__ == "__main__":
00012     rospy.init_node("joy_mouse")
00013     device_name = rospy.get_param("~dev_name", False)
00014     if device_name:
00015         dev = lookupDeviceFileByNameAttribute(device_name)
00016     else:
00017         dev = rospy.get_param("~dev", "/dev/input/mouse0")
00018     joy_mouse.joy.main(dev,
00019                        rospy.get_param("~autorepeat_rate", 0),
00020                        rospy.get_param("~frame_id", "mouse"))
00021     


joy_mouse
Author(s):
autogenerated on Fri Apr 19 2019 03:45:21