TxtSmartFactoryLib  0.8.0
Smart Factory Library
ft::TxtHighBayWarehouse Class Reference

#include <TxtHighBayWarehouse.h>

Inheritance diagram for ft::TxtHighBayWarehouse:
Collaboration diagram for ft::TxtHighBayWarehouse:

Public Types

enum  State_t {
  __NO_STATE, IDLE, INIT, FAULT,
  FETCH_CONTAINER, STORE_WP, FETCH_WP, FETCH_WP_WAIT,
  STORE_CONTAINER, CALIB_HBW, CALIB_HBW_NAV, CALIB_HBW_MOVE
}
 

Public Member Functions

const char * toString (State_t state)
 
void printState (State_t state)
 
void printEntryState (State_t state)
 
void printExitState (State_t state)
 
 TxtHighBayWarehouse (TxtTransfer *pT, ft::TxtMqttFactoryClient *mqttclient=0)
 
virtual ~TxtHighBayWarehouse ()
 
void requestQuit ()
 
void requestExit (const std::string name)
 
void requestVGRfetchContainer (TxtWorkpiece *wp)
 
void requestVGRstore (TxtWorkpiece *wp)
 
void requestVGRfetch (TxtWorkpiece *wp)
 
void requestVGRstoreContainer (TxtWorkpiece *wp)
 
void requestVGRcalib ()
 
void requestVGRresetStorage ()
 
void requestJoyBut (TxtJoysticksData jd)
 
bool loadCalib ()
 
bool saveCalibDefault ()
 
void stop ()
 
void moveRef ()
 
EncPos2 getPos2 ()
 
void moveJoystick ()
 
bool store (TxtWorkpiece wp)
 
bool storeContainer ()
 
bool fetch (TxtWPType_t t)
 
bool fetchContainer ()
 
bool canColorBeStored (TxtWPType_t c)
 
void setSpeed (int16_t s)
 
TxtHighBayWarehouseStoragegetStorage ()
 
void publishStorage ()
 
- Public Member Functions inherited from ft::TxtSimulationModel
 TxtSimulationModel (TxtTransfer *pT, ft::TxtMqttFactoryClient *mqttclient)
 
virtual ~TxtSimulationModel ()
 
TxtSimulationModel_status_t getStatus ()
 
bool isActive ()
 
bool startThread ()
 
bool stopThread ()
 
bool isThreadRunning ()
 
- Public Member Functions inherited from ft::SubjectObserver
 SubjectObserver ()
 
virtual ~SubjectObserver ()
 
virtual void Attach (Observer *)
 
virtual void Detach (Observer *)
 
virtual void Notify ()
 

Public Attributes

const int ydelta = 40
 
TxtAxis1RefSwitch axisX
 
TxtAxis1RefSwitch axisY
 
TxtAxisNSwitch axisZ
 
- Public Attributes inherited from ft::TxtSimulationModel
TxtSound sound
 

Protected Member Functions

EncPos2 moveConv (bool stop=false)
 
EncPos2 moveCR (int i, int j)
 
bool getCR (int i, int j)
 
bool putCR (int i, int j)
 
bool getConv (bool stop=false)
 
bool putConv (bool stop=false)
 
void moveCalibPos ()
 
void run ()
 
- Protected Member Functions inherited from ft::TxtSimulationModel
void setStatus (TxtSimulationModel_status_t s)
 
void setActStatus (bool a, TxtSimulationModel_status_t s)
 

Protected Attributes

State_t currentState
 
State_t newState
 
TxtHbwCalibPos_t calibPos
 
EncPos2 lastPos2
 
TxtConveyorBeltLightBarriers convBelt
 
TxtHighBayWarehouseStorage storage
 
TxtHighBayWarehouseCalibData calibData
 
bool reqQuit
 
TxtWorkpiecereqVGRwp
 
bool reqVGRfetchContainer
 
bool reqVGRstore
 
bool reqVGRfetch
 
bool reqVGRstoreContainer
 
bool reqVGRcalib
 
bool reqVGRresetStorage
 
TxtJoysticksData joyData
 
bool reqJoyData
 
TxtHighBayWarehouseObserverobs_hbw
 
TxtHighBayWarehouseStorageObserverobs_storage
 
- Protected Attributes inherited from ft::TxtSimulationModel
ft::TxtMqttFactoryClientmqttclient
 
TxtSimulationModel_status_t status
 
bool active
 
TxtTransferpT
 
volatile bool m_stoprequested
 
volatile bool m_running
 
pthread_mutex_t m_mutex
 
pthread_t m_thread
 

Friends

class TxtJoystickXYBController
 

Additional Inherited Members

- Static Protected Member Functions inherited from ft::TxtSimulationModel
static void * start_thread (void *obj)
 

Member Enumeration Documentation

Enumerator
__NO_STATE 
IDLE 
INIT 
FAULT 
FETCH_CONTAINER 
STORE_WP 
FETCH_WP 
FETCH_WP_WAIT 
STORE_CONTAINER 
CALIB_HBW 
CALIB_HBW_NAV 
CALIB_HBW_MOVE 

Constructor & Destructor Documentation

ft::TxtHighBayWarehouse::TxtHighBayWarehouse ( TxtTransfer pT,
ft::TxtMqttFactoryClient mqttclient = 0 
)
virtual ft::TxtHighBayWarehouse::~TxtHighBayWarehouse ( )
virtual

Member Function Documentation

bool ft::TxtHighBayWarehouse::canColorBeStored ( TxtWPType_t  c)
bool ft::TxtHighBayWarehouse::fetch ( TxtWPType_t  t)
bool ft::TxtHighBayWarehouse::fetchContainer ( )
bool ft::TxtHighBayWarehouse::getConv ( bool  stop = false)
protected
bool ft::TxtHighBayWarehouse::getCR ( int  i,
int  j 
)
protected
EncPos2 ft::TxtHighBayWarehouse::getPos2 ( )
inline
TxtHighBayWarehouseStorage* ft::TxtHighBayWarehouse::getStorage ( )
inline
bool ft::TxtHighBayWarehouse::loadCalib ( )
void ft::TxtHighBayWarehouse::moveCalibPos ( )
protected
EncPos2 ft::TxtHighBayWarehouse::moveConv ( bool  stop = false)
protected
EncPos2 ft::TxtHighBayWarehouse::moveCR ( int  i,
int  j 
)
protected
void ft::TxtHighBayWarehouse::moveJoystick ( )
void ft::TxtHighBayWarehouse::moveRef ( )
void ft::TxtHighBayWarehouse::printEntryState ( State_t  state)
inline
void ft::TxtHighBayWarehouse::printExitState ( State_t  state)
inline
void ft::TxtHighBayWarehouse::printState ( State_t  state)
inline
void ft::TxtHighBayWarehouse::publishStorage ( )
inline
bool ft::TxtHighBayWarehouse::putConv ( bool  stop = false)
protected
bool ft::TxtHighBayWarehouse::putCR ( int  i,
int  j 
)
protected
void ft::TxtHighBayWarehouse::requestExit ( const std::string  name)
inline
void ft::TxtHighBayWarehouse::requestJoyBut ( TxtJoysticksData  jd)
inline
void ft::TxtHighBayWarehouse::requestQuit ( )
inline
void ft::TxtHighBayWarehouse::requestVGRcalib ( )
inline
void ft::TxtHighBayWarehouse::requestVGRfetch ( TxtWorkpiece wp)
inline
void ft::TxtHighBayWarehouse::requestVGRfetchContainer ( TxtWorkpiece wp)
inline
void ft::TxtHighBayWarehouse::requestVGRresetStorage ( )
inline
void ft::TxtHighBayWarehouse::requestVGRstore ( TxtWorkpiece wp)
inline
void ft::TxtHighBayWarehouse::requestVGRstoreContainer ( TxtWorkpiece wp)
inline
void ft::TxtHighBayWarehouse::run ( )
protectedvirtual
bool ft::TxtHighBayWarehouse::saveCalibDefault ( )
void ft::TxtHighBayWarehouse::setSpeed ( int16_t  s)
void ft::TxtHighBayWarehouse::stop ( )
bool ft::TxtHighBayWarehouse::store ( TxtWorkpiece  wp)
bool ft::TxtHighBayWarehouse::storeContainer ( )
const char* ft::TxtHighBayWarehouse::toString ( State_t  state)
inline

Friends And Related Function Documentation

friend class TxtJoystickXYBController
friend

Member Data Documentation

TxtAxis1RefSwitch ft::TxtHighBayWarehouse::axisX
TxtAxis1RefSwitch ft::TxtHighBayWarehouse::axisY
TxtAxisNSwitch ft::TxtHighBayWarehouse::axisZ
TxtHighBayWarehouseCalibData ft::TxtHighBayWarehouse::calibData
protected
TxtHbwCalibPos_t ft::TxtHighBayWarehouse::calibPos
protected
TxtConveyorBeltLightBarriers ft::TxtHighBayWarehouse::convBelt
protected
State_t ft::TxtHighBayWarehouse::currentState
protected
TxtJoysticksData ft::TxtHighBayWarehouse::joyData
protected
EncPos2 ft::TxtHighBayWarehouse::lastPos2
protected
State_t ft::TxtHighBayWarehouse::newState
protected
TxtHighBayWarehouseObserver* ft::TxtHighBayWarehouse::obs_hbw
protected
TxtHighBayWarehouseStorageObserver* ft::TxtHighBayWarehouse::obs_storage
protected
bool ft::TxtHighBayWarehouse::reqJoyData
protected
bool ft::TxtHighBayWarehouse::reqQuit
protected
bool ft::TxtHighBayWarehouse::reqVGRcalib
protected
bool ft::TxtHighBayWarehouse::reqVGRfetch
protected
bool ft::TxtHighBayWarehouse::reqVGRfetchContainer
protected
bool ft::TxtHighBayWarehouse::reqVGRresetStorage
protected
bool ft::TxtHighBayWarehouse::reqVGRstore
protected
bool ft::TxtHighBayWarehouse::reqVGRstoreContainer
protected
TxtWorkpiece* ft::TxtHighBayWarehouse::reqVGRwp
protected
TxtHighBayWarehouseStorage ft::TxtHighBayWarehouse::storage
protected
const int ft::TxtHighBayWarehouse::ydelta = 40

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