Skip to content

Commit 78ffd64

Browse files
author
M. Fatih Cırıt
committed
Add prism type to the SolidPrimitive.msg (#166)
Signed-off-by: M. Fatih Cırıt <[email protected]>
1 parent ba1c052 commit 78ffd64

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

shape_msgs/msg/SolidPrimitive.msg

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Defines box, sphere, cylinder, and cone.
1+
# Defines box, sphere, cylinder, cone and prism.
22
# All shapes are defined to have their bounding boxes centered around 0,0,0.
33

44
uint8 BOX=1
55
uint8 SPHERE=2
66
uint8 CYLINDER=3
77
uint8 CONE=4
8+
uint8 PRISM=5
89

910
# The type of the shape
1011
uint8 type
@@ -35,3 +36,15 @@ uint8 CYLINDER_RADIUS=1
3536

3637
uint8 CONE_HEIGHT=0
3738
uint8 CONE_RADIUS=1
39+
40+
# For the type PRISM, the center line is oriented along Z axis.
41+
# The PRISM_HEIGHT component of dimensions gives the
42+
# height of the prism.
43+
# The polygon defines the Z axis centered base of the prism.
44+
# The prism is constructed by extruding the base in Z+ and Z-
45+
# directions by half of the PRISM_HEIGHT
46+
# Only x and y fields of the points are used in the polygon.
47+
# Points of the polygon are ordered counter-clockwise.
48+
49+
uint8 PRISM_HEIGHT=0
50+
geometry_msgs/Polygon[] polygon

0 commit comments

Comments
 (0)