permission_getter.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 """ permission_get.py 
00003 
00004 - Version 2.0 2015/8/28
00005 
00006 this file is used to aquire rfid sensor publisher communicate port permission 
00007 
00008 Copyright (c) 2015 Xu Zhihao (Howe).  All rights reserved.
00009 
00010 This program is free software; you can redistribute it and/or modify
00011 
00012 This programm is tested on kuboki base turtlebot. 
00013 
00014 """
00015 import os
00016 import getpass
00017 if __name__=='__main__':
00018  name=getpass.getuser()
00019  permission=os.popen('sudo usermod -a -G dialout %s'%name)
00020  print "please restart your computer"


rplidar_python
Author(s): DinnerHowe
autogenerated on Thu Apr 13 2017 02:56:29