pilot::AccelExample Class Reference

#include <accel_example.h>

Inheritance diagram for pilot::AccelExample:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

Simple example acceleration controller.

Definition at line 28 of file accel_example.h.


Member Typedef Documentation

Shared pointer to servo device instance.

Reimplemented from pilot::AccelBase.

Definition at line 35 of file accel_example.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void pilot::AccelExample::adjust ( art_msgs::PilotState &  pstate,
ServoPtr  brake,
ServoPtr  throttle 
) [virtual]

Adjust acceleration to match target.

Parameters:
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.


Member Data Documentation

boost::shared_ptr<Pid> pilot::AccelExample::brake_pid_ [private]

Definition at line 57 of file accel_example.h.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines


art_pilot
Author(s): Austin Robot Technology, Jack O'Quin
autogenerated on Fri Jan 11 09:11:54 2013