SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
scl::SControllerMultiTask Class Reference

#include <SControllerMultiTask.hpp>

Inheritance diagram for scl::SControllerMultiTask:
Inheritance graph
[legend]
Collaboration diagram for scl::SControllerMultiTask:
Collaboration graph
[legend]

Public Member Functions

 SControllerMultiTask ()
 
virtual ~SControllerMultiTask ()
 
virtual sBool init (const std::string &arg_ctrl_name, const SRobotParsed *arg_robot_ds, SRobotIO *arg_io_data, SGcModel *arg_gc_model=S_NULL)
 
virtual const std::string & getType () const
 
virtual const std::string & getName () const
 
virtual bool hasBeenInit () const
 

Public Attributes

SServo servo_
 
sutil::CMappedMultiLevelList
< std::string, STaskBase * > 
tasks_
 
sutil::CMappedList
< std::string,
SNonControlTaskBase * > 
tasks_non_ctrl_
 
std::string robot_name_
 
const SRobotParsedrobot_
 
SRobotIOio_data_
 
SGcModelgc_model_
 
std::string name_
 
sBool has_been_init_
 

Protected Attributes

std::string type_
 

Detailed Description

Controller robot data structure. One such object is stored in the database singleton for every controller.

Constructor & Destructor Documentation

scl::SControllerMultiTask::SControllerMultiTask ( )

Inherited stuff: std::string robot_name_; const SRobotParsed* robot_; SRobotIO* io_data_; SGcModel* gc_model_; std::string name_; sBool has_been_init_; Constructor sets the initialization state to false

scl::SControllerMultiTask::~SControllerMultiTask ( )
virtual

Destructor does nothing. NOTE : Someone else should delete the tasks.

Member Function Documentation

virtual const std::string& scl::SObject::getName ( ) const
inlinevirtualinherited

Get the object's type

virtual const std::string& scl::SObject::getType ( ) const
inlinevirtualinherited

Get the object's type

virtual bool scl::SObject::hasBeenInit ( ) const
inlinevirtualinherited

Get the object's type

sBool scl::SControllerMultiTask::init ( const std::string &  arg_ctrl_name,
const SRobotParsed arg_robot_ds,
SRobotIO arg_io_data,
SGcModel arg_gc_model = S_NULL 
)
virtual

Initializes the data structure

Reimplemented from scl::SControllerBase.

Member Data Documentation

SGcModel* scl::SControllerBase::gc_model_
inherited

Pointer to the JSpace model DS.

sBool scl::SObject::has_been_init_
inherited

Whether the object is ready for use

SRobotIO* scl::SControllerBase::io_data_
inherited

Robot sensor and actuator data

std::string scl::SObject::name_
inherited

The object's name

const SRobotParsed* scl::SControllerBase::robot_
inherited

Pointer to the static robot data (parsed from a file)

std::string scl::SControllerBase::robot_name_
inherited

Name of the robot

SServo scl::SControllerMultiTask::servo_

Pointer to the Servo DS.

sutil::CMappedMultiLevelList<std::string, STaskBase*> scl::SControllerMultiTask::tasks_

Pointers to the Task data structures. Organized in the priority order (the outer vector) of the tasks.

Tasks can be accessed either by name (map access), pointer (iterator_) in the multi level pilemap or via the vector (std::vector access)

sutil::CMappedList<std::string, SNonControlTaskBase*> scl::SControllerMultiTask::tasks_non_ctrl_

Pointers to the non-control Task data structures.

Tasks can be accessed either by name (map access) or pointer (iterator_)

std::string scl::SObject::type_
protectedinherited

The object's type. Should only be set by the constructor


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