PathPlanning icon indicating copy to clipboard operation
PathPlanning copied to clipboard

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

Open XXLiu-HNU opened this issue 1 year ago • 4 comments

image

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

XXLiu-HNU avatar Nov 13 '23 04:11 XXLiu-HNU

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

wiselisx avatar Nov 15 '23 12:11 wiselisx

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

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

xiaozeng107 avatar Nov 29 '23 09:11 xiaozeng107

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

DucAnh-Vu-Trinh avatar Mar 01 '24 23:03 DucAnh-Vu-Trinh

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

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

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

lsewcx avatar Jul 11 '24 02:07 lsewcx