Missing vehicle body

65 views
Skip to first unread message

Abood Max

unread,
Aug 24, 2021, 10:08:57 AM8/24/21
to ProjectChrono
Hope you all are doing well,
I was trying to run the Python examples but I get the vehicle without its body showing.
Dose anyone know how to solve this?
Thanks in advance

Picture1.png

Radu Serban

unread,
Aug 24, 2021, 11:54:23 AM8/24/21
to ProjectChrono

Looks like you are not running the demos from their original location.  As such, they do not have access to the data/ directory and cannot find various assets (meshes, textures, etc).  Check the console output: you should see messages such as: “Error loading OBJ file ../../../../data/vehicle/hmmwv/hmmwv_chassis.obj”.

 

So either run the demos from their location:
% python ./demo_VEH_HMMWV.py

or else modify the demo code to specify the location of the data/ directory *relative* to the current directory (by calling SetChronoDataPath – see for example line 191 in demo_VEH_HMMWV.py).

 

--Radu


--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/23ccb828-bc4d-4821-8ebb-e3e175cac355n%40googlegroups.com.

 

Abood Max

unread,
Aug 25, 2021, 2:22:23 AM8/25/21
to ProjectChrono
Hello Radu, thanks for you taking the time to answer my question.
Indeed I was not running the code from its original location, however, when I tried running the original python file I still got the same error for the bus demo.
In addition to that I got the following error for the HMMWV demo 
  File "./demo_VEH_HMMWV_circle.py", line 41, in <module>
    my_hmmwv.SetDriveType(veh.DrivelineType_RWD)
AttributeError: module 'pychrono.vehicle' has no attribute 'DrivelineType_RWD'
I suspect that I am missing some files and I should try reinstall Chrono on my laptop
Do you agree with that or do you have an alternative solution?
Thanks in advance,

Radu Serban

unread,
Aug 25, 2021, 5:09:20 AM8/25/21
to ProjectChrono

Whenever posting issues related to PyChrono, please indicate how you built or installed it.  Did you build the Chrono::Pychrono module yourself from source (if so, indicate which branch from the git repo you used)? Or did you install the conda package (if so, which version and on which platform)?

 

The two demos you mention run fine for me.  I am not sure what error you get for the CityBus demo (can you give more details?), but based on your issue with the demo_VEH_HMMWV_circle I suspect you are trying to run demos that are incompatible with your installation of PyChrono.  Please read the notice in the documentation (at the top of https://api.projectchrono.org/tutorial_table_of_content_pychrono.html) and make sure you use the appropriate demos. 

 

(In newer code the driveline types were renamed and the latest version of demo_VEH_HMMWV_circle.py uses “DrivelineTypeWV_RWD”).

 

--Radu

 

 


From: projec...@googlegroups.com <projec...@googlegroups.com> on behalf of abodx...@gmail.com <abodx...@gmail.com>
Sent: Wednesday, August 25, 2021 8:22:23 AM
To: ProjectChrono <projec...@googlegroups.com>
Subject: Re: [chrono] Missing vehicle body
 
Reply all
Reply to author
Forward
0 new messages