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

Updated the OSM example module.

parent b2e52e31
No related branches found
No related tags found
1 merge request!2Solved a bug when creating a new geometry object: the sale factor is...
...@@ -8,10 +8,17 @@ const std::string filename="/home/shernand/Downloads/map.osm"; ...@@ -8,10 +8,17 @@ const std::string filename="/home/shernand/Downloads/map.osm";
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
std::vector<double> x,y,heading,curvature;
try{ try{
COSMMap map; COSMMap map;
map.load(filename); map.load(filename);
map.get_paths(x,y,heading,curvature);
for(unsigned int i=0;i<x.size();i++)
std::cout << x[i] << "," << y[i] << std::endl;
// std::cout << map << std::endl;
} }
catch (std::exception &e) catch (std::exception &e)
{ {
......
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