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 StopWatch pybind11 interface #319

Merged
merged 3 commits into from
Dec 23, 2021
Merged

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Dec 17, 2021

Signed-off-by: ahcorde [email protected]

🎉 New feature

Summary

This PR creates a StopWatch Pybind11 interface

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 requested a review from scpeters December 17, 2021 12:24
@ahcorde ahcorde self-assigned this Dec 17, 2021
@github-actions github-actions bot added Gazebo 1️1️ Dependency of Gazebo classic version 11 🌱 garden Ignition Garden 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome labels Dec 17, 2021
@codecov
Copy link

codecov bot commented Dec 17, 2021

Codecov Report

Merging #319 (aeefd4c) into ign-math6 (be461ca) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           ign-math6     #319   +/-   ##
==========================================
  Coverage      99.65%   99.65%           
==========================================
  Files             67       67           
  Lines           6360     6360           
==========================================
  Hits            6338     6338           
  Misses            22       22           

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 be461ca...aeefd4c. Read the comment docs.

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

ahcorde commented Dec 23, 2021

@osrf-jenkins retest this please

* \param[in] module a pybind11 module to add the definition to
* \param[in] typestr name of the type used by Python
*/
void defineMathStopwatch(py::module &m, const std::string &typestr);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just some style nits for the future, we don't need to block these PRs for this, we can ticket an issue to come back later and update it all.

Suggested change
void defineMathStopwatch(py::module &m, const std::string &typestr);
/// \brief Define a pybind11 wrapper for an ignition::math::Stopwatch
/// \param[in] _module a pybind11 module to add the definition to
/// \param[in] _typestr name of the type used by Python
void defineMathStopwatch(py::module &_module, const std::string &_typestr);

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina enabled auto-merge (squash) December 23, 2021 21:53
@chapulina chapulina merged commit b0f3685 into ign-math6 Dec 23, 2021
@chapulina chapulina deleted the ahcorde/pybind11/stopwatch branch December 23, 2021 22:23
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1

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 🌱 garden Ignition Garden 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