Public Member Functions | Private Member Functions | Private Attributes
rail_lab_location_server Class Reference

Action server for high-level movement commands. More...

#include <rail_lab_location_server.hpp>

List of all members.

Public Member Functions

 rail_lab_location_server ()
 Creates a rail_lab_location_server.

Private Member Functions

void active ()
void done (const actionlib::SimpleClientGoalState &state, const move_base_msgs::MoveBaseResultConstPtr &result)
void execute (const carl_navigation::MoveCarlGoalConstPtr &goal)
void feedback (const move_base_msgs::MoveBaseFeedbackConstPtr &feedback)

Private Attributes

actionlib::SimpleActionServer
< carl_navigation::MoveCarlAction > 
as_
carl_navigation::MoveCarlFeedback feedback_
std::vector< locationlocations_
actionlib::SimpleActionClient
< move_base_msgs::MoveBaseAction > 
move_base_
ros::NodeHandle node_
carl_navigation::MoveCarlResult result_

Detailed Description

Action server for high-level movement commands.

The rail_lab_location_server handles the creation of the ROS action servers.

Definition at line 30 of file rail_lab_location_server.hpp.


Constructor & Destructor Documentation

Creates a rail_lab_location_server.

Creates a rail_lab_location_server object that creates the necessary action servers for high level navigation.

Definition at line 19 of file rail_lab_location_server.cpp.


Member Function Documentation

The activation callback from move_base.

Definition at line 164 of file rail_lab_location_server.cpp.

void rail_lab_location_server::done ( const actionlib::SimpleClientGoalState state,
const move_base_msgs::MoveBaseResultConstPtr &  result 
) [private]

The move_base finished callback.

Parameters:
stateThe final state.
resultThe result from move_base.

Definition at line 144 of file rail_lab_location_server.cpp.

void rail_lab_location_server::execute ( const carl_navigation::MoveCarlGoalConstPtr &  goal) [private]

The main action server execution method. A call to move_base will be made from here.

Parameters:
goalThe current goal.

Definition at line 96 of file rail_lab_location_server.cpp.

void rail_lab_location_server::feedback ( const move_base_msgs::MoveBaseFeedbackConstPtr &  feedback) [private]

The feedback callback from move_base.

Parameters:
feedbackThe feedback from move_base.

Definition at line 169 of file rail_lab_location_server.cpp.


Member Data Documentation

actionlib::SimpleActionServer<carl_navigation::MoveCarlAction> rail_lab_location_server::as_ [private]

main action server

Definition at line 70 of file rail_lab_location_server.hpp.

carl_navigation::MoveCarlFeedback rail_lab_location_server::feedback_ [private]

shared feedback

Definition at line 72 of file rail_lab_location_server.hpp.

pre-defined locations

Definition at line 73 of file rail_lab_location_server.hpp.

actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> rail_lab_location_server::move_base_ [private]

move_base action client

Definition at line 69 of file rail_lab_location_server.hpp.

a handle for this ROS node

Definition at line 68 of file rail_lab_location_server.hpp.

carl_navigation::MoveCarlResult rail_lab_location_server::result_ [private]

shared result

Definition at line 71 of file rail_lab_location_server.hpp.


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


carl_navigation
Author(s): Russell Toris , David Kent
autogenerated on Sat Jun 8 2019 20:26:04