Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sensor] extract out visual parts of Sensor into VisualSensor #432

Merged
merged 2 commits into from
Jan 21, 2020

Conversation

msbaines
Copy link
Contributor

@msbaines msbaines commented Jan 17, 2020

This is part of the Sensor refactor. The goal of this change is to bring the Sensor class into closer alignment with the new Sensor API design.

Also removed a few APIs we were exporting to python that didn't
really need to be exported.

Motivation and Context

Sensor refactor

How Has This Been Tested

SimTest

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 17, 2020
This is part of the Sensor refactor.

Also removed a few APIs we were exporting to python that didn't
really need to be exported.
Copy link
Collaborator

@msavva msavva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 Just a nit about one of the comments

namespace esp {
namespace sensor {

// Represents a sensor that provides data from the environment to an agent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be good to make this a bit more constrained to provides visual data since this is a VisualSensor

* Make displayObservation pure virtual in Sensor class.
@codecov-io
Copy link

codecov-io commented Jan 21, 2020

Codecov Report

Merging #432 into master will decrease coverage by 7.05%.
The diff coverage is 72.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #432      +/-   ##
==========================================
- Coverage   64.49%   57.43%   -7.06%     
==========================================
  Files          64      176     +112     
  Lines        2929     8134    +5205     
  Branches       84       84              
==========================================
+ Hits         1889     4672    +2783     
- Misses       1040     3462    +2422
Flag Coverage Δ
#CPP 53.46% <72.22%> (?)
#JavaScript 10% <ø> (ø) ⬆️
#Python 78.82% <ø> (ø) ⬆️
Impacted Files Coverage Δ
src/esp/scene/SceneGraph.h 100% <ø> (ø)
src/esp/gfx/Renderer.h 50% <ø> (ø)
src/esp/sensor/Sensor.cpp 84.37% <ø> (ø)
src/esp/sensor/PinholeCamera.h 100% <ø> (ø)
src/esp/sensor/Sensor.h 66.66% <ø> (ø)
src/esp/scene/SceneGraph.cpp 100% <100%> (ø)
src/esp/sensor/PinholeCamera.cpp 41.02% <100%> (ø)
src/esp/bindings/GfxBindings.cpp 93.65% <100%> (ø)
src/esp/bindings/SensorBindings.cpp 91.48% <100%> (ø)
src/esp/gfx/Renderer.cpp 88% <100%> (ø)
... and 113 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5824025...6e52a14. Read the comment docs.

@msbaines msbaines merged commit d745eef into master Jan 21, 2020
@msbaines msbaines deleted the sensor branch January 21, 2020 20:52
Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
…cebookresearch#432)

This is part of the Sensor refactor.

Also removed a few APIs we were exporting to python that didn't
really need to be exported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants