Skip to content

Commit

Permalink
[WIP] simpler BoundingBox2D (ros-perception#5)
Browse files Browse the repository at this point in the history
* Bounding boxes: Switch back to center instead of origin

* BoundingBox2D: use floats for size

* Add pixel/meter warning to BoundingBox2D

* Use RegionOfInterest instead of BoundingBox2D
  • Loading branch information
mintar authored and Adam Allevato committed Jun 7, 2017
1 parent 0930a5e commit 9d1a365
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
15 changes: 8 additions & 7 deletions msg/BoundingBox2D.msg
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Note: This message plans to move to geometry_msgs in the final implementation.
# Note: This message *DOES NOT* plan to move to geometry_msgs in the final
# implementation, because it uses pixels, not meters.

# The 2D position (in pixels) and orientation of the bounding box origin.
geometry_msgs/Pose2D origin
# The 2D position (in pixels) and orientation of the bounding box center.
geometry_msgs/Pose2D center

# The size (in pixels) of the bounding box surrounding the object relative
# to the pose of its origin
uint32 size_x
uint32 size_y
# The size (in pixels) of the bounding box surrounding the object relative
# to the pose of its center
float size_x
float size_y
8 changes: 4 additions & 4 deletions msg/BoundingBox3D.msg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Note: This message plans to move to geometry_msgs in the final implementation.

# The 3D position and orientation of the bounding box origin
geometry_msgs/Pose origin
# The 3D position and orientation of the bounding box center
geometry_msgs/Pose center

# The size of the bounding box surrounding the object relative to the pose of
# its origin
# The size of the bounding box surrounding the object relative to the pose of
# its center
geometry_msgs/Vector3 size
5 changes: 2 additions & 3 deletions msg/Detection2D.msg
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ Header header
# Class probabilities
ObjectHypothesisWithPose[] results

# A 2D bounding box surrounding the object, specified in the coordinates of the
# original input image.
BoundingBox2D bbox
# 2D bounding box surrounding the object.
sensor_msgs/RegionOfInterest bbox

# The 2D data that generated these results (i.e. region proposal cropped out of
# the image). Not required for all use cases, so it may be empty.
Expand Down

0 comments on commit 9d1a365

Please sign in to comment.