servo_config.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import roslib
00004 roslib.load_manifest('hrl_pr2_ar_servo')
00005 roslib.load_manifest('dynamic_reconfigure')
00006 import rospy
00007 
00008 from dynamic_reconfigure.server import Server
00009 from hrl_pr2_ar_servo.cfg import PR2ARServoConfig
00010 
00011 NODE_NAME = 'ar_servo_image_proc'
00012 PARAMS = ['black_cap', 'white_cap']
00013 
00014 def callback(config, level):
00015     for param in PARAMS:
00016         rospy.set_param(NODE_NAME+'/'+param, config[param])
00017     return config
00018 
00019 if __name__ == "__main__":
00020     rospy.init_node("ar_servo_config")
00021 
00022     srv = Server(PR2ARServoConfig, callback)
00023     rospy.spin()
00024 


hrl_pr2_ar_servo
Author(s): Kelsey Hawkins, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab
autogenerated on Wed Nov 27 2013 11:43:43