Skip to content
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(SegmentationMask): add instance segmentation message #23

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ set(msg_files
"msg/PublishedTime.msg"
"msg/MissionRemainingDistanceTime.msg"
"msg/ResourceUsageReport.msg"
"msg/SegmentationMask.msg"
"msg/SegmentationConfig.msg"
)

set(msg_dependencies
builtin_interfaces
std_msgs
sensor_msgs
autoware_perception_msgs
)

rosidl_generate_interfaces(${PROJECT_NAME}
Expand Down
7 changes: 7 additions & 0 deletions msg/SegmentationConfig.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# It represent map between instance segmentation mask and labels
# The pixel intensities in mask's starts with 1 (pixel value 0 represent pixel is not belong any object)
# `classification[0]` returns the `label_id` for pixels with an intensity value of `1` in the mask.
# `classification[1]` returns the `label_id` for pixels with an intensity value of `2` in the mask.
# ...
# The relationship between pixels and label IDs continues in this way.
autoware_perception_msgs/ObjectClassification[] classification
5 changes: 5 additions & 0 deletions msg/SegmentationMask.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
std_msgs/Header header

SegmentationConfig config # Stores relation between class and image intensity

sensor_msgs/Image image # Mask image
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<exec_depend>rosidl_default_runtime</exec_depend>
<depend>builtin_interfaces</depend>
<depend>std_msgs</depend>
<depend>sensor_msgs</depend>
<depend>autoware_perception_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down