19 #include "../../include/cost_map_ros/utilities.hpp" 25 int main(
int argc,
char **argv) {
30 "Where to publish [default: ~cost_map]",
35 "image_bundle_location",
36 "A yaml file with meta-data about the costmap to be built",
38 "cost_map_ros/example",
39 "string (package/name OR yaml filename)");
40 cmd.
add(topicNameArg);
41 cmd.
add(imageBundleArg);
42 std::vector<std::string> myargs;
44 char** myargv =
new char*[myargs.size()];
45 for(
int i = 0, ie = myargs.size(); i < ie; ++i)
47 myargv[i] =
const_cast<char*
>(myargs[i].data());
49 cmd.
parse(myargs.size(), myargv);
65 }
catch (
const std::exception& e) {
66 std::cout << ecl::red <<
"[ERROR] " << e.what() << ecl::reset << std::endl;
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
Helper for loading and publishing image bundles.
ROSCPP_DECL void removeROSArgs(int argc, const char *const *argv, V_string &args_out)
void parse(int argc, char **argv)