Skip to content

Commit

Permalink
Adding cone primitives.
Browse files Browse the repository at this point in the history
Squashing commits to make requested target of main with backports to
harmonic.

Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti committed May 15, 2024
1 parent 40c04ec commit 77dda3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/include/gz/msgs/convert/GeometryType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ inline msgs::Geometry::Type ConvertGeometryType(const std::string &_str)
{
result = msgs::Geometry::CAPSULE;
}
else if (_str == "cone")
{
result = msgs::Geometry::CONE;
}
else if (_str == "cylinder")
{
result = msgs::Geometry::CYLINDER;
Expand Down Expand Up @@ -98,6 +102,11 @@ inline std::string ConvertGeometryType(const msgs::Geometry::Type _type)
result = "capsule";
break;
}
case msgs::Geometry::CONE:
{
result = "cone";
break;
}
case msgs::Geometry::CYLINDER:
{
result = "cylinder";
Expand Down
2 changes: 2 additions & 0 deletions proto/gz/msgs/particle_emitter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ message ParticleEmitter
CYLINDER = 2;
/// \brief Ellipsoid emitter.
ELLIPSOID = 3;
/// \brief Cone emitter.
CONE = 4;
}
/// \brief The emitter type.
EmitterType type = 4;
Expand Down

0 comments on commit 77dda3b

Please sign in to comment.