Skip to content

Commit

Permalink
Merge pull request #11 from b-it-bots/feature/object-view-msg
Browse files Browse the repository at this point in the history
Object view message definitions
  • Loading branch information
alex-mitrevski authored Aug 14, 2020
2 parents ca9e5d7 + a3ed33e commit 18c1dc8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ add_message_files(
LaserScanSegmentList.msg
MatchingErrorStamped.msg
Object.msg
ObjectEmbedding.msg
ObjectList.msg
ObjectView.msg
NamedColor.msg
NamedShape.msg
Person.msg
Expand Down
8 changes: 5 additions & 3 deletions msg/Face.msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
float32 leftEyeCenterX # postion of the left eye of the face
float32 leftEyeCenterX # position of the left eye of the face
float32 leftEyeCenterY
float32 rightEyeCenterX # postion of the right eye of the face
float32 rightEyeCenterX # position of the right eye of the face
float32 rightEyeCenterY
sensor_msgs/Image image # image of the face

mas_perception_msgs/ObjectView[] views # extracted views of the face (RGB image, point cloud, image embedding);
# an array since we may have multiple views of the same person
9 changes: 4 additions & 5 deletions msg/Object.msg
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ NamedColor dominant_color
# object shape
NamedShape shape

# Extracted RGB image of the image
sensor_msgs/Image rgb_image

# Segmented cluster that represents the object
sensor_msgs/PointCloud2 pointcloud
# View representation including an RGB image of the object, a point cloud,
# and potentially an embedding of the image. An array since we may have
# multiple views of the same object
mas_perception_msgs/ObjectView[] views

# The bounding box of the object
mas_perception_msgs/BoundingBox bounding_box
Expand Down
1 change: 1 addition & 0 deletions msg/ObjectEmbedding.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
float32[] embedding
3 changes: 3 additions & 0 deletions msg/ObjectView.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sensor_msgs/Image image
sensor_msgs/PointCloud2 point_cloud
mas_perception_msgs/ObjectEmbedding embedding
5 changes: 3 additions & 2 deletions msg/Person.msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ string identity # unique string that identify the person
string name # given name, e.g. 'John Doe'
float32 age
mas_perception_msgs/Face face
sensor_msgs/Image body_image # extracted RGB image of the person
sensor_msgs/PointCloud2 body_points # extracted point cloud of the person

mas_perception_msgs/ObjectView[] views # extracted views of the person (RGB image, point cloud, image embedding);
# an array since we may have multiple views of the same person

string[] attribute_names # e.g. gender, emotion,...
string[] attributes # e.g. male, angry,...
Expand Down

0 comments on commit 18c1dc8

Please sign in to comment.