-
Notifications
You must be signed in to change notification settings - Fork 417
Description
Adding an interface for activating the freedrive mode would probably be beneficial especially in situations where you don't have a teach pendant available.
As activating and deactivating freedrive_mode is available in ur_script, this could be easily added.
I suggest using a topic interface with a keepalive mechanism, so a user would have to regularly send a message to activate it. If input on that topic times out, it should be deactivated. The reason for that would be that it would have the same "deadman" mechanism as on the TP.
By providing a custom message and not only a simple bool topic we could restrict the freedrive functionality to only certain axes. It would probably be best to use URs feature
notation for that.
It should be fairly easy to get a proof of concept running with this.
A few culprits to keep in mind:
- This would only work if the robot is in remote_control mode
- Activating this will stop script execution of other scripts, meaning users would have to restart external control afterwards. (Same goes for using the teach button on the TP, though)
- The URScript function
teach_mode
has been migrated tofreedrive_mode
. We should check from which version on
@fmessmer, @floweisshardt FYI