ros::master::check() block after several calls
Hi,
I have a C++ programm where I want to check if the master is connected before starting the nodeHandle.
I first call ros::init()
with the right arguments and then call :
while(!ros::master::check())
to wait indefinitely until the master is connected.
Unfortunately my program freeze after only a few calls to the check()
function. I also tried to wait a few seconds between each call but that didn't change anything.
Is there a way to fix this ? or to wait for the master to connect with a better method ?