Skip to content

Commit

Permalink
More compiler warnings fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Nov 17, 2022
1 parent 5ce1d49 commit 0042fec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ class EnvironmentalSensor : public gz::sensors::Sensor
{
if (!this->ready) return false;

const auto position = worldPose(_entity, _ecm).Pos();
const auto worldPosition = worldPose(_entity, _ecm).Pos();
auto lookupCoords =
getGridFieldCoordinates(_ecm, position, this->gridField);
getGridFieldCoordinates(_ecm, worldPosition, this->gridField);

if (!lookupCoords.has_value())
{
Expand Down Expand Up @@ -252,7 +252,7 @@ EnvironmentalSensorSystem::EnvironmentalSensorSystem () :
////////////////////////////////////////////////////////////////
void EnvironmentalSensorSystem::Configure(
const gz::sim::Entity &_entity,
const std::shared_ptr<const sdf::Element> &_sdf,
const std::shared_ptr<const sdf::Element> &/*_sdf*/,
gz::sim::EntityComponentManager &/*_ecm*/,
gz::sim::EventManager &/*_eventMgr*/)
{
Expand Down

0 comments on commit 0042fec

Please sign in to comment.