Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
CompassOdomAlgNode Class Reference

IRI ROS Specific Algorithm Class. More...

#include <compass_odom_alg_node.h>

Inheritance diagram for CompassOdomAlgNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CompassOdomAlgNode (void)
 Constructor.
 ~CompassOdomAlgNode (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 compass_odom_broadcaster_
 odometry tf broadcaster

Private Member Functions

void compass_callback (const iri_common_drivers_msgs::compass3axis &msg)

Private Attributes

bool compass_arrived_
ros::Publisher compass_imu_publisher_
CMutex compass_mutex_
ros::Publisher compass_odom_publisher_
ros::Subscriber compass_subscriber_
CEventServer * ES
 event server
sensor_msgs::Imu Imu_msg_
nav_msgs::Odometry Odometry_msg_
std::string parent_id_
bool publish_imu_
bool publish_tf_
std::list< std::string > SUBS_LIST
std::string TCM3_IN
 unique name of the event
geometry_msgs::TransformStamped Transform_msg_

Detailed Description

IRI ROS Specific Algorithm Class.

Definition at line 49 of file compass_odom_alg_node.h.


Constructor & Destructor Documentation

Constructor.

This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.

Definition at line 3 of file compass_odom_alg_node.cpp.

Destructor.

This destructor frees all necessary dynamic memory allocated within this this class.

Definition at line 47 of file compass_odom_alg_node.cpp.


Member Function Documentation

void CompassOdomAlgNode::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< CompassOdomAlgorithm >.

Definition at line 119 of file compass_odom_alg_node.cpp.

Definition at line 78 of file compass_odom_alg_node.cpp.

void CompassOdomAlgNode::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< CompassOdomAlgorithm >.

Definition at line 52 of file compass_odom_alg_node.cpp.

void CompassOdomAlgNode::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.

Parameters:
configan object with new configuration from all algorithm parameters defined in the config file.
levelinteger referring the level in which the configuration has been changed.

Implements algorithm_base::IriBaseAlgorithm< CompassOdomAlgorithm >.

Definition at line 115 of file compass_odom_alg_node.cpp.


Member Data Documentation

Definition at line 69 of file compass_odom_alg_node.h.

Definition at line 56 of file compass_odom_alg_node.h.

Definition at line 63 of file compass_odom_alg_node.h.

odometry tf broadcaster

This attribute is used to broadcast odometry based robot position through tf transforms.

Definition at line 106 of file compass_odom_alg_node.h.

Definition at line 53 of file compass_odom_alg_node.h.

Definition at line 61 of file compass_odom_alg_node.h.

CEventServer* CompassOdomAlgNode::ES [private]

event server

Definition at line 66 of file compass_odom_alg_node.h.

sensor_msgs::Imu CompassOdomAlgNode::Imu_msg_ [private]

Definition at line 57 of file compass_odom_alg_node.h.

nav_msgs::Odometry CompassOdomAlgNode::Odometry_msg_ [private]

Definition at line 54 of file compass_odom_alg_node.h.

std::string CompassOdomAlgNode::parent_id_ [private]

Definition at line 70 of file compass_odom_alg_node.h.

Definition at line 58 of file compass_odom_alg_node.h.

Definition at line 71 of file compass_odom_alg_node.h.

std::list<std::string> CompassOdomAlgNode::SUBS_LIST [private]

Definition at line 68 of file compass_odom_alg_node.h.

std::string CompassOdomAlgNode::TCM3_IN [private]

unique name of the event

Definition at line 67 of file compass_odom_alg_node.h.

geometry_msgs::TransformStamped CompassOdomAlgNode::Transform_msg_ [private]

Definition at line 55 of file compass_odom_alg_node.h.


The documentation for this class was generated from the following files:


iri_msg_to_odom
Author(s): Marti Morta, mmorta at iri.upc.edu
autogenerated on Fri Dec 6 2013 22:08:38