Skip to content

Instantly share code, notes, and snippets.

@moriarty
Created October 24, 2012 05:38
Show Gist options
  • Save moriarty/3944247 to your computer and use it in GitHub Desktop.
Save moriarty/3944247 to your computer and use it in GitHub Desktop.
Python ROS example
#!/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