forked from ongdexter/ar3_core
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for Estop - Disables motors from updating step when Estop is pressed - Adds a new function on teensy source to reset Estop from the host and discard any old command - MT request returns ES response to the teensy_driver, which caches the estop state - Hardware interface resets the estop on activation - Hardware interface disables the interface with an error if estop is set during a write operation - A reset estop script added as part of ar_hardware_interface package - don't re-calibrate after estop reset --------- Co-authored-by: Abhijit Majumdar <abhijit.g.majumdar.com> Co-authored-by: Yifei Cheng <[email protected]>
- Loading branch information
1 parent
eb87c54
commit 1bdf7e0
Showing
8 changed files
with
124 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# This is a convenience script to reset the EStop | ||
|
||
set -e # exit if error | ||
|
||
if [ -z "$1" ]; then | ||
printf "\tUsage: ros2 run ar_hardware_interface reset_estop.sh <AR_MODEL>\n" | ||
printf "\twhere <AR_MODEL> is 'mk1', 'mk2' or 'mk3'\n" | ||
exit 1 | ||
fi | ||
|
||
ros2 control set_hardware_component_state "$1" active | ||
ros2 control set_controller_state joint_trajectory_controller active | ||
ros2 control set_controller_state joint_state_broadcaster active | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters