31 int main(
int argc,
char *argv[])
33 ros::init(argc, argv,
"clock_relay_node");
37 std::string parameter_namespace;
38 if (private_nh.
getParam(
"parameter_namespace", parameter_namespace))
46 ROS_FATAL(
"Must provide either 'from' and 'to' namespace parameters");
52 ROS_FATAL(
"'from' and 'to' namespaces must not be equal");
58 std::string clock_relay_type;
59 if (!private_nh.
getParam(
"clock_relay_type", clock_relay_type))
65 double throttle_frequency = 0.0;
67 if (private_nh.
searchParam(
"throttle_frequency", key))
70 private_nh.
getParam(key, throttle_frequency);
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
int main(int argc, char *argv[])
#define ROS_FATAL_STREAM(args)
bool searchParam(const std::string &key, std::string &result) const
bool getParam(const std::string &key, std::string &s) const