Function as2::spinLoop

Function Documentation

void as2::spinLoop(std::shared_ptr<as2::Node> node, std::function<void()> run_function = nullptr)

Executes the main loop of the node.

Parameters:
  • node – node to execute the main loop

  • run_function – function to be executed in the main loop. Node frequency must be higher than 0