IRI ROS Specific Algorithm Class. More...
#include <tibi_dabo_pitch_estimator_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 57 of file tibi_dabo_pitch_estimator_alg_node.h.
enum TibiDaboPitchEstimatorAlgNode::res_lines [private] |
Definition at line 82 of file tibi_dabo_pitch_estimator_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 7 of file tibi_dabo_pitch_estimator_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 36 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::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< TibiDaboPitchEstimatorAlgorithm >.
Definition at line 622 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::front_laser_callback | ( | const sensor_msgs::LaserScan::ConstPtr & | msg | ) | [private] |
Definition at line 145 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::laser_callback | ( | const sensor_msgs::LaserScan::ConstPtr & | msg | ) | [private] |
Definition at line 116 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::line_node | ( | double & | a1, |
double & | b1, | ||
double & | a2, | ||
double & | b2, | ||
res_lines | result_lines_ | ||
) | [private] |
Definition at line 282 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::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< TibiDaboPitchEstimatorAlgorithm >.
Definition at line 41 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::marker_point_front_laser_node | ( | double | front_laser_point_x, |
double | front_laser_point_y | ||
) | [private] |
Definition at line 561 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::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< TibiDaboPitchEstimatorAlgorithm >.
Definition at line 615 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::pitch_callback | ( | const iri_segway_rmp_msgs::SegwayRMP200Status::ConstPtr & | msg | ) | [private] |
Definition at line 102 of file tibi_dabo_pitch_estimator_alg_node.cpp.
void TibiDaboPitchEstimatorAlgNode::rear_laser_callback | ( | const sensor_msgs::LaserScan::ConstPtr & | msg | ) | [private] |
Definition at line 211 of file tibi_dabo_pitch_estimator_alg_node.cpp.
double TibiDaboPitchEstimatorAlgNode::a1 [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::a2 [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::Marker TibiDaboPitchEstimatorAlgNode::arrow_marker3_ [private] |
Definition at line 78 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::Marker TibiDaboPitchEstimatorAlgNode::arrow_marker4_ [private] |
Definition at line 79 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::b1 [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::b2 [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::Marker TibiDaboPitchEstimatorAlgNode::distance_front_laser_marker6_ [private] |
Definition at line 81 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::error [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 61 of file tibi_dabo_pitch_estimator_alg_node.h.
CMutex TibiDaboPitchEstimatorAlgNode::front_laser_mutex_ [private] |
Definition at line 97 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::front_laser_point_x [private] |
Definition at line 121 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::front_laser_point_y [private] |
Definition at line 121 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 95 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 150 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::Marker TibiDaboPitchEstimatorAlgNode::intersection_marker5_ [private] |
Definition at line 80 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 149 of file tibi_dabo_pitch_estimator_alg_node.h.
CMutex TibiDaboPitchEstimatorAlgNode::laser_mutex_ [private] |
Definition at line 105 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 103 of file tibi_dabo_pitch_estimator_alg_node.h.
sensor_msgs::LaserScan TibiDaboPitchEstimatorAlgNode::LaserScan_front_msg_ [private] |
Definition at line 62 of file tibi_dabo_pitch_estimator_alg_node.h.
sensor_msgs::LaserScan TibiDaboPitchEstimatorAlgNode::LaserScan_rear_msg_ [private] |
Definition at line 65 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::Marker TibiDaboPitchEstimatorAlgNode::line_marker2_ [private] |
Definition at line 77 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::Marker TibiDaboPitchEstimatorAlgNode::line_marker_ [private] |
Definition at line 76 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 68 of file tibi_dabo_pitch_estimator_alg_node.h.
visualization_msgs::MarkerArray TibiDaboPitchEstimatorAlgNode::MarkerArray_msg_ [private] |
Definition at line 69 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::my_pitch_angle_ [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::pitch [private] |
Definition at line 120 of file tibi_dabo_pitch_estimator_alg_node.h.
CMutex TibiDaboPitchEstimatorAlgNode::pitch_mutex_ [private] |
Definition at line 101 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 99 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 150 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 64 of file tibi_dabo_pitch_estimator_alg_node.h.
CMutex TibiDaboPitchEstimatorAlgNode::rear_laser_mutex_ [private] |
Definition at line 93 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::rear_laser_point_x [private] |
Definition at line 121 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::rear_laser_point_y [private] |
Definition at line 121 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 91 of file tibi_dabo_pitch_estimator_alg_node.h.
Claser_linear_regression TibiDaboPitchEstimatorAlgNode::reg_line_ |
Definition at line 148 of file tibi_dabo_pitch_estimator_alg_node.h.
Claser_linear_regression::linear_regression_result TibiDaboPitchEstimatorAlgNode::result_ |
Definition at line 151 of file tibi_dabo_pitch_estimator_alg_node.h.
Claser_linear_regression::linear_regression_result TibiDaboPitchEstimatorAlgNode::result_horizontal |
Definition at line 151 of file tibi_dabo_pitch_estimator_alg_node.h.
Definition at line 83 of file tibi_dabo_pitch_estimator_alg_node.h.
double TibiDaboPitchEstimatorAlgNode::security_distance_ [private] |
Definition at line 122 of file tibi_dabo_pitch_estimator_alg_node.h.