-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adds time interpolation to the Science Sensors #210
Conversation
This PR moves all the logic for lookup in the science sensor to a separate function `ScienceSensorsSystemPrivate::InterpolateInTime()`. It also adds time based interpolation to the science sensor. Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
sphericalDepthCorrected, simTimeSeconds, this->dataPtr->eastCurrentArr); | ||
|
||
|
||
ignition::math::Vector3d current(nCurr, eCurr, 0); |
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.
@arjo129 meta: there's a subtle change in behavior here, now nCurr
or eCurr
could be NaN even if the other isn't.
} | ||
EXPECT_TRUE(spawnedAllVehicles); | ||
|
||
fixture->Server()->Run(true, 1000, false); |
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.
@arjo129 meta: there are a number of tools in lrauv_system_tests
to reduce duplication, prevent races, reduce total run time, and improve readability across tests. I'd be inclined to use them if time allows. test_spawn.cc
is one good example.
Signed-off-by: Arjo Chakravarty <[email protected]>
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 -- pending comments are not blockers.
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
As said above. There are several major changes in this PR.
ScienceSensorsSystemPrivate::InterpolateInTime()
.