Quad-SDK
|
Implements an abstract class for robot hardware interfaces. More...
#include <hardware_interface.h>
Public Member Functions | |
HardwareInterface () | |
Constructor for HardwareInterface. | |
virtual void | loadInterface (int argc, char **argv)=0 |
Load the hardware interface. | |
virtual void | unloadInterface ()=0 |
Unload the hardware interface. | |
virtual bool | send (const quad_msgs::LegCommandArray &leg_command_array_msg, const Eigen::VectorXd &user_tx_data)=0 |
Send commands to the robot. | |
virtual bool | recv (sensor_msgs::JointState &joint_state_msg, sensor_msgs::Imu &imu_msg, Eigen::VectorXd &user_rx_data)=0 |
Recieve data from the robot. | |
Implements an abstract class for robot hardware interfaces.
HardwareInterface provides an abstract robot hardware interface class. The virtual functions declared here must be implemented by the derived class.
HardwareInterface::HardwareInterface | ( | ) |
Constructor for HardwareInterface.
|
pure virtual |
Load the hardware interface.
[in] | argc | Argument count |
[in] | argv | Argument vector |
Implemented in SpiritInterface.
|
pure virtual |
Recieve data from the robot.
[out] | joint_state_msg | Message containing joint state information |
[out] | imu_msg | Message containing imu information |
[out] | user_data | Vector containing user data |
Implemented in SpiritInterface.
|
pure virtual |
Send commands to the robot.
[in] | leg_command_array_msg | Message containing leg commands |
[in] | user_data | Vector containing user data |
Implemented in SpiritInterface.
|
pure virtual |
Unload the hardware interface.
Implemented in SpiritInterface.