Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya <aditya050995@gmail.com>
  • Loading branch information
adityapande-1995 committed Jul 29, 2022
1 parent d43ca63 commit c5ea0cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/gz/sim/rendering/SceneManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ inline namespace GZ_SIM_VERSION_NAMESPACE {
/// \param[in] _sphericalCoordinates SphericalCoordinates
/// from the world.
public: void SetSphericalCoordinates(
math::SphericalCoordinates _sphericalCoordinates);
const math::SphericalCoordinates &_sphericalCoordinates);

/// \brief Create a model
/// \param[in] _id Unique model id
Expand Down
5 changes: 2 additions & 3 deletions src/rendering/SceneManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ class gz::sim::SceneManagerPrivate
Entity _id, const std::chrono::steady_clock::duration &_time) const;

/// \brief Holds the spherical coordinates from the world.
public: math::SphericalCoordinates sphericalCoordinates =
math::SphericalCoordinates();
public: math::SphericalCoordinates sphericalCoordinates;
};


Expand Down Expand Up @@ -625,7 +624,7 @@ rendering::VisualPtr SceneManager::CreateCollision(Entity _id,

/////////////////////////////////////////////////
void SceneManager::SetSphericalCoordinates(
math::SphericalCoordinates _sphericalCoordinates)
const math::SphericalCoordinates &_sphericalCoordinates)
{
this->dataPtr->sphericalCoordinates = _sphericalCoordinates;
}
Expand Down
8 changes: 6 additions & 2 deletions tutorials/spherical_coordinates.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ For example:
</spherical_coordinates>
```

At the moment, the only surface model supported is WGS84 and the only world
frame orientation is ENU.
Currently, the supported surface models are WGS84 for the Earth,
MOON_SCS for the Moon, and CUSTOM_SURFACE for other celestial bodies.
CUSTOM_SURFACE requires the equatorial and polar axes to be specified
in meters.

The only world frame currently supported is ENU.

Try out an example world that ships with Gazebo and has the coordinates above
as follows:
Expand Down

0 comments on commit c5ea0cb

Please sign in to comment.