Skip to main content

Set position by joint space

Set the target position to the value of joint space coordinate point

Parameters

ParameterTypeDescription
joint_group_positionsdouble[6]Target point, rad

Example

double targetPose[6] = {0.391410, -0.676384, -0.376217, 0.0, 1.052834,
0.454125};
std::vector<double> joint_group_positions(6);
joint_group_positions[0] = targetPose[0];
joint_group_positions[1] = targetPose[1];
joint_group_positions[2] = targetPose[2];
joint_group_positions[3] = targetPose[3];
joint_group_positions[4] = targetPose[4];
joint_group_positions[5] = targetPose[5];

arm.setJointValueTarget(joint_group_positions);