roscpp service get/catch exception message
With rospy, one can throw an exception in the service handler which results in an "ERROR ... Service call failed: service [...] responded with an error: error processing request:
Is there any way to receive this message as a string or otherwise "catch" this error so I can do something with it? The ServiceClient.call(...) only returns a bool. I would expect an exception to be thrown in the call() function.
I have code which implements forwarding of ROS topics and services between two separate roscore environments and I would like to forward error messages to the actual caller.
Asked by brianw1 on 2013-11-07 15:34:42 UTC
Comments