All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines
Public Types | Public Member Functions | Private Attributes
pilot::AccelExample Class Reference

#include <accel_example.h>

Inheritance diagram for pilot::AccelExample:
Inheritance graph

List of all members.

Public Types

typedef boost::shared_ptr
< device_interface::ServoDeviceBase

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< Pidbrake_pid_
bool braking_
boost::shared_ptr< Pidthrottle_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

Definition at line 42 of file

Member Function Documentation

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

Adjust acceleration to match target.

pstatecurrent pilot state
brakeshared pointer to brake servo device interface
throttleshared pointer to throttle servo device interface

Implements pilot::AccelBase.

Definition at line 44 of file

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

void pilot::AccelExample::reset ( void  ) [virtual]

Reset accel_example controller.

reset corresponding speed controller

Implements pilot::AccelBase.

Definition at line 117 of file

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 Enumerations Properties Friends Defines

Author(s): Austin Robot Technology, Jack O'Quin
autogenerated on Tue Sep 24 2013 10:44:02