Skip to content

Commit

Permalink
adding IDs to geometry_msgs/Polygon, PolygonStamped (#232)
Browse files Browse the repository at this point in the history
* adding PolygonInstance msgs

Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>
Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
3 people authored Jan 18, 2024
1 parent 9818d40 commit 104e644
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geometry_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ set(msg_files
"msg/Point32.msg"
"msg/PointStamped.msg"
"msg/Polygon.msg"
"msg/PolygonInstance.msg"
"msg/PolygonInstanceStamped.msg"
"msg/PolygonStamped.msg"
"msg/Pose.msg"
"msg/Pose2D.msg"
Expand Down
2 changes: 2 additions & 0 deletions geometry_msgs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ For more information about ROS 2 interfaces, see [docs.ros.org](https://docs.ros
* [Point](msg/Point.msg): The position of a 3-dimensional point in free space.
* [PointStamped](msg/PointStamped.msg): Point with reference coordinate frame and timestamp.
* [Polygon](msg/Polygon.msg): A specification of a polygon where the first and last points are assumed to be connected.
* [PolygonInstance](msg/PolygonInstance.msg): A specification of a polygon where the first and last points are assumed to be connected. Contains an identification field for disambiguation of multiple instances.
* [PolygonInstanceStamped](msg/PolygonInstanceStamped.msg): A Polygon with reference coordinate frame and timestamp. Contains an identification field for disambiguation of multiple instances.
* [PolygonStamped](msg/PolygonStamped.msg): A Polygon with reference coordinate frame and timestamp.
* [Pose2D](msg/Pose2D.msg): **Deprecated as of Foxy and will potentially be removed in any following release.**
* [PoseArray](msg/PoseArray.msg): An array of poses with a header for global reference.
Expand Down
5 changes: 5 additions & 0 deletions geometry_msgs/msg/PolygonInstance.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# A specification of a polygon where the first and last points are assumed to be connected
# It includes a unique identification field for disambiguating multiple instances

geometry_msgs/Polygon polygon
int64 id
5 changes: 5 additions & 0 deletions geometry_msgs/msg/PolygonInstanceStamped.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This represents a Polygon with reference coordinate frame and timestamp
# It includes a unique identification field for disambiguating multiple instances

std_msgs/Header header
geometry_msgs/PolygonInstance polygon

0 comments on commit 104e644

Please sign in to comment.