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

Visualize inertia #861

Merged
merged 12 commits into from
Jul 2, 2021
Merged

Visualize inertia #861

merged 12 commits into from
Jul 2, 2021

Conversation

atharva-18
Copy link
Contributor

@atharva-18 atharva-18 commented Jun 16, 2021

🎉 New feature

Closes #111

Summary

Adds the ability to visualize the inertia of models, similar to Gazebo Classic.
Inertia visual

Test it

Test it by right-clicking on an entity and selecting View -> Inertia.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • 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

Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Jun 16, 2021
@atharva-18
Copy link
Contributor Author

atharva-18 commented Jun 16, 2021

Currently RenderUtil::Update is longer than 500 lines (codecheck is failing), this issue is being addressed at #858.

{
ignerr << "Entity with Id: [" << _id << "] already exists in the scene"
<< std::endl;
return rendering::VisualPtr();
Copy link
Contributor

Choose a reason for hiding this comment

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

Return the inertia found if exists

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 think it's just returning an empty visual since the entity id is already being used by another visual, similar to the LightVisual

src/rendering/RenderUtil.cc Outdated Show resolved Hide resolved
src/rendering/RenderUtil.cc Outdated Show resolved Hide resolved
src/rendering/RenderUtil.cc Outdated Show resolved Hide resolved
Signed-off-by: Atharva Pusalkar <atharvapusalkar18@gmail.com>
@chapulina chapulina added the GUI Gazebo's graphical interface (not pure Ignition GUI) label Jun 16, 2021
@ahcorde ahcorde added the needs upstream release Blocked by a release of an upstream library label Jun 22, 2021
@ahcorde
Copy link
Contributor

ahcorde commented Jun 25, 2021

@osrf-jenkins retest this please

@atharva-18 atharva-18 mentioned this pull request Jun 25, 2021
8 tasks
@ahcorde
Copy link
Contributor

ahcorde commented Jun 28, 2021

When this PR is in #888, it should fix the issue with the linter

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Some conflicts

@ahcorde ahcorde merged commit e3c2ec2 into gazebosim:main Jul 2, 2021
@ahcorde ahcorde mentioned this pull request Jul 5, 2021
@atharva-18 atharva-18 mentioned this pull request Jul 5, 2021
8 tasks
@chapulina chapulina removed the needs upstream release Blocked by a release of an upstream library label Jul 10, 2021
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/google-summer-of-code-2021-new-gui-widgets-in-ignition-gazebo/1081/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress GUI Gazebo's graphical interface (not pure Ignition GUI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants