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

Add WorldControlState msg type #190

Merged
merged 5 commits into from
Nov 2, 2021
Merged

Add WorldControlState msg type #190

merged 5 commits into from
Nov 2, 2021

Conversation

adlarkin
Copy link
Contributor

@adlarkin adlarkin commented Oct 14, 2021

Signed-off-by: Ashton Larkin [email protected]

🎉 New feature

Part of gazebosim/gz-sim#1106

Summary

As discussed in gazebosim/design#8 (comment), if the GUI's ECM is updated while simulation is paused, the GUI should share any ECM updates that occurred with the server when simulation is resumed. This PR creates a WorldControlState message to accomplish this. This message type contains both WorldControl and a SerializedState (the SerializedState can be used to contain ECM information, and WorldControl is used for the same purpose - play/pause/step).

Test it

This message can be tested with gazebosim/gz-sim#1109.

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

@github-actions github-actions bot added 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress labels Oct 14, 2021
@adlarkin adlarkin marked this pull request as ready for review October 14, 2021 18:54
@codecov
Copy link

codecov bot commented Oct 14, 2021

Codecov Report

Merging #190 (4c8057b) into ign-msgs8 (5415083) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           ign-msgs8     #190   +/-   ##
==========================================
  Coverage      84.56%   84.56%           
==========================================
  Files              7        7           
  Lines            855      855           
==========================================
  Hits             723      723           
  Misses           132      132           

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 5415083...4c8057b. Read the comment docs.

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.

This looks ok to me as is, but I'd like the full implementation to be complete and iterated on before merging. This is targeting a release branch, so once it's merged / released, we can't change it.

Leaving a "request changes" to signify this.

proto/ignition/msgs/world_control_state.proto Show resolved Hide resolved
Copy link
Contributor

@nkoenig nkoenig left a comment

Choose a reason for hiding this comment

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

Minor documentation comments.

proto/ignition/msgs/world_control_state.proto Show resolved Hide resolved
proto/ignition/msgs/world_control_state.proto Outdated Show resolved Hide resolved
@nkoenig
Copy link
Contributor

nkoenig commented Oct 18, 2021

Targeting fortress is fine for the subt work.

Signed-off-by: Ashton Larkin <[email protected]>
@adlarkin
Copy link
Contributor Author

All review feedback has been addressed. As mentioned previously, if this goes into Fortress, the message types can't be changed once they're merged. So, I will hold off on merging this until gazebosim/gz-gui#306 and gazebosim/gz-sim#1109 are finalized.

@adlarkin adlarkin changed the title add serialized_state_v and world_control_state msg types Add WorldControlState msg type Oct 29, 2021
@adlarkin
Copy link
Contributor Author

Following the discussion I had with @nkoenig in gazebosim/gz-sim#1109 (comment), I've updated this PR to only create a WorldControlState msg type. We do not need the SerializedState_V msg type for achieving gazebosim/gz-sim#1106.

@nkoenig
Copy link
Contributor

nkoenig commented Nov 2, 2021

I've tested this with gazebosim/gz-gui#306 and it seems to work well. I'll merge and get a release out the door so that we can move forward with downstream PRs.

@nkoenig nkoenig dismissed chapulina’s stale review November 2, 2021 14:59

Tested with downstream PRs.

@nkoenig nkoenig merged commit 16fb823 into ign-msgs8 Nov 2, 2021
@nkoenig nkoenig deleted the adlarkin/ecm_sync_msgs branch November 2, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress 🌱 garden Ignition Garden
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants