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

Public Member Functions

bool init ()
 
 Mimic ()
 
 ~Mimic (void)
 

Private Member Functions

void as_cb_mimic_ (const cob_mimic::SetMimicGoalConstPtr &goal)
 
bool copy_dir (boost::filesystem::path const &source, boost::filesystem::path const &mimic_folder)
 
bool copy_mimic_files ()
 
void diagnostics_timer_thread ()
 
void produce_diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat)
 
void random_cb (const ros::TimerEvent &)
 
bool service_cb_mimic (cob_mimic::SetMimic::Request &req, cob_mimic::SetMimic::Response &res)
 
bool set_mimic (std::string mimic, int repeat, float speed, bool blocking)
 

Private Attributes

bool action_active_
 
std::string active_mimic_
 
actionlib::SimpleActionServer< cob_mimic::SetMimicAction > as_mimic_
 
bool blocking_
 
std::string default_mimic_
 
boost::thread diagnostic_thread_
 
diagnostic_updater::Updater diagnostic_updater_
 
boost::random::mt19937 gen_
 
boost::random::uniform_int_distribution int_dist_
 
std::string mimic_folder_
 
boost::mutex mutex_
 
bool new_mimic_request_
 
ros::NodeHandle nh_
 
std::vector< std::string > random_mimics_
 
ros::Timer random_timer_
 
boost::random::uniform_real_distribution real_dist_
 
bool service_active_
 
bool sim_enabled_
 
ros::ServiceServer srvServer_mimic_
 
libvlc_instance_t * vlc_inst_
 
libvlc_media_t * vlc_media_
 
libvlc_media_player_t * vlc_player_
 

Detailed Description

Definition at line 40 of file mimic_node.cpp.

Constructor & Destructor Documentation

Mimic::Mimic ( )
inline

Definition at line 43 of file mimic_node.cpp.

Mimic::~Mimic ( void  )
inline

Definition at line 51 of file mimic_node.cpp.

Member Function Documentation

void Mimic::as_cb_mimic_ ( const cob_mimic::SetMimicGoalConstPtr &  goal)
inlineprivate

Definition at line 183 of file mimic_node.cpp.

bool Mimic::copy_dir ( boost::filesystem::path const &  source,
boost::filesystem::path const &  mimic_folder 
)
inlineprivate

Definition at line 320 of file mimic_node.cpp.

bool Mimic::copy_mimic_files ( )
inlineprivate

Definition at line 141 of file mimic_node.cpp.

void Mimic::diagnostics_timer_thread ( )
inlineprivate

Definition at line 375 of file mimic_node.cpp.

bool Mimic::init ( )
inline

Definition at line 58 of file mimic_node.cpp.

void Mimic::produce_diagnostics ( diagnostic_updater::DiagnosticStatusWrapper stat)
inlineprivate

Definition at line 384 of file mimic_node.cpp.

void Mimic::random_cb ( const ros::TimerEvent )
inlineprivate

Definition at line 313 of file mimic_node.cpp.

bool Mimic::service_cb_mimic ( cob_mimic::SetMimic::Request &  req,
cob_mimic::SetMimic::Response &  res 
)
inlineprivate

Definition at line 201 of file mimic_node.cpp.

bool Mimic::set_mimic ( std::string  mimic,
int  repeat,
float  speed,
bool  blocking 
)
inlineprivate

Definition at line 216 of file mimic_node.cpp.

Member Data Documentation

bool Mimic::action_active_
private

Definition at line 119 of file mimic_node.cpp.

std::string Mimic::active_mimic_
private

Definition at line 121 of file mimic_node.cpp.

actionlib::SimpleActionServer<cob_mimic::SetMimicAction> Mimic::as_mimic_
private

Definition at line 114 of file mimic_node.cpp.

bool Mimic::blocking_
private

Definition at line 130 of file mimic_node.cpp.

std::string Mimic::default_mimic_
private

Definition at line 138 of file mimic_node.cpp.

boost::thread Mimic::diagnostic_thread_
private

Definition at line 123 of file mimic_node.cpp.

diagnostic_updater::Updater Mimic::diagnostic_updater_
private

Definition at line 122 of file mimic_node.cpp.

boost::random::mt19937 Mimic::gen_
private

Definition at line 134 of file mimic_node.cpp.

boost::random::uniform_int_distribution Mimic::int_dist_
private

Definition at line 136 of file mimic_node.cpp.

std::string Mimic::mimic_folder_
private

Definition at line 117 of file mimic_node.cpp.

boost::mutex Mimic::mutex_
private

Definition at line 132 of file mimic_node.cpp.

bool Mimic::new_mimic_request_
private

Definition at line 131 of file mimic_node.cpp.

ros::NodeHandle Mimic::nh_
private

Definition at line 113 of file mimic_node.cpp.

std::vector<std::string> Mimic::random_mimics_
private

Definition at line 139 of file mimic_node.cpp.

ros::Timer Mimic::random_timer_
private

Definition at line 116 of file mimic_node.cpp.

boost::random::uniform_real_distribution Mimic::real_dist_
private

Definition at line 135 of file mimic_node.cpp.

bool Mimic::service_active_
private

Definition at line 120 of file mimic_node.cpp.

bool Mimic::sim_enabled_
private

Definition at line 129 of file mimic_node.cpp.

ros::ServiceServer Mimic::srvServer_mimic_
private

Definition at line 115 of file mimic_node.cpp.

libvlc_instance_t* Mimic::vlc_inst_
private

Definition at line 125 of file mimic_node.cpp.

libvlc_media_t* Mimic::vlc_media_
private

Definition at line 127 of file mimic_node.cpp.

libvlc_media_player_t* Mimic::vlc_player_
private

Definition at line 126 of file mimic_node.cpp.


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


cob_mimic
Author(s): Nadia Hammoudeh Garcia , Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:42