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

IRI ROS Specific Algorithm Class. More...

#include <force_navigation_alg_node.h>

Inheritance diagram for ForceNavigationAlgNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ForceNavigationAlgNode (void)
 Constructor.
 ~ForceNavigationAlgNode (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

Private Member Functions

void clear_force_markers ()
void init_node ()
void move_robotActive ()
void move_robotDone (const actionlib::SimpleClientGoalState &state, const move_base_msgs::MoveBaseResultConstPtr &result)
void move_robotFeedback (const move_base_msgs::MoveBaseFeedbackConstPtr &feedback)
void move_robotMakeActionRequest ()
void tracks_callback (const iri_perception_msgs::peopleTrackingArray::ConstPtr &msg)
void vis_destinations ()
void vis_trajectories ()

Private Attributes

visualization_msgs::Marker dest_marker_
string destination_map_path_
ros::Publisher destinations_publisher_
std_msgs::Float64MultiArray Float64_msg_
visualization_msgs::Marker force_goal2_marker_
visualization_msgs::Marker force_goal_marker_
visualization_msgs::Marker force_int_person_marker_
visualization_msgs::Marker force_int_robot_marker_
string force_map_path_
visualization_msgs::Marker force_marker_
Cforce_navigation force_navigation_
visualization_msgs::Marker force_obstacle_laser_marker_
visualization_msgs::Marker force_obstacle_map_marker_
ros::Publisher forces_publisher_
visualization_msgs::MarkerArray MarkerArray_destinations_msg_
visualization_msgs::MarkerArray MarkerArray_forces_msg_
visualization_msgs::MarkerArray MarkerArray_trajectories_msg_
bool move_base_mode_
actionlib::SimpleActionClient
< move_base_msgs::MoveBaseAction
move_robot_client_
move_base_msgs::MoveBaseGoal move_robot_goal_
ros::Publisher navigation_work_publisher_
geometry_msgs::PoseStamped PoseStamped_msg_
Spose robot_desired_position_
std::string robot_frame_
visualization_msgs::Marker robot_marker_
bool robot_sim_
ros::Publisher robot_simulated_pose_publisher_
bool robot_stop_
double robot_x_ini_
double robot_y_ini_
std::string target_frame_
visualization_msgs::Marker target_marker_
visualization_msgs::Marker text_marker_
tf::TransformListener tf_listener_
tf::TransformListener tf_main_
CMutex tracks_mutex_
ros::Subscriber tracks_subscriber_
visualization_msgs::Marker traj_marker_
visualization_msgs::Marker traj_robot_marker_
ros::Publisher trajectories_publisher_
geometry_msgs::Twist Twist_msg_
ros::Publisher velocity_publisher_

Detailed Description

IRI ROS Specific Algorithm Class.

Definition at line 51 of file force_navigation_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 force_navigation_alg_node.cpp.

Destructor.

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

Definition at line 40 of file force_navigation_alg_node.cpp.


Member Function Documentation

void ForceNavigationAlgNode::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< ForceNavigationAlgorithm >.

Definition at line 758 of file force_navigation_alg_node.cpp.

Definition at line 498 of file force_navigation_alg_node.cpp.

void ForceNavigationAlgNode::init_node ( void  ) [private]

Definition at line 157 of file force_navigation_alg_node.cpp.

void ForceNavigationAlgNode::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< ForceNavigationAlgorithm >.

Definition at line 45 of file force_navigation_alg_node.cpp.

Definition at line 669 of file force_navigation_alg_node.cpp.

Definition at line 659 of file force_navigation_alg_node.cpp.

Definition at line 674 of file force_navigation_alg_node.cpp.

Definition at line 692 of file force_navigation_alg_node.cpp.

void ForceNavigationAlgNode::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< ForceNavigationAlgorithm >.

Definition at line 715 of file force_navigation_alg_node.cpp.

Definition at line 591 of file force_navigation_alg_node.cpp.

Definition at line 509 of file force_navigation_alg_node.cpp.

Definition at line 319 of file force_navigation_alg_node.cpp.


Member Data Documentation

visualization_msgs::Marker ForceNavigationAlgNode::dest_marker_ [private]

Definition at line 67 of file force_navigation_alg_node.h.

Definition at line 105 of file force_navigation_alg_node.h.

Definition at line 63 of file force_navigation_alg_node.h.

std_msgs::Float64MultiArray ForceNavigationAlgNode::Float64_msg_ [private]

Definition at line 56 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_goal2_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_goal_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_int_person_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_int_robot_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

Definition at line 105 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

Cforce_navigation ForceNavigationAlgNode::force_navigation_ [private]

Definition at line 95 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_obstacle_laser_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::force_obstacle_map_marker_ [private]

Definition at line 69 of file force_navigation_alg_node.h.

Definition at line 61 of file force_navigation_alg_node.h.

visualization_msgs::MarkerArray ForceNavigationAlgNode::MarkerArray_destinations_msg_ [private]

Definition at line 64 of file force_navigation_alg_node.h.

visualization_msgs::MarkerArray ForceNavigationAlgNode::MarkerArray_forces_msg_ [private]

Definition at line 62 of file force_navigation_alg_node.h.

visualization_msgs::MarkerArray ForceNavigationAlgNode::MarkerArray_trajectories_msg_ [private]

Definition at line 60 of file force_navigation_alg_node.h.

Definition at line 101 of file force_navigation_alg_node.h.

Definition at line 86 of file force_navigation_alg_node.h.

Definition at line 87 of file force_navigation_alg_node.h.

Definition at line 55 of file force_navigation_alg_node.h.

geometry_msgs::PoseStamped ForceNavigationAlgNode::PoseStamped_msg_ [private]

Definition at line 58 of file force_navigation_alg_node.h.

Definition at line 104 of file force_navigation_alg_node.h.

std::string ForceNavigationAlgNode::robot_frame_ [private]

Definition at line 100 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::robot_marker_ [private]

Definition at line 65 of file force_navigation_alg_node.h.

Definition at line 101 of file force_navigation_alg_node.h.

Definition at line 57 of file force_navigation_alg_node.h.

Definition at line 101 of file force_navigation_alg_node.h.

Definition at line 103 of file force_navigation_alg_node.h.

Definition at line 103 of file force_navigation_alg_node.h.

Definition at line 100 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::target_marker_ [private]

Definition at line 66 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::text_marker_ [private]

Definition at line 68 of file force_navigation_alg_node.h.

Definition at line 102 of file force_navigation_alg_node.h.

Definition at line 102 of file force_navigation_alg_node.h.

Definition at line 77 of file force_navigation_alg_node.h.

Definition at line 75 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::traj_marker_ [private]

Definition at line 65 of file force_navigation_alg_node.h.

visualization_msgs::Marker ForceNavigationAlgNode::traj_robot_marker_ [private]

Definition at line 65 of file force_navigation_alg_node.h.

Definition at line 59 of file force_navigation_alg_node.h.

geometry_msgs::Twist ForceNavigationAlgNode::Twist_msg_ [private]

Definition at line 72 of file force_navigation_alg_node.h.

Definition at line 71 of file force_navigation_alg_node.h.


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


iri_force_navigation
Author(s): gferrer
autogenerated on Fri Dec 6 2013 21:53:16