Skip to content

Conversation

@LoreMoretti
Copy link
Contributor

@LoreMoretti LoreMoretti commented Oct 4, 2024

This class manages the creation and execution of periodic threads.

User can define the tasks for their periodic thread just by inheriting from this class and overriding the threadInit and run function.

Indeed, this PR also changes the YarpLoggerDevice, which now inherits from BipedalLocomotion::System::PeriodicThread rather than yarp::os::PeriodicThread.

@LoreMoretti LoreMoretti changed the title Add Periodic Thread class Add Periodic Thread class and reduce YarpLoggerDevice latency Oct 8, 2024
@LoreMoretti
Copy link
Contributor Author

Also BipedalLocomotion::System::AdvanceableRunner could inherit from BipedalLocomotion::System::PeriodicThread. But, I think it is better to eventually implement it in a separate PR.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant