Advertisement
Guest User

test_client.py

a guest
Oct 10th, 2013
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. #! /usr/bin/env python
  2.  
  3. import time
  4. import roslib; roslib.load_manifest('meka_moveit_action_server')
  5. import rospy
  6. import actionlib
  7. from control_msgs.msg import *
  8. from trajectory_msgs.msg import *
  9.  
  10. def main():
  11.     try:
  12.         rospy.init_node("test_client", anonymous=True, disable_signals=True)
  13.         client = actionlib.SimpleActionClient('follow_joint_trajectory', FollowJointTrajectoryAction)
  14.         print "Waiting for server..."
  15.         client.wait_for_server()
  16.         print "Connected to server"
  17.     except KeyboardInterrupt:
  18.         rospy.signal_shutdown("KeyboardInterrupt")
  19.         raise
  20.  
  21. if __name__ == '__main__':
  22.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement