-
Notifications
You must be signed in to change notification settings - Fork 426
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
Expanded reset logic for Simulator #2451
Conversation
…bject states, set light setup default key to scene's light key
src/esp/sim/Simulator.cpp
Outdated
// set the default light key to reference the scene's light setup | ||
auto initSceneInstanceAttr = | ||
metadataMediator_->getSceneInstanceAttributesManager() | ||
->getObjectCopyByHandle(curSceneInstanceAttributes_->getHandle()); | ||
auto sceneLightSetup = resourceManager_->getLightSetup( | ||
initSceneInstanceAttr->getLightingHandle()); | ||
resourceManager_->setLightSetup(*sceneLightSetup); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a lot easier. Something to revisit down the road.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Hopefully it passes :)
…locities when no scene_instance init was provided. Also update unit test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
Motivation and Context
This PR add expanded reset logic to base Simulator:
default light setup key points to scene's light setup key(moved to Simulator.reset should change default_lighting_key to point to scene instance lighting setup #2453)This is a breaking change, previously reset only set world time to 0.
How Has This Been Tested
CI should still pass.
Added new unit test to validate the rest logic
Types of changes
Checklist