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

Update SdfGenerator to save link and sensor data to file #1201

Merged
merged 12 commits into from
Dec 1, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Nov 13, 2021

🎉 New feature

depends on:

Summary

Currently the SdfGenerator only write out models and link poses to SDF file. This PR updates the class to pull more data out from ECM and save them to file. This is needed for saving changes to SDF after models are edited by the model editor

Specifically, these new SDF elements are now being updated when the world is saved:

Test it

  1. Launch ign-gazebo with sensors_demo.sdf or sensors world
  2. Go to the top left hamburger menu and select Save world as...
  3. Set the output file by using the Browse button or manually input the output sdf file path.
  4. Click OK to save
  5. Open and saved SDF world file and verify content.

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

@iche033 iche033 requested a review from chapulina as a code owner November 13, 2021 06:53
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Nov 13, 2021
@iche033 iche033 added the needs upstream release Blocked by a release of an upstream library label Nov 13, 2021
Nate Koenig and others added 2 commits November 15, 2021 12:35
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
@nkoenig nkoenig mentioned this pull request Nov 23, 2021
7 tasks
@nkoenig nkoenig removed the needs upstream release Blocked by a release of an upstream library label Nov 29, 2021
Nate Koenig and others added 3 commits November 30, 2021 08:06
Signed-off-by: Nate Koenig <[email protected]>
* save lights

Signed-off-by: Ian Chen <[email protected]>

* fix doc

Signed-off-by: Ian Chen <[email protected]>

* use updated api

Signed-off-by: Ian Chen <[email protected]>

* Update SdfGenerator to save joint data to file (#1220)

* save joints

Signed-off-by: Ian Chen <[email protected]>

* use joinPaths

Signed-off-by: Ian Chen <[email protected]>

* Only output thread_pitch for screw joints

Signed-off-by: Nate Koenig <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Nate Koenig added 2 commits December 1, 2021 08:47
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
@codecov
Copy link

codecov bot commented Dec 1, 2021

Codecov Report

Merging #1201 (2527423) into ign-gazebo6 (3ae7098) will increase coverage by 0.33%.
The diff coverage is 88.62%.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-gazebo6    #1201      +/-   ##
===============================================
+ Coverage        61.92%   62.25%   +0.33%     
===============================================
  Files              275      275              
  Lines            22457    22710     +253     
===============================================
+ Hits             13906    14138     +232     
- Misses            8551     8572      +21     
Impacted Files Coverage Δ
src/SdfGenerator.cc 90.95% <88.62%> (-3.92%) ⬇️
src/SdfEntityCreator.cc 85.82% <0.00%> (+1.99%) ⬆️

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 3ae7098...2527423. Read the comment docs.

@nkoenig nkoenig merged commit 442fbfd into ign-gazebo6 Dec 1, 2021
@nkoenig nkoenig deleted the update_save_world branch December 1, 2021 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants