skid4_control
Public Member Functions | Protected Attributes | Friends | List of all members
skid4_control::Controller Class Reference

#include <Controller.hpp>

Inheritance diagram for skid4_control::Controller:

Public Member Functions

 Controller (std::string const &name="skid4_control::Controller", TaskCore::TaskState initial_state=Stopped)
 
 Controller (std::string const &name, RTT::ExecutionEngine *engine, TaskCore::TaskState initial_state=Stopped)
 
 ~Controller ()
 
bool configureHook ()
 The following lines are template definitions for the various state machine. More...
 
bool startHook ()
 

Protected Attributes

std::vector< size_t > m_rightIndexes
 
std::vector< size_t > m_leftIndexes
 
std::vector< std::string > m_RightWheelNames
 
std::vector< std::string > m_LeftWheelNames
 
base::commands::Joints m_jointCmd
 

Friends

class ControllerBase
 

Constructor & Destructor Documentation

Controller::Controller ( std::string const &  name = "skid4_control::Controller",
TaskCore::TaskState  initial_state = Stopped 
)
Controller::Controller ( std::string const &  name,
RTT::ExecutionEngine *  engine,
TaskCore::TaskState  initial_state = Stopped 
)
Controller::~Controller ( )

Member Function Documentation

bool Controller::configureHook ( )

The following lines are template definitions for the various state machine.

This hook is called by Orocos when the state machine transitions from PreOperational to Stopped. If it returns false, then the component will stay in PreOperational. Otherwise, it goes into Stopped.

It is meaningful only if the #needs_configuration has been specified in the task context definition with (for example):

task_context "TaskName" do needs_configuration ... end

bool Controller::startHook ( )

This hook is called by Orocos when the state machine transitions from Stopped to Running. If it returns false, then the component will stay in Stopped. Otherwise, it goes into Running and updateHook() will be called.

Friends And Related Function Documentation

friend class ControllerBase
friend

Member Data Documentation

base::commands::Joints skid4_control::Controller::m_jointCmd
protected
std::vector<size_t> skid4_control::Controller::m_leftIndexes
protected
std::vector<std::string> skid4_control::Controller::m_LeftWheelNames
protected
std::vector<size_t> skid4_control::Controller::m_rightIndexes
protected
std::vector<std::string> skid4_control::Controller::m_RightWheelNames
protected

The documentation for this class was generated from the following files: