Dear Chrono Community,
I have created two bodies and I added a ChForce to the second body. I would
like the force to align with the coordinate system of the first body. I am
using the .SetAlign function but I get a type error. I saw online that
.SetAlign takes an alignment frame, I have tried giving it a marker but it
doesn't work.
TypeError: in method 'ChForce_SetAlign', argument 2 of type
'chrono::ChForce::AlignmentFrame'
Here is a snippet that is causing the problem:
self.spring_force_2 = chrono.ChForce()
self.spring_force_2.SetMode(chrono.ChForce.FORCE)
self.body_2.AddForce(self.spring_force_2)
self.spring_force_2.SetVpoint(self.marker_2.GetPos())
self.spring_force_2.SetAlign(chrono.ChFrameD(self.marker_1))
Thanks in advance to anyone who can point me in the right direction!
--
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/2fc7ad68-8ee1-4d77-a2e4-bbe34dfa6665n%40googlegroups.com.