通过关节空间设置位置
设置目标位置为关节空间坐标点数值
参数
参数 | 类型 | 说明 |
---|---|---|
joint_group_positions | double[6] | 目标点,弧度制 rad |
示例
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);