Commit d38bb2ca authored by limingbo's avatar limingbo

test

parent 33bf5bb1
Pipeline #870 canceled with stages
......@@ -136,9 +136,9 @@ bool initTrajectory(
const string &trajPath,
boost::shared_ptr<Trajectory> &trajectory)
{
if(boost::filesystem::path(trajPath).stem() == "ie.txt"){
if(boost::filesystem::path(trajPath).filename().string() == "ie.txt"){
trajectory.reset(new Trajectory(trajPath, PPK));
}else if(boost::filesystem::path(trajPath).stem() == "sample.gps"){
}else if(boost::filesystem::path(trajPath).filename().string() == "sample.gps"){
trajectory.reset(new Trajectory(trajPath, PPK, 10));
}else{
return false;
......
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