Detecting pose of a pen
I'm able to get the 3d coordinates of two endpoints of a pen but I'm not sure how to convert that into a 3d pose. I saw the documentation and the 3d pose is in quaternions; is there a way to convert 3d coordinates to quaternions? Also for this problem, I don't need the orientation info just the vector in 3d space. I'm thinking of publishing 3 2d poses for x
, y
, and z
axes; is there any other solutions to this?
Two points do not define a pose, in your case the rotation around the axis of the pen is undefined. It sounds like a pose isn't really what you need. Can you describe the actual problem you're working on?
I'm trying to make a robot manipulator hold the pen and write something on the paper. So, yes I don't need the rotation info around the axis rather the angle so that the robot manipulator can hold the pen from the base.