Open Cynantares opened 3 years ago
@Cynantares I wouldn't expect a solution from Moco (or any other direct collocation tool) to produce a realistic motion when using forward dynamics. The accumulation of small numerical errors when running a forward simulation from controls produced from direct collocation will usually produce an unstable forward simulation. You'd need a controller to produce a stable problem.
Regarding the model assembly error: these errors show up when the model tries to resolve kinematic constraints during initialization. Usually they can be ignored, as the assembly procedure will relax constraints and try again until assembly succeeds.
I tried to input the moco result to the forward dynamics tool in opensim, but the simulation is far-off from the motion file that I set for Moco.
There was an error reported while running the code.
[error] Model unable to assemble: SimTK Exception thrown at Optimizer.h:133: Value out of range in OptimizerSystem Constructor: expected 1 <= number of parameters <= 2.14748e+09 but number of parameters=0..Model relaxing constraints and trying again. [error] Model unable to assemble with relaxed constraints: SimTK Exception thrown at Optimizer.h:133: Value out of range in OptimizerSystem Constructor: expected 1 <= number of parameters <= 2.14748e+09 but number of parameters=0.
I also tried to use a simpler model (arm26), the optimization error didn't occur but the simulation of forward dynamics was still inconsistent with the set kinematics.