diff --git a/object_msgs/srv/ObjectInfo.srv b/object_msgs/srv/ObjectInfo.srv index 6eef2b84d9618f03df50aba4bd4c1a6bf3266462..8e8bdcf741ed7d467257e18350a2055d760f7af5 100644 --- a/object_msgs/srv/ObjectInfo.srv +++ b/object_msgs/srv/ObjectInfo.srv @@ -9,8 +9,16 @@ bool get_geometry --- # true if object exists and information is -# stored in field 'object' +# stored in field 'object'. If false, the +# error_code contains more information about the error. bool success # information about the object Object object + +# error code if success is false +byte error_code + +byte NO_ERROR=0 +byte OBJECT_NOT_FOUND=1 +byte OTHER_ERROR=2