Skip to content

Commit

Permalink
Cone.
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti committed May 12, 2024
1 parent 40c04ec commit fda8ba8
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;

Check warning on line 44 in core/include/gz/msgs/convert/GeometryType.hh

View check run for this annotation

Codecov / codecov/patch

core/include/gz/msgs/convert/GeometryType.hh#L44

Added line #L44 was not covered by tests
}
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:

Check warning on line 105 in core/include/gz/msgs/convert/GeometryType.hh

View check run for this annotation

Codecov / codecov/patch

core/include/gz/msgs/convert/GeometryType.hh#L105

Added line #L105 was not covered by tests
{
result = "cone";
break;

Check warning on line 108 in core/include/gz/msgs/convert/GeometryType.hh

View check run for this annotation

Codecov / codecov/patch

core/include/gz/msgs/convert/GeometryType.hh#L107-L108

Added lines #L107 - L108 were not covered by tests
}
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 fda8ba8

Please sign in to comment.