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

#include <generic_tactiles.hpp>

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

Public Member Functions

virtual void add_diagnostics (std::vector< diagnostic_msgs::DiagnosticStatus > &vec, diagnostic_updater::DiagnosticStatusWrapper &d)
 
 GenericTactiles (ros::NodeHandle nh, std::string device_id, std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state)
 
virtual std::vector< AllTactileData > * get_tactile_data ()
 
virtual void publish ()
 
bool reset (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 
virtual void update (StatusType *status_data)
 
virtual ~GenericTactiles ()
 

Public Attributes

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

static const unsigned int nb_tactiles = 5
 Number of tactile sensors (TODO: should probably be defined in the protocol) More...
 

Protected Member Functions

void process_received_data_type (int32u data)
 
std::string sanitise_string (const char *raw_string, const unsigned int str_size)
 

Protected Attributes

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_
 

Detailed Description

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

Definition at line 56 of file generic_tactiles.hpp.

Constructor & Destructor Documentation

template<class StatusType , class CommandType >
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 
)

Definition at line 46 of file generic_tactiles.cpp.

template<class StatusType, class CommandType>
virtual tactiles::GenericTactiles< StatusType, CommandType >::~GenericTactiles ( )
inlinevirtual

Definition at line 63 of file generic_tactiles.hpp.

Member Function Documentation

template<class StatusType , class CommandType >
void tactiles::GenericTactiles< StatusType, CommandType >::add_diagnostics ( std::vector< diagnostic_msgs::DiagnosticStatus > &  vec,
diagnostic_updater::DiagnosticStatusWrapper d 
)
virtual
template<class StatusType , class CommandType >
std::vector< AllTactileData > * tactiles::GenericTactiles< StatusType, CommandType >::get_tactile_data ( )
virtual
template<class StatusType , class CommandType >
void tactiles::GenericTactiles< StatusType, CommandType >::process_received_data_type ( int32u  data)
protected

Definition at line 163 of file generic_tactiles.cpp.

template<class StatusType , class CommandType >
void tactiles::GenericTactiles< StatusType, CommandType >::publish ( )
virtual
template<class StatusType , class CommandType >
bool tactiles::GenericTactiles< StatusType, CommandType >::reset ( std_srvs::Empty::Request &  request,
std_srvs::Empty::Response &  response 
)

Reset the tactile sensors.

Parameters
requestempty
responseempty
Returns
true if success

Definition at line 201 of file generic_tactiles.cpp.

template<class StatusType , class CommandType >
std::string tactiles::GenericTactiles< StatusType, CommandType >::sanitise_string ( const char *  raw_string,
const unsigned int  str_size 
)
protected

Definition at line 210 of file generic_tactiles.cpp.

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

Member Data Documentation

template<class StatusType, class CommandType>
boost::shared_ptr<std::vector<AllTactileData> > tactiles::GenericTactiles< StatusType, CommandType >::all_tactile_data
protected

Definition at line 132 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
std::string tactiles::GenericTactiles< StatusType, CommandType >::device_id_
protected

Definition at line 113 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
std::vector<int32u> tactiles::GenericTactiles< StatusType, CommandType >::initialization_received_data_vector
protected

Definition at line 118 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
const unsigned int tactiles::GenericTactiles< StatusType, CommandType >::nb_tactiles = 5
static

Number of tactile sensors (TODO: should probably be defined in the protocol)

Definition at line 101 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
ros::NodeHandle tactiles::GenericTactiles< StatusType, CommandType >::nodehandle_
protected

Definition at line 112 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
ros::ServiceServer tactiles::GenericTactiles< StatusType, CommandType >::reset_service_client_
protected

Definition at line 115 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
boost::shared_ptr<generic_updater::SensorUpdater<CommandType> > tactiles::GenericTactiles< StatusType, CommandType >::sensor_updater

Definition at line 103 of file generic_tactiles.hpp.

template<class StatusType, class CommandType>
boost::shared_ptr<std::vector<GenericTactileData> > tactiles::GenericTactiles< StatusType, CommandType >::tactiles_vector

the vector containing the data for the tactiles.

Definition at line 105 of file generic_tactiles.hpp.


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


sr_robot_lib
Author(s): Ugo Cupcic, Toni Oliver
autogenerated on Tue Oct 13 2020 04:01:58