Commit 5fae2b32 authored by oscar's avatar oscar

添加ros代码

parent 1bfae737
Pipeline #1077 canceled with stages
#include <ros/ros.h>
static const std::string prj_dir = "/home/cookoo/mapbox_ws/src/mapbox/localization/map/submodules/jfxmap/";
//static const std::string prj_dir = "/home/muyusheng/jika_tmp/src/mapbox/localization/map/submodules/jfxmap/";
static const std::string cfg_dir = "./maps/rav4/mapconfig.json";
int main(int argc, char **argv) {
ros::init(argc, argv, "map");
ros::NodeHandle nodeHandle("~");
static std::string strPrjPath_param;
static std::string strCfgPath_param;
nodeHandle.param("project_path", strPrjPath_param, prj_dir);
nodeHandle.param("config_path", strCfgPath_param, cfg_dir);
std::cout << "prj: " << strPrjPath_param.c_str() << ", cfg: " << strCfgPath_param.c_str() << std::endl;
ros::spin();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment