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

Remove actors from screen when they are supposed to #1697

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

arjo129
Copy link
Contributor

@arjo129 arjo129 commented Sep 12, 2022

🦟 Bug fix

Fixes #

Summary

Found that when actors are De-spawned the actor visuals are not destroyed. This commit addresses this bug by adding the missing remove logic in RenderUtils.

Before

bug

After

no_bug

Notes:

Theres a lot of hashmaps being populated in RenderUtils whenever a new actor is spawned. I hope I've caught them all.
Also while I need these working in garden (as all the projects Im working on use garden), should I backport these changes?

Checklist

  • Signed all commits for DCO
  • Added tests
  • 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.

Found that when actors are De-spawned the actor visuals are not destroyed. This commit addresses this bug by adding the missing remove logic in RenderUtils.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Sep 12, 2022
@osrf-triage osrf-triage added this to Inbox in Core development Sep 12, 2022
@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

❗ No coverage uploaded for pull request base (gz-sim7@2f10426). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             gz-sim7    #1697   +/-   ##
==========================================
  Coverage           ?   63.88%           
==========================================
  Files              ?      334           
  Lines              ?    26346           
  Branches           ?        0           
==========================================
  Hits               ?    16831           
  Misses             ?     9515           
  Partials           ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Core development automation moved this from Inbox to In review Sep 12, 2022
@mjcarroll
Copy link
Contributor

should I backport these changes?

Can you go ahead and target this to the earlier version and we can get it on a forward port?

arjo129 added a commit that referenced this pull request Sep 14, 2022
# 🦟 Bug fix

Supercedes #1697.  Note: When forward porting we will have to update the hashmaps to erase the new hashmaps created.

Fixes #<NUMBER>

## Summary
Found that when actors are De-spawned the actor visuals are not destroyed. This commit addresses this bug by adding the missing remove logic in RenderUtils.

## Before
![bug](https://user-images.githubusercontent.com/542272/189558600-196d98c5-1dcf-4d6c-93d6-7493df38c0e4.gif)

## After
![no_bug](https://user-images.githubusercontent.com/542272/189558924-3f2e3c5d-68f3-4d80-aee4-3dc3ce6742a1.gif)

## Notes:
Theres a lot of hashmaps being populated in RenderUtils whenever a new actor is spawned. I hope I've caught them all. 
Also while I need these working in garden (as all the projects Im working on use garden), should I backport these changes?

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@ahcorde ahcorde merged commit 3592c20 into gz-sim7 Oct 4, 2022
Core development automation moved this from In review to Done Oct 4, 2022
@ahcorde ahcorde deleted the arjo/fix/remove_actors- branch October 4, 2022 07:14
@azeey azeey moved this from Done to Highlights in Core development Oct 10, 2022
nkoenig added a commit that referenced this pull request Nov 3, 2022
* 🎈 3.14.0~pre1 (#1650)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* Remove redundant namespace references (#1635)

Signed-off-by: methylDragon <methylDragon@gmail.com>

* 🎈 3.14.0 (#1657)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* readd namespaces for Q_ARGS (#1670)

* Remove actors from screen when they are supposed to (#1699)

# 🦟 Bug fix

Supercedes #1697.  Note: When forward porting we will have to update the hashmaps to erase the new hashmaps created.

Fixes #<NUMBER>

## Summary
Found that when actors are De-spawned the actor visuals are not destroyed. This commit addresses this bug by adding the missing remove logic in RenderUtils.

## Before
![bug](https://user-images.githubusercontent.com/542272/189558600-196d98c5-1dcf-4d6c-93d6-7493df38c0e4.gif)

## After
![no_bug](https://user-images.githubusercontent.com/542272/189558924-3f2e3c5d-68f3-4d80-aee4-3dc3ce6742a1.gif)

## Notes:
Theres a lot of hashmaps being populated in RenderUtils whenever a new actor is spawned. I hope I've caught them all. 
Also while I need these working in garden (as all the projects Im working on use garden), should I backport these changes?

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

* Update examples to use gazebosim.org

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Citadel: Removed warnings (#1753)

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added collection name to About Dialog (#1756)

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Convert ignitionrobotics to gazebosim in tests directory (#1757)

* Convert ignitionrobotics to gaazebosim in tests directory

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* fix gz-gazebo

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Nate Koenig <nate@openrobotics.org>

* Convert ignitionrobotics to gazebosim in sources and includes (#1758)

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Nate Koenig <nate@openrobotics.org>

* Convert ignitionrobotics to gazebosim in tutorials (#1759)

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Nate Koenig <nate@openrobotics.org>

* Final update of ignitionrobotics to gazebosim for citadel (#1760)

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Nate Koenig <nate@openrobotics.org>

* remove PlotIcon (#1658)

Signed-off-by: youhy <haoyuan2019@outlook.com>

Signed-off-by: youhy <haoyuan2019@outlook.com>

* Fix UNIT_ign_TEST

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: youhy <haoyuan2019@outlook.com>
Co-authored-by: Louise Poubel <louise@openrobotics.org>
Co-authored-by: methylDragon <methylDragon@gmail.com>
Co-authored-by: Jenn Nguyen <jenn@openrobotics.org>
Co-authored-by: Arjo Chakravarty <arjo@openrobotics.org>
Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: AzulRadio <50132891+AzulRadio@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants