Skip to content

Commit

Permalink
Add Cone Geometry Message
Browse files Browse the repository at this point in the history
Signed-off-by: Levi Armstrong <[email protected]>
  • Loading branch information
Levi-Armstrong committed May 8, 2020
1 parent 0219788 commit ec8f802
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
39 changes: 39 additions & 0 deletions proto/ignition/msgs/conegeom.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

syntax = "proto3";
package ignition.msgs;
option java_package = "com.ignition.msgs";
option java_outer_classname = "ConeGeomProtos";

/// \ingroup ignition.msgs
/// \interface ConeGeom
/// \brief Information about a cone geometry

import "ignition/msgs/header.proto";

message ConeGeom
{
/// \brief Optional header data
Header header = 1;

/// \brief The base radius of cone in meters
double radius = 2;

/// \brief The distance in meters from the base to the apex of the cone
double length = 3;
}
9 changes: 6 additions & 3 deletions proto/ignition/msgs/geometry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import "ignition/msgs/heightmapgeom.proto";
import "ignition/msgs/meshgeom.proto";
import "ignition/msgs/vector3d.proto";
import "ignition/msgs/polylinegeom.proto";
import "ignition/msgs/conegeom.proto";

message Geometry
{
Expand All @@ -49,7 +50,8 @@ message Geometry
TRIANGLE_FAN = 7;
LINE_STRIP = 8;
POLYLINE = 9;
EMPTY = 10;
CONE = 10;
EMPTY = 11;
}

/// \brief Optional header data
Expand All @@ -63,7 +65,8 @@ message Geometry
ImageGeom image = 7;
HeightmapGeom heightmap = 8;
MeshGeom mesh = 9;
ConeGeom cone = 10;

repeated Vector3d points = 10;
repeated Polyline polyline = 11;
repeated Vector3d points = 11;
repeated Polyline polyline = 12;
}

0 comments on commit ec8f802

Please sign in to comment.