-
Notifications
You must be signed in to change notification settings - Fork 24
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
Migrate content from std_msgs #11
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ea59cb2
copy over std_msgs
tfoote c173a71
Integrate srv generation and add comments
tfoote 14ce705
Fill in CMake for msgs and add comments about status
tfoote f502d5b
remove ColorRGBA which is still used from std_msgs
tfoote 459b233
add generation flags for missed datatypes
tfoote 430a978
Port MultiArray messages with warnings about being examples
tfoote 6bb2abb
remove duplicate message declarations
tfoote e082acd
language cleanups from review
tfoote File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, bool. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
bool data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, byte. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
byte data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
byte[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, char. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
char data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, float32. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
float32 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
float32[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, float64. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
float64 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
float64[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, int16. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
int16 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
int16[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, int32. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
int32 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
int32[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, int64. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
int64 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
int64[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, in8. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
int8 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
int8[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
string label # label of given dimension | ||
uint32 size # size of given dimension (in type units) | ||
uint32 stride # stride of given dimension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# The multiarray declares a generic multi-dimensional array of a | ||
# particular data type. Dimensions are ordered from outer most | ||
# to inner most. | ||
# | ||
# Accessors should ALWAYS be written in terms of dimension stride | ||
# and specified outer-most dimension first. | ||
# | ||
# multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k] | ||
# | ||
# A standard, 3-channel 640x480 image with interleaved color channels | ||
# would be specified as: | ||
# | ||
# dim[0].label = "height" | ||
# dim[0].size = 480 | ||
# dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image) | ||
# dim[1].label = "width" | ||
# dim[1].size = 640 | ||
# dim[1].stride = 3*640 = 1920 | ||
# dim[2].label = "channel" | ||
# dim[2].size = 3 | ||
# dim[2].stride = 3 | ||
# | ||
# multiarray(i,j,k) refers to the ith row, jth column, and kth channel. | ||
|
||
MultiArrayDimension[] dim # Array of dimension properties | ||
uint32 data_offset # padding bytes at front of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, string. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
string data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, uint16. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
uint16 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
uint16[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, uint32. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
uint32 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
uint32[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, unint64. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
uint64 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
uint64[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, uint8. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
uint8 data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This is an example of using complex datatypes. | ||
# It is not recommended to use directly. | ||
# To use a similar datastruct please define a custom message with appropriate semantic meaning. | ||
|
||
# Please look at the MultiArrayLayout message definition for | ||
# documentation on all multiarrays. | ||
|
||
MultiArrayLayout layout # specification of data layout | ||
uint8[] data # array of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is an example message of using a primitive datatype, wstring. | ||
# If you want to test with this that's fine, but if you are deploying | ||
# it into a system you should create a semantically meaningful message type. | ||
# If you want to embed it in another message, use the primitive data type instead. | ||
wstring data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This is an example of a service to set a boolean value. | ||
# This can be used for testing but a semantically meaningful | ||
# one should be created to be built upon. | ||
|
||
bool data # e.g. for hardware enabling / disabling | ||
--- | ||
bool success # indicate successful run of triggered service | ||
string message # informational, e.g. for error messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# An example of a trigger service. | ||
# This can be used for testing but a semantically meaningful | ||
# one should be created to be built upon. | ||
|
||
--- | ||
bool success # indicate successful run of triggered service | ||
string message # informational, e.g. for error messages. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@tfoote
datastruct
-- In other places we talk aboutdata types
in a similar, almost equivalent way. Consider standardizing the terminology.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 specifically chose datastruct here to refer to the structure as opposed to the type as the guidance is to make a new type (indirectly by the new message).