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

#include <BaseTask.hpp>

Inheritance diagram for image_preprocessing::BaseTask:

Public Member Functions

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

Protected Attributes

frame_helper::FrameHelper frame_helper
 
base::samples::frame::Frame temp_frame
 
double scale_x
 
double scale_y
 
bool calibrate
 
base::samples::frame::frame_mode_t frame_mode
 
int offset_x
 
int offset_y
 
frame_helper::ResizeAlgorithm resize_algorithm
 

Friends

class BaseTaskBase
 

Constructor & Destructor Documentation

◆ BaseTask() [1/2]

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

◆ BaseTask() [2/2]

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

◆ ~BaseTask()

BaseTask::~BaseTask ( )

Member Function Documentation

◆ startHook()

bool BaseTask::startHook ( )

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 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

◆ BaseTaskBase

friend class BaseTaskBase
friend

Member Data Documentation

◆ calibrate

bool image_preprocessing::BaseTask::calibrate
protected

◆ frame_helper

frame_helper::FrameHelper image_preprocessing::BaseTask::frame_helper
protected

◆ frame_mode

base::samples::frame::frame_mode_t image_preprocessing::BaseTask::frame_mode
protected

◆ offset_x

int image_preprocessing::BaseTask::offset_x
protected

◆ offset_y

int image_preprocessing::BaseTask::offset_y
protected

◆ resize_algorithm

frame_helper::ResizeAlgorithm image_preprocessing::BaseTask::resize_algorithm
protected

◆ scale_x

double image_preprocessing::BaseTask::scale_x
protected

◆ scale_y

double image_preprocessing::BaseTask::scale_y
protected

◆ temp_frame

base::samples::frame::Frame image_preprocessing::BaseTask::temp_frame
protected

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