Creating template project with HMMWV vehicle

51 views
Skip to first unread message

Anshul pagariya

unread,
Feb 21, 2023, 5:19:22 AM2/21/23
to ProjectChrono
Hello All,

I am trying to bring HMMWV model in template project but my build fails. It gives me error (attached in screenshot Build-failure.png). In particular I use HMMWV_Full my_hmmwv;   line (code screenshot - Code_template_project.pngto call the HMMWV file. I am using Ubuntu 18.04. I have so far installed chrono core, vehicle module, cuda (thrust). My cache variable for build_chrono is attached in file Cache_variables.png. In addition some of my demos for vehicle module are also not working in particular I am interested in HMMWV with deformable soil (demo_VEH_HMMWV_DefSoil)  I am attaching the error I get when I run the executable file for it (demo_HMMWV_DefSoil.png). Can any one suggest what I need to do to run the template project with HMMWV and run demo_VEH_HMMWV_DefSoil, I would really appreciate your help. If you need any other information about my files please let me know.

Thanks in advance and good day!
Anshul

Build-failure.png
Cache_variables.png
demo_HMMWV_DefSoil.png
Code_template_project.png

Radu Serban

unread,
Feb 21, 2023, 8:42:40 AM2/21/23
to ProjectChrono

Anshul,

 

First of all, please do *not* post error messages and code snippets as images!  It is very difficult to look through them and, at the end of the day, all of these are plain text which you can simply copy and paste in the body of your messages.

 

If I were to guess, you didn’t properly request the Chrono::Vehicle module in the CMakeLists.txt of your project in the find_package call (and that’s the one file you didn’t share).  In any case, look at the chrono-projects repository on GitHub.  This is a set of different tests and projects built on top of Chrono, all set up the same way as the sample template project distributed with Chrono.  That repository includes programs demonstrating the use of different combinations of Chrono modules, including Chrono::Vehicle, in such an external project.  Look for example at this CMakeLists script which is for a project based on one of the pre-built vehicle models in Chrono (not the HMMWV, but that’s a trivial change).

 

--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/e8390813-efe5-46cd-b939-4c7d79408efan%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages