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
Bug Fix rate inverting duration #26
Conversation
Thank you for making the pull request. Could you please also add a simple unit test covering this case? This needs to be backported into all current ROS distros. |
Yes I am quite surprised that it went unnoticed for all that time. |
No, for backporting I will just cherry-pick the commit once it has been released to the latest distro and has no regression. Thanks for working on the unittest |
Please squash your commits into a single one. |
I did squash them (see the second commit attached to this report). |
The PR contains two commits. Please run |
When constructing a Rate object with a duration as argument, it is the expected period duration, not a frequency.
ok, the github web interface was tricking me, sorry. |
Have you tried to compile the code? I get:
|
No... see my comment above. |
Thanks - manually merged in 9198a8c. |
Is it possible to get this backported to Hydro? I'm running into it while trying to initialize a rate from an interval. It looks like this hasn't caused any regressions in Indigo. |
Sounds viable to me. I will put it on "the list' for the next Hydro patch release round. |
Backported to Hydro: 0.4.4 |
When constructing a Rate object with a duration as argument, it is the expected period duration, not a frequency.