Public Member Functions | Private Member Functions | Private Attributes | List of all members
sr_hand_detector::SrHandAutodetect Class Reference

#include <sr_hand_autodetect.h>

Public Member Functions

std::string get_command_suffix ()
 
void run ()
 
 SrHandAutodetect (std::string detected_hands_file="/tmp/sr_hand_detector.yaml", std::string hand_config_path="", ForcedHandSide forced_hand_side=ForcedHandSide::none)
 
 ~SrHandAutodetect ()
 

Private Member Functions

std::string command_suffix_bimanual_per_hand (const YAML::Node &hand_info)
 
void compose_command_suffix ()
 
void compose_command_suffix_bimanual ()
 
void compose_command_suffix_unimanual ()
 
void detect_hands ()
 
void filter_hands_if_side_forced ()
 
YAML::Node get_hand_general_info (int serial)
 
void get_path_to_sr_hand_config ()
 
std::string hand_side_to_prefix (const std::string &side)
 
std::string map_to_xacro_string (const std::map< std::string, std::string > &map)
 
std::string vector_to_xacro_string (const std::vector< std::string > &vec)
 
std::vector< std::string > yaml_node_list_to_std_vector (const YAML::Node &node)
 
std::map< std::string, std::string > yaml_node_map_to_std_map (const YAML::Node &node_map)
 

Private Attributes

std::string command_suffix_
 
std::string detected_hands_file_
 
ForcedHandSide forced_hand_side_
 
std::map< int, std::string > hand_serial_and_port_map_
 
int number_of_detected_hands_
 
std::string sr_hand_config_path_
 

Detailed Description

Definition at line 32 of file sr_hand_autodetect.h.

Constructor & Destructor Documentation

◆ SrHandAutodetect()

sr_hand_detector::SrHandAutodetect::SrHandAutodetect ( std::string  detected_hands_file = "/tmp/sr_hand_detector.yaml",
std::string  hand_config_path = "",
ForcedHandSide  forced_hand_side = ForcedHandSide::none 
)
explicit

Definition at line 30 of file sr_hand_autodetect.cpp.

◆ ~SrHandAutodetect()

sr_hand_detector::SrHandAutodetect::~SrHandAutodetect ( )

Definition at line 46 of file sr_hand_autodetect.cpp.

Member Function Documentation

◆ command_suffix_bimanual_per_hand()

std::string sr_hand_detector::SrHandAutodetect::command_suffix_bimanual_per_hand ( const YAML::Node &  hand_info)
private

Definition at line 213 of file sr_hand_autodetect.cpp.

◆ compose_command_suffix()

void sr_hand_detector::SrHandAutodetect::compose_command_suffix ( )
private

Definition at line 130 of file sr_hand_autodetect.cpp.

◆ compose_command_suffix_bimanual()

void sr_hand_detector::SrHandAutodetect::compose_command_suffix_bimanual ( )
private

Definition at line 179 of file sr_hand_autodetect.cpp.

◆ compose_command_suffix_unimanual()

void sr_hand_detector::SrHandAutodetect::compose_command_suffix_unimanual ( )
private

Definition at line 152 of file sr_hand_autodetect.cpp.

◆ detect_hands()

void sr_hand_detector::SrHandAutodetect::detect_hands ( )
private

Definition at line 85 of file sr_hand_autodetect.cpp.

◆ filter_hands_if_side_forced()

void sr_hand_detector::SrHandAutodetect::filter_hands_if_side_forced ( )
private

Definition at line 95 of file sr_hand_autodetect.cpp.

◆ get_command_suffix()

std::string sr_hand_detector::SrHandAutodetect::get_command_suffix ( )

Definition at line 66 of file sr_hand_autodetect.cpp.

◆ get_hand_general_info()

YAML::Node sr_hand_detector::SrHandAutodetect::get_hand_general_info ( int  serial)
private

Definition at line 71 of file sr_hand_autodetect.cpp.

◆ get_path_to_sr_hand_config()

void sr_hand_detector::SrHandAutodetect::get_path_to_sr_hand_config ( )
private

Definition at line 50 of file sr_hand_autodetect.cpp.

◆ hand_side_to_prefix()

std::string sr_hand_detector::SrHandAutodetect::hand_side_to_prefix ( const std::string &  side)
private

Definition at line 237 of file sr_hand_autodetect.cpp.

◆ map_to_xacro_string()

std::string sr_hand_detector::SrHandAutodetect::map_to_xacro_string ( const std::map< std::string, std::string > &  map)
private

Definition at line 266 of file sr_hand_autodetect.cpp.

◆ run()

void sr_hand_detector::SrHandAutodetect::run ( )

Definition at line 59 of file sr_hand_autodetect.cpp.

◆ vector_to_xacro_string()

std::string sr_hand_detector::SrHandAutodetect::vector_to_xacro_string ( const std::vector< std::string > &  vec)
private

Definition at line 251 of file sr_hand_autodetect.cpp.

◆ yaml_node_list_to_std_vector()

std::vector< std::string > sr_hand_detector::SrHandAutodetect::yaml_node_list_to_std_vector ( const YAML::Node &  node)
private

Definition at line 281 of file sr_hand_autodetect.cpp.

◆ yaml_node_map_to_std_map()

std::map< std::string, std::string > sr_hand_detector::SrHandAutodetect::yaml_node_map_to_std_map ( const YAML::Node &  node_map)
private

Definition at line 293 of file sr_hand_autodetect.cpp.

Member Data Documentation

◆ command_suffix_

std::string sr_hand_detector::SrHandAutodetect::command_suffix_
private

Definition at line 61 of file sr_hand_autodetect.h.

◆ detected_hands_file_

std::string sr_hand_detector::SrHandAutodetect::detected_hands_file_
private

Definition at line 60 of file sr_hand_autodetect.h.

◆ forced_hand_side_

ForcedHandSide sr_hand_detector::SrHandAutodetect::forced_hand_side_
private

Definition at line 57 of file sr_hand_autodetect.h.

◆ hand_serial_and_port_map_

std::map<int, std::string> sr_hand_detector::SrHandAutodetect::hand_serial_and_port_map_
private

Definition at line 62 of file sr_hand_autodetect.h.

◆ number_of_detected_hands_

int sr_hand_detector::SrHandAutodetect::number_of_detected_hands_
private

Definition at line 58 of file sr_hand_autodetect.h.

◆ sr_hand_config_path_

std::string sr_hand_detector::SrHandAutodetect::sr_hand_config_path_
private

Definition at line 59 of file sr_hand_autodetect.h.


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


sr_hand_detector
Author(s):
autogenerated on Sat Sep 24 2022 02:26:10