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(autoware_perception_msgs): add instance segmentation msg #106

Closed
Closed
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
2 changes: 2 additions & 0 deletions autoware_perception_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/PredictedObjectKinematics.msg"
"msg/PredictedObjects.msg"
"msg/PredictedPath.msg"
"msg/SegmentationMask.msg"
"msg/Shape.msg"
"msg/TrackedObject.msg"
"msg/TrackedObjectKinematics.msg"
Expand All @@ -27,6 +28,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}

DEPENDENCIES
std_msgs
sensor_msgs
geometry_msgs
builtin_interfaces
unique_identifier_msgs
Expand Down
11 changes: 11 additions & 0 deletions autoware_perception_msgs/msg/SegmentationMask.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
std_msgs/Header header

# 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.
ObjectClassification[] classification

sensor_msgs/Image image # Mask image
1 change: 1 addition & 0 deletions autoware_perception_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

<depend>builtin_interfaces</depend>
<depend>geometry_msgs</depend>
<depend>sensor_msgs</depend>
<depend>std_msgs</depend>
<depend>unique_identifier_msgs</depend>

Expand Down