Go to the documentation of this file.00001
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