Controller for executing a gripper command action for simple single-dof grippers. More...
#include <gripper_action_controller.h>
Classes | |
struct | Commands |
Store position and max effort in struct to allow easier realtime buffer usage. More... | |
Public Member Functions | |
GripperActionController () | |
Non Real-Time Safe Functions | |
bool | init (HardwareInterface *hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh) |
Public Member Functions inherited from controller_interface::Controller< HardwareInterface > | |
virtual bool | init (T *, ros::NodeHandle &) |
virtual bool | init (T *, ros::NodeHandle &, ros::NodeHandle &) |
Public Member Functions inherited from controller_interface::ControllerBase | |
virtual void | aborting (const ros::Time &) |
virtual void | aborting (const ros::Time &) |
bool | abortRequest (const ros::Time &time) |
bool | abortRequest (const ros::Time &time) |
ControllerBase ()=default | |
ControllerBase (const ControllerBase &)=delete | |
ControllerBase (ControllerBase &&)=delete | |
bool | isAborted () const |
bool | isAborted () const |
bool | isInitialized () const |
bool | isInitialized () const |
bool | isRunning () const |
bool | isRunning () const |
bool | isStopped () const |
bool | isStopped () const |
bool | isWaiting () const |
bool | isWaiting () const |
ControllerBase & | operator= (const ControllerBase &)=delete |
ControllerBase & | operator= (ControllerBase &&)=delete |
bool | startRequest (const ros::Time &time) |
bool | startRequest (const ros::Time &time) |
bool | stopRequest (const ros::Time &time) |
bool | stopRequest (const ros::Time &time) |
void | updateRequest (const ros::Time &time, const ros::Duration &period) |
void | updateRequest (const ros::Time &time, const ros::Duration &period) |
virtual void | waiting (const ros::Time &) |
virtual void | waiting (const ros::Time &) |
bool | waitRequest (const ros::Time &time) |
bool | waitRequest (const ros::Time &time) |
virtual | ~ControllerBase ()=default |
Additional Inherited Members | |
Public Types inherited from controller_interface::ControllerBase | |
typedef std::vector< hardware_interface::InterfaceResources > | ClaimedResources |
enum | ControllerState { ControllerState::CONSTRUCTED, ControllerState::INITIALIZED, ControllerState::RUNNING, ControllerState::STOPPED, ControllerState::WAITING, ControllerState::ABORTED } |
Public Attributes inherited from controller_interface::ControllerBase | |
ControllerState | state_ |
Protected Member Functions inherited from controller_interface::Controller< HardwareInterface > | |
std::string | getHardwareInterfaceType () const |
bool | initRequest (hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh, ClaimedResources &claimed_resources) override |
Controller for executing a gripper command action for simple single-dof grippers.
HardwareInterface | Controller hardware interface. Currently hardware_interface::PositionJointInterface and hardware_interface::EffortJointInterface are supported out-of-the-box. |
Definition at line 68 of file gripper_action_controller.h.
|
private |
Definition at line 104 of file gripper_action_controller.h.
|
private |
Definition at line 105 of file gripper_action_controller.h.
|
private |
Definition at line 106 of file gripper_action_controller.h.
|
private |
Definition at line 110 of file gripper_action_controller.h.
|
private |
Definition at line 107 of file gripper_action_controller.h.
|
private |
Definition at line 108 of file gripper_action_controller.h.
gripper_action_controller::GripperActionController< HardwareInterface >::GripperActionController |
Definition at line 129 of file gripper_action_controller_impl.h.
|
private |
Definition at line 286 of file gripper_action_controller_impl.h.
|
private |
Check for success and publish appropriate result and feedback.
Definition at line 316 of file gripper_action_controller_impl.h.
|
private |
Definition at line 245 of file gripper_action_controller_impl.h.
bool gripper_action_controller::GripperActionController< HardwareInterface >::init | ( | HardwareInterface * | hw, |
ros::NodeHandle & | root_nh, | ||
ros::NodeHandle & | controller_nh | ||
) |
Definition at line 134 of file gripper_action_controller_impl.h.
|
inlineprivate |
Definition at line 113 of file gripper_action_controller_impl.h.
|
private |
Definition at line 307 of file gripper_action_controller_impl.h.
|
inlinevirtual |
Holds the current position.
Reimplemented from controller_interface::ControllerBase.
Definition at line 93 of file gripper_action_controller_impl.h.
|
inlinevirtual |
Cancels the active action goal, if any.
Reimplemented from controller_interface::ControllerBase.
Definition at line 106 of file gripper_action_controller_impl.h.
|
virtual |
Implements controller_interface::ControllerBase.
Definition at line 225 of file gripper_action_controller_impl.h.
|
private |
Definition at line 124 of file gripper_action_controller.h.
|
private |
Definition at line 128 of file gripper_action_controller.h.
realtime_tools::RealtimeBuffer<Commands> gripper_action_controller::GripperActionController< HardwareInterface >::command_ |
Definition at line 99 of file gripper_action_controller.h.
Commands gripper_action_controller::GripperActionController< HardwareInterface >::command_struct_ |
Definition at line 100 of file gripper_action_controller.h.
Commands gripper_action_controller::GripperActionController< HardwareInterface >::command_struct_rt_ |
Definition at line 100 of file gripper_action_controller.h.
|
private |
Computed command.
Definition at line 138 of file gripper_action_controller.h.
|
private |
Definition at line 127 of file gripper_action_controller.h.
|
private |
Max allowed effort.
Definition at line 141 of file gripper_action_controller.h.
|
private |
Definition at line 130 of file gripper_action_controller.h.
|
private |
Definition at line 142 of file gripper_action_controller.h.
|
private |
Adapts desired goal state to HW interface.
Definition at line 119 of file gripper_action_controller.h.
|
private |
Handles to controlled joints.
Definition at line 116 of file gripper_action_controller.h.
|
private |
Controlled joint names.
Definition at line 117 of file gripper_action_controller.h.
|
private |
Store stall time.
Definition at line 137 of file gripper_action_controller.h.
|
private |
Controller name.
Definition at line 115 of file gripper_action_controller.h.
|
private |
Definition at line 122 of file gripper_action_controller.h.
|
private |
Currently active action goal, if any.
Definition at line 121 of file gripper_action_controller.h.
|
private |
Definition at line 140 of file gripper_action_controller.h.
|
private |
Stall related parameters.
Definition at line 140 of file gripper_action_controller.h.
|
private |
Definition at line 112 of file gripper_action_controller.h.
|
private |
Hard coded verbose flag to help in debugging.
Definition at line 114 of file gripper_action_controller.h.