#include <sr_muscle_robot_lib.hpp>
Public Member Functions | |
void | add_diagnostics (std::vector< diagnostic_msgs::DiagnosticStatus > &vec, diagnostic_updater::DiagnosticStatusWrapper &d) |
void | build_command (CommandType *command) |
void | reinitialize_motors () |
SrMuscleRobotLib (hardware_interface::HardwareInterface *hw, ros::NodeHandle nh, ros::NodeHandle nhtilde, std::string device_id, std::string joint_prefix) | |
void | update (StatusType *status_data) |
Public Member Functions inherited from shadow_robot::SrRobotLib< StatusType, CommandType > | |
void | build_tactile_command (CommandType *command) |
bool | nullify_demand_callback (sr_robot_msgs::NullifyDemand::Request &request, sr_robot_msgs::NullifyDemand::Response &response) |
void | reinitialize_sensors () |
SrRobotLib (hardware_interface::HardwareInterface *hw, ros::NodeHandle nh, ros::NodeHandle nhtilde, std::string device_id, std::string joint_prefix) | |
void | update_tactile_info (StatusType *status) |
virtual | ~SrRobotLib () |
Public Attributes | |
operation_mode::device_update_state::DeviceUpdateState | muscle_current_state |
Public Attributes inherited from shadow_robot::SrRobotLib< StatusType, CommandType > | |
shadow_joints::CalibrationMap | calibration_map |
The map used to calibrate each joint. More... | |
CoupledJointMapType | coupled_calibration_map |
ros_ethercat_model::RobotState * | hw_ |
boost::shared_ptr< boost::mutex > | lock_tactile_init_timeout_ |
A mutual exclusion object to ensure that the intitialization timeout event does work without threading issues. More... | |
int | main_pic_idle_time |
int | main_pic_idle_time_min |
ros::Timer | tactile_check_init_timeout_timer |
operation_mode::device_update_state::DeviceUpdateState | tactile_current_state |
ros::Duration | tactile_init_max_duration |
boost::shared_ptr< tactiles::GenericTactiles< StatusType, CommandType > > | tactiles |
boost::shared_ptr< tactiles::GenericTactiles< StatusType, CommandType > > | tactiles_init |
Protected Member Functions | |
void | calibrate_joint (std::vector< shadow_joints::Joint >::iterator joint_tmp, StatusType *status_data) |
bool | check_muscle_driver_data_received_flags () |
sr_actuator::SrMuscleActuator * | get_joint_actuator (std::vector< shadow_joints::Joint >::iterator joint_tmp) |
unsigned int | get_muscle_pressure (int muscle_driver_id, int muscle_id, StatusType *status_data) |
std::vector< std::pair< std::string, bool > > | humanize_flags (int flag) |
void | init_timer_callback (const ros::TimerEvent &event) |
virtual void | initialize (std::vector< std::string > joint_names, std::vector< int > actuator_ids, std::vector< shadow_joints::JointToSensor > joint_to_sensors)=0 |
void | process_position_sensor_data (std::vector< shadow_joints::Joint >::iterator joint_tmp, StatusType *status_data, double timestamp) |
void | read_additional_muscle_data (std::vector< shadow_joints::Joint >::iterator joint_tmp, StatusType *status_data) |
void | read_muscle_driver_data (std::vector< shadow_joints::MuscleDriver >::iterator muscle_driver_tmp, StatusType *status_data) |
virtual shadow_joints::CalibrationMap | read_pressure_calibration () |
void | set_muscle_driver_data_received_flags (unsigned int msg_type, int muscle_driver_id) |
void | set_valve_demand (uint8_t *muscle_data_byte_to_set, int8_t valve_value, uint8_t shifting_index) |
Protected Member Functions inherited from shadow_robot::SrRobotLib< StatusType, CommandType > | |
void | checkSelfTests () |
It is run in a separate thread and calls the checkTests() method of the self_tests_. More... | |
CoupledJointMapType | read_coupled_joint_calibration () |
shadow_joints::CalibrationMap | read_joint_calibration () |
std::vector< shadow_joints::JointToSensor > | read_joint_to_sensor_mapping () |
std::vector< generic_updater::UpdateConfig > | read_update_rate_configs (std::string base_param, int nb_data_defined, const char *human_readable_data_types[], const int32u data_types[]) |
void | tactile_init_timer_callback (const ros::TimerEvent &event) |
Static Protected Attributes | |
static const double | timeout = 5.0 |
Static Protected Attributes inherited from shadow_robot::SrRobotLib< StatusType, CommandType > | |
static const char * | human_readable_sensor_data_types [] |
static const int | nb_sensor_data = 37 |
static const int32u | sensor_data_types [] |
Additional Inherited Members | |
Public Types inherited from shadow_robot::SrRobotLib< StatusType, CommandType > | |
typedef std::map< std::string, CoupledJoint > | CoupledJointMapType |
Static Public Attributes inherited from shadow_robot::SrRobotLib< StatusType, CommandType > | |
static const double | tactile_timeout = 10.0 |
Timeout handling variables for UBI sensors. More... | |
Definition at line 45 of file sr_muscle_robot_lib.hpp.
shadow_robot::SrMuscleRobotLib< StatusType, CommandType >::SrMuscleRobotLib | ( | hardware_interface::HardwareInterface * | hw, |
ros::NodeHandle | nh, | ||
ros::NodeHandle | nhtilde, | ||
std::string | device_id, | ||
std::string | joint_prefix | ||
) |
Definition at line 68 of file sr_muscle_robot_lib.cpp.
|
virtual |
Implements shadow_robot::SrRobotLib< StatusType, CommandType >.
Definition at line 371 of file sr_muscle_robot_lib.cpp.
|
virtual |
Implements shadow_robot::SrRobotLib< StatusType, CommandType >.
Definition at line 203 of file sr_muscle_robot_lib.cpp.
|
protectedvirtual |
Implements shadow_robot::SrRobotLib< StatusType, CommandType >.
Definition at line 820 of file sr_muscle_robot_lib.cpp.
|
inlineprotected |
Definition at line 804 of file sr_muscle_robot_lib.cpp.
|
inlineprotectedvirtual |
Implements shadow_robot::SrRobotLib< StatusType, CommandType >.
Definition at line 168 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 634 of file sr_muscle_robot_lib.cpp.
|
protected |
Definition at line 906 of file sr_muscle_robot_lib.cpp.
|
protected |
Definition at line 952 of file sr_muscle_robot_lib.cpp.
|
protectedpure virtual |
Implements shadow_robot::SrRobotLib< StatusType, CommandType >.
Implemented in shadow_robot::SrMuscleHandLib< StatusType, CommandType >.
|
protected |
Definition at line 887 of file sr_muscle_robot_lib.cpp.
|
protected |
Definition at line 493 of file sr_muscle_robot_lib.cpp.
|
protected |
Definition at line 694 of file sr_muscle_robot_lib.cpp.
|
protectedvirtual |
Definition at line 95 of file sr_muscle_robot_lib.cpp.
void shadow_robot::SrMuscleRobotLib< StatusType, CommandType >::reinitialize_motors | ( | ) |
Definition at line 934 of file sr_muscle_robot_lib.cpp.
|
inlineprotected |
Definition at line 790 of file sr_muscle_robot_lib.cpp.
|
inlineprotected |
Definition at line 339 of file sr_muscle_robot_lib.cpp.
|
virtual |
Implements shadow_robot::SrRobotLib< StatusType, CommandType >.
Definition at line 139 of file sr_muscle_robot_lib.cpp.
|
protected |
Definition at line 225 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 222 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 227 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 230 of file sr_muscle_robot_lib.hpp.
operation_mode::device_update_state::DeviceUpdateState shadow_robot::SrMuscleRobotLib< StatusType, CommandType >::muscle_current_state |
Definition at line 84 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 198 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 214 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 206 of file sr_muscle_robot_lib.hpp.
|
protected |
The map used to calibrate each pressure sensor.
Definition at line 108 of file sr_muscle_robot_lib.hpp.
|
protected |
A temporary calibration for a given joint.
Definition at line 110 of file sr_muscle_robot_lib.hpp.
|
protected |
Definition at line 210 of file sr_muscle_robot_lib.hpp.
|
staticprotected |
Definition at line 226 of file sr_muscle_robot_lib.hpp.