Closed spykspeigel closed 2 years ago
The error comes from an problem setup mistake in your code.
Your asking to track a reference system (in the framePlacementResidual
) that does not exist in the panda robot.
Your asking to track a reference system (in the framePlacementResidual) that does not exist in the panda robot.
That's correct - should we check if a joint exists and throw an exception if it doesnt during the constructor of the residual?
@cmastalli @wxmerkt
I have updated the code above using the correct joint name. Somehow the solver returns False
without solving the problem.
That's correct - should we check if a joint exists and throw an exception if it doesnt during the constructor of the residual?
The problem is in Pinocchio as getFrameId
doesn't trigger an issue.
I could implement a safe policy if we know what happens when getFrameId
is used with an undefined frame.
@jcarpent what is the Pinocchio policy with respect to this matter? For instance, I see that it returns an index that it is model.nframes
; however, I am not sure if I could assume this is part of the Pinocchio API.
Yes, this is the currrent policy. We return the number of elements in the vector
I tried using the Panda arm in the arm manipulation example (inside crocoddyl/examples folder).
I get the following error:
I am not sure about the origin of the error.