I created and pushed to the main branch of the Chrono repository a set of JSON 
files which define the same toy vehicle as in 
demo_VEH_ArticulatedVehicle<https://github.com/projectchrono/chrono/tree/main/src/demos/vehicle/articulated_vehicle>.
You can see these new files 
here<https://github.com/projectchrono/chrono/tree/main/data/vehicle/articulated_chassis>.
  This JSON—specified vehicle model can be used from the C++ 
demo_VEH_WheeledJSON<https://github.com/projectchrono/chrono/blob/main/src/demos/vehicle/wheeled_models/demo_VEH_WheeledJSON.cpp>
 or from the Python 
demo_VEH_WheeledJSON<https://github.com/projectchrono/chrono/blob/main/src/demos/python/vehicle/demo_VEH_WheeledJSON.py>
 (by uncommenting the appropriate lines).
Like the C++ example model, this JSON-based ACV model uses a 2WD driveline 
connected to the front axle.  To use a 4WD driveline, simply create an 
appropriate JSON specification file (such as this 
one<https://github.com/projectchrono/chrono/blob/main/data/vehicle/hmmwv/driveline/HMMWV_Driveline4WD.json>)
 and modify accordingly the vehicle specification JSON file (like done 
here<https://github.com/projectchrono/chrono/blob/4e6f407dca8fef1a4fbfab124db1c1a8b4f87ae2/data/vehicle/hmmwv/vehicle/HMMWV_Vehicle_4WD.json#L43>).

--Radu

From: [email protected] <[email protected]> On Behalf 
Of ttt feng
Sent: Thursday, 8 December 2022 13:12
To: ProjectChrono <[email protected]>
Subject: [chrono] Import Articulated Vehicle with JSON file in PyChrono

Hi,
Under the reference of  demo_VEH_TrailerJSON.py , I tried to import articulated 
vehicle using json files in pychrono. I have the following questions to ask for 
help.

1)In demo_VEH_TrailerJSON.py,  Some contents about the json files of Sedan and 
Trailer are as follows,

  "Name": "Sedan",
  "Type": "Vehicle",
  "Template": "WheeledVehicle",

    "Name": "Ultra Tow 40x48",
    "Type": "Trailer",
    "Template": "WheeledTrailer",

Is the beginning of the json file of the front body and rear body of the 
articulated vehicle the same?

2)How to write JSON files to enable four-wheel drive of articulated vehicles?

The powerful function of Chrono cannot be separated from the efforts of 
everyone in the team, and I am very interested in Chrono. But according to the 
demo_ VEH_ TrailerJSON. Py is still struggling to write json files for 
articulated vehicle, so do I have any better references? Or does the team 
intend to write a json file demo for articulated vehicles in the later stage.


--
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/0b8bb848-f71f-45c1-95eb-76b93498d9edn%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/0b8bb848-f71f-45c1-95eb-76b93498d9edn%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/PH0PR06MB8237BA42D7C3BBE40555C01AA71C9%40PH0PR06MB8237.namprd06.prod.outlook.com.

Reply via email to