28 #include <boost/unordered_set.hpp> 33 int main(
int argc,
char *argv[])
39 std::string parameter_namespace;
40 if (private_nh.
getParam(
"parameter_namespace", parameter_namespace))
48 ROS_FATAL(
"Must provide either 'from' and 'to' namespace parameters");
54 ROS_FATAL(
"'from' and 'to' namespaces must not be equal");
60 std::string tf_prefix, prefix_operation;
61 if (private_nh.
getParam(
"tf_prefix", tf_prefix) && !private_nh.
getParam(
"prefix_operation", prefix_operation))
63 ROS_FATAL_STREAM(
"If tf_prefix is provided, a prefix_operation must be specified");
67 double throttle_frequency = 0.0;
69 if (private_nh.
searchParam(
"throttle_frequency", key))
72 private_nh.
getParam(key, throttle_frequency);
75 std::vector<std::string> global_frames;
76 private_nh.
getParam(
"global_frames", global_frames);
79 tf_prefix, prefix_operation, boost::unordered_set<std::string>(global_frames.begin(), global_frames.end()));
static ConstPtr create(std::string tf_prefix, std::string prefix_operation_string, boost::unordered_set< std::string > global_frame_names=boost::unordered_set< std::string >())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char *argv[])
ROSCPP_DECL void spin(Spinner &spinner)
#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