IRI ROS Specific Algorithm Class. More...
#include <arm_movements_by_pose_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 59 of file arm_movements_by_pose_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 3 of file arm_movements_by_pose_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 37 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::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< ArmMovementsByPoseAlgorithm >.
Definition at line 469 of file arm_movements_by_pose_alg_node.cpp.
bool ArmMovementsByPoseAlgNode::clean_movementCallback | ( | estirabot_msgs::ArmMovementsPosesSrv::Request & | req, |
estirabot_msgs::ArmMovementsPosesSrv::Response & | res | ||
) | [private] |
Definition at line 93 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::get_poses_markers | ( | std::vector< geometry_msgs::PoseStamped > | poses, |
std::vector< uint8_t > | secondary_arm | ||
) | [private] |
Get markers showing the movements.
Shows markers for rviz showing the movements that the robot is going to perform
Definition at line 488 of file arm_movements_by_pose_alg_node.cpp.
std::vector< double > ArmMovementsByPoseAlgNode::get_wam_movement_speed | ( | ) | [private] |
gets array of vels or accs used by iri_wam_wrapper
Gets array of vels or accs used by iri_wam_wrapper. Returns an array containing 7 copies of robot_movement_speed_.
Definition at line 480 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::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< ArmMovementsByPoseAlgorithm >.
Definition at line 44 of file arm_movements_by_pose_alg_node.cpp.
bool ArmMovementsByPoseAlgNode::move_armMakeActionRequest | ( | bool | right_arm, |
arm_navigation_msgs::SimplePoseConstraint | desired_pose, | ||
std::string | group_name | ||
) | [private] |
Definition at line 377 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::move_left_armActive | ( | ) | [private] |
Definition at line 272 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::move_left_armDone | ( | const actionlib::SimpleClientGoalState & | state, |
const arm_navigation_msgs::MoveArmResultConstPtr & | result | ||
) | [private] |
Definition at line 262 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::move_left_armFeedback | ( | const arm_navigation_msgs::MoveArmFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 277 of file arm_movements_by_pose_alg_node.cpp.
bool ArmMovementsByPoseAlgNode::move_left_armMakeActionRequest | ( | geometry_msgs::PoseStamped | pose | ) | [private] |
Definition at line 333 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::move_right_armActive | ( | ) | [private] |
Definition at line 244 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::move_right_armDone | ( | const actionlib::SimpleClientGoalState & | state, |
const arm_navigation_msgs::MoveArmResultConstPtr & | result | ||
) | [private] |
Definition at line 234 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::move_right_armFeedback | ( | const arm_navigation_msgs::MoveArmFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 249 of file arm_movements_by_pose_alg_node.cpp.
bool ArmMovementsByPoseAlgNode::move_right_armMakeActionRequest | ( | geometry_msgs::PoseStamped | pose | ) | [private] |
Definition at line 294 of file arm_movements_by_pose_alg_node.cpp.
void ArmMovementsByPoseAlgNode::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< ArmMovementsByPoseAlgorithm >.
Definition at line 571 of file arm_movements_by_pose_alg_node.cpp.
CMutex ArmMovementsByPoseAlgNode::clean_movement_mutex_ [private] |
Definition at line 71 of file arm_movements_by_pose_alg_node.h.
Definition at line 69 of file arm_movements_by_pose_alg_node.h.
Definition at line 104 of file arm_movements_by_pose_alg_node.h.
Definition at line 78 of file arm_movements_by_pose_alg_node.h.
iri_wam_common_msgs::wamInverseKinematics ArmMovementsByPoseAlgNode::get_joints_from_pose_srv_ [private] |
Definition at line 79 of file arm_movements_by_pose_alg_node.h.
bool ArmMovementsByPoseAlgNode::log_movements [private] |
Definition at line 106 of file arm_movements_by_pose_alg_node.h.
std::ofstream ArmMovementsByPoseAlgNode::logfile [private] |
Definition at line 111 of file arm_movements_by_pose_alg_node.h.
visualization_msgs::MarkerArray ArmMovementsByPoseAlgNode::MarkerArray_msg_ [private] |
Definition at line 64 of file arm_movements_by_pose_alg_node.h.
Definition at line 76 of file arm_movements_by_pose_alg_node.h.
iri_wam_common_msgs::joints_move ArmMovementsByPoseAlgNode::move_in_joints_srv_ [private] |
Definition at line 77 of file arm_movements_by_pose_alg_node.h.
actionlib::SimpleActionClient<arm_navigation_msgs::MoveArmAction> ArmMovementsByPoseAlgNode::move_left_arm_client_ [private] |
Definition at line 93 of file arm_movements_by_pose_alg_node.h.
Definition at line 94 of file arm_movements_by_pose_alg_node.h.
actionlib::SimpleActionClient<arm_navigation_msgs::MoveArmAction> ArmMovementsByPoseAlgNode::move_right_arm_client_ [private] |
Definition at line 86 of file arm_movements_by_pose_alg_node.h.
Definition at line 87 of file arm_movements_by_pose_alg_node.h.
double ArmMovementsByPoseAlgNode::pitch_rotation [private] |
Definition at line 107 of file arm_movements_by_pose_alg_node.h.
Definition at line 80 of file arm_movements_by_pose_alg_node.h.
iri_wam_common_msgs::pose_move ArmMovementsByPoseAlgNode::pose_move_srv_ [private] |
Definition at line 81 of file arm_movements_by_pose_alg_node.h.
double ArmMovementsByPoseAlgNode::robot_movement_speed_ [private] |
Definition at line 108 of file arm_movements_by_pose_alg_node.h.
bool ArmMovementsByPoseAlgNode::robot_wam [private] |
Definition at line 105 of file arm_movements_by_pose_alg_node.h.
double ArmMovementsByPoseAlgNode::roll_rotation [private] |
Definition at line 107 of file arm_movements_by_pose_alg_node.h.
Definition at line 63 of file arm_movements_by_pose_alg_node.h.
Definition at line 74 of file arm_movements_by_pose_alg_node.h.
iri_wam_common_msgs::pose_move ArmMovementsByPoseAlgNode::wam_pose_move_srv_ [private] |
Definition at line 75 of file arm_movements_by_pose_alg_node.h.
double ArmMovementsByPoseAlgNode::yaw_rotation [private] |
Definition at line 107 of file arm_movements_by_pose_alg_node.h.