gps
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
gps::BaseTask Class Reference

#include <BaseTask.hpp>

Inheritance diagram for gps::BaseTask:

Public Member Functions

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

Protected Member Functions

void update (const gps::Solution &solution)
 

Protected Attributes

OGRCoordinateTransformation * coTransform
 
base::Time last_update
 

Friends

class BaseTaskBase
 

Constructor & Destructor Documentation

◆ BaseTask() [1/2]

BaseTask::BaseTask ( std::string const &  name = "gps::BaseTask",
TaskCore::TaskState  initial_state = Stopped 
)

◆ BaseTask() [2/2]

BaseTask::BaseTask ( std::string const &  name,
RTT::ExecutionEngine *  engine,
TaskCore::TaskState  initial_state = Stopped 
)

Member Function Documentation

◆ configureHook()

bool BaseTask::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

◆ startHook()

bool BaseTask::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.

◆ update()

void BaseTask::update ( const gps::Solution &  solution)
protected

Friends And Related Function Documentation

◆ BaseTaskBase

friend class BaseTaskBase
friend

Member Data Documentation

◆ coTransform

OGRCoordinateTransformation* gps::BaseTask::coTransform
protected

◆ last_update

base::Time gps::BaseTask::last_update
protected

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