diff --git a/src/generate_launch.cpp b/src/generate_launch.cpp index 5fccaba2fe845a1485a88f0c1ed38d62efddd6e5..307b16934e08b8a127d9c4f68a9b65d1fd598e65 100644 --- a/src/generate_launch.cpp +++ b/src/generate_launch.cpp @@ -4,7 +4,7 @@ std::string get_full_name(std::string &path,std::string &file_name,const std::string &ext) { - std::size_t slash_index,point_index; + std::size_t slash_index,pose_index; std::string full_name; // add the last slash if missing @@ -12,13 +12,13 @@ std::string get_full_name(std::string &path,std::string &file_name,const std::st if(slash_index!=path.size()-1) path+="/"; // check the file extension - point_index=file_name.find_last_of("."); - if(point_index==std::string::npos)// extension missing + pose_index=file_name.find_last_of("."); + if(pose_index==std::string::npos)// extension missing file_name+="."+ext; else { - point_index=file_name.find_last_of("."+ext); - if(point_index==std::string::npos)// invalid extension + pose_index=file_name.find_last_of("."+ext); + if(pose_index==std::string::npos)// invalid extension throw CException(_HERE_,"Invalid file extension. It must be " + ext); } full_name=path+file_name; @@ -115,7 +115,7 @@ void generate_signals_launch(std::string &path,std::string &signals_file,COpendr { std::ofstream out_file; std::string full_name,type,subtype,name,marker; - TOpendriveWorldPoint world; + TOpendriveWorldPose world; full_name=get_full_name(path,signals_file,"launch"); // process the road @@ -161,7 +161,7 @@ void generate_objects_launch(std::string &path,std::string &objects_file,COpendr { std::ofstream out_file; std::string full_name,type,subtype,name,marker; - TOpendriveWorldPoint world; + TOpendriveWorldPose world; full_name=get_full_name(path,objects_file,"launch"); // process the road