Running a python script with sudo in Groovy [closed]
Hi all,
I have groovy running and the "hello world" working fine. I am writing a python script that needs to directly write to a memory address (e.g. set 0x1234 high). I have to run this script with root permissions, sudo ./scripts/mymemmoryscript.py. I get the following error:
Traceback (most recent call last): File "mymemmoryscript.py", line 9, in <module> import roslib; roslib.load_manifest('beginner_tutorials') ImportError: No module named roslib
I notice the same with the tutorial file talker.py:
./scripts/talker.py - runs fine sudo ./scripts/talker.py - gets the error above
Is there a way to sudo run python scripts int the ROS Groovy enviroment? I tried looking through the wiki for help but couldn't find answer.
Thanks in advance, DD