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

Only return statistics if they have been calculated. #81

Merged
merged 2 commits into from
Aug 27, 2019

Conversation

clalancette
Copy link
Contributor

It is possible to call rttest_get_statistics() before any
statistics have been collected, accumulated, or calculated.
In that case, return a -1 from rttest_get_statistics() indicate
to the caller that the data is not yet available.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

It is possible to call rttest_get_statistics() *before* any
statistics have been collected, accumulated, or calculated.
In that case, return a -1 from rttest_get_statistics() indicate
to the caller that the data is not yet available.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

CI is in ros2/demos#385 (comment)

The regex that we use over in demos to test some of this
stuff out only handles floating-point numbers, not scientific
notation.  The mean latency, in particular, can grow into
a value large enough that it will get put into scientific
notation by default.  This fixes this output to be fixed
so the regex will always be able to find it.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

I'm going to merge this one, since it improves things. We'll need the changes from ros2/demos#385 to really fix these tests, but we are still iterating there.

@clalancette clalancette merged commit aef9318 into master Aug 27, 2019
@clalancette clalancette deleted the pendulum-fixes branch August 27, 2019 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants