-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add GetTypeDescription.srv (rep2011) #153
Changes from 8 commits
2cbbd21
fb7a19c
6f8d286
71c97ae
6756fdb
c5998a7
2ec42ec
1db9478
a2b4f4e
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,4 @@ | ||
# Represents an arbitrary key-value pair for application-specific information. | ||
|
||
string key | ||
string value |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Represents the original source of a ROS 2 interface definition. | ||
|
||
# ROS interface type name, in PACKAGE/NAMESPACE/TYPENAME format. | ||
string type_name | ||
|
||
# The type of the original source file, typically matching the file extension. | ||
# Well-known encodings: "idl", "msg", "srv", "action", "dynamic". | ||
string encoding | ||
|
||
# Dumped contents of the interface definition source file. | ||
# If this was a type created programmatically (encoding "dynamic"), this field will be empty. | ||
string raw_file_contents |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,26 @@ | ||||||||||||||||||||||
# ROS interface type name, in PACKAGE/NAMESPACE/TYPENAME format. | ||||||||||||||||||||||
string type_name | ||||||||||||||||||||||
|
||||||||||||||||||||||
# REP-2011 RIHS hash string. | ||||||||||||||||||||||
string type_hash | ||||||||||||||||||||||
|
||||||||||||||||||||||
# Whether to return the original idl/msg/etc. source file(s) in the response. | ||||||||||||||||||||||
bool include_type_sources true | ||||||||||||||||||||||
--- | ||||||||||||||||||||||
# True if the type description information is available and populated in the response. | ||||||||||||||||||||||
# If false, all other fields except `failure_reason` are considered undefined. | ||||||||||||||||||||||
bool successful | ||||||||||||||||||||||
# If `successful` is false, contains a reason for failure. | ||||||||||||||||||||||
# If `successful` is true, this is left empty. | ||||||||||||||||||||||
string failure_reason | ||||||||||||||||||||||
|
||||||||||||||||||||||
# The parsed type description which can be used programmatically. | ||||||||||||||||||||||
TypeDescription type_description | ||||||||||||||||||||||
|
||||||||||||||||||||||
# List of sources, including all comments and whitespace. | ||||||||||||||||||||||
# Sources can be matched with IndividualTypeDescriptions by their `type_name`. | ||||||||||||||||||||||
# The `encoding` field of each entry informs how to interpret its contents. | ||||||||||||||||||||||
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. I think if someone were to look at this cold, it would be hard for them to understand a) what a "source" is, and b) that this is a list of the type that was requested, and all of the recursive types it depends on. For that reason, I think we should update this comment to something like:
Suggested change
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. Updated to approximately this language, plus more detail in |
||||||||||||||||||||||
TypeSource[] type_sources | ||||||||||||||||||||||
|
||||||||||||||||||||||
# Key-value pairs of extra information. | ||||||||||||||||||||||
KeyValue[] extra_information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this to
reason
instead offailure_reason
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something went wrong here, this became
failure_reason
again (1db9478)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that might have been intentional since it's no longer multi purpose? I'm not sure I haven't re-reviewed this yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, changed back on purpose, see #153 (comment)