upkie  11.0.0
Open-source wheeled biped robots

◆ cycle()

virtual void cycle ( std::function< void(const moteus::Output &)>  callback)
pure virtual

Spin a new communication cycle.

Parameters
callbackFunction to call when the cycle is over.

The callback will be invoked from an arbitrary thread when the communication cycle has completed. All memory pointed to by data must remain valid until the callback is invoked.

Implemented in Pi3HatInterface, MockInterface, and BulletInterface.