Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added recover and stop in RobotHW #294

Open
wants to merge 7 commits into
base: kinetic-devel
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions hardware_interface/include/hardware_interface/robot_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ class RobotHW : public InterfaceManager
* \returns True if initialization was successful
*/
virtual bool init(ros::NodeHandle& root_nh, ros::NodeHandle &robot_hw_nh) {return true;}

/** \brief The stop function is called to stop the RobotHW from a
* non-realtime thread. Usually on controller manager shutdown.
destogl marked this conversation as resolved.
Show resolved Hide resolved
*
* \returns True if stopping was successful
*/
virtual bool stop() {return true;}

/** \brief The recover function is called to recover/reinitialize the RobotHW after and
* error state (e.g. emergency stop, safety stop, hardware limits) from a non-realtime
* thread.
*
* \returns True if recovering was successful
*/
virtual bool recover() {return true;}

/** \name Resource Management
*\{*/
Expand Down