Skip to content
Snippets Groups Projects
Commit 166204d6 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Changed the Point name to Pose.

parent d7c4aef8
No related branches found
No related tags found
1 merge request!1Opendrive lib
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
std::string get_full_name(std::string &path,std::string &file_name,const std::string &ext) 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; std::string full_name;
// add the last slash if missing // 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 ...@@ -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) if(slash_index!=path.size()-1)
path+="/"; path+="/";
// check the file extension // check the file extension
point_index=file_name.find_last_of("."); pose_index=file_name.find_last_of(".");
if(point_index==std::string::npos)// extension missing if(pose_index==std::string::npos)// extension missing
file_name+="."+ext; file_name+="."+ext;
else else
{ {
point_index=file_name.find_last_of("."+ext); pose_index=file_name.find_last_of("."+ext);
if(point_index==std::string::npos)// invalid extension if(pose_index==std::string::npos)// invalid extension
throw CException(_HERE_,"Invalid file extension. It must be " + ext); throw CException(_HERE_,"Invalid file extension. It must be " + ext);
} }
full_name=path+file_name; full_name=path+file_name;
...@@ -115,7 +115,7 @@ void generate_signals_launch(std::string &path,std::string &signals_file,COpendr ...@@ -115,7 +115,7 @@ void generate_signals_launch(std::string &path,std::string &signals_file,COpendr
{ {
std::ofstream out_file; std::ofstream out_file;
std::string full_name,type,subtype,name,marker; std::string full_name,type,subtype,name,marker;
TOpendriveWorldPoint world; TOpendriveWorldPose world;
full_name=get_full_name(path,signals_file,"launch"); full_name=get_full_name(path,signals_file,"launch");
// process the road // process the road
...@@ -161,7 +161,7 @@ void generate_objects_launch(std::string &path,std::string &objects_file,COpendr ...@@ -161,7 +161,7 @@ void generate_objects_launch(std::string &path,std::string &objects_file,COpendr
{ {
std::ofstream out_file; std::ofstream out_file;
std::string full_name,type,subtype,name,marker; std::string full_name,type,subtype,name,marker;
TOpendriveWorldPoint world; TOpendriveWorldPose world;
full_name=get_full_name(path,objects_file,"launch"); full_name=get_full_name(path,objects_file,"launch");
// process the road // process the road
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment