Fields2Cover / fields2cover_ros

A ROS interface of Fields2Cover
BSD 3-Clause "New" or "Revised" License
44 stars 19 forks source link

fields2cover_ros json file compatablity (not working need help) #9

Closed RamanaBotta closed 1 year ago

RamanaBotta commented 1 year ago

What?

Geojson compatibility for fields2cover_ros package.

Why?

Since the Geojson file format is mostly available (to my knowledge) and you guys have already way of reading file.

How?

Commented importGml and added importJson . // f2c::Parser::importGml(fieldfile, fields); f2c::Parser::importJson(fieldfile, fields);

Testing?

roslaunch fields2cover_ros view_field.launch

Observations

roslaunch fields2cover_ros view_field.launch Error terminate called after throwing an instance of 'std::invalid_argument' what(): Coordinate system empty

Gonzalo-Mier commented 1 year ago

This is an issue, not a PR. You have the error what(): Coordinate system empty because the coordinate system of the GeoJson is not set. Although on GML the coordinate system is written on the file, GeoJson doesn't have that. Check how it's done on the tests. If you have more problems, please, open a new issue :)