-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(autoware_internal_debug_msgs): add MultiArray msgs #33
Closed
vish0012
wants to merge
2
commits into
autowarefoundation:main
from
vish0012:feat/move-multi-array-msgs
+48
−1
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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,11 @@ | ||
# This is from ros2 common_interfaces. | ||
# https://github.com/ros2/common_interfaces/blob/master/std_msgs/msg/MultiArrayDimension.msg | ||
|
||
# This was originally provided as an example message. | ||
# It is deprecated as of Foxy | ||
# It is recommended to create your own semantically meaningful message. | ||
# However if you would like to continue using this please use the equivalent in example_msgs. | ||
|
||
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,34 @@ | ||||||||||||||||||||||||
# This is from ros2 common_interfaces. | ||||||||||||||||||||||||
# https://github.com/ros2/common_interfaces/blob/master/std_msgs/msg/MultiArrayLayout.msg | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
# This was originally provided as an example message. | ||||||||||||||||||||||||
# It is deprecated as of Foxy | ||||||||||||||||||||||||
# It is recommended to create your own semantically meaningful message. | ||||||||||||||||||||||||
# However if you would like to continue using this please use the equivalent in example_msgs. | ||||||||||||||||||||||||
Comment on lines
+1
to
+7
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. Same here:
Suggested change
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
# 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. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
autoware_internal_debug_msgs/MultiArrayDimension[] dim # Array of dimension properties | ||||||||||||||||||||||||
uint32 data_offset # padding bytes at front of data |
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.
Maybe these comments can be updated for Autoware