2017-04-09 19:54:57 UTC
Since you all are so helpful I am going to bother you again!
As I learned yesterday I have to change motion mode to home and unhome
joints in 2.8, so I decided to add a "motion mode" indicator to my UI.
Based on the Python Interface docs it looks like stat.motion_type should
return one of TRAJ_MODE_COORD, TRAJ_MODE_FREE, TRAJ_MODE_TELEOP, but as
far as I can tell it only returns 0, which is not equal to any of
TRAJ_MODE_COORD, TRAJ_MODE_FREE, TRAJ_MODE_TELEOP which are 2, 1, 3
I think stat.motion_mode just might be returning the TRAJ_MODE instead of
stat.motion_type as stated in the docs.
Where would I look to prove (or disprove) this?