Skip to content

Commit 59ae973

Browse files
authored
Merge pull request #3 from stereolabs/feat_plane_detection
Add PlaneStamped message
2 parents 6483400 + 4022341 commit 59ae973

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ find_package(builtin_interfaces REQUIRED)
1414
find_package(rosidl_default_generators REQUIRED)
1515
find_package(std_msgs REQUIRED)
1616
find_package(geometry_msgs REQUIRED)
17+
find_package(shape_msgs REQUIRED)
1718

1819
###############################################################################
1920
# Add all files in subdirectories of the project in
@@ -34,6 +35,7 @@ set(MSG_FILES
3435
"msg/Skeleton2D.msg"
3536
"msg/Skeleton3D.msg"
3637
"msg/DepthInfoStamped.msg"
38+
"msg/PlaneStamped.msg"
3739
)
3840

3941
set(SRV_FILES
@@ -44,7 +46,7 @@ set(SRV_FILES
4446
rosidl_generate_interfaces(${PROJECT_NAME}
4547
${MSG_FILES}
4648
${SRV_FILES}
47-
DEPENDENCIES builtin_interfaces std_msgs geometry_msgs
49+
DEPENDENCIES builtin_interfaces std_msgs geometry_msgs shape_msgs
4850
)
4951

5052
# Install URDF files

msg/PlaneStamped.msg

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Standard Header
2+
std_msgs/Header header
3+
4+
# Mesh of the place
5+
shape_msgs/Mesh mesh
6+
7+
# Representation of a plane, using the plane equation ax + by + cz + d = 0
8+
shape_msgs/Plane coefficients
9+
10+
# Normal vector
11+
geometry_msgs/Point32 normal
12+
13+
# Center point
14+
geometry_msgs/Point32 center
15+
16+
# Plane pose relative to the global reference frame
17+
geometry_msgs/Transform pose
18+
19+
# Width and height of the bounding rectangle around the plane contours
20+
float32[2] extents
21+
22+
# The polygon bounds of the plane
23+
geometry_msgs/Polygon bounds

package.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>zed_interfaces</name>
5-
<version>0.2.0</version>
5+
<version>0.3.0</version>
66
<description>Contains message and service definitions used by the ZED ROS2 nodes.</description>
77
<maintainer email="[email protected]">STEREOLABS</maintainer>
88

@@ -17,10 +17,12 @@
1717
<build_depend>builtin_interfaces</build_depend>
1818
<build_depend>std_msgs</build_depend>
1919
<build_depend>geometry_msgs</build_depend>
20-
<build_depend>rosidl_default_generators</build_depend>
20+
<build_depend>shape_msgs</build_depend>
21+
<build_depend>rosidl_default_generators</build_depend>
2122

2223
<exec_depend>std_msgs</exec_depend>
2324
<exec_depend>geometry_msgs</exec_depend>
25+
<exec_depend>shape_msgs</exec_depend>
2426
<exec_depend>rosidl_default_runtime</exec_depend>
2527

2628
<member_of_group>rosidl_interface_packages</member_of_group>

0 commit comments

Comments
 (0)