IRI ROS Specific Algorithm Class. More...
#include <darwin_odom_alg_node.h>
Public Member Functions | |
DarwinOdomAlgNode (void) | |
Constructor. | |
~DarwinOdomAlgNode (void) | |
Destructor. | |
Protected Member Functions | |
void | addNodeDiagnostics (void) |
node add diagnostics | |
void | mainNodeThread (void) |
main node thread | |
void | node_config_update (Config &config, uint32_t level) |
dynamic reconfigure server callback | |
Protected Attributes | |
tf::TransformBroadcaster | odom_broadcaster_ |
Private Member Functions | |
void | darwin_imu_callback (const sensor_msgs::Imu::ConstPtr &msg) |
Private Attributes | |
std::string | base_link_id_ |
CMutex | darwin_imu_mutex_ |
ros::Subscriber | darwin_imu_subscriber_ |
std::string | odom_id_ |
ros::Publisher | odom_publisher_ |
nav_msgs::Odometry | Odometry_msg_ |
geometry_msgs::PoseWithCovariance | pose_ |
bool | publish_tf_ |
sensor_msgs::Imu | status |
std::string | tf_prefix_ |
geometry_msgs::Transform | transform_ |
geometry_msgs::TwistWithCovariance | twist_ |
IRI ROS Specific Algorithm Class.
Definition at line 49 of file darwin_odom_alg_node.h.
DarwinOdomAlgNode::DarwinOdomAlgNode | ( | void | ) |
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 3 of file darwin_odom_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 36 of file darwin_odom_alg_node.cpp.
void DarwinOdomAlgNode::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< DarwinOdomAlgorithm >.
Definition at line 143 of file darwin_odom_alg_node.cpp.
void DarwinOdomAlgNode::darwin_imu_callback | ( | const sensor_msgs::Imu::ConstPtr & | msg | ) | [private] |
Definition at line 114 of file darwin_odom_alg_node.cpp.
void DarwinOdomAlgNode::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< DarwinOdomAlgorithm >.
Definition at line 41 of file darwin_odom_alg_node.cpp.
void DarwinOdomAlgNode::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< DarwinOdomAlgorithm >.
Definition at line 136 of file darwin_odom_alg_node.cpp.
std::string DarwinOdomAlgNode::base_link_id_ [private] |
Definition at line 78 of file darwin_odom_alg_node.h.
CMutex DarwinOdomAlgNode::darwin_imu_mutex_ [private] |
Definition at line 60 of file darwin_odom_alg_node.h.
Definition at line 57 of file darwin_odom_alg_node.h.
Definition at line 99 of file darwin_odom_alg_node.h.
std::string DarwinOdomAlgNode::odom_id_ [private] |
Definition at line 77 of file darwin_odom_alg_node.h.
Definition at line 53 of file darwin_odom_alg_node.h.
nav_msgs::Odometry DarwinOdomAlgNode::Odometry_msg_ [private] |
Definition at line 54 of file darwin_odom_alg_node.h.
geometry_msgs::PoseWithCovariance DarwinOdomAlgNode::pose_ [private] |
Definition at line 71 of file darwin_odom_alg_node.h.
bool DarwinOdomAlgNode::publish_tf_ [private] |
Definition at line 79 of file darwin_odom_alg_node.h.
sensor_msgs::Imu DarwinOdomAlgNode::status [private] |
Definition at line 59 of file darwin_odom_alg_node.h.
std::string DarwinOdomAlgNode::tf_prefix_ [private] |
Definition at line 76 of file darwin_odom_alg_node.h.
geometry_msgs::Transform DarwinOdomAlgNode::transform_ [private] |
Definition at line 73 of file darwin_odom_alg_node.h.
geometry_msgs::TwistWithCovariance DarwinOdomAlgNode::twist_ [private] |
Definition at line 72 of file darwin_odom_alg_node.h.