Skip to content

Inconsistent Frame Jacobians for some URDFs #2222

Closed Answered by jorisv
larsrpe asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @larsrpe,

Thanks for the example.

I have launch you example in Debug mode with valgrind (valgrind --track-origins=yes ./jacobian_example).
valgrind show me some memory issues. Apparently, some values in J_local, J_world and J_local_world_aligned are not initialized.

If you replace

  Eigen::MatrixXd J_local(6, model.nv);
  Eigen::MatrixXd J_world(6, model.nv);
  Eigen::MatrixXd J_local_world_aligned(6, model.nv);

by

  Eigen::MatrixXd J_local = Eigen::MatrixXd::Zero(6, model.nv);
  Eigen::MatrixXd J_world = Eigen::MatrixXd::Zero(6, model.nv);
  Eigen::MatrixXd J_local_world_aligned = Eigen::MatrixXd::Zero(6, model.nv);

Your code will work properly.

getFrameJacobian Assume your matrix …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@larsrpe
Comment options

Answer selected by jorisv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants