IRI ROS Specific Algorithm Class. More...
#include <door_detector_actions_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 50 of file door_detector_actions_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 4 of file door_detector_actions_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 47 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::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< DoorDetectorActionsAlgorithm >.
Definition at line 324 of file door_detector_actions_alg_node.cpp.
visualization_msgs::Marker DoorDetectorActionsAlgNode::ArrowMarker | ( | std_msgs::Header | header, |
geometry_msgs::Pose | pose, | ||
int | alpha, | ||
int | color, | ||
const char | arrow_tag[] | ||
) | [protected] |
Arrow Marker.
Construct an arrow marker for plane orientation visualization
Definition at line 583 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::door_centroid_callback | ( | const geometry_msgs::PoseStamped::ConstPtr & | msg | ) | [private] |
Definition at line 132 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::door_handle_callback | ( | const geometry_msgs::PoseStamped::ConstPtr & | msg | ) | [private] |
Definition at line 66 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::find_a_doorGetFeedbackCallback | ( | iri_door_detector::FindADoorFeedbackPtr & | feedback | ) | [private] |
Definition at line 300 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::find_a_doorGetResultCallback | ( | iri_door_detector::FindADoorResultPtr & | result | ) | [private] |
Definition at line 267 of file door_detector_actions_alg_node.cpp.
bool DoorDetectorActionsAlgNode::find_a_doorHasSucceedCallback | ( | void | ) | [private] |
Definition at line 250 of file door_detector_actions_alg_node.cpp.
bool DoorDetectorActionsAlgNode::find_a_doorIsFinishedCallback | ( | void | ) | [private] |
Definition at line 234 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::find_a_doorStartCallback | ( | const iri_door_detector::FindADoorGoalConstPtr & | goal | ) | [private] |
Definition at line 208 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::find_a_doorStopCallback | ( | void | ) | [private] |
Definition at line 223 of file door_detector_actions_alg_node.cpp.
arm_navigation_msgs::MotionPlanRequest DoorDetectorActionsAlgNode::liftArm | ( | geometry_msgs::PoseStamped | pose, |
std::string | target_frame | ||
) | [protected] |
lift arm
Simple arm pose to traverse partially open doors
Definition at line 509 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::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< DoorDetectorActionsAlgorithm >.
Definition at line 52 of file door_detector_actions_alg_node.cpp.
void DoorDetectorActionsAlgNode::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< DoorDetectorActionsAlgorithm >.
Definition at line 310 of file door_detector_actions_alg_node.cpp.
arm_navigation_msgs::MotionPlanRequest DoorDetectorActionsAlgNode::transformGoalArm | ( | geometry_msgs::PoseStamped | pose, |
std::string | traget_frame | ||
) | [protected] |
transform pose to arm frame
Transform a 3D pose to a pose form arm navigation
Definition at line 397 of file door_detector_actions_alg_node.cpp.
geometry_msgs::PoseStamped DoorDetectorActionsAlgNode::transformGoalBase | ( | geometry_msgs::PoseStamped | pose, |
std::string | traget_frame | ||
) | [protected] |
transform pose for to base frame
Transform a 3D pose into a 2D projection in the /base_link frame
Definition at line 335 of file door_detector_actions_alg_node.cpp.
Definition at line 82 of file door_detector_actions_alg_node.h.
double DoorDetectorActionsAlgNode::arm_distance_before_closed_door [private] |
Definition at line 108 of file door_detector_actions_alg_node.h.
Definition at line 87 of file door_detector_actions_alg_node.h.
Definition at line 88 of file door_detector_actions_alg_node.h.
CMutex DoorDetectorActionsAlgNode::arm_poses_marker_mutex_ [private] |
Definition at line 60 of file door_detector_actions_alg_node.h.
Definition at line 54 of file door_detector_actions_alg_node.h.
double DoorDetectorActionsAlgNode::base_distance_after_open_door [private] |
Definition at line 107 of file door_detector_actions_alg_node.h.
double DoorDetectorActionsAlgNode::base_distance_before_closed_door [private] |
Definition at line 106 of file door_detector_actions_alg_node.h.
geometry_msgs::PoseStamped DoorDetectorActionsAlgNode::base_door_centroid [private] |
Definition at line 84 of file door_detector_actions_alg_node.h.
geometry_msgs::PoseStamped DoorDetectorActionsAlgNode::base_door_handle [private] |
Definition at line 85 of file door_detector_actions_alg_node.h.
int DoorDetectorActionsAlgNode::closed_door [private] |
Definition at line 69 of file door_detector_actions_alg_node.h.
std::string DoorDetectorActionsAlgNode::current_planner [private] |
Definition at line 80 of file door_detector_actions_alg_node.h.
Definition at line 56 of file door_detector_actions_alg_node.h.
CMutex DoorDetectorActionsAlgNode::door_centroid_mutex_ [private] |
Definition at line 66 of file door_detector_actions_alg_node.h.
Definition at line 64 of file door_detector_actions_alg_node.h.
CMutex DoorDetectorActionsAlgNode::door_handle_mutex_ [private] |
Definition at line 63 of file door_detector_actions_alg_node.h.
Definition at line 61 of file door_detector_actions_alg_node.h.
IriActionServer<iri_door_detector::FindADoorAction> DoorDetectorActionsAlgNode::find_a_door_aserver_ [private] |
Definition at line 95 of file door_detector_actions_alg_node.h.
Definition at line 57 of file door_detector_actions_alg_node.h.
visualization_msgs::Marker DoorDetectorActionsAlgNode::marker [private] |
Definition at line 83 of file door_detector_actions_alg_node.h.
visualization_msgs::Marker DoorDetectorActionsAlgNode::Marker_msg_ [private] |
Definition at line 55 of file door_detector_actions_alg_node.h.
geometry_msgs::PoseStamped DoorDetectorActionsAlgNode::marker_pose [private] |
Definition at line 86 of file door_detector_actions_alg_node.h.
bool DoorDetectorActionsAlgNode::no_simulator [private] |
Definition at line 111 of file door_detector_actions_alg_node.h.
int DoorDetectorActionsAlgNode::open_door [private] |
Definition at line 70 of file door_detector_actions_alg_node.h.
float DoorDetectorActionsAlgNode::side_closed [private] |
Definition at line 74 of file door_detector_actions_alg_node.h.
float DoorDetectorActionsAlgNode::side_open [private] |
Definition at line 73 of file door_detector_actions_alg_node.h.
int DoorDetectorActionsAlgNode::start [private] |
Definition at line 71 of file door_detector_actions_alg_node.h.
std::string DoorDetectorActionsAlgNode::tf_arm_frame [private] |
Definition at line 77 of file door_detector_actions_alg_node.h.
std::string DoorDetectorActionsAlgNode::tf_base_frame [private] |
Definition at line 76 of file door_detector_actions_alg_node.h.
Definition at line 81 of file door_detector_actions_alg_node.h.
std::string DoorDetectorActionsAlgNode::tf_original_frame [private] |
Definition at line 75 of file door_detector_actions_alg_node.h.
std::string DoorDetectorActionsAlgNode::tf_target_frame [private] |
Definition at line 78 of file door_detector_actions_alg_node.h.
std::string DoorDetectorActionsAlgNode::tf_target_frame_2 [private] |
Definition at line 79 of file door_detector_actions_alg_node.h.
int DoorDetectorActionsAlgNode::voting_rule_approval [private] |
Definition at line 72 of file door_detector_actions_alg_node.h.
double DoorDetectorActionsAlgNode::y_offset [private] |
Definition at line 110 of file door_detector_actions_alg_node.h.
double DoorDetectorActionsAlgNode::z_arm_offset [private] |
Definition at line 109 of file door_detector_actions_alg_node.h.