#include <accel_example.h>
Public Types | |
typedef boost::shared_ptr < device_interface::ServoDeviceBase > | ServoPtr |
Public Member Functions | |
AccelExample (art_pilot::PilotConfig &config) | |
virtual void | adjust (art_msgs::PilotState &pstate, ServoPtr brake, ServoPtr throttle) |
virtual void | reconfigure (art_pilot::PilotConfig &newconfig) |
virtual void | reset (void) |
virtual | ~AccelExample () |
Private Attributes | |
boost::shared_ptr< Pid > | brake_pid_ |
bool | braking_ |
boost::shared_ptr< Pid > | throttle_pid_ |
Simple example acceleration controller.
Definition at line 28 of file accel_example.h.
typedef boost::shared_ptr<device_interface::ServoDeviceBase> pilot::AccelExample::ServoPtr |
Shared pointer to servo device instance.
Reimplemented from pilot::AccelBase.
Definition at line 35 of file accel_example.h.
pilot::AccelExample::AccelExample | ( | art_pilot::PilotConfig & | config | ) |
Definition at line 31 of file accel_example.cc.
pilot::AccelExample::~AccelExample | ( | ) | [virtual] |
Definition at line 42 of file accel_example.cc.
void pilot::AccelExample::adjust | ( | art_msgs::PilotState & | pstate, | |
ServoPtr | brake, | |||
ServoPtr | throttle | |||
) | [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 |
Implements pilot::AccelBase.
Definition at line 44 of file accel_example.cc.
void pilot::AccelExample::reconfigure | ( | art_pilot::PilotConfig & | newconfig | ) | [virtual] |
Reconfigure controller parameters.
allocate appropriate speed control subclass for this configuration
Implements pilot::AccelBase.
Definition at line 106 of file accel_example.cc.
void pilot::AccelExample::reset | ( | void | ) | [virtual] |
Reset accel_example controller.
reset corresponding speed controller
Implements pilot::AccelBase.
Definition at line 117 of file accel_example.cc.
boost::shared_ptr<Pid> pilot::AccelExample::brake_pid_ [private] |
Definition at line 57 of file accel_example.h.
bool pilot::AccelExample::braking_ [private] |
Definition at line 55 of file accel_example.h.
boost::shared_ptr<Pid> pilot::AccelExample::throttle_pid_ [private] |
Definition at line 58 of file accel_example.h.