#include <accel.h>
Public Types | |
typedef boost::shared_ptr < device_interface::ServoDeviceBase > | ServoPtr |
Public Member Functions | |
AccelBase (art_pilot::PilotConfig &config) | |
virtual void | adjust (art_msgs::PilotState &pstate, ServoPtr brake, ServoPtr throttle)=0 |
virtual void | reconfigure (art_pilot::PilotConfig &newconfig)=0 |
virtual void | reset (void)=0 |
virtual | ~AccelBase () |
Pilot acceleration controller virtual base class
Definition at line 27 of file accel.h.
typedef boost::shared_ptr<device_interface::ServoDeviceBase> pilot::AccelBase::ServoPtr |
Shared pointer to servo device instance.
Reimplemented in pilot::AccelExample, pilot::AccelPlan, and pilot::AccelSpeed.
pilot::AccelBase::AccelBase | ( | art_pilot::PilotConfig & | config | ) | [inline] |
pilot::AccelBase::~AccelBase | ( | ) | [virtual] |
Destructor (required for virtual base classes).
Definition at line 25 of file alloc_accel.cc.
virtual void pilot::AccelBase::adjust | ( | art_msgs::PilotState & | pstate, | |
ServoPtr | brake, | |||
ServoPtr | throttle | |||
) | [pure virtual] |
Adjust acceleration to match target.
pstate | current pilot state | |
brake | shared pointer to brake servo device interface | |
throttle | shared pointer to throttle servo device interface |
Implemented in pilot::AccelExample, pilot::AccelPlan, and pilot::AccelSpeed.
virtual void pilot::AccelBase::reconfigure | ( | art_pilot::PilotConfig & | newconfig | ) | [pure virtual] |
Reconfigure controller parameters.
[in,out] | newconfig | latest pilot configuration parameters (may be modified if parameter values invalid) |
Implemented in pilot::AccelExample, pilot::AccelPlan, and pilot::AccelSpeed.
virtual void pilot::AccelBase::reset | ( | void | ) | [pure virtual] |
Reset acceleration controller.
Implemented in pilot::AccelExample, pilot::AccelPlan, and pilot::AccelSpeed.