38 int main(
int argc,
char **argv)
44 const int ROS_RESPONSE_TIME_MS = 100;
45 const float TRY_CONNECT_EVERY_S = 1.0;
46 const float WARN_EVERY_S = 10.0;
49 priv_nh.
getParam(
"lcm_url", lcm_url);
50 if (lcm_url.empty()) {
51 lcm_url =
"udpm://225.0.0.0:7667?ttl=1";
57 lcm =
new lcm::LCM(lcm_url);
66 ROS_INFO(
"LCM connected to %s", lcm_url.c_str());
77 lcm->handleTimeout(ROS_RESPONSE_TIME_MS);
#define ROS_WARN_THROTTLE(rate,...)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool getParam(const std::string &key, std::string &s) const
int main(int argc, char **argv)