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 Plane Python interface #941

Merged
merged 10 commits into from
Apr 14, 2022
Merged

Added Plane Python interface #941

merged 10 commits into from
Apr 14, 2022

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Apr 6, 2022

Signed-off-by: ahcorde [email protected]

🎉 New feature

This PR is part of this meta ticket #931

Summary

Added Plane Python interface

Test it

from sdformat import Plane

plane = Plane()

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 and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@ahcorde ahcorde added the scripting Scripting interfaces to Ignition label Apr 6, 2022
@ahcorde ahcorde requested review from azeey and scpeters as code owners April 6, 2022 13:39
@ahcorde ahcorde self-assigned this Apr 6, 2022
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Apr 6, 2022
@codecov-commenter
Copy link

codecov-commenter commented Apr 6, 2022

Codecov Report

Merging #941 (42335fa) into main (66c1609) will decrease coverage by 0.00%.
The diff coverage is 73.91%.

@@            Coverage Diff             @@
##             main     #941      +/-   ##
==========================================
- Coverage   87.99%   87.98%   -0.01%     
==========================================
  Files         106      107       +1     
  Lines       14826    14849      +23     
==========================================
+ Hits        13046    13065      +19     
- Misses       1780     1784       +4     
Impacted Files Coverage Δ
python/src/sdf/pyPlane.cc 72.72% <72.72%> (ø)
python/src/sdf/_ignition_sdformat_pybind11.cc 100.00% <100.00%> (ø)
src/Plane.cc 96.00% <0.00%> (+4.00%) ⬆️

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 66c1609...42335fa. Read the comment docs.

@ahcorde
Copy link
Collaborator Author

ahcorde commented Apr 7, 2022

@osrf-jenkins retest this please

@ahcorde
Copy link
Collaborator Author

ahcorde commented Apr 7, 2022

@osrf-jenkins retest this please

Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

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

I will apply this change

"for a Visual or Collision object, then the normal is specified in "
"the Visual or Collision frame, respectively.")
.def("set_normal", &sdf::Plane::SetNormal,
"Set the plane normal vector. The _normal vector will be "
Copy link
Member

Choose a reason for hiding this comment

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

nit: _normal -> normal here and in Plane.hh`

Copy link
Member

Choose a reason for hiding this comment

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

@scpeters scpeters enabled auto-merge (squash) April 14, 2022 21:01
@scpeters scpeters merged commit 1d55980 into main Apr 14, 2022
@scpeters scpeters deleted the ahcorde/python/plane branch April 14, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden mujoco scripting Scripting interfaces to Ignition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants