Aswath, The correct syntax is: T.SetMode(chrono.ChForce.TORQUE)
I realize that using enums in the Python code is a bit confusing. Part of the issue is the fact that the underlying C++ code sometimes uses classical enums and sometimes strongly typed enums (and the Python wrapping needs to deal differently with the latter). On a different note, please use a single email thread when discussing the same topic to make things easier to follow. --Radu From: [email protected] <[email protected]> On Behalf Of Aswath Narayanan R.R.B na20b009 Sent: Thursday, May 26, 2022 4:50 AM To: ProjectChrono <[email protected]> Subject: [chrono] How to Set the force mode as torque here I am attaching my code fragment. I want to set the ForceType as Torque. T = chrono.ChForce() T.SetMode(ForceType_TORQUE) But this is throwing me error, pl help -- 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/621abcf9-3f03-4532-94bc-f48c338ae1d8n%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/621abcf9-3f03-4532-94bc-f48c338ae1d8n%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/PH0PR06MB82371D787E32A8A36C919032A7DA9%40PH0PR06MB8237.namprd06.prod.outlook.com.
