Hi Dave,
I’m not sure what you mean by “bolting” together parts. The template-based approach adopted in Chrono::Vehicle does allow building vehicle models from parts, but with an assumed topology.
If you are willing to build the entire vehicle (which, I assume, has 2 track assemblies) just use the existing templates for a tracked vehicle. You can then force it to go in a straight line using, if necessary, a lateral controller. Depending on the construction of the vehicle you want to model, you may need to define new templates if the existing ones are not appropriate.
If you only want to model half of the vehicle (although it’s debatable if that is enough for the scenarios you are interested in), then look for inspiration at the implementation of the track test rig (which effectively constructs a vehicle with one track).
In either case, unless you can use the existing templates to model a full vehicle, this involves some extensions of the existing Chrono::Vehicle code. That is much easier to do in C++ since the Python wrappers are not really meant for that. If possible, I also suggest you use the latest code in the main branch of the Chrono git repository (since there were significant changes from the 9.0 release).
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 visit
https://groups.google.com/d/msgid/projectchrono/453ff6eb-1e80-45d1-828c-c0fc5dd24044n%40googlegroups.com.
Hi Dave,
I also suggested you use C++ :-)
Not everything is wrapped and exposed in PyyChrono. Furthermore, it is easier to extend Chrono in C++ than it is in Python. If possible, I suggest you use C++ and the latest code in the main branch of the Chrono git repository.
Having said that, the function ChBodyy::AccumulateForce and friends have been available in PyyChrono for quite a while. Look at demo_MBS_emit_cluster.py in your PyChrono distribution.
--Radu
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/4b083f32-df15-49c5-938a-d7c2f02a0ac2n%40googlegroups.com.