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 a tool for environment data visualization #1748

Merged
merged 32 commits into from
Nov 16, 2022

Conversation

arjo129
Copy link
Contributor

@arjo129 arjo129 commented Oct 5, 2022

🎉 New feature

Depends on:

Summary

This PR adds a tool to visualize Scalar Environmental Data.

pointcloud_viz

Test it

To use it is currently a bit cumbersome, but the following steps apply. I'll probably add a tutorial for this soon:

  1. Open the Environment Loader plugin. Load the environment in.
  2. Open the Environment Visuallization panel to enable visuallization
  3. Load the Pointcloud Plugin to see the actual data.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@arjo129 arjo129 changed the base branch from mbari/gz-sim7 to arjo/feat/environmental_sensors October 5, 2022 09:16
@arjo129 arjo129 changed the base branch from arjo/feat/environmental_sensors to mbari/gz-sim7 October 5, 2022 09:16
@arjo129 arjo129 changed the base branch from mbari/gz-sim7 to arjo/feat/environmental_sensors October 6, 2022 08:06
@arjo129 arjo129 changed the base branch from arjo/feat/environmental_sensors to mbari/gz-sim7 October 6, 2022 08:07
@arjo129 arjo129 marked this pull request as ready for review October 6, 2022 23:47
@arjo129 arjo129 mentioned this pull request Oct 10, 2022
38 tasks
@mjcarroll mjcarroll changed the title Adds a tool for environment data visuallization. Adds a tool for environment data visualization Oct 17, 2022
Copy link
Contributor

@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.

First pass. Haven't tested locally just yet.

examples/worlds/environmental_sensor.sdf Show resolved Hide resolved
src/Util.cc Outdated Show resolved Hide resolved
test/integration/environmental_sensor_system.cc Outdated Show resolved Hide resolved
adityapande-1995 and others added 16 commits November 1, 2022 16:54
* Added acoustic comms plugin

Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
- Resolve paths relative to SDF parent path
- Avoid template instantiation in plugins

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Adds basic environmental sensors with code and example.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
TODO: Add tests and rebase on @hidmic's changes.
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
…inates.

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>
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>
Depends on:
* gazebosim/gz-math#508
* gazebosim/gz-common#446
Work in progress.

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>
@arjo129 arjo129 force-pushed the arjo/feat/environment_visuals branch from 195a060 to 1c6f50c Compare November 1, 2022 08:56
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Copy link
Contributor

@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.

Last pass. Pretty solid.

include/gz/sim/Util.hh Outdated Show resolved Hide resolved
src/Util.cc Outdated Show resolved Hide resolved
src/Util.cc Outdated Show resolved Hide resolved
src/gui/plugins/environment_loader/EnvironmentLoader.qml Outdated Show resolved Hide resolved
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@arjo129 arjo129 added MBARI-LRAUV Sponsored by MBARI-LRAUV project: https://github.com/osrf/lrauv needs upstream release Blocked by a release of an upstream library labels Nov 15, 2022
Copy link
Contributor

@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 with (mostly) green CI

Comment on lines +689 to +700
// If the reference frame is spherical, we must have some world reference
// coordinates.
gzerr << "World has no spherical coordinates,"
<< " but data was loaded with spherical reference plane"
<< std::endl;
return std::nullopt;
}
else
{
// No need to transform
return _worldPosition;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@arjo129 we could still use default constructed spherical coordinates, sitting at the null island, if none are found.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know. Personally, I'd rather an error be thrown so that we don't end up with a user trying to figure out "where has my data gone?".

@nkoenig nkoenig mentioned this pull request Nov 15, 2022
7 tasks
@hidmic
Copy link
Contributor

hidmic commented Nov 15, 2022

Thanks to @nkoenig, gz-math7 is released.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@arjo129 arjo129 merged commit f7f237f into mbari/gz-sim7 Nov 16, 2022
@arjo129 arjo129 deleted the arjo/feat/environment_visuals branch November 16, 2022 00:24
@mjcarroll
Copy link
Contributor

Is mbari/gz-sim7 supposed to land back on gz-sim7 next?

@arjo129
Copy link
Contributor Author

arjo129 commented Nov 16, 2022

Yep! I'm cherry picking and back porting. It was an intermediary branch created during the freeze so we could continue our rapid development. We will be moving back to gz-sim7 now that the freeze is over.

arjo129 added a commit that referenced this pull request Nov 16, 2022
…stom environmental sensors

This PR adds a tool to visualize Scalar Environmental Data. It also adds custom sensors.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
arjo129 added a commit that referenced this pull request Nov 21, 2022
…stom environmental sensors (#1798)

This PR adds a tool to visualize Scalar Environmental Data. It also adds custom sensors.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MBARI-LRAUV Sponsored by MBARI-LRAUV project: https://github.com/osrf/lrauv needs upstream release Blocked by a release of an upstream library
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants