Public Member Functions | Private Types | Private Attributes | List of all members
LightControl Class Reference

Public Member Functions

void actionCallback (const cob_light::SetLightModeGoalConstPtr &goal)
 
bool init ()
 
 LightControl ()
 
void markerCallback (color::rgba color)
 
void publish_diagnostics_cb (const ros::TimerEvent &)
 
bool serviceCallback (cob_light::SetLightMode::Request &req, cob_light::SetLightMode::Response &res)
 
bool stopMode (cob_light::StopLightMode::Request &req, cob_light::StopLightMode::Response &res)
 
void topicCallback (cob_light::ColorRGBAArray color)
 
 ~LightControl ()
 

Private Types

typedef actionlib::SimpleActionServer< cob_light::SetLightModeAction > ActionServer
 

Private Attributes

ActionServer_as
 
int _baudrate
 
bool _bPubMarker
 
bool _bSimEnabled
 
color::rgba _color
 
std::string _deviceDriver
 
std::string _deviceString
 
diagnostic_msgs::DiagnosticArray _diagnostics
 
ros::Timer _diagnostics_timer
 
int _invertMask
 
boost::mutex _mutex
 
ros::NodeHandle _nh
 
int _num_leds
 
ros::Publisher _pubDiagnostic
 
ros::Publisher _pubMarker
 
SerialIO _serialIO
 
std::string _sMarkerFrame
 
ros::ServiceServer _srvServer
 
ros::ServiceServer _srvStopMode
 
ros::Subscriber _sub
 
ros::Subscriber _sub_mode
 
int _topic_priority
 
IColorOp_colorO
 
ModeExecutorp_modeExecutor
 

Detailed Description

Definition at line 77 of file cob_light.cpp.

Member Typedef Documentation

typedef actionlib::SimpleActionServer<cob_light::SetLightModeAction> LightControl::ActionServer
private

Definition at line 456 of file cob_light.cpp.

Constructor & Destructor Documentation

LightControl::LightControl ( )
inline

Definition at line 80 of file cob_light.cpp.

LightControl::~LightControl ( )
inline

Definition at line 247 of file cob_light.cpp.

Member Function Documentation

void LightControl::actionCallback ( const cob_light::SetLightModeGoalConstPtr &  goal)
inline

Definition at line 350 of file cob_light.cpp.

bool LightControl::init ( )
inline

Definition at line 84 of file cob_light.cpp.

void LightControl::markerCallback ( color::rgba  color)
inline

Definition at line 407 of file cob_light.cpp.

void LightControl::publish_diagnostics_cb ( const ros::TimerEvent )
inline

Definition at line 401 of file cob_light.cpp.

bool LightControl::serviceCallback ( cob_light::SetLightMode::Request &  req,
cob_light::SetLightMode::Response &  res 
)
inline

Definition at line 311 of file cob_light.cpp.

bool LightControl::stopMode ( cob_light::StopLightMode::Request &  req,
cob_light::StopLightMode::Response &  res 
)
inline

Definition at line 389 of file cob_light.cpp.

void LightControl::topicCallback ( cob_light::ColorRGBAArray  color)
inline

Definition at line 260 of file cob_light.cpp.

Member Data Documentation

ActionServer* LightControl::_as
private

Definition at line 457 of file cob_light.cpp.

int LightControl::_baudrate
private

Definition at line 436 of file cob_light.cpp.

bool LightControl::_bPubMarker
private

Definition at line 438 of file cob_light.cpp.

bool LightControl::_bSimEnabled
private

Definition at line 440 of file cob_light.cpp.

color::rgba LightControl::_color
private

Definition at line 459 of file cob_light.cpp.

std::string LightControl::_deviceDriver
private

Definition at line 434 of file cob_light.cpp.

std::string LightControl::_deviceString
private

Definition at line 435 of file cob_light.cpp.

diagnostic_msgs::DiagnosticArray LightControl::_diagnostics
private

Definition at line 452 of file cob_light.cpp.

ros::Timer LightControl::_diagnostics_timer
private

Definition at line 454 of file cob_light.cpp.

int LightControl::_invertMask
private

Definition at line 437 of file cob_light.cpp.

boost::mutex LightControl::_mutex
private

Definition at line 465 of file cob_light.cpp.

ros::NodeHandle LightControl::_nh
private

Definition at line 445 of file cob_light.cpp.

int LightControl::_num_leds
private

Definition at line 441 of file cob_light.cpp.

ros::Publisher LightControl::_pubDiagnostic
private

Definition at line 453 of file cob_light.cpp.

ros::Publisher LightControl::_pubMarker
private

Definition at line 448 of file cob_light.cpp.

SerialIO LightControl::_serialIO
private

Definition at line 462 of file cob_light.cpp.

std::string LightControl::_sMarkerFrame
private

Definition at line 439 of file cob_light.cpp.

ros::ServiceServer LightControl::_srvServer
private

Definition at line 449 of file cob_light.cpp.

ros::ServiceServer LightControl::_srvStopMode
private

Definition at line 450 of file cob_light.cpp.

ros::Subscriber LightControl::_sub
private

Definition at line 446 of file cob_light.cpp.

ros::Subscriber LightControl::_sub_mode
private

Definition at line 447 of file cob_light.cpp.

int LightControl::_topic_priority
private

Definition at line 443 of file cob_light.cpp.

IColorO* LightControl::p_colorO
private

Definition at line 461 of file cob_light.cpp.

ModeExecutor* LightControl::p_modeExecutor
private

Definition at line 463 of file cob_light.cpp.


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


cob_light
Author(s): Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:39