#include <shadow_PSTs.hpp>
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 (ros::NodeHandle nh, std::string device_id, std::vector< generic_updater::UpdateConfig > update_configs_vector, operation_mode::device_update_state::DeviceUpdateState update_state) | |
ShadowPSTs (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 void | update (StatusType *status_data) |
Public Attributes | |
boost::shared_ptr< std::vector < PST3Data > > | tactiles_vector |
the vector containing the data for the tactiles. |
Definition at line 43 of file shadow_PSTs.hpp.
tactiles::ShadowPSTs< StatusType, CommandType >::ShadowPSTs | ( | 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 38 of file shadow_PSTs.cpp.
tactiles::ShadowPSTs< StatusType, CommandType >::ShadowPSTs | ( | 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 48 of file shadow_PSTs.cpp.
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 186 of file shadow_PSTs.cpp.
std::vector< AllTactileData > * tactiles::ShadowPSTs< StatusType, CommandType >::get_tactile_data | ( | ) | [virtual] |
Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.
Definition at line 215 of file shadow_PSTs.cpp.
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 64 of file shadow_PSTs.cpp.
void tactiles::ShadowPSTs< StatusType, CommandType >::publish | ( | ) | [virtual] |
Publish the information to a ROS topic.
Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.
Definition at line 180 of file shadow_PSTs.cpp.
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.
status_data | the received etherCAT message |
Reimplemented from tactiles::GenericTactiles< StatusType, CommandType >.
Definition at line 79 of file shadow_PSTs.cpp.
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 82 of file shadow_PSTs.hpp.