You cannot import a vehicle from a Solidworks model. This is because the templates in Chrono::Vehicle have “semantics” not present in a CAD model. To build a Chrono::Vehicle model of some new vehicle you will need to assemble the appropriate set of templates for the subsystems and then concretize them with parameters specific to the vehicle you are trying to model. You can use a CAD file to extract some of this information (e.g. hardpoint locations), but you will likely need additional information. Look at how any of the existing vehicle models distributed with Chrono (such as the HMMWV) are constructed (either as C++ classes or else specified through a corresponding set of JSON files) to understand what it takes to build a Chrono model for your own vehicle.
Take a look at the following paper to understand better the philosophy and architecture of Chrono::Vehicle: https://projectchrono.org/assets/white_papers/chronoVehicle_IJVP.pdf --Radu From: [email protected] <[email protected]> On Behalf Of Chiny Lan Sent: Friday, June 9, 2023 3:52 AM To: ProjectChrono <[email protected]> Subject: [chrono] How to import a custom vehicle Hi, I've being using Chrono for some time, especially Vehicle and FSI module. Now I want to simulate a whole vehicle, like HMMWV model, with suspensions and FEA tires, and control the vehicle's motion. But I found it's hard to import a custom vehicle from my 3D model in Solidworks. Is there a easy way to import vehicle to Chrono or export Solidworks model to JSON files? Thanks -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/673689b9-07bf-4516-9b94-9ef100814adfn%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/673689b9-07bf-4516-9b94-9ef100814adfn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/PH0PR06MB82375BDE2D62F24E03CCA5FFA756A%40PH0PR06MB8237.namprd06.prod.outlook.com.
