First time here? Check out the FAQ!
answered 2011-04-06 03:43:30 -0500
You can find this on the API, you can specify a time-out as follow:
waitForMessage (const std::string &topic, ros::Duration timeout)