Closed NiklasLeukroth closed 1 year ago
Hi Niklas,
The ad_map_opendrive_reader itself has no direct python interface. What you see is installed is only the C++ library. That library is used by ad_map_access to be able to read in OpenDrive files. If you replace e.g. TPK.adm.txt in the python interface test by e.g. Town01.txt, then Town01.xodr open drive file is read in instead. The other test code will then not match for sure, but like this the open drive file is read.
Another possibility to read open drive without using an explicit configuration text file is used in the QGis plugin for opening an open drive from within python using the function ad.map.access.initFromOpenDriveContent.
Hope this helps, Bernd.
Yes, this answered my question, thank you very much.
I wanted to ask whether there is a way to use the ad_map_opendrive_reader as a python module, analogously to the ad_map_access module? If I compile everything using colcon the ad_map_opendrive_reader module for python is created, however it has no attributes. Am I doing something wrong, or is this just not a feature that is implemented?
Kind regards Niklas