Re: [ros-users] Throwing exceptions in services (Python vs. …

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] Throwing exceptions in services (Python vs. C++)
I raised this a while ago here:
https://code.ros.org/trac/ros/ticket/3590
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
hard
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
>
> https://code.ros.org/mailman/listinfo/ros-users