autocore-ai / MapToolbox

Plugins to make Autoware vector maps in Unity
GNU Lesser General Public License v3.0
252 stars 98 forks source link

Issue with Lanelet positioning on point cloud #93

Open Acoustic6 opened 1 year ago

Acoustic6 commented 1 year ago

Discussed in https://github.com/autocore-ai/MapToolbox/discussions/92

Originally posted by **Acoustic6** July 3, 2023 Hey there, There is currently an issue I'm facing related to the Lanelet plugin in Unity. The problem revolves around correctly positioning Lanelets in relation to a point cloud. When attempting to draw a Lanelet over a point cloud, I notice a misalignment between the Lanelet and the point cloud itself. The Y-coordinate values of the Lanelet's road points are set around -500, while the Y-coordinate of the point cloud is approximately 0. This misalignment causes the Lanelet to appear as if it is pointing downward. In an attempt to troubleshoot, I also tried creating Lanelet points on a plane. The Y-coordinate of the Lanelet points corresponded to the Y-coordinate of the plane. However, despite this, the Lanelet points didn't align correctly with where I clicked the mouse. They ended up in a different spot. One possible solution I'm considering is adding a collider to the point cloud to ensure accurate positioning. Unity version: 2022.3.3f1 Jobs: 0.70.0-preview.7 Burst: 1.8.7 Mathematics: 1.2.6 Collections: 1.4.0 If anyone has any insights or suggestions on how to address these issues your input would be immensely appreciated. Thanks a bunch!