when trying to add boost options to the plane.cc file I am running into some compilation issues with boost. Specifically boost complains about the options that are not of a basic data type, i.e. the options that cause the error are:
[...]input.add_options()("format,f", po::value<IOType>(&type)->default_value(UOS,"uos"),"using shared library <arg> for input. (chose F from {uos, uos_map, ""uos_rgb, uos_frames, uos_map_frames, old, rts, rts_map, ifp, ""riegl_txt, riegl_rgb, riegl_bin, zahn, ply, las})")[...]("plane,p", po::value<plane_alg>(&alg)->default_value(RHT,"rht"), "Plane Detection Algorithm. Choose p from {rht, sht, pht, ppht, apht, ran}")
If I comment these options out the compilatons runs without a problem. If not I get the following error message:
After some googling it seems like this might be some issue with the namespace po not knowing the enums IOTypes and plane_alg. But I'm not sure about it and especially not sure about how to resolve it. Is there some import missing or did I define the namespace incorrectly?
I appreciate any help.
Best,
Anton
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Anton,
for these none basic data types, you need to add a validate function. You can check it out, for example, in src/slam6d/exportPoints.cc it is implemented for the IOtype.
I hope that helps!
Best,
Dorit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
when trying to add boost options to the plane.cc file I am running into some compilation issues with boost. Specifically boost complains about the options that are not of a basic data type, i.e. the options that cause the error are:
If I comment these options out the compilatons runs without a problem. If not I get the following error message:
After some googling it seems like this might be some issue with the namespace po not knowing the enums IOTypes and plane_alg. But I'm not sure about it and especially not sure about how to resolve it. Is there some import missing or did I define the namespace incorrectly?
I appreciate any help.
Best,
Anton
Hi Anton,
for these none basic data types, you need to add a validate function. You can check it out, for example, in src/slam6d/exportPoints.cc it is implemented for the IOtype.
I hope that helps!
Best,
Dorit
That was it. Thanks!