Dan - this is not an issue of missing features in PyChrono. All of Chrono::Vehicle is exposed to Python users.
Edward - the problems are with your code. Did you look at demo_VEH_WheeledJSON.py? I think that is exactly what you try to do (simulating a HMMWV vehicle constructed from a set of JSON specification files). Start from that and modify as needed. Note that WheeledVehicle does *not* have a "SetContactMethod" function. A concrete vehicle model may provide that, but one built from JSON files does not. I suspect that you saw that used in places such as demo_VEH_HMMWV.py; but that demo uses a concrete class implementing the HMMWV model (which is *not* the same as constructing a HMMWV vehicle from a set of JSON specification files). It is that concrete HMMWV class that happens to provide a "SetContactMethod" function. Please also make sure you always look at demos that are *consistent* with the conda package you installed; see the note at https://api.projectchrono.org/tutorial_table_of_content_pychrono.html. Finally, you do not say what version of the conda package you use or what OS. I inferred the latter to be Windows from your code, but this is the type of information that you should always provide when posting. Radu From: 'Dan Negrut' via ProjectChrono <projectchrono@googlegroups.com> Sent: Saturday, June 21, 2025 4:51 PM To: Edward "Edward.png" Hoene <edwardho...@gmail.com>; ProjectChrono <projectchrono@googlegroups.com> Subject: RE: [chrono] Loading in a new vehicle with pychrono Edward - it's easier to do this through the C++ API, in that not all features available in the C++ API are immediately available in PyChrono. We will look into this PyChrono issue, but it's not high on the priority list. Thank you for pointing this out. Dan --------------------------------------------- Bernard A. and Frances M. Weideman Professor NVIDIA CUDA Fellow Department of Mechanical Engineering Department of Computer Science University of Wisconsin - Madison 4150ME, 1513 University Avenue Madison, WI 53706-1572 608 772 0914 http://sbel.wisc.edu/ http://projectchrono.org/<https://urldefense.com/v3/__http:/projectchrono.org/__;!!Mak6IKo!L_GqZZX8fPFNrFstKb4pJ1eY7Xzvctjxi9btRDm_u0eIdxTEaXXvNFfmdCrVQ48zVHgwb4CvL4Lo3NrUIpyc9gCDOTM$> --------------------------------------------- From: projectchrono@googlegroups.com<mailto:projectchrono@googlegroups.com> <projectchrono@googlegroups.com<mailto:projectchrono@googlegroups.com>> On Behalf Of Edward "Edward.png" Hoene Sent: Friday, June 20, 2025 6:34 PM To: ProjectChrono <projectchrono@googlegroups.com<mailto:projectchrono@googlegroups.com>> Subject: [chrono] Loading in a new vehicle with pychrono So currently I'm trying to build a new vehicle model and run it on anaconda prompt with the pychrono module. I'm not so focused on creating a new vehicle, but rather pulling the necessary files into my code to successfully run it. I'm right now trying to run the HMMWV vehicle by calling out JSON files in my code. Some issues I ran into include - 'WheeledVehicle' has no attributes to 'SetContactMethod' - Loaded in vehicle with no wheels falling through map (SetContactMethod wasn't used) - Loaded vehicle with wheels not dropping down onto map (SetContactMethod wasn't used) Are there any other methods to load in a new vehicle? Do I have to add it to the pychrono engine in my system files manually? Are there other ways to call things out better? Should I just use the C++ API for this? I wasn't able to attach any files to this. Thank you, Edward -- 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 projectchrono+unsubscr...@googlegroups.com<mailto:projectchrono+unsubscr...@googlegroups.com>. To view this discussion visit https://groups.google.com/d/msgid/projectchrono/01b08680-6560-40a5-839e-3aa7c3be99e6n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/01b08680-6560-40a5-839e-3aa7c3be99e6n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!KYllDuc9sK6eDh-uzel22vVpy0t5rWBP_D5N_CGSHVtFtje0xeeZakEXRIzmBsyRL_cKRBZ0Y3ZuHXJqe1A$>. -- 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 projectchrono+unsubscr...@googlegroups.com<mailto:projectchrono+unsubscr...@googlegroups.com>. To view this discussion visit https://groups.google.com/d/msgid/projectchrono/DM8PR06MB7703A70FF7C66AB415FEADD5B17FA%40DM8PR06MB7703.namprd06.prod.outlook.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/DM8PR06MB7703A70FF7C66AB415FEADD5B17FA*40DM8PR06MB7703.namprd06.prod.outlook.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!L_GqZZX8fPFNrFstKb4pJ1eY7Xzvctjxi9btRDm_u0eIdxTEaXXvNFfmdCrVQ48zVHgwb4CvL4Lo3NrUIpycHWQ9qWM$>. -- 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 projectchrono+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC2185EB20C6B0A1D28C6C29F5A77EA%40CH3PPF46CDC2185.namprd06.prod.outlook.com.