33 int main(
int argc,
char **argv)
41 for(
int i=1;i<argc;++i)
43 if(strcmp(argv[i],
"--params") == 0)
46 for(rtabmap::ParametersMap::iterator iter=parametersOdom.begin(); iter!=parametersOdom.end(); ++iter)
48 std::string str =
"Param: " + iter->first +
" = \"" + iter->second +
"\"";
51 std::setw(60 - str.size()) <<
57 ROS_WARN(
"Node will now exit after showing default odometry parameters because " 58 "argument \"--params\" is detected!");
61 else if(strcmp(argv[i],
"--udebug") == 0)
65 else if(strcmp(argv[i],
"--uinfo") == 0)
69 nargv.push_back(argv[i]);
75 nodelet.
load(nodelet_name,
"rtabmap_ros/icp_odometry", remap, nargv);
static std::string getDescription(const std::string ¶mKey)
bool load(const std::string &name, const std::string &type, const M_string &remappings, const V_string &my_argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
std::map< std::string, std::string > ParametersMap
ROSCPP_DECL const std::string & getName()
static ParametersMap getDefaultOdometryParameters(bool stereo=false, bool vis=true, bool icp=false)
static void setLevel(ULogger::Level level)
ROSCPP_DECL void spin(Spinner &spinner)
ROSCPP_DECL const M_string & getRemappings()
ROSCPP_DECL std::string remap(const std::string &name)
static void setType(Type type, const std::string &fileName=kDefaultLogFileName, bool append=true)
std::vector< std::string > V_string
int main(int argc, char **argv)
std::map< std::string, std::string > M_string