-
Notifications
You must be signed in to change notification settings - Fork 15
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 interpolation to the science sensor refactor #191
Conversation
Currently all our tests are failing because the garden tagged images were removed. This retargets the tests to use the latest tag. Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Requires igntionrobotics/ign-math#412 Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
/// interp.index.value()] << "@" << interp.position << std::endl; | ||
/// igndbg << "My distance is " << interp.position.X() - sphericalDepthCorrected.X() | ||
/// << ", " << interp.position.Y() - sphericalDepthCorrected.Y() << std::endl; | ||
/// } |
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 debugging leftover?
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
…sor_interpolation Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
…sor_interpolation
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
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.
It may be worth merging this into its base branch, there are too many unrelated commits.
@@ -0,0 +1,195 @@ | |||
/* |
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 nit: would test_chlorophyll_sensor
be a more accurate name for this test?
for (auto &msg: received_msg) | ||
{ | ||
EXPECT_TRUE(msg.load()); | ||
} |
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: I'm good with moving forward with this as-is in the interest of time, but I'd suggest adding a TODO for a test overhaul using lrauv_system_tests
support to avoid the races (and reduce total LOC count).
I'll rebase this. Seem to have messed it up |
reinterpolate = true; | ||
IGN_PROFILE("ScienceSensorsSystem::Interpolation"); | ||
if (interpolators.size() == 0) return; | ||
if (!interpolators[0].index.has_value()) return; |
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 shall we set NaNs even when interpolation is not possible too?
ignition::math::Temperature tempC; | ||
tempC.SetCelsius(temp); | ||
tempC.SetCelsius(temp.value()); |
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 nit^N!: value_or()
may be practical here to deduplicate some code.
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.
Not much to add. Previous comments are minor, so I'm OK with moving forward as-is if necessary for the demo.
Requires igntionrobotics/ign-math#412
Signed-off-by: Arjo Chakravarty arjo@openrobotics.org