enable_mouse.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rospy
4 
5 try:
6  import joy_mouse.xinput
7 except:
8  import roslib; roslib.load_manifest("joy_mouse")
9  import joy_mouse.xinput
10 
11 import joy_mouse.joy
12 
13 if __name__ == "__main__":
14  rospy.init_node("enabale_mouse")
15  argv = rospy.myargv()
16  if "--name" == argv[1]: #usage is disable_mouse.py --name foo
18  else:
19  dev = argv[1]
joy_mouse.joy.lookupDeviceFileByNameAttribute
def lookupDeviceFileByNameAttribute(name, prefix="mouse")
Definition: joy.py:17
joy_mouse.joy
Definition: joy.py:1
joy_mouse.xinput.enableDeviceByRegexp
def enableDeviceByRegexp(regexp)
Definition: xinput.py:43
joy_mouse.xinput
Definition: xinput.py:1


joy_mouse
Author(s):
autogenerated on Wed Jan 24 2024 04:05:19