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

Is it possible to implement event-driven control within the ROS 2 Control framework? #1578

Open
lkx8421 opened this issue Jun 18, 2024 · 2 comments

Comments

@lkx8421
Copy link

lkx8421 commented Jun 18, 2024

I am currently facing a problem with my feedback control system: the feedback sensor data is obtained through subscribing to topics and is assigned to the hardware interface. When I launch the control, there is a slight delay between the actual control computation start and the sensor timestamp (the control frequency is 500 Hz, which means the control computation may start 0-2ms later than the sensor timestamp). Here is the topic timestamp and control start timestamp.
图片

图片

Have you ever encountered a similar problem? If so, how did you solve it? Looking forward to your reply!

@christophfroehlich
Copy link
Contributor

christophfroehlich commented Jun 19, 2024

Can you give more details about the signal paths? You have written a custom hardware component, which is subscribing to topics and publishing them again?

@lkx8421
Copy link
Author

lkx8421 commented Jun 20, 2024

Thank you for your reply. Indeed, I assigned values to the hardware component by subscribing to the motors information. These signals are for displaying the information of the three groups of sensors I subscribed to and the timestamp at the start of control (the blue straight line). I can't specify that the control starts to be executed immediately after the three topics are actually received, it is executed after an uncertain period of delay.

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

No branches or pull requests

2 participants