Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
packml_ros::PackmlRos Class Reference

#include <packml_ros.h>

Public Member Functions

 PackmlRos (ros::NodeHandle nh, ros::NodeHandle pn, std::shared_ptr< packml_sm::AbstractStateMachine > sm)
void spin ()
void spinOnce ()
 ~PackmlRos ()

Protected Member Functions

bool transRequest (packml_msgs::Transition::Request &req, packml_msgs::Transition::Response &res)

Protected Attributes

ros::ServiceServer get_stats_server_
ros::NodeHandle nh_
ros::NodeHandle pn_
ros::ServiceServer reset_stats_server_
std::shared_ptr< packml_sm::AbstractStateMachinesm_
packml_msgs::Status status_msg_
ros::Publisher status_pub_
ros::ServiceServer trans_server_

Private Member Functions

void getCurrentStats (packml_msgs::Stats &out_stats)
bool getStats (packml_msgs::GetStats::Request &req, packml_msgs::GetStats::Response &response)
void handleStateChanged (packml_sm::AbstractStateMachine &state_machine, const packml_sm::StateChangedEventArgs &args)
bool resetStats (packml_msgs::ResetStats::Request &req, packml_msgs::ResetStats::Response &response)

Detailed Description

Definition at line 31 of file packml_ros.h.

Constructor & Destructor Documentation

packml_ros::PackmlRos::PackmlRos ( ros::NodeHandle  nh,
ros::NodeHandle  pn,
std::shared_ptr< packml_sm::AbstractStateMachine sm 

Definition at line 27 of file packml_ros.cpp.

packml_ros::PackmlRos::~PackmlRos ( )

Definition at line 44 of file packml_ros.cpp.

Member Function Documentation

void packml_ros::PackmlRos::getCurrentStats ( packml_msgs::Stats &  out_stats)

Definition at line 159 of file packml_ros.cpp.

bool packml_ros::PackmlRos::getStats ( packml_msgs::GetStats::Request &  req,
packml_msgs::GetStats::Response &  response 

Definition at line 202 of file packml_ros.cpp.

void packml_ros::PackmlRos::handleStateChanged ( packml_sm::AbstractStateMachine state_machine,
const packml_sm::StateChangedEventArgs args 

Definition at line 139 of file packml_ros.cpp.

bool packml_ros::PackmlRos::resetStats ( packml_msgs::ResetStats::Request &  req,
packml_msgs::ResetStats::Response &  response 

Definition at line 211 of file packml_ros.cpp.

void packml_ros::PackmlRos::spin ( )

Definition at line 52 of file packml_ros.cpp.

void packml_ros::PackmlRos::spinOnce ( )

Definition at line 62 of file packml_ros.cpp.

bool packml_ros::PackmlRos::transRequest ( packml_msgs::Transition::Request &  req,
packml_msgs::Transition::Response &  res 

Definition at line 67 of file packml_ros.cpp.

Member Data Documentation

ros::ServiceServer packml_ros::PackmlRos::get_stats_server_

Definition at line 46 of file packml_ros.h.

ros::NodeHandle packml_ros::PackmlRos::nh_

Definition at line 40 of file packml_ros.h.

ros::NodeHandle packml_ros::PackmlRos::pn_

Definition at line 41 of file packml_ros.h.

ros::ServiceServer packml_ros::PackmlRos::reset_stats_server_

Definition at line 45 of file packml_ros.h.

std::shared_ptr<packml_sm::AbstractStateMachine> packml_ros::PackmlRos::sm_

Definition at line 42 of file packml_ros.h.

packml_msgs::Status packml_ros::PackmlRos::status_msg_

Definition at line 47 of file packml_ros.h.

ros::Publisher packml_ros::PackmlRos::status_pub_

Definition at line 43 of file packml_ros.h.

ros::ServiceServer packml_ros::PackmlRos::trans_server_

Definition at line 44 of file packml_ros.h.

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

Author(s): Shaun Edwards
autogenerated on Fri Jul 12 2019 03:31:00