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
---------------------------------------------
--
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 visit
https://groups.google.com/d/msgid/projectchrono/01b08680-6560-40a5-839e-3aa7c3be99e6n%40googlegroups.com.
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