vehicleCostmap function inverts my data from lidar sensor
显示 更早的评论
Hello, I used the vehicleCostmap function to create a map for path planning. The problem is this function is inverting my data vertically.
I tried using set(gca,'YDir','reverse') however when using this, the y axis information is also the other way round so the 'coordinates' are not actually correct.
This is my lidar data displayed using surf.

This is the costmap created using the vehicleCostmap function.

This is the costmap when I use set(gca,'YDir','reverse'), using this the points are in the right place but the coordinates value are also "inverted" (shown in a blue rectangle).

Is there a way to make the vehicleCostMap function display my lidar data in the 'correct' direction?
The lidar data consists of a double matrix of zeros and ones, where zero (dark blue) is empty and one (yellow) is an obstacle.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Planning and Control 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

