disable_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("disbale_mouse")
15  argv = rospy.myargv()
16  if "--name" == argv[1]: #usage is disable_mouse.py --name foo
18  else:
19  dev = argv[1]
def lookupDeviceFileByNameAttribute(name, prefix="mouse")
Definition: joy.py:17
def disableDeviceByRegexp(regexp)
Definition: xinput.py:37


joy_mouse
Author(s):
autogenerated on Sun May 28 2023 03:03:12