#include <netft_example_controller.h>
Public Member Functions | |
bool | init (pr2_mechanism_model::RobotState *robot, ros::NodeHandle &nh) |
NetFTExampleController () | |
void | starting () |
void | update () |
~NetFTExampleController () | |
Private Attributes | |
pr2_hardware_interface::AnalogIn * | analog_in_ |
Point to AnalogIn struct that provide force-torque data. | |
double | max_force_ |
Keep track of max force magnitude seen by sensor. | |
double | max_torque_ |
Keep track of max torque magnitude seen by sensor. | |
realtime_tools::RealtimePublisher < netft_example_controllers::ForceTorqueStats > | pub_ |
realtime publisher for max_force value | |
int | pub_cycle_count_ |
publish max_force values every X realtime cycles | |
bool | should_publish_ |
Definition at line 43 of file netft_example_controller.h.
Definition at line 48 of file netft_example_controller.cpp.
Definition at line 59 of file netft_example_controller.cpp.
bool netft_example_controllers::NetFTExampleController::init | ( | pr2_mechanism_model::RobotState * | robot, |
ros::NodeHandle & | nh | ||
) | [virtual] |
Implements pr2_controller_interface::Controller.
Definition at line 65 of file netft_example_controller.cpp.
void netft_example_controllers::NetFTExampleController::starting | ( | ) | [virtual] |
Reimplemented from pr2_controller_interface::Controller.
Definition at line 99 of file netft_example_controller.cpp.
void netft_example_controllers::NetFTExampleController::update | ( | void | ) | [virtual] |
Implements pr2_controller_interface::Controller.
Definition at line 105 of file netft_example_controller.cpp.
pr2_hardware_interface::AnalogIn* netft_example_controllers::NetFTExampleController::analog_in_ [private] |
Point to AnalogIn struct that provide force-torque data.
Definition at line 59 of file netft_example_controller.h.
double netft_example_controllers::NetFTExampleController::max_force_ [private] |
Keep track of max force magnitude seen by sensor.
Definition at line 54 of file netft_example_controller.h.
double netft_example_controllers::NetFTExampleController::max_torque_ [private] |
Keep track of max torque magnitude seen by sensor.
Definition at line 56 of file netft_example_controller.h.
realtime_tools::RealtimePublisher<netft_example_controllers::ForceTorqueStats> netft_example_controllers::NetFTExampleController::pub_ [private] |
realtime publisher for max_force value
Definition at line 62 of file netft_example_controller.h.
publish max_force values every X realtime cycles
Definition at line 65 of file netft_example_controller.h.
Definition at line 66 of file netft_example_controller.h.