I need to extract the Jacobian and the end-effector pose from a manipulator in the same frame. How should I do this?
const Eigen::Affine3d &base_state = kinematic_state->getGlobalLinkTransform(kinematic_state->getLinkModel(joint_model_group->getLinkModelNames().front()));
Eigen::Vector3d reference_point_position = base_state.translation();
Eigen::MatrixXd jacobian;
kinematic_state->getJacobian(joint_model_group, kinematic_state->getLinkModel(joint_model_group->getLinkModelNames().back()),
reference_point_position,
jacobian);
but I realize I don't actually know the reference frame for the getGlobalLinkTransform. I assumed it was the base of the manipulator but I appear to be wrong.