IRI ROS Specific Algorithm Class. More...
#include <no_collision_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 49 of file no_collision_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 no_collision_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 57 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::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< NoCollisionAlgorithm >.
Definition at line 282 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::frontal_laser_callback | ( | const sensor_msgs::LaserScan::ConstPtr & | msg | ) | [private] |
Definition at line 136 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::getFeedbackCallback | ( | move_base_msgs::MoveBaseFeedbackPtr & | feedback | ) | [private] |
Definition at line 267 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::getResultCallback | ( | move_base_msgs::MoveBaseResultPtr & | result | ) | [private] |
Definition at line 258 of file no_collision_alg_node.cpp.
bool NoCollisionAlgNode::hasSucceedCallback | ( | void | ) | [private] |
Definition at line 249 of file no_collision_alg_node.cpp.
bool NoCollisionAlgNode::isFinishedCallback | ( | void | ) | [private] |
Definition at line 239 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::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< NoCollisionAlgorithm >.
Definition at line 62 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::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< NoCollisionAlgorithm >.
Definition at line 278 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::startCallback | ( | const move_base_msgs::MoveBaseGoalConstPtr & | goal | ) | [private] |
Definition at line 179 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::stopCallback | ( | void | ) | [private] |
Definition at line 227 of file no_collision_alg_node.cpp.
void NoCollisionAlgNode::target_vel_callback | ( | const geometry_msgs::Twist::ConstPtr & | msg | ) | [private] |
Definition at line 157 of file no_collision_alg_node.cpp.
bool NoCollisionAlgNode::action_running_ [private] |
Definition at line 85 of file no_collision_alg_node.h.
ros::Time NoCollisionAlgNode::action_start_ [private] |
Definition at line 82 of file no_collision_alg_node.h.
const double NoCollisionAlgNode::ACTION_TIMEOUT = 300 [static, private] |
Definition at line 83 of file no_collision_alg_node.h.
std::string NoCollisionAlgNode::fixed_frame_ [private] |
Definition at line 88 of file no_collision_alg_node.h.
Definition at line 61 of file no_collision_alg_node.h.
visualization_msgs::Marker NoCollisionAlgNode::goal_marker_ [private] |
Definition at line 54 of file no_collision_alg_node.h.
Definition at line 53 of file no_collision_alg_node.h.
geometry_msgs::PoseStamped NoCollisionAlgNode::goal_pose_ [private] |
Definition at line 81 of file no_collision_alg_node.h.
bool NoCollisionAlgNode::is_laser_ready_ [private] |
Definition at line 84 of file no_collision_alg_node.h.
Definition at line 70 of file no_collision_alg_node.h.
sensor_msgs::LaserScan NoCollisionAlgNode::scan_ [private] |
Definition at line 63 of file no_collision_alg_node.h.
Definition at line 55 of file no_collision_alg_node.h.
std::string NoCollisionAlgNode::target_frame_ [private] |
Definition at line 87 of file no_collision_alg_node.h.
CMutex NoCollisionAlgNode::target_vel_mutex_ [private] |
Definition at line 60 of file no_collision_alg_node.h.
Definition at line 58 of file no_collision_alg_node.h.
Definition at line 80 of file no_collision_alg_node.h.
Definition at line 80 of file no_collision_alg_node.h.