Launching with parameters (was "How to block until a master is running")
I have a script that wraps rosbag play
(because I need to set some rosparams first). However, if I run my script before my master finishes coming up, my calls to rosparam set
fail, and my parameters don't get set (the call to play
blocks until the master is up).
Is there a convenient way to block until a master comes up? I could write a miniature node that does it, but I thought I'd ask.
Another possibility: arguably, this is a bug in rosparam
; it should either (a) block until it has a master or (b) at least provide a non-zero return code when it dies with "Unable to communicate with master", so I can spinblock it myself.
Thoughts?