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

Added VisualizationCapabilities plugin #988

Merged
merged 17 commits into from
Sep 14, 2021

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Aug 20, 2021

🎉 New feature

Closes #

Summary

This plugin add visualization capabilities such us: wireframes, inertia, COM and transparent to the minimalScene approach.

Note: right click in the scene3D is not working (yet).

Test it

ign gazebo -v 4 -r minimal_scene.sdf

visualizationcapabilities

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

@ahcorde ahcorde requested a review from chapulina as a code owner August 20, 2021 17:33
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Aug 20, 2021
@codecov
Copy link

codecov bot commented Aug 23, 2021

Codecov Report

Merging #988 (616551e) into main (f0e235b) will decrease coverage by 0.04%.
The diff coverage is n/a.

❗ Current head 616551e differs from pull request most recent head 74b647e. Consider uploading reports for the commit 74b647e to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #988      +/-   ##
==========================================
- Coverage   63.28%   63.23%   -0.05%     
==========================================
  Files         238      238              
  Lines       19423    19423              
==========================================
- Hits        12292    12283       -9     
- Misses       7131     7140       +9     
Impacted Files Coverage Δ
...int_position_controller/JointPositionController.cc 53.14% <0.00%> (-7.43%) ⬇️
src/systems/physics/Physics.cc 70.57% <0.00%> (+0.27%) ⬆️
src/systems/physics/EntityFeatureMap.hh 95.23% <0.00%> (+1.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b965575...74b647e. Read the comment docs.

Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

I tried to view collisions for a double pendulum and it crashed with:

[GUI] [Err] [VisualizationCapabilities.cc:1005] Entity with Id: [12] already exists in the scene 
backtrace

/home/chapulina/dev_bionic/ws_fortress/install/lib/ign-gazebo-6/plugins/gui/libVisualizationCapabilities.so(_ZN8ignition6gazebo32Visualizati
onCapabilitiesPrivate8OnRenderEv+0x111c) [0x7fdd46038c4c] /usr/include/c++/8/bits/shared_ptr_base.h:1019
/home/chapulina/dev_bionic/ws_fortress/install/lib/ign-gazebo-6/plugins/gui/libVisualizationCapabilities.so(_ZN8ignition6gazebo25Visualizati
onCapabilities11eventFilterEP7QObjectP6QEvent+0x32) [0x7fdd46039262] /home/chapulina/dev_bionic/ws_fortress/src/ign-gazebo/src/gui/plugins/v
isualization_capabilities/VisualizationCapabilities.cc:1973
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x7c) [0x7fdd85bd45b
c]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x75) [0x7fdd84a2c815]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2a4) [0x7fdd84a34104]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x118) [0x7fdd85bd48d8]
/home/chapulina/dev_bionic/ws_fortress/install/lib/ign-gui-6/plugins/libMinimalScene.so(_ZN8ignition3gui7plugins11IgnRenderer6RenderEv+0x140
) [0x7fdd683a8500] /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:233
/home/chapulina/dev_bionic/ws_fortress/install/lib/ign-gui-6/plugins/libMinimalScene.so(_ZN8ignition3gui7plugins12RenderThread10RenderNextEv
+0x48) [0x7fdd683a8e68] /home/chapulina/dev_bionic/ws_fortress/src/ign-gui/src/plugins/minimal_scene/MinimalScene.cc:419
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0xe2) [0x7fdd85c040c2]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c) [0x7fdd84a2c83c]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2a4) [0x7fdd84a34104]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x118) [0x7fdd85bd48d8]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ed) [0x7fdd85bd704d]

Signed-off-by: ahcorde <[email protected]>
@ahcorde ahcorde self-assigned this Sep 13, 2021
@ahcorde
Copy link
Contributor Author

ahcorde commented Sep 13, 2021

I tried to view collisions for a double pendulum and it crashed with:

Fixed here 72cba8f

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

It's working for me! I think we just need to add joint visualization (#961)

CC @atharva-18

@ahcorde
Copy link
Contributor Author

ahcorde commented Sep 14, 2021

cpplint is failing but it fixed here #1025

Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

It works!

@chapulina
Copy link
Contributor

CI is broken for other reasons, let's get this in

@chapulina chapulina merged commit b766bb8 into main Sep 14, 2021
@chapulina chapulina deleted the ahcorde/plugin/VisualizationCapabilities branch September 14, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants