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

Adds interpolation to the science sensor refactor #191

Merged
merged 21 commits into from
May 4, 2022

Conversation

arjo129
Copy link
Member

@arjo129 arjo129 commented Apr 19, 2022

Requires igntionrobotics/ign-math#412

Signed-off-by: Arjo Chakravarty arjo@openrobotics.org

arjo129 added 13 commits March 23, 2022 23:41
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>
As pointed out by @hidmic , #174 makes test_range_bearing redundant. This PR eleminates the test and the associated files.

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

Choose a reason for hiding this comment

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

@arjo129 debugging leftover?

arjo129 added 7 commits April 27, 2022 09:11
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>
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.

It may be worth merging this into its base branch, there are too many unrelated commits.

@@ -0,0 +1,195 @@
/*
Copy link
Collaborator

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());
}
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: 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).

@arjo129
Copy link
Member Author

arjo129 commented Apr 27, 2022

I'll rebase this. Seem to have messed it up

@arjo129 arjo129 changed the base branch from arjo/refactor/science_sensors to main April 27, 2022 13:40
reinterpolate = true;
IGN_PROFILE("ScienceSensorsSystem::Interpolation");
if (interpolators.size() == 0) return;
if (!interpolators[0].index.has_value()) return;
Copy link
Collaborator

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

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.

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.

Not much to add. Previous comments are minor, so I'm OK with moving forward as-is if necessary for the demo.

@arjo129 arjo129 merged commit 15c495a into main May 4, 2022
@arjo129 arjo129 deleted the arjo/feat/science_sensor_interpolation branch May 4, 2022 02:10
@caguero caguero mentioned this pull request May 4, 2022
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants