RethinkRobotics / sawyer_simulator

Gazebo Simulation interface for the Sawyer Robot
http://sdk.rethinkrobotics.com/intera/Gazebo_Tutorial
Apache License 2.0
50 stars 65 forks source link

Adds JointCommand Timeout to Position Control #34

Closed IanTheEngineer closed 6 years ago

IanTheEngineer commented 6 years ago

Adds command timeout. This is implemented on the real robot, preventing the robot from continuously moving if JointCommand is published too infrequently. If the minimum frequency is met, the controllers will function as normal. If the timeout is violated, the arm switches to Position Control mode and holds its position.

This PR:

Note: This approach does not not stop the arm from moving if the arm is already in Position/Trajectory mode. Additional investigation is required to force these modes to stop movement and hold position if the timeout is violated.