zhm-real / PathPlanning

Common used path planning algorithms with animations.
https://github.com/zhm-real/PathPlanning
MIT License
7.83k stars 1.62k forks source link

when run 3D moudle: ValueError: operands could not be broadcast together with shapes (25,2,3) (0,) #38

Open XXLiu-HNU opened 10 months ago

XXLiu-HNU commented 10 months ago
image

when i run "Search_3D", the screenshot shows what happed.

wiselisx commented 10 months ago

我也发现了了一样的问题,只需要把if SET != []:改成if SET.all() != []:就可以解决你的问题。

xiaozeng107 commented 9 months ago

我也发现了了一样的问题,只需要把if SET != []:改成if SET.all() != []:就可以解决你的问题。

我修改了SET之后会报错: in draw_line if SET.all() != []: AttributeError: 'list' object has no attribute 'all' 请问您知道是怎么回事吗?

DucAnh-Vu-Trinh commented 6 months ago

You can modify the line to: if np.any(SET):

lsewcx commented 2 months ago

我也发现了了一样的问题,只需要把if SET != []:改成if SET.all() != []:就可以解决你的问题。

我修改了SET之后会报错: in draw_line if SET.all() != []: AttributeError: 'list' object has no attribute 'all' 请问您知道是怎么回事吗?

修改成if SET.size!=0:就可以了