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

Switch pr2_etherCAT from doubles to ros::Time/ros::Duration (ros ticket #4995) #212

Open
ahendrix opened this issue Mar 12, 2013 · 0 comments

Comments

@ahendrix
Copy link
Member

Use ros::Time ros::Duration values in pr2_etherCAT instead of doubles or {{{struct timespec}}}.

The problem with floating point values is they will loose precision as the seconds values returned by clock_getime increases.

Even though {{{struct timespec}}} stores sec and nsec values link ros::Time Using timespec values encourages poorly written implementation of durations :
{{{
(before.tv_sec + before.tv_nsec/NSEC_PER_SECOND) - (tick.tv_sec + tick.tv_nsec/NSEC_PER_SECOND)
}}}

trac data:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant