Hi
I am trying to create a derived class based on ChVehicle in pychrono so
that I can build a bespoke vehicle type (neither wheeled or tracked) and
make use of the base functionality of ChVehicle.
However if I create a class in python that inherits from ChVehicle and then
try and call methods associated with ChVehicle e.g.
self.SetName("some string")
I get
Exception has occurred: TypeError in method 'ChVehicle_SetName', argument 1
of type 'chrono::vehicle::ChVehicle *'
I understand this to mean that the first argument (in this case self) is a
pointer to ChVehicle and not the object itself but I am unsure how/if I can
get to the address from Python.
Any guidance gratefully received.
Kind Regards,
James
-
--
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/62f3c983-7578-46eb-ae44-47a7c0fd470cn%40googlegroups.com.