IRI ROS Specific Algorithm Class. More...
#include <grasp_actions_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 54 of file grasp_actions_alg_node.h.
typedef std::vector<std::string> GraspActionsAlgNode::FingersConfiguration [private] |
Definition at line 58 of file grasp_actions_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
This is the base cpp file which does not contain the main function.
Not main function here so it is reusable by the testing suite. If you are looking for the executable, see grasp_actions_alg_node.cpp
Definition at line 10 of file grasp_actions_alg_node_base.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 41 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::addNodeDiagnostics | ( | void | ) | [protected, virtual] |
node add diagnostics
In this abstract function additional ROS diagnostics applied to the specific algorithms may be added.
Implements algorithm_base::IriBaseAlgorithm< GraspActionsAlgorithm >.
Definition at line 250 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::close_gripperActive | ( | ) | [private] |
Definition at line 307 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::close_gripperDone | ( | const actionlib::SimpleClientGoalState & | state, |
const iri_dynamixel_gripper::closeResultConstPtr & | result | ||
) | [private] |
Definition at line 300 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::close_gripperFeedback | ( | const iri_dynamixel_gripper::closeFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 308 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::close_gripperMakeActionRequest | ( | ) | [private] |
Definition at line 271 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::mainNodeThread | ( | void | ) | [protected, virtual] |
main node thread
This is the main thread node function. Code written here will be executed in every node loop while the algorithm is on running state. Loop frequency can be tuned by modifying loop_rate attribute.
Here data related to the process loop or to ROS topics (mainly data structs related to the MSG and SRV files) must be updated. ROS publisher objects must publish their data in this process. ROS client servers may also request data to the corresponding server topics.
Implements algorithm_base::IriBaseAlgorithm< GraspActionsAlgorithm >.
Definition at line 46 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::moveArm | ( | const geometry_msgs::PoseStamped | pose | ) | [private] |
Definition at line 61 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::moveFingers | ( | const FingersConfiguration & | finger_config | ) | [private] |
Definition at line 97 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::moveFingersBHand | ( | const FingersConfiguration & | finger_config | ) | [private] |
Definition at line 133 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::moveFingersGripper | ( | const FingersConfiguration & | finger_config | ) | [private] |
Definition at line 107 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::node_config_update | ( | Config & | config, |
uint32_t | level | ||
) | [protected, virtual] |
dynamic reconfigure server callback
This method is called whenever a new configuration is received through the dynamic reconfigure. The derivated generic algorithm class must implement it.
config | an object with new configuration from all algorithm parameters defined in the config file. |
level | integer referring the level in which the configuration has been changed. |
Implements algorithm_base::IriBaseAlgorithm< GraspActionsAlgorithm >.
Definition at line 236 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::open_gripperActive | ( | ) | [private] |
Definition at line 297 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::open_gripperDone | ( | const actionlib::SimpleClientGoalState & | state, |
const iri_dynamixel_gripper::openResultConstPtr & | result | ||
) | [private] |
Definition at line 290 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::open_gripperFeedback | ( | const iri_dynamixel_gripper::openFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 298 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::open_gripperMakeActionRequest | ( | ) | [private] |
Definition at line 253 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::pickupGetFeedbackCallback | ( | iri_wam_common_msgs::SimpleBhandPickUpFeedbackPtr & | feedback | ) | [private] |
Definition at line 227 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::pickupGetResultCallback | ( | iri_wam_common_msgs::SimpleBhandPickUpResultPtr & | result | ) | [private] |
Definition at line 219 of file grasp_actions_alg_node_base.cpp.
bool GraspActionsAlgNode::pickupHasSucceedCallback | ( | void | ) | [private] |
Definition at line 207 of file grasp_actions_alg_node_base.cpp.
bool GraspActionsAlgNode::pickupIsFinishedCallback | ( | void | ) | [private] |
Definition at line 195 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::pickupStartCallback | ( | const iri_wam_common_msgs::SimpleBhandPickUpGoalConstPtr & | goal | ) | [private] |
Definition at line 176 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::pickupStopCallback | ( | void | ) | [private] |
Definition at line 188 of file grasp_actions_alg_node_base.cpp.
void GraspActionsAlgNode::run_grasp_actions | ( | const GraspPhaseSequence & | actions | ) | [private] |
Definition at line 155 of file grasp_actions_alg_node_base.cpp.
Definition at line 73 of file grasp_actions_alg_node.h.
actionlib::SimpleActionClient<iri_dynamixel_gripper::closeAction> GraspActionsAlgNode::close_gripper_client_ [private] |
Definition at line 103 of file grasp_actions_alg_node.h.
Definition at line 104 of file grasp_actions_alg_node.h.
std::string GraspActionsAlgNode::grasp_fingers_configuration_ [private] |
Definition at line 62 of file grasp_actions_alg_node.h.
Definition at line 64 of file grasp_actions_alg_node.h.
Definition at line 74 of file grasp_actions_alg_node.h.
actionlib::SimpleActionClient<iri_dynamixel_gripper::openAction> GraspActionsAlgNode::open_gripper_client_ [private] |
Definition at line 96 of file grasp_actions_alg_node.h.
Definition at line 97 of file grasp_actions_alg_node.h.
IriActionServer<iri_wam_common_msgs::SimpleBhandPickUpAction> GraspActionsAlgNode::pickup_aserver_ [private] |
Definition at line 87 of file grasp_actions_alg_node.h.
std::string GraspActionsAlgNode::pre_grasp_fingers_configuration_ [private] |
Definition at line 61 of file grasp_actions_alg_node.h.
int GraspActionsAlgNode::status_ [private] |
Definition at line 63 of file grasp_actions_alg_node.h.
bool GraspActionsAlgNode::using_bhand_ [private] |
Definition at line 111 of file grasp_actions_alg_node.h.
Definition at line 75 of file grasp_actions_alg_node.h.