MAV'RIC
Public Types | Public Member Functions
Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T > Class Template Reference

Interface for controllers with one input command type and two output command types. More...

#include <controller.hpp>

Inheritance diagram for Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >:
Inheritance graph
[legend]
Collaboration diagram for Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef in_command_T in_command_t
typedef out_command_a_T out_command_a_t
typedef out_command_b_T out_command_b_t

Public Member Functions

virtual bool update (void)=0
 Main update function.
virtual bool set_command (const in_command_t &command)=0
 Sets the input command.
virtual bool get_command (in_command_t &command) const =0
 Returns the input command.
virtual bool get_output (out_command_a_t &command) const =0
 Returns the output command.
virtual bool get_output (out_command_b_t &command) const =0
 Returns the output command.

Detailed Description

template<typename in_command_T, typename out_command_a_T, typename out_command_b_T>
class Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >

Interface for controllers with one input command type and two output command types.


Member Function Documentation

template<typename in_command_T, typename out_command_a_T, typename out_command_b_T>
virtual bool Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >::get_command ( in_command_t &  command) const [pure virtual]

Returns the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< in_command_T, out_command_b_T >.

Implemented in Velocity_controller.

Here is the caller graph for this function:

template<typename in_command_T, typename out_command_a_T, typename out_command_b_T>
virtual bool Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >::get_output ( out_command_a_t &  command) const [pure virtual]

Returns the output command.

Parameters:
commandoutput command
Returns:
success

Implements Controller< in_command_T, out_command_a_T >.

Implemented in Velocity_controller.

template<typename in_command_T, typename out_command_a_T, typename out_command_b_T>
virtual bool Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >::get_output ( out_command_b_t &  command) const [pure virtual]

Returns the output command.

Parameters:
commandoutput command
Returns:
success

Implements Controller< in_command_T, out_command_b_T >.

Implemented in Velocity_controller.

template<typename in_command_T, typename out_command_a_T, typename out_command_b_T>
virtual bool Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >::set_command ( const in_command_t &  command) [pure virtual]

Sets the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< in_command_T, out_command_b_T >.

Implemented in Velocity_controller.

Here is the caller graph for this function:

template<typename in_command_T, typename out_command_a_T, typename out_command_b_T>
virtual bool Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >::update ( void  ) [pure virtual]

Main update function.

Returns:
success

Implements Controller< in_command_T, out_command_b_T >.

Implemented in Velocity_controller.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines