Search found 2 matches
- Thu Aug 08, 2024 11:56 am
- Forum: OpenSim
- Topic: Spatial Vectors in Python
- Replies: 3
- Views: 2200
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...
- Wed Aug 07, 2024 1:48 pm
- Forum: OpenSim
- Topic: Spatial Vectors in Python
- Replies: 3
- Views: 2200
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,...