ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The SDK has a pretty thorough walkthrough of retrieving exactly what you are looking for. The "result" you are referring to is specifically because of this line
resp_seeds = struct.unpack('<%dB' % len(resp.result_type),
resp.result_type)
Where you are only looking at what seeding methods were used in the original IK request. What you want to be looking at is the resp.joints
field. Here is the complete service definition including comments on what all of the fields are, and here is the relevant snippet from the previously-linked walkthrough:
if (resp.isValid[0]):
print("SUCCESS - Valid Joint Solution Found:")
# Format solution into Limb API-compatible dictionary
limb_joints = dict(zip(resp.joints[0].name, resp.joints[0].position))
print limb_joints
else:
print("INVALID POSE - No Valid Joint Solution Found.")
return 0