Calling ROS services in Python using yaml notation for the parameters?
Hey everybody! I was wondering if it was possible to call a ROS service from within a python node using YAML notation for the parameters like the console tool rosservice. Something like:
rosservice call /add_two_ints '{a:1, b:2}'
But from within a python node:
add_two_ints = rospy.ServiceProxy( 'add_two_ints', AddTwoInts )
add_two_ints( "{a:1, b:2}" )
I already know that the following is possible, but it's not what I'm looking for:
add_two_ints( a=1, b=2 )
Thank you!