ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Moveit! getJacobian

asked 2014-06-30 10:13:41 -0500

Ane gravatar image

updated 2014-07-01 09:58:50 -0500

Dear all,

We are using getJacobian method of robot_state::JointStateGroup instance and we always get the same values, as the arm will be in its home position, although the robot is in another pose.

We are using Ubuntu 12.04 Groovy. The code that we are executing is:

        kinematic_state = group->getCurrentState();
    kinematic_state->getStateValues(joint_states);

    joint_state_group = kinematic_state->getJointStateGroup("robuarm");

    joint_state_group->getVariableValues(joint_states);
    ROS_INFO_THROTTLE(1,"Get joint vals --> %f %f %f %f %f %f", joint_states[0], joint_states[1], joint_states[2], joint_states[3], joint_states[4], joint_states[5]);

    //getJacobian
    joint_state_group->getJacobian(joint_state_group->getJointModelGroup()->getLinkModelNames().back(),
            reference_point_position, jacobian);

With ROS_INFO sentence we have ensured that thet joints values are the correct ones.

Does anybody know what could be the problem?

Thanks

Ane

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-06-30 12:22:10 -0500

That looks like the robot_state::JointStateGroup instance your are operating on has not be updated with the current robot state. You can also check the joint group joint angles to see if that is indeed the case. If you post related code (edit your question) a more educated guess is possible :)

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-06-30 10:13:41 -0500

Seen: 724 times

Last updated: Jul 01 '14