rm_control
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rm_common::SwitchDetectionCaller Class Reference

#include <service_caller.h>

Inheritance diagram for rm_common::SwitchDetectionCaller:
Collaboration diagram for rm_common::SwitchDetectionCaller:

Public Member Functions

 SwitchDetectionCaller (ros::NodeHandle &nh)
 
 SwitchDetectionCaller (ros::NodeHandle &nh, std::string service_name)
 
void setEnemyColor (const int &robot_id_, const std::string &robot_color_)
 
void setColor (uint8_t color)
 
void switchEnemyColor ()
 
void switchTargetType ()
 
void setTargetType (uint8_t target)
 
void switchArmorTargetType ()
 
void setArmorTargetType (uint8_t armor_target)
 
void switchExposureLevel ()
 
int getColor ()
 
int getTarget ()
 
int getArmorTarget ()
 
uint8_t getExposureLevel ()
 
bool getIsSwitch ()
 
- Public Member Functions inherited from rm_common::ServiceCallerBase< rm_msgs::StatusChange >
 ServiceCallerBase (ros::NodeHandle &nh, const std::string &service_name="")
 
 ServiceCallerBase (ros::NodeHandle &nh, std::string &service_name)
 
 ServiceCallerBase (XmlRpc::XmlRpcValue &controllers, ros::NodeHandle &nh, const std::string &service_name="")
 
 ~ServiceCallerBase ()
 
void callService ()
 
rm_msgs::StatusChange & getService ()
 
bool isCalling ()
 

Additional Inherited Members

- Protected Member Functions inherited from rm_common::ServiceCallerBase< rm_msgs::StatusChange >
void callingThread ()
 
- Protected Attributes inherited from rm_common::ServiceCallerBase< rm_msgs::StatusChange >
std::string service_name_
 
ros::ServiceClient client_
 
rm_msgs::StatusChange service_
 
std::thread * thread_
 
std::mutex mutex_
 
int fail_count_
 
int fail_limit_
 

Constructor & Destructor Documentation

◆ SwitchDetectionCaller() [1/2]

rm_common::SwitchDetectionCaller::SwitchDetectionCaller ( ros::NodeHandle & nh)
inlineexplicit

◆ SwitchDetectionCaller() [2/2]

rm_common::SwitchDetectionCaller::SwitchDetectionCaller ( ros::NodeHandle & nh,
std::string service_name )
inlineexplicit

Member Function Documentation

◆ getArmorTarget()

int rm_common::SwitchDetectionCaller::getArmorTarget ( )
inline

◆ getColor()

int rm_common::SwitchDetectionCaller::getColor ( )
inline

◆ getExposureLevel()

uint8_t rm_common::SwitchDetectionCaller::getExposureLevel ( )
inline

◆ getIsSwitch()

bool rm_common::SwitchDetectionCaller::getIsSwitch ( )
inline

◆ getTarget()

int rm_common::SwitchDetectionCaller::getTarget ( )
inline

◆ setArmorTargetType()

void rm_common::SwitchDetectionCaller::setArmorTargetType ( uint8_t armor_target)
inline

◆ setColor()

void rm_common::SwitchDetectionCaller::setColor ( uint8_t color)
inline

◆ setEnemyColor()

void rm_common::SwitchDetectionCaller::setEnemyColor ( const int & robot_id_,
const std::string & robot_color_ )
inline

◆ setTargetType()

void rm_common::SwitchDetectionCaller::setTargetType ( uint8_t target)
inline

◆ switchArmorTargetType()

void rm_common::SwitchDetectionCaller::switchArmorTargetType ( )
inline

◆ switchEnemyColor()

void rm_common::SwitchDetectionCaller::switchEnemyColor ( )
inline

◆ switchExposureLevel()

void rm_common::SwitchDetectionCaller::switchExposureLevel ( )
inline

◆ switchTargetType()

void rm_common::SwitchDetectionCaller::switchTargetType ( )
inline

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