RosClient.on_ready

RosClient.on_ready(callback, run_in_thread=True)

Add a callback to be executed when the connection is established.

If a connection to ROS is already available, the callback is executed immediately.

Parameters
  • callback – Callable function to be invoked when ROS connection is ready.

  • run_in_thread (bool) – True to run the callback in a separate thread, False otherwise.