Skip to content

Commit 7e2622f

Browse files
Add Cone Geometry Message
1 parent 0219788 commit 7e2622f

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

proto/ignition/msgs/conegeom.proto

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (C) 2017 Open Source Robotics Foundation
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
syntax = "proto3";
19+
package ignition.msgs;
20+
option java_package = "com.ignition.msgs";
21+
option java_outer_classname = "ConeGeomProtos";
22+
23+
/// \ingroup ignition.msgs
24+
/// \interface ConeGeom
25+
/// \brief Information about a cone geometry
26+
27+
import "ignition/msgs/header.proto";
28+
29+
message ConeGeom
30+
{
31+
/// \brief Optional header data
32+
Header header = 1;
33+
34+
double radius = 2;
35+
double length = 3;
36+
}

proto/ignition/msgs/geometry.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import "ignition/msgs/heightmapgeom.proto";
3434
import "ignition/msgs/meshgeom.proto";
3535
import "ignition/msgs/vector3d.proto";
3636
import "ignition/msgs/polylinegeom.proto";
37+
import "ignition/msgs/conegeom.proto";
3738

3839
message Geometry
3940
{
@@ -49,7 +50,8 @@ message Geometry
4950
TRIANGLE_FAN = 7;
5051
LINE_STRIP = 8;
5152
POLYLINE = 9;
52-
EMPTY = 10;
53+
CONE = 10;
54+
EMPTY = 11;
5355
}
5456

5557
/// \brief Optional header data
@@ -63,7 +65,8 @@ message Geometry
6365
ImageGeom image = 7;
6466
HeightmapGeom heightmap = 8;
6567
MeshGeom mesh = 9;
68+
ConeGeom cone = 10;
6669

67-
repeated Vector3d points = 10;
68-
repeated Polyline polyline = 11;
70+
repeated Vector3d points = 11;
71+
repeated Polyline polyline = 12;
6972
}

0 commit comments

Comments
 (0)