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

Python interfaces: Added Sensor to Link and Joint #1028

Merged
merged 1 commit into from
May 24, 2022

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented May 24, 2022

🎉 New feature

Summary

Related with this meta-ticket #931

Sensor is merged, we can include sensor methods in Links and Joints

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • 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.

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this May 24, 2022
@github-actions github-actions bot added the 🌱 garden Ignition Garden label May 24, 2022
@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #1028 (9a6df3d) into main (e18a43f) will not change coverage.
The diff coverage is n/a.

❗ Current head 9a6df3d differs from pull request most recent head 33e553d. Consider uploading reports for the commit 33e553d to get more accurate results

@@           Coverage Diff           @@
##             main    #1028   +/-   ##
=======================================
  Coverage   66.66%   66.66%           
=======================================
  Files           2        2           
  Lines          27       27           
=======================================
  Hits           18       18           
  Misses          9        9           

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 e18a43f...33e553d. Read the comment docs.

@ahcorde ahcorde mentioned this pull request May 24, 2022
62 tasks
@@ -97,6 +98,22 @@ void defineJoint(pybind11::object module)
.def("semantic_pose", &sdf::Joint::SemanticPose,
"Get SemanticPose object of this object to aid in resolving "
"poses.")
.def("sensor_count", &sdf::Joint::SensorCount,
"Get the number of sensors.")
.def("sensor_by_index", &sdf::Joint::SensorByIndex,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This made me realize we don't have mutable versions of Joint::SensorByIndex and Joint::SensorByName.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ahcorde ahcorde merged commit cb5e748 into main May 24, 2022
@ahcorde ahcorde deleted the ahcorde/python/sensor_link_joint branch May 24, 2022 15:41
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.

2 participants