Search found 2 matches

by Juan Beret
Thu Aug 08, 2024 11:56 am
Forum: OpenSim
Topic: Spatial Vectors in Python
Replies: 3
Views: 1279

Re: Spatial Vectors in Python

Thank you very much for your answer Thomas! I am trying to use: opensim.VectorOfSpatialVec(size,osim.SpatialVec(osim.Vec3(0), osim.Vec3(0))) and the data type seems correct, but when I use calcResidualForceIgnoringConstraints function the output is: TypeError: in method 'SimbodyMatterSubsystem_calcR...
by Juan Beret
Wed Aug 07, 2024 1:48 pm
Forum: OpenSim
Topic: Spatial Vectors in Python
Replies: 3
Views: 1279

Spatial Vectors in Python

Hello everyone! I am writing to ask about the use of Spatial Vectors in Python. Specifically, I am trying to calculate Coriolis forces using the following function: Vector calcCoriolis(const State& s, const Model& model) { Vector c; model.getMatterSubsystem().calcResidualForceIgnoringConstraints( s,...