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 41 of file mimic_node.cpp.

Constructor & Destructor Documentation

◆ Mimic()

Mimic::Mimic ( )
inline

Definition at line 44 of file mimic_node.cpp.

◆ ~Mimic()

Mimic::~Mimic ( void  )
inline

Definition at line 52 of file mimic_node.cpp.

Member Function Documentation

◆ as_cb_mimic_()

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

Definition at line 188 of file mimic_node.cpp.

◆ copy_dir()

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

Definition at line 325 of file mimic_node.cpp.

◆ copy_mimic_files()

bool Mimic::copy_mimic_files ( )
inlineprivate

Definition at line 146 of file mimic_node.cpp.

◆ diagnostics_timer_thread()

void Mimic::diagnostics_timer_thread ( )
inlineprivate

Definition at line 380 of file mimic_node.cpp.

◆ init()

bool Mimic::init ( )
inline

Definition at line 59 of file mimic_node.cpp.

◆ produce_diagnostics()

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

Definition at line 389 of file mimic_node.cpp.

◆ random_cb()

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

Definition at line 318 of file mimic_node.cpp.

◆ service_cb_mimic()

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

Definition at line 206 of file mimic_node.cpp.

◆ set_mimic()

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

Definition at line 221 of file mimic_node.cpp.

Member Data Documentation

◆ action_active_

bool Mimic::action_active_
private

Definition at line 124 of file mimic_node.cpp.

◆ active_mimic_

std::string Mimic::active_mimic_
private

Definition at line 126 of file mimic_node.cpp.

◆ as_mimic_

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

Definition at line 119 of file mimic_node.cpp.

◆ blocking_

bool Mimic::blocking_
private

Definition at line 135 of file mimic_node.cpp.

◆ default_mimic_

std::string Mimic::default_mimic_
private

Definition at line 143 of file mimic_node.cpp.

◆ diagnostic_thread_

boost::thread Mimic::diagnostic_thread_
private

Definition at line 128 of file mimic_node.cpp.

◆ diagnostic_updater_

diagnostic_updater::Updater Mimic::diagnostic_updater_
private

Definition at line 127 of file mimic_node.cpp.

◆ gen_

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

Definition at line 139 of file mimic_node.cpp.

◆ int_dist_

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

Definition at line 141 of file mimic_node.cpp.

◆ mimic_folder_

std::string Mimic::mimic_folder_
private

Definition at line 122 of file mimic_node.cpp.

◆ mutex_

boost::mutex Mimic::mutex_
private

Definition at line 137 of file mimic_node.cpp.

◆ new_mimic_request_

bool Mimic::new_mimic_request_
private

Definition at line 136 of file mimic_node.cpp.

◆ nh_

ros::NodeHandle Mimic::nh_
private

Definition at line 118 of file mimic_node.cpp.

◆ random_mimics_

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

Definition at line 144 of file mimic_node.cpp.

◆ random_timer_

ros::Timer Mimic::random_timer_
private

Definition at line 121 of file mimic_node.cpp.

◆ real_dist_

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

Definition at line 140 of file mimic_node.cpp.

◆ service_active_

bool Mimic::service_active_
private

Definition at line 125 of file mimic_node.cpp.

◆ sim_enabled_

bool Mimic::sim_enabled_
private

Definition at line 134 of file mimic_node.cpp.

◆ srvServer_mimic_

ros::ServiceServer Mimic::srvServer_mimic_
private

Definition at line 120 of file mimic_node.cpp.

◆ vlc_inst_

libvlc_instance_t* Mimic::vlc_inst_
private

Definition at line 130 of file mimic_node.cpp.

◆ vlc_media_

libvlc_media_t* Mimic::vlc_media_
private

Definition at line 132 of file mimic_node.cpp.

◆ vlc_player_

libvlc_media_player_t* Mimic::vlc_player_
private

Definition at line 131 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 Nov 8 2023 03:47:40