RethinkRobotics / baxter

Baxter Research Robot SDK
www.rethinkrobotics.com/sdk
BSD 3-Clause "New" or "Revised" License
71 stars 64 forks source link

tuck_arms: fix logic typos and accidental pointers #144

Closed rethink-rlinsalata closed 10 years ago

rethink-rlinsalata commented 10 years ago

returning to initial disabled state at the end of the prepare_to_tuck() (head move) function had opposite logic, causing the robot to disable if it was already at untucked pose to start.

Also fixed, I had accidentally passed a reference instead of a copy to the "flipped" state for suppressing collision, which would cause the collision suppression to stop as soon as the arm was over the top (but still in the head force field).

rethink-kmaroney commented 10 years ago

Looks good.