-
Notifications
You must be signed in to change notification settings - Fork 76
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
Hard coded loop rate #23
Comments
Seems like a pretty good point. I personally haven't hit that limit yet. @graiola , haven't you guys ran stuff on Meka at 1KHz? Perhaps you didn't use this class? |
I have not found any user on GitHub for this class, only file copies. However, I don't see any reason why the loop rate should be hard-coded. |
Just wondering bc I just stumbled upon this class and was a bit surprised to see, what looks to me, a wrapper around |
it uses |
Ah ok that was what I didn't know, thanks for the explanation. Based on the source code chunk here,
it looks like we are probably ok as long as |
If I remember correctly
|
I closed it by mistake, sorry. |
Thanks so much this is really good info, and sorry for sidetracking things from the issue's real purpose. If you all are interested I can make a PR to add that loop rate as an arg with default value of 750. |
This is something that could potentially be in packages typically not
released to the public. This could explain why it is hard to find usage of
this. Still... I think adding that param can't hurt.
…On Nov 17, 2017 13:55, "jlack1987" ***@***.***> wrote:
Thanks so much this is really good info, and sorry for sidetracking things
from the issue's real purpose. If you all are interested I can make a PR to
add that loop rate as an arg with default value of 750.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADXH4afjcMfQPCSmOcEBSyhI99cIZIISks5s3ZBpgaJpZM4QhRCg>
.
|
Hi folks. I see the 750Hz hard-coded value is still here. |
Happy to review a PR to add that loop rate as an arg with default value of 750. |
- ros_control expects the actual time difference - Did not use the actually measured time in safety checks and vel. calculation yet - ros::Time::now() is not realtime safe. However realtime_tools' clock limited to 750Hz right now: ros-controls/realtime_tools#23
Forgive my ignorance if my issue is interpreting the code incorrectly as i'm pretty new to realtime_tools. In this line the loop rate is hard coded to 750Hz. To me this means that if you're running at loop rates greater than 750Hz then you should probably not use this clock tool correct? It seems it would be very easy to make this a configurable argument perhaps with a default rate of 750Hz to not break backwards compatibility.
Additionally i'm a bit confused about the realtime clock implementation here. I'm unable to find anywhere in any documentation here or otherwise that
ros::Time::now()
is not a real time safe call to make. If it's not safe, then I do see the use of this except the return ofgetSystemTime
is aros::Time
object that, to get time I would still need to call::now()
.Sorry for the questions, but I'm working on a hard real time system so i'm very interested in making sure my method of getting time is a real time safe call. Thanks!
The text was updated successfully, but these errors were encountered: