34 #define USAGE "\nUSAGE: octomap_server_multilayer <map.bt>\n" \ 35 " map.bt: inital octomap 3D map file to read\n" 39 int main(
int argc,
char** argv){
40 ros::init(argc, argv,
"octomap_server_multilayer");
41 std::string mapFilename(
"");
43 if (argc > 2 || (argc == 2 && std::string(argv[1]) ==
"-h")){
53 mapFilename = std::string(argv[1]);
55 ROS_ERROR(
"Could not open file %s", mapFilename.c_str());
65 }
catch(std::runtime_error& e){
66 ROS_ERROR(
"octomap_server_multilayer exception: %s", e.what());
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
ROSCPP_DECL void spinOnce()
virtual bool openFile(const std::string &filename)
int main(int argc, char **argv)