Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
tactiles::Biotac< StatusType, CommandType > Class Template Reference

#include <biotac.hpp>

Inheritance diagram for tactiles::Biotac< StatusType, CommandType >:
Inheritance graph
[legend]

Public Member Functions

virtual void add_diagnostics (std::vector< diagnostic_msgs::DiagnosticStatus > &vec, diagnostic_updater::DiagnosticStatusWrapper &d)
 
 Biotac (ros::NodeHandle nh, std::string device_id, std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state)
 
 Biotac (ros::NodeHandle nh, std::string device_id, std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state, boost::shared_ptr< std::vector< GenericTactileData > > init_tactiles_vector)
 
virtual std::vector< AllTactileData > * get_tactile_data ()
 
void init (std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state)
 
virtual void publish ()
 
void set_version_specific_details ()
 
virtual void update (StatusType *status_data)
 
- Public Member Functions inherited from tactiles::GenericTactiles< StatusType, CommandType >
 GenericTactiles (ros::NodeHandle nh, std::string device_id, std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state)
 
bool reset (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 
virtual ~GenericTactiles ()
 

Protected Attributes

size_t nb_electrodes_
 
- Protected Attributes inherited from tactiles::GenericTactiles< StatusType, CommandType >
boost::shared_ptr< std::vector< AllTactileData > > all_tactile_data
 
std::string device_id_
 
std::vector< int32uinitialization_received_data_vector
 
ros::NodeHandle nodehandle_
 
ros::ServiceServer reset_service_client_
 

Static Protected Attributes

static const size_t nb_electrodes_v1_ = 19
 
static const size_t nb_electrodes_v2_ = 24
 

Additional Inherited Members

- Public Attributes inherited from tactiles::GenericTactiles< StatusType, CommandType >
boost::shared_ptr< generic_updater::SensorUpdater< CommandType > > sensor_updater
 
boost::shared_ptr< std::vector< GenericTactileData > > tactiles_vector
 the vector containing the data for the tactiles. More...
 
- Static Public Attributes inherited from tactiles::GenericTactiles< StatusType, CommandType >
static const unsigned int nb_tactiles = 5
 Number of tactile sensors (TODO: should probably be defined in the protocol) More...
 
- Protected Member Functions inherited from tactiles::GenericTactiles< StatusType, CommandType >
void process_received_data_type (int32u data)
 
std::string sanitise_string (const char *raw_string, const unsigned int str_size)
 

Detailed Description

template<class StatusType, class CommandType>
class tactiles::Biotac< StatusType, CommandType >

Definition at line 42 of file biotac.hpp.

Constructor & Destructor Documentation

◆ Biotac() [1/2]

template<class StatusType , class CommandType >
tactiles::Biotac< StatusType, CommandType >::Biotac ( ros::NodeHandle  nh,
std::string  device_id,
std::vector< generic_updater::UpdateConfig update_configs_vector,
operation_mode::device_update_state::DeviceUpdateState  update_state 
)

Definition at line 44 of file biotac.cpp.

◆ Biotac() [2/2]

template<class StatusType , class CommandType >
tactiles::Biotac< StatusType, CommandType >::Biotac ( ros::NodeHandle  nh,
std::string  device_id,
std::vector< generic_updater::UpdateConfig update_configs_vector,
operation_mode::device_update_state::DeviceUpdateState  update_state,
boost::shared_ptr< std::vector< GenericTactileData > >  init_tactiles_vector 
)

Definition at line 53 of file biotac.cpp.

Member Function Documentation

◆ add_diagnostics()

template<class StatusType , class CommandType >
void tactiles::Biotac< StatusType, CommandType >::add_diagnostics ( std::vector< diagnostic_msgs::DiagnosticStatus > &  vec,
diagnostic_updater::DiagnosticStatusWrapper d 
)
virtual

Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.

Definition at line 396 of file biotac.cpp.

◆ get_tactile_data()

template<class StatusType , class CommandType >
std::vector< AllTactileData > * tactiles::Biotac< StatusType, CommandType >::get_tactile_data ( )
virtual

Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.

Definition at line 422 of file biotac.cpp.

◆ init()

template<class StatusType , class CommandType >
void tactiles::Biotac< StatusType, CommandType >::init ( std::vector< generic_updater::UpdateConfig update_configs_vector,
operation_mode::device_update_state::DeviceUpdateState  update_state 
)

Definition at line 70 of file biotac.cpp.

◆ publish()

template<class StatusType , class CommandType >
void tactiles::Biotac< StatusType, CommandType >::publish ( )
virtual

Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.

Definition at line 390 of file biotac.cpp.

◆ set_version_specific_details()

template<class StatusType , class CommandType >
void tactiles::Biotac< StatusType, CommandType >::set_version_specific_details ( )

Definition at line 428 of file biotac.cpp.

◆ update()

template<class StatusType , class CommandType >
void tactiles::Biotac< StatusType, CommandType >::update ( StatusType *  status_data)
virtual

Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.

Definition at line 84 of file biotac.cpp.

Member Data Documentation

◆ nb_electrodes_

template<class StatusType , class CommandType >
size_t tactiles::Biotac< StatusType, CommandType >::nb_electrodes_
protected

Definition at line 87 of file biotac.hpp.

◆ nb_electrodes_v1_

template<class StatusType , class CommandType >
const size_t tactiles::Biotac< StatusType, CommandType >::nb_electrodes_v1_ = 19
staticprotected

Definition at line 89 of file biotac.hpp.

◆ nb_electrodes_v2_

template<class StatusType , class CommandType >
const size_t tactiles::Biotac< StatusType, CommandType >::nb_electrodes_v2_ = 24
staticprotected

Definition at line 90 of file biotac.hpp.


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


sr_robot_lib
Author(s): Ugo Cupcic, Toni Oliver
autogenerated on Mon Feb 28 2022 23:50:43