Table Reporter for Inverse Dynamics in MATLAB
Posted: Mon Jan 27, 2020 12:15 am
Hi Everyone
I was performing Inverse Dynamics simulation to calculate the joint torque required for a trajectory in MATLAB. I have run the Inverse Dynamics Simulation using MATLAB but i not able to export the data to tablereporter. Can someone tell me how to use reporter.
code I am using for running Inverse Dynamics
model.realizeVelocity(state);
appliedMobilityForces = Vector();
appliedBodyForces = VectorOfSpatialVec();
knownUdot = Vector(state.getNU(), 0.0);
knownUdot.set(0, 1.0);
knownLambda = Vector();
residualMobilityForces = Vector();
smss = model.getMatterSubsystem();
smss.calcResidualForce(state, appliedMobilityForces, appliedBodyForces, ...
knownUdot, knownLambda, residualMobilityForces);
How can I export the result (joint forces/torque) into .sto file
I was performing Inverse Dynamics simulation to calculate the joint torque required for a trajectory in MATLAB. I have run the Inverse Dynamics Simulation using MATLAB but i not able to export the data to tablereporter. Can someone tell me how to use reporter.
code I am using for running Inverse Dynamics
model.realizeVelocity(state);
appliedMobilityForces = Vector();
appliedBodyForces = VectorOfSpatialVec();
knownUdot = Vector(state.getNU(), 0.0);
knownUdot.set(0, 1.0);
knownLambda = Vector();
residualMobilityForces = Vector();
smss = model.getMatterSubsystem();
smss.calcResidualForce(state, appliedMobilityForces, appliedBodyForces, ...
knownUdot, knownLambda, residualMobilityForces);
How can I export the result (joint forces/torque) into .sto file