Created
October 24, 2012 05:38
-
-
Save moriarty/3944247 to your computer and use it in GitHub Desktop.
Python ROS example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import roslib | |
roslib.load_manifest('raw_arm_cmds') | |
import rospy | |
import actionlib | |
from simple_script_server import * | |
sss = simple_script_server() | |
def main(): | |
rospy.init_node('move_to_zero') | |
sss.move("arm", "zeroposition") | |
rospy.sleep(1) | |
## Main routine for running the script server | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment