|
bipedal locomotion framework
A suite of libraries for achieving bipedal locomotion on humanoid robots
|
RosClock implements the IClock interface using ros functions. More...
#include <System/RosImplementation/include/BipedalLocomotion/System/RosClock.h>
Public Member Functions | |
| std::chrono::nanoseconds | now () final |
| Get ROS current time. More... | |
| void | sleepFor (const std::chrono::nanoseconds &sleepDuration) final |
| Blocks the execution of the current thread for at least the specified sleepDuration. More... | |
| void | sleepUntil (const std::chrono::nanoseconds &sleepTime) final |
| Blocks the execution of the current thread until specified sleepTime has been reached. More... | |
| void | yield () final |
| Provides a hint to the implementation to reschedule the execution of threads, allowing other threads to run. | |
Public Member Functions inherited from BipedalLocomotion::System::IClock | |
| virtual | ~IClock ()=default |
| Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from BipedalLocomotion::System::IClock | |
| IClock ()=default | |
| The constructor is protected. More... | |
RosClock implements the IClock interface using ros functions.
The clock can be easily used as follows
|
finalvirtual |
Get ROS current time.
rclcpp::Clock::now() BipedalLocomotion::clock().now().count() returns a double containing the seconds since epoch. Implements BipedalLocomotion::System::IClock.
|
finalvirtual |
Blocks the execution of the current thread for at least the specified sleepDuration.
| time | duration to sleep |
Implements BipedalLocomotion::System::IClock.
|
finalvirtual |
Blocks the execution of the current thread until specified sleepTime has been reached.
| time | to block until |
Implements BipedalLocomotion::System::IClock.