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 Helpers Python interface #251

Merged
merged 6 commits into from
Oct 11, 2021
Merged

Add Helpers Python interface #251

merged 6 commits into from
Oct 11, 2021

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Sep 24, 2021

Signed-off-by: ahcorde ahcorde@gmail.com

🎉 New feature

Summary

Added Helper Python interface. I made some tricks to make it work which are explained in the Helpers.i

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

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this Sep 24, 2021
@ahcorde ahcorde requested a review from scpeters as a code owner September 24, 2021 13:54
@github-actions github-actions bot added Gazebo 1️1️ Dependency of Gazebo classic version 11 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome labels Sep 24, 2021
@codecov
Copy link

codecov bot commented Sep 24, 2021

Codecov Report

Merging #251 (6296f79) into ign-math6 (564c52e) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           ign-math6     #251   +/-   ##
==========================================
  Coverage      99.41%   99.41%           
==========================================
  Files             67       67           
  Lines           6351     6374   +23     
==========================================
+ Hits            6314     6337   +23     
  Misses            37       37           
Impacted Files Coverage Δ
include/ignition/math/Helpers.hh 98.64% <0.00%> (+0.15%) ⬆️

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 564c52e...6296f79. Read the comment docs.

@chapulina chapulina added the scripting Scripting interfaces to Ignition label Sep 24, 2021
@ahcorde
Copy link
Contributor Author

ahcorde commented Oct 8, 2021

friendly ping @scpeters

src/python/Helpers.i Outdated Show resolved Hide resolved
src/python/Helpers.i Outdated Show resolved Hide resolved
src/python/Helpers_TEST.py Outdated Show resolved Hide resolved
# Test Helpers::fixnan functions
def test_fix_nan(self):
self.assertEqual(fixnan(42.0), 42.0)
self.assertEqual(fixnan(-42.0), -42.0)
Copy link
Member

Choose a reason for hiding this comment

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

is there a way to pass nan values in python? there are a few lines in the c++ test that aren't included here

src/python/Helpers_TEST.py Outdated Show resolved Hide resolved
src/python/Helpers_TEST.py Outdated Show resolved Hide resolved
scpeters and others added 2 commits October 8, 2021 18:41
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@scpeters scpeters merged commit 35455f7 into ign-math6 Oct 11, 2021
@scpeters scpeters deleted the ahcorde/python/helpers branch October 11, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel 🔮 dome Ignition Dome 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress Gazebo 1️1️ Dependency of Gazebo classic version 11 scripting Scripting interfaces to Ignition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants