[ros-users] Throwing exceptions in services (Python vs. C++)

Thibault Kruse kruset at in.tum.de
Tue Nov 8 16:31:59 UTC 2011

I raised this a while ago here:
but i could not provide a patch myself.

With a patch the ticket may get more attention.

It should not be too difficult technically (I implemented it for roslisp 
as for
rospy in https://code.ros.org/trac/ros/ticket/3594), but I found it too 
to dig into the roscpp code.

On 11/08/2011 05:13 PM, Dirk Thomas wrote:
> Hi,
> we are using ROS services implemented in Python as well as in C++.
> We found one significant difference in both implementations (which 
> makes debugging more difficult):
> This is when a service throws an exception.
> In both languages a message is printed on the server's console.
> In Python the string of the exception is also passed to the client.
> But in C++ the exception is NOT passed to the client.
> Is there a technical reason why the C++-ServiceCallback does not pass 
> the exception message?
> If not could this be added?
> Regards,
> Dirk
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

More information about the ros-users mailing list