Problems with commonroad_dc.pycrccosy

Hello,
there seems to be a problem with the drivability checker in regard to “pycrccosy”. It seems like I can’t use

from commonroad_dc.pycrccosy import CurvilinearCoordinateSystem

like in Tutorial 06: CommonRoad Curvilinear Coordinatesystem and couldn’t find any help in any of the forums. I’m trying to get s and b coordinates of a point w.r.t. the centreline of lanelet, so I need to be able to use

curvilinear_cosy = CurvilinearCoordinateSystem(lane_path, 25.0, 0.1)
p_curvilinear = curvilinear_cosy.convert_to_curvilinear_coords(p_cartesian[0], p_cartesian[1])

like in Tutorial 6…

Is there a chance that there are compatibility issues with the latest version of the drivability checker and pycrccosy?

Best regards,
Adrian

HI Adrian,

are you getting a specific Error Message from the Import? If yes, could you post it please?

Thanks and regards,
Gerald

Hi Gerald,

*p_curvilinear = curvilinear_cosy.convert_to_curvilinear_coords(p_cartesian[0], p_cartesian[1])*

ValueError: <CurvilinearCoordinateSystem/convertToCurvilinearCoordsAndGetSegmentIdx> Coordinate outside of projection domain.

Is my error message. My VS Code also isn’t showing

from commonroad_dc.pycrccosy import CurvilinearCoordinateSystem

in the correct colors (struggeling to import).

Best,
Adrian