vista-simulator / vista

Data-driven simulation for training and evaluating full-scale autonomous vehicles.
https://vista.csail.mit.edu
Other
379 stars 88 forks source link

Unable to run basic examples. #20

Closed msuthe43 closed 1 year ago

msuthe43 commented 1 year ago

I'm trying to run the sim_control.py and I'm encountering an error with the descartes package.

File "d:VISTA2.py", line 91, in main() File "d:VISTA2.py", line 34, in main vis_img = display.render() File "D:vista\lib\site-packages\vista\core\Display.py", line 227, in render patch = PolygonPatch(patch, File "D:vista\lib\site-packages\descartes\patch.py", line 87, in PolygonPatch return PathPatch(PolygonPath(polygon), **kwargs) File "D:vista\lib\site-packages\descartes\patch.py", line 62, in PolygonPath vertices = concatenate([ File "D:vista\lib\site-packages\descartes\patch.py", line 63, in concatenate([asarray(t.exterior)[:, :2]] + IndexError: too many indices for array: array is 0-dimensional, but 2 were indexed

Any help would be appreciated

tirthb101 commented 1 year ago

i am facing same problem right now, did you find solution to this problem ?

luyao2001 commented 1 year ago

I also meet this problem, did you find solution to this problem ?

luyao2001 commented 1 year ago

I have solved this problem by 'pip install shapely==1.7'. Refer to https://stackoverflow.com/questions/75287534/indexerror-descartes-polygonpatch-wtih-shapely