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 pybindings for VolumetricGridLookupField #657

Open
wants to merge 4 commits into
base: gz-math8
Choose a base branch
from

Conversation

gokulp01
Copy link

@gokulp01 gokulp01 commented Jan 7, 2025

🎉 New feature

Closes #477

Summary

This pull request adds Python bindings for VolumetricGridLookupField, enabling its usage in Python.

Changes:

  1. Updated CMakeLists.txt to build the new Python bindings
  2. Added InterpolationPoint pybindings, which are dependencies for VolumetricGridLookupField
  3. Added the main pybindings for VolumetricGridLookupField
  4. Included tests to validate the functionality of the Python bindings

Details:

  • Updated Files:
    • src/python_pybind11/CMakeLists.txt: Modified to include new files in the build
    • src/python_pybind11/src/_gz_math_pybind11.cc: Updated to include headers for the bindings
  • New Files:
    • src/python_pybind11/src/InterpolationPoint.cc and .hh: Provide pybindings for InterpolationPoint
    • src/python_pybind11/src/VolumetricGridLookupField.cc and .hh: Implement pybindings for VolumetricGridLookupField
    • src/python_pybind11/test/VolumetricGridLookupField_TEST.py: Test file for validating the functionality

Test it

Build the project and test the bindings with

python3 src/python_pybind11/test/VolumetricGridLookupField_TEST.py

Expected Result:

  • All tests should pass.
  • The VolumetricGridLookupField bindings should function correctly in Python.

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.

@github-actions github-actions bot added 🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty
Projects
Status: Inbox
Development

Successfully merging this pull request may close these issues.

Add Python Bindings for VolumetricGridLookupField
1 participant