Cheetah Software
1.0
|
#include <HardwareBridge.h>
Public Member Functions | |
MiniCheetahHardwareBridge (RobotController *) | |
void | runSpi () |
void | initHardware () |
void | run () |
void | abort (const std::string &reason) |
void | abort (const char *reason) |
Public Member Functions inherited from HardwareBridge | |
HardwareBridge (RobotController *robot_ctrl) | |
void | prefaultStack () |
void | setupScheduler () |
void | initError (const char *reason, bool printErrno=false) |
void | initCommon () |
~HardwareBridge () | |
void | handleGamepadLCM (const lcm::ReceiveBuffer *rbuf, const std::string &chan, const gamepad_lcmt *msg) |
void | handleInterfaceLCM () |
void | handleControlParameter (const lcm::ReceiveBuffer *rbuf, const std::string &chan, const control_parameter_request_lcmt *msg) |
void | publishVisualizationLCM () |
void | run_sbus () |
Private Attributes | |
VectorNavData | _vectorNavData |
lcm::LCM | _spiLcm |
Additional Inherited Members | |
Protected Attributes inherited from HardwareBridge | |
PeriodicTaskManager | taskManager |
PrintTaskStatus | statusTask |
GamepadCommand | _gamepadCommand |
VisualizationData | _visualizationData |
CheetahVisualization | _mainCheetahVisualization |
lcm::LCM | _interfaceLCM |
lcm::LCM | _visualizationLCM |
control_parameter_respones_lcmt | _parameter_response_lcmt |
SpiData | _spiData |
SpiCommand | _spiCommand |
bool | _firstRun = true |
RobotRunner * | _robotRunner = nullptr |
RobotControlParameters | _robotParams |
u64 | _iterations = 0 |
std::thread | _interfaceLcmThread |
volatile bool | _interfaceLcmQuit = false |
ControlParameters * | _userControlParameters = nullptr |
int | _port |
Definition at line 72 of file HardwareBridge.h.
MiniCheetahHardwareBridge::MiniCheetahHardwareBridge | ( | RobotController * | robot_ctrl | ) |
Definition at line 201 of file HardwareBridge.cpp.
void MiniCheetahHardwareBridge::abort | ( | const std::string & | reason | ) |
void MiniCheetahHardwareBridge::abort | ( | const char * | reason | ) |
void MiniCheetahHardwareBridge::initHardware | ( | ) |
Definition at line 275 of file HardwareBridge.cpp.
References _vectorNavData, init_spi(), init_vectornav(), HardwareBridge::initError(), and VectorNavData::quat.
void MiniCheetahHardwareBridge::run | ( | ) |
Definition at line 204 of file HardwareBridge.cpp.
References HardwareBridge::_firstRun, HardwareBridge::_gamepadCommand, HardwareBridge::_mainCheetahVisualization, HardwareBridge::_port, HardwareBridge::_robotParams, HardwareBridge::_robotRunner, HardwareBridge::_spiCommand, HardwareBridge::_spiData, HardwareBridge::_userControlParameters, _vectorNavData, HardwareBridge::_visualizationData, RobotRunner::cheetahMainVisualization, RobotRunner::controlParameters, RobotRunner::driverCommand, RobotRunner::init(), init_sbus(), HardwareBridge::initCommon(), initHardware(), ControlParameters::isFullyInitialized(), MINI_CHEETAH, HardwareBridge::publishVisualizationLCM(), RobotRunner::robotType, HardwareBridge::run_sbus(), runSpi(), RobotRunner::spiCommand, RobotRunner::spiData, PeriodicTask::start(), HardwareBridge::statusTask, HardwareBridge::taskManager, RobotRunner::vectorNavData, and RobotRunner::visualizationData.
void MiniCheetahHardwareBridge::runSpi | ( | ) |
Definition at line 293 of file HardwareBridge.cpp.
References HardwareBridge::_spiCommand, HardwareBridge::_spiData, _spiLcm, get_spi_command(), get_spi_data(), and spi_driver_run().
|
private |
Definition at line 83 of file HardwareBridge.h.
|
private |
Definition at line 82 of file HardwareBridge.h.