20 #include "../../include/cost_map_ros/utilities.hpp" 26 int main(
int argc,
char **argv) {
30 "Topic name to listen to for costmaps (e.g. /image_bundle/cost_map)",
32 "/image_bundle/cost_map",
36 "Filename of the bundle's meta yaml file.",
40 cmd.
add(topicNameArg);
43 std::vector<std::string> myargs;
45 char** myargv =
new char*[myargs.size()];
46 for(
int i = 0, ie = myargs.size(); i < ie; ++i)
48 myargv[i] =
const_cast<char*
>(myargs[i].data());
50 cmd.
parse(myargs.size(), myargv);
52 ros::init(argc, argv,
"save_image_bundle");
67 if ( dumper.finished ) {
74 }
catch (
const std::exception& e) {
75 std::cout << ecl::red <<
"[ERROR] " << e.what() << ecl::reset << std::endl;
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
#define ROS_WARN_STREAM_DELAYED_THROTTLE(rate, args)
Helper for saving an image bundle from a cost map topic.
ROSCPP_DECL void removeROSArgs(int argc, const char *const *argv, V_string &args_out)
void parse(int argc, char **argv)
ROSCPP_DECL void spinOnce()