Set position by joint space
Set the target position to the value of joint space coordinate point
Parameters
Parameter | Type | Description |
---|---|---|
joint_group_positions | double[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);