#include <allocation_node.h>
Public Member Functions | |
AllocationNode () | |
Main constructor. | |
void | onInit () |
~AllocationNode () | |
General destructor. | |
Private Member Functions | |
void | onTau (const auv_msgs::BodyForceReq::ConstPtr tau) |
Handles the desired force and torque request. | |
Private Attributes | |
AllocationInterface::Ptr | alloc |
Allocation handle. | |
pluginlib::ClassLoader < AllocationInterface > | alloc_loader |
Allocation plug-in loader. | |
ros::Publisher | pwm_pub |
The achieved PWM commands. | |
ros::Timer | safety |
The safety timer that stops the thrusters. | |
ros::Subscriber | tau_sub |
The desired force and torque subscriber. | |
ros::Publisher | tauach_pub |
The achieved force and torque publisher. | |
double | timeout |
The safety timeout. |
The class implements the ROS container of the allocation classes.
Definition at line 50 of file allocation_node.h.
Main constructor.
Definition at line 41 of file allocation_node.cpp.
General destructor.
Definition at line 49 of file allocation_node.cpp.
void AllocationNode::onInit | ( | ) |
Definition at line 51 of file allocation_node.cpp.
void AllocationNode::onTau | ( | const auv_msgs::BodyForceReq::ConstPtr | tau | ) | [private] |
Handles the desired force and torque request.
Definition at line 76 of file allocation_node.cpp.
Allocation handle.
Definition at line 80 of file allocation_node.h.
pluginlib::ClassLoader<AllocationInterface> labust::allocation::AllocationNode::alloc_loader [private] |
Allocation plug-in loader.
Definition at line 78 of file allocation_node.h.
The achieved PWM commands.
Definition at line 67 of file allocation_node.h.
The safety timer that stops the thrusters.
Definition at line 73 of file allocation_node.h.
The desired force and torque subscriber.
Definition at line 63 of file allocation_node.h.
The achieved force and torque publisher.
Definition at line 65 of file allocation_node.h.
double labust::allocation::AllocationNode::timeout [private] |
The safety timeout.
Definition at line 75 of file allocation_node.h.