Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed May 9, 2023
1 parent e4129c9 commit 8c0e400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/gz/msgs/Utility.hh
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ namespace gz

/// \brief Convert a gz::math::SphericalCoordinates::CoordinateType
/// to a msgs::SphericalCoordinatesType
/// \param[in] _coord The spherical coordinates to convert
/// \param[in] _coord The spherical coordinates type to convert
/// \return A gz::msgs::SphericalCoordinatesType object
GZ_MSGS_VISIBLE
msgs::SphericalCoordinatesType ConvertCoord(
Expand Down
5 changes: 4 additions & 1 deletion src/Utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,11 @@ namespace gz
return math::SphericalCoordinates::CoordinateType::SPHERICAL;
case msgs::SphericalCoordinatesType::LOCAL:
return math::SphericalCoordinates::CoordinateType::LOCAL;
default:
case msgs::SphericalCoordinatesType::LOCAL2:
return math::SphericalCoordinates::CoordinateType::LOCAL2;
}
std::cerr << "Invalid coordinate type passed" << std::endl;
return math::SphericalCoordinates::CoordinateType::LOCAL2;
}

/////////////////////////////////////////////
Expand Down Expand Up @@ -385,6 +387,7 @@ namespace gz
default:
return msgs::SphericalCoordinatesType::LOCAL2;
}
std::cerr << "Invalid coordinate type passed" << std::endl;
}

/////////////////////////////////////////////
Expand Down

0 comments on commit 8c0e400

Please sign in to comment.