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

Fix guirunner timing #1073

Merged
merged 1 commit into from
Sep 30, 2021
Merged

Fix guirunner timing #1073

merged 1 commit into from
Sep 30, 2021

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented Sep 29, 2021

🦟 Bug fix

Summary

The GuiRunner fails to get entities spawned from the GazeboFactory plugin, in ign-launch, when simulation is started in the running state.

This issue was found when porting SubT to Fortress. The following subt launch command will cause the GUI to miss robot creation:

ign launch -v 4 cloudsim_sim.ign worldName:=simple_ca_01 circuit:=cave robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1

Here is what's happening under the hood:

  1. Factory message is received by the gazebo server.
  2. The GuiRunner get the initial state and then subscribes to state topic.
  3. The ECM creates the new robot.
  4. The GuiRunner's subscription is connected (missing the robot creation event).

Checklist

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

@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Sep 29, 2021
@nkoenig nkoenig changed the base branch from ign-gazebo5 to main September 29, 2021 20:23
@nkoenig nkoenig changed the title ix guirunner timing Fix guirunner timing Sep 29, 2021
@chapulina chapulina added beta Targeting beta release of upcoming collection bug Something isn't working 🏯 fortress Ignition Fortress and removed 🏢 edifice Ignition Edifice labels Sep 29, 2021
@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #1073 (a87778e) into main (aff31b5) will decrease coverage by 0.02%.
The diff coverage is 72.00%.

❗ Current head a87778e differs from pull request most recent head 56a74bf. Consider uploading reports for the commit 56a74bf to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1073      +/-   ##
==========================================
- Coverage   64.07%   64.05%   -0.03%     
==========================================
  Files         255      255              
  Lines       19958    19967       +9     
==========================================
+ Hits        12789    12790       +1     
- Misses       7169     7177       +8     
Impacted Files Coverage Δ
src/SdfEntityCreator.cc 83.83% <0.00%> (-0.21%) ⬇️
src/systems/physics/Physics.cc 70.82% <0.00%> (-0.13%) ⬇️
src/gui/GuiRunner.cc 81.33% <76.92%> (-4.59%) ⬇️
src/SdfGenerator.cc 94.87% <100.00%> (+0.06%) ⬆️
src/EntityComponentManager.cc 85.34% <0.00%> (-0.14%) ⬇️

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 d6fbc26...56a74bf. Read the comment docs.

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
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.

👍

@chapulina chapulina merged commit 5f2d974 into main Sep 30, 2021
@chapulina chapulina deleted the fix_guirunner_timing branch September 30, 2021 22:42
WilliamLewww pushed a commit to WilliamLewww/ign-gazebo that referenced this pull request Dec 7, 2021
…1073)

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

Co-authored-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
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 bug Something isn't working 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants