-
Notifications
You must be signed in to change notification settings - Fork 131
Result.msg for Service Responses #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rolling
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Result code and message for service calls. | ||
# Note that additional results for specific services can defined within them using values above 100. | ||
|
||
uint8 RESULT_FEATURE_UNSUPPORTED = 0 # Feature is not supported by the simulator, check GetSimulatorFeatures. | ||
# While feature support can sometimes be deduced from presence of corresponding | ||
# service / action interface, in other cases it is about supporting certain | ||
# call parameters, formats and options within interface call. | ||
uint8 RESULT_OK = 1 | ||
uint8 RESULT_NOT_FOUND = 2 # No match for input (such as when entity name does not exist). | ||
uint8 RESULT_INCORRECT_STATE = 3 # Simulator is in an incorrect state for this interface call, e.g. a service | ||
# requires paused state but the simulator is not paused. | ||
uint8 RESULT_OPERATION_FAILED = 4 # Request could not be completed successfully even though feature is supported | ||
# and the input is correct; check error_message for details. | ||
# Implementation rule: check extended codes for called service | ||
# (e.g. SpawnEntity) to provide a return code which is more specific. | ||
|
||
uint8 result # Result to be checked on return from service interface call | ||
string error_message # Additional error description when useful. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. result and constants looks simulator specific, i do not think those are generic service response message in system layer. btw, do we not have something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
As discussed in the PMC, I copied it over "as-is". It's updated now.
That existed in ROS 1 but cannot exist in ROS 2 because of the DDS spec (someone else can probably back it up with more precise language) |
Uh oh!
There was an error while loading. Please reload this page.