Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Adds time interpolation to the Science Sensors#210

Merged
arjo129 merged 5 commits intomainfrom
arjo/feat/timeInterpolation
Jun 15, 2022
Merged

Adds time interpolation to the Science Sensors#210
arjo129 merged 5 commits intomainfrom
arjo/feat/timeInterpolation

Conversation

@arjo129
Copy link
Member

@arjo129 arjo129 commented May 13, 2022

As said above. There are several major changes in this PR.

  • Move all the logic for lookup in the science sensor to a separate function ScienceSensorsSystemPrivate::InterpolateInTime().
  • Add time interpolation.
  • Add the ability to load files via a topic instead of hard-coded into the SDFormat world.
  • Add unit tests for time interpolation.

arjo129 added 2 commits May 12, 2022 15:44
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 <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@arjo129 arjo129 requested review from braanan and hidmic May 18, 2022 01:42
@caguero caguero mentioned this pull request May 18, 2022
39 tasks
sphericalDepthCorrected, simTimeSeconds, this->dataPtr->eastCurrentArr);


ignition::math::Vector3d current(nCurr, eCurr, 0);
Copy link
Collaborator

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);
Copy link
Collaborator

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 <arjo@openrobotics.org>
Copy link
Collaborator

@hidmic hidmic left a 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.

arjo129 added 2 commits June 15, 2022 11:49
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@arjo129 arjo129 merged commit a78b6c5 into main Jun 15, 2022
@arjo129 arjo129 deleted the arjo/feat/timeInterpolation branch June 15, 2022 05:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants