Public Member Functions | Public Attributes | Protected Attributes
tactiles::ShadowPSTs< StatusType, CommandType > Class Template Reference

#include <shadow_PSTs.hpp>

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

List of all members.

Public Member Functions

virtual void add_diagnostics (std::vector< diagnostic_msgs::DiagnosticStatus > &vec, diagnostic_updater::DiagnosticStatusWrapper &d)
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 ()
 ShadowPSTs (std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state)
 ShadowPSTs (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 void update (StatusType *status_data)
virtual ~ShadowPSTs ()

Public Attributes

boost::shared_ptr< std::vector
< PST3Data > > 
tactiles_vector
 the vector containing the data for the tactiles.

Protected Attributes

boost::shared_ptr
< realtime_tools::RealtimePublisher
< sr_robot_msgs::ShadowPST > > 
tactile_publisher

Detailed Description

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

Definition at line 42 of file shadow_PSTs.hpp.


Constructor & Destructor Documentation

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

Definition at line 36 of file shadow_PSTs.cpp.

template<class StatusType , class CommandType >
tactiles::ShadowPSTs< StatusType, CommandType >::ShadowPSTs ( 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 43 of file shadow_PSTs.cpp.

template<class StatusType , class CommandType >
virtual tactiles::ShadowPSTs< StatusType, CommandType >::~ShadowPSTs ( ) [inline, virtual]

Definition at line 49 of file shadow_PSTs.hpp.


Member Function Documentation

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

This function adds the diagnostics for the tactiles to the multi diagnostic status published by the hand.

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

Definition at line 182 of file shadow_PSTs.cpp.

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

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

Definition at line 211 of file shadow_PSTs.cpp.

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

Definition at line 56 of file shadow_PSTs.cpp.

template<class StatusType , class CommandType >
void tactiles::ShadowPSTs< StatusType, CommandType >::publish ( ) [virtual]

Publish the information to a ROS topic.

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

Definition at line 156 of file shadow_PSTs.cpp.

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

This function is called each time a new etherCAT message is received in the sr06.cpp driver. It updates the tactile sensors values contained in tactiles_vector.

Parameters:
status_datathe received etherCAT message

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

Definition at line 67 of file shadow_PSTs.cpp.


Member Data Documentation

template<class StatusType , class CommandType >
boost::shared_ptr<realtime_tools::RealtimePublisher<sr_robot_msgs::ShadowPST> > tactiles::ShadowPSTs< StatusType, CommandType >::tactile_publisher [protected]

Definition at line 83 of file shadow_PSTs.hpp.

template<class StatusType , class CommandType >
boost::shared_ptr< std::vector<PST3Data> > tactiles::ShadowPSTs< StatusType, CommandType >::tactiles_vector

the vector containing the data for the tactiles.

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

Definition at line 76 of file shadow_PSTs.hpp.


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


sr_robot_lib
Author(s): Ugo Cupcic, Toni Oliver
autogenerated on Thu Aug 27 2015 15:16:37