DUNE: Uniform Navigational Environment  2016.03.0
DUNE::Tasks::Task Class Referenceabstract

Detailed Description

Public Member Functions

 Task (const std::string &name, Context &context)
 
virtual ~Task (void)
 
const char * getName (void) const
 
const char * getSystemName (void) const
 
unsigned int getSystemId (void) const
 
unsigned int getEntityId (void) const
 
unsigned int resolveEntity (const std::string &label) const
 
std::string resolveEntity (unsigned int id) const
 
DebugLevel getDebugLevel (void) const
 
uint16_t getActivationTime (void) const
 
uint16_t getDeactivationTime (void) const
 
unsigned int resolveSystemName (const std::string &name) const
 
const char * resolveSystemId (unsigned int id) const
 
void loadConfig (void)
 
void setPriority (unsigned int value)
 
unsigned int getPriority (void) const
 
void inf (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void war (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void void err (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void void void cri (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void void void void debug (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void void void void void trace (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void void void void void void spew (const char *format,...) DUNE_PRINTF_FORMAT(2
 
void void void void void void
void void 
dispatch (IMC::Message *msg, unsigned int flags=0)
 
void dispatch (IMC::Message &msg, unsigned int flags=0)
 
void dispatchReply (const IMC::Message &original, IMC::Message &msg, unsigned int flags=0)
 
void receive (const IMC::Message *msg)
 
void reserveEntities (void)
 
void resolveEntities (void)
 
void acquireResources (void)
 
void releaseResources (void)
 
void initializeResources (void)
 
void updateParameters (bool act_deact=true)
 
void writeParamsXML (std::ostream &os) const
 
const char * getEntityLabel (void) const
 
void setEntityLabel (const std::string &label)
 
- Public Member Functions inherited from DUNE::Tasks::AbstractTask
 AbstractTask (void)
 
virtual ~AbstractTask (void)
 
- Public Member Functions inherited from DUNE::Concurrency::Thread
 Thread (void)
 
virtual ~Thread (void)
 
int getProcessorUsage (void)
 
- Public Member Functions inherited from DUNE::Concurrency::Runnable
 Runnable (void)
 
virtual ~Runnable (void)
 
void start (void)
 
void stop (void)
 
void join (void)
 
void stopAndJoin (void)
 
void setPriority (Scheduler::Policy policy, unsigned priority)
 
State getState (void)
 
bool isCreated (void)
 
bool isStopping (void)
 
bool isRunning (void)
 
bool isStarting (void)
 
bool isDead (void)
 

Protected Member Functions

void setEntityState (IMC::EntityState::StateEnum state, Status::Code code)
 
void setEntityState (IMC::EntityState::StateEnum state, const std::string &description)
 
IMC::EntityState::StateEnum getEntityState (void) const
 
unsigned int reserveEntity (const std::string &label)
 
template<typename E >
E * reserveEntity (const std::string &label)
 
bool stopping (void)
 
bool isActive (void) const
 
bool isActivating (void) const
 
bool isDeactivating (void) const
 
void waitForMessages (double timeout)
 
void consumeMessages (void)
 
template<typename T >
Parameterparam (const std::string &name, T &var)
 
template<typename Y , typename T >
Parameterparam (const std::string &name, T &var)
 
template<typename T >
bool paramChanged (T &var)
 
void paramActive (Parameter::Scope def_scope, Parameter::Visibility def_visibility, bool def_value=false)
 
void setParamSectionEditor (const std::string &name)
 
template<typename M , typename T >
void bind (T *task_obj, void(T::*consumer)(const M *)=&T::consume)
 
template<typename T >
void bind (T *task_obj, const std::vector< uint32_t > &list)
 
template<typename T , typename M >
void bind (T *task_obj, const std::vector< uint32_t > &list, void(T::*consumer)(const M *)=&T::consume)
 
template<typename T >
void bind (T *task_obj, const std::vector< std::string > &list)
 
void requestActivation (void)
 
void requestDeactivation (void)
 
void activate (void)
 
void activationFailed (const std::string &reason)
 
void deactivate (void)
 
void deactivationFailed (const std::string &reason)
 
virtual bool onWriteParamsXML (std::ostream &os) const
 
virtual void onEntityReservation (void)
 
virtual void onEntityResolution (void)
 
virtual void onReportEntityState (void)
 
virtual void onResourceAcquisition (void)
 
virtual void onResourceRelease (void)
 
virtual void onResourceInitialization (void)
 
virtual void onUpdateParameters (void)
 
virtual void onRequestActivation (void)
 
virtual void onRequestDeactivation (void)
 
virtual void onActivation (void)
 
virtual void onDeactivation (void)
 
virtual void onQueryEntityParameters (const IMC::QueryEntityParameters *msg)
 
virtual void onSetEntityParameters (const IMC::SetEntityParameters *msg)
 
virtual void onPushEntityParameters (const IMC::PushEntityParameters *msg)
 
virtual void onPopEntityParameters (const IMC::PopEntityParameters *msg)
 
virtual void onMain (void)=0
 
- Protected Member Functions inherited from DUNE::Concurrency::Thread
void startImpl (void)
 
void stopImpl (void)
 
void joinImpl (void)
 
void setPriorityImpl (Scheduler::Policy policy, unsigned priority)
 

Protected Attributes

Contextm_ctx
 
std::vector
< Entities::BasicEntity * > 
m_entities
 

Additional Inherited Members

- Public Types inherited from DUNE::Concurrency::Runnable
enum  State {
  StateStarting, StateRunning, StateStopping, StateDead,
  StateUnknown
}
 

Constructor & Destructor Documentation

DUNE::Tasks::Task::Task ( const std::string &  name,
Context context 
)

Construct a task object.

Parameters
[in]namename of the task.
[in]contexttask context.

References DUNE::Tasks::Parameter::defaultValue(), m_ctx, m_entities, param(), and DUNE::Tasks::Recipient.

Member Function Documentation

void DUNE::Tasks::Task::acquireResources ( void  )

Acquire resources whose configuration depends on dynamic parameters.

References DUNE::Tasks::ParameterTable::end(), DUNE::Tasks::ParameterTable::find(), onResourceAcquisition(), and DUNE::Tasks::Parameter::SCOPE_MANEUVER.

void DUNE::Tasks::Task::activationFailed ( const std::string &  reason)
protected

Derived classes should use this function to signal that activation failed.

Parameters
[in]reasonreason for activation failure.

References DUNE::Entities::StatefulEntity::failActivation(), and spew().

Referenced by Vision::Lumenera::Task::checkActivationProgress(), Sensors::Imagenex881A::Task::checkActivationProgress(), Sensors::SmartX::Task::failActivation(), and Sensors::ExplorerDVL::Task::onMain().

template<typename M , typename T >
void DUNE::Tasks::Task::bind ( T *  task_obj,
void(T::*)(const M *)  consumer = &T::consume 
)
inlineprotected
template<typename T >
void DUNE::Tasks::Task::bind ( T *  task_obj,
const std::vector< uint32_t > &  list 
)
inlineprotected

Bind multiple messages to a default consumer method.

Parameters
task_objconsumer object.
listlist of message identifiers.

References bind().

template<typename T , typename M >
void DUNE::Tasks::Task::bind ( T *  task_obj,
const std::vector< uint32_t > &  list,
void(T::*)(const M *)  consumer = &T::consume 
)
inlineprotected

Bind multiple messages to a consumer method.

Parameters
task_objconsumer object.
listlist of message identifiers.
consumerconsumer method.

References bind().

template<typename T >
void DUNE::Tasks::Task::bind ( T *  task_obj,
const std::vector< std::string > &  list 
)
inlineprotected

Bind multiple messages to a default consumer method.

Parameters
task_objconsumer task.
listlist of message abbreviations.

References bind(), and DUNE::IMC::Factory::getIdFromAbbrev().

void DUNE::Tasks::Task::consumeMessages ( void  )
inlineprotected

Call the consumers of all messages currently in the receiving queue.

References DUNE::Tasks::Recipient::runCallBacks().

Referenced by Sensors::ExplorerDVL::Task::configureInputTrigger(), Sensors::MLBL::Task::fullAcousticReport(), Sensors::XR620CTD::Task::getCalibration(), DUNE::Tasks::SimpleTransport::onMain(), Sensors::MiniSVS::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Simulators::AcousticModem::Task::onMain(), Sensors::AIS::Task::onMain(), Transports::Discovery::Task::onMain(), Sensors::EmulatedGPS::Task::onMain(), Sensors::MCC1608G::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Sensors::MicrostrainMIP::Task::onMain(), Sensors::SmartX::Task::onMain(), Autonomy::TREX::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Transports::Announce::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Sensors::MetrecX::Task::onMain(), Sensors::BlueView4::Task::onMain(), Sensors::ExplorerDVL::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Control::UAV::Ardupilot::Task::onMain(), Sensors::MicrostrainMIP::Task::onResourceInitialization(), Sensors::MLBL::Task::processInput(), Sensors::OS4000::Task::readString(), Sensors::XR620CTD::Task::setParameters(), Sensors::ExplorerDVL::Task::setup(), Sensors::XR620CTD::Task::stopSampling(), Simulators::UAVAutopilot::Task::task(), Maneuver::VehicleFormation::Test::Task::task(), Sensors::Microstrain3DMGX3::Task::task(), Simulators::UAV::Task::task(), Maneuver::VehicleFormation::Coordinator::Task::task(), and Maneuver::VehicleFormation::FormCollAvoid::Task::task().

void DUNE::Tasks::Task::cri ( const char *  format,
  ... 
)
virtual

Send an human-readable critical error message to all configured output channels and files.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::IMC::LogBookEntry::LBET_CRITICAL.

void DUNE::Tasks::Task::deactivationFailed ( const std::string &  reason)
protected

Derived classes should use this function to signal that deactivation failed.

Parameters
[in]reasonreason for deactivation failure.

References DUNE::Entities::StatefulEntity::failDeactivation(), and spew().

Referenced by Vision::Lumenera::Task::checkDeactivationProgress(), and Sensors::ExplorerDVL::Task::onMain().

void DUNE::Tasks::Task::debug ( const char *  format,
  ... 
)
virtual

Send an human-readable debug message to all configured output channels and files.

The message will only be processed if the configured log level is DEBUG_LEVEL_DEBUG or greater.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::Tasks::DEBUG_LEVEL_DEBUG, and DUNE::IMC::LogBookEntry::LBET_DEBUG.

Referenced by Control::ASV::RemoteOperation::Task::actuate(), Control::AUV::RemoteOperation::Task::actuate(), Plan::DB::Task::answer(), Vision::Lumenera::Task::captureAndSave(), Sensors::OS4000::Task::changeCalibrationState(), Plan::Engine::Task::changeMode(), Vision::Lumenera::Task::checkActivationProgress(), Sensors::Imagenex881A::Task::checkActivationProgress(), Plan::Engine::Task::closeDB(), Sensors::MCC1608G::Task::connect(), DUNE::Hardware::BasicDeviceDriver::consume(), Transports::Fragments::Task::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicUAVAutopilot::consume(), DUNE::Control::BasicAutopilot::consume(), Simulators::AcousticModem::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Transports::IridiumSBD::Task::consume(), Control::AUV::Allocator::Task::consume(), Transports::UAN::Task::consume(), Transports::SUNSET::Task::consume(), Control::AUV::Speed::Task::consume(), Transports::Iridium::Task::consume(), Sensors::BlueView4::Task::consume(), Plan::Engine::Task::consume(), Supervisors::Vehicle::Task::consume(), Sensors::ExplorerDVL::Task::consume(), Simulators::UAV::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Transports::IridiumSBD::Task::dequeueTxRequest(), Transports::Replay::Task::displayStats(), Monitors::Entities::Task::enableDefaults(), Sensors::MCC1608G::Task::findDevice(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Sensors::MLBL::Task::handleBinaryMessage(), Sensors::MLBLTracker::Task::handleCARXD(), Control::UAV::Ardupilot::Task::handleCmdAckPacket(), Transports::SUNSET::Task::handleCommand(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleMissionAckPacket(), Control::UAV::Ardupilot::Task::handleMissionRequestPacket(), Transports::IridiumSBD::Task::invalidateTxRequest(), Control::UAV::Ardupilot::Task::loiterHere(), Transports::Fragments::Task::messageRipper(), Supervisors::Vehicle::Task::onDisabledControlLoops(), Supervisors::Vehicle::Task::onEnabledControlLoops(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Sensors::WifiRSSI::Task::onMain(), Transports::IridiumSBD::Task::onResourceAcquisition(), Transports::GSM::Task::onResourceAcquisition(), Simulators::UAV::Task::onResourceAcquisition(), Vision::DFK51BG02H::Task::onResourceInitialization(), Simulators::UAVAutopilot::Task::onUpdateParameters(), Sensors::WifiRSSI::Task::onUpdateParameters(), Control::AUV::RemoteOperation::Task::onUpdateParameters(), Maneuver::VehicleFormation::Test::Task::onUpdateParameters(), Transports::UDP::Task::onUpdateParameters(), Simulators::UAV::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Plan::Engine::Task::openDB(), Sensors::WifiRSSI::Task::poll(), Sensors::BlueView4::Task::queryRangeWindow(), Simulators::AcousticModem::Task::readData(), Transports::UAN::Task::recvMessage(), Sensors::MLBL::Task::reportRanges(), Sensors::BlueView4::Task::requestLogName(), Transports::Iridium::Task::sendAnnounce(), Transports::Iridium::Task::sendDeviceUpdates(), Control::UAV::Ardupilot::Task::sendMissionItem(), Sensors::OS4000::Task::setParameter(), Sensors::ExplorerDVL::Task::setup(), DUNE::Maneuvers::Maneuver::startManeuver(), Vision::Lumenera::Task::startVideo(), Supervisors::Vehicle::Task::stopCalibration(), Plan::Engine::Task::stopPlan(), Vision::Lumenera::Task::stopVideo(), Control::UAV::Ardupilot::Task::takeoff_copter(), Control::UAV::Ardupilot::Task::takeoff_plane(), Supervisors::AUV::LostComms::Task::task(), DUNE::Control::YoYoMotion::update(), Vision::Lumenera::Task::updateActualFrameRate(), Vision::Lumenera::Task::updateExposure(), Vision::Lumenera::Task::updateFps(), Vision::Lumenera::Task::updateGain(), Vision::Lumenera::Task::updateGamma(), Navigation::AUV::CLRanger::Task::updateLblConfig(), Vision::Lumenera::Task::updateMedianFilter(), Vision::Lumenera::Task::updateStrobe(), and Vision::Lumenera::Task::updateWhiteBalance().

void DUNE::Tasks::Task::dispatch ( IMC::Message msg,
unsigned int  flags = 0 
)

Dispatch message to the message bus.

Parameters
[in]msgmessage pointer.
[in]flagsbitfield with flags (see DispatchFlags).

References DUNE::Tasks::DF_KEEP_SRC_EID, DUNE::Tasks::DF_KEEP_TIME, DUNE::Tasks::DF_LOOP_BACK, DUNE::IMC::Bus::dispatch(), getEntityId(), DUNE::IMC::Message::getSource(), DUNE::IMC::Message::getSourceEntity(), getSystemId(), DUNE::IMC::AddressResolver::isValid(), m_ctx, DUNE::Tasks::Context::mbus, DUNE::IMC::Message::setSource(), DUNE::IMC::Message::setSourceEntity(), and DUNE::IMC::Message::setTimeStamp().

Referenced by Sensors::MLBLTracker::Task::abort(), Control::ASV::RemoteOperation::Task::actuate(), Control::AUV::RemoteOperation::Task::actuate(), Control::ROV::RemoteOperation::Task::actuate(), Control::ROV::RemoteOperation::Task::actuateThruster(), Control::AUV::Allocator::Task::allocate(), Transports::Announce::Task::announce(), Supervisors::Vehicle::Task::answer(), Plan::DB::Task::answer(), Plan::Engine::Task::answer(), Sensors::OS4000::Task::changeCalibrationState(), Plan::Engine::Task::changeLog(), Supervisors::Vehicle::Task::changeMode(), Plan::Engine::Task::changeMode(), Vision::Lumenera::Task::checkLogdirOk(), Supervisors::UAV::LostComms::Task::checkPlan(), Autonomy::TREX::Task::checkState(), Sensors::MLBLTracker::Task::checkTimeouts(), Control::AUV::Allocator::Task::computeProducedTorque(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Daemon::consume(), Transports::Fragments::Task::consume(), DUNE::Control::BasicUAVAutopilot::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicAutopilot::consume(), Control::AntennaTracker::Task::consume(), Navigation::AUV::Ranger::Task::consume(), Monitors::Clock::Task::consume(), Sensors::MTi::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Navigation::General::GPSNavigation::Task::consume(), Sensors::CyclopsC7::Task::consume(), Plan::Generator::Task::consume(), Transports::UAN::Task::consume(), Transports::Iridium::Task::consume(), Autonomy::TREX::Task::consume(), Navigation::AUV::CLRanger::Task::consume(), Monitors::OperationalLimits::Task::consume(), Sensors::MicrostrainMIP::Task::consume(), Sensors::Microstrain3DMGX3::Task::consume(), Transports::Noptilus::Task::consume(), Control::ROV::RemoteOperation::Task::consume(), Supervisors::Vehicle::Task::consume(), Sensors::MLBLTracker::Task::consume(), Actuators::MCD4R::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Sensors::BlueView4::Task::controlPower(), Sensors::ExplorerDVL::Task::controlPower(), Transports::Cache::Task::copySnapshot(), Sensors::IFOG::Task::decodeFrame(), Control::ROV::Depth::Task::depthControl(), Control::AUV::Attitude::Task::depthControl(), Supervisors::Vehicle::Task::disableLoops(), dispatch(), Maneuver::VehicleFormation::Coordinator::Task::dispatchAlias(), Maneuver::VehicleFormation::FormCollAvoid::Task::dispatchAlias(), Control::AUV::Allocator::Task::dispatchAllFins(), Sensors::MetrecX::Task::dispatchDepth(), Supervisors::AUV::Assist::Task::dispatchDislodge(), Maneuver::VehicleFormation::FormCollAvoid::Task::dispatchLeader(), Power::LUEMB::Task::dispatchPowerChannelStates(), dispatchReply(), Sensors::MetrecX::Task::dispatchSensValues(), Actuators::MCD4R::Task::dispatchState(), Control::AUV::Speed::Task::dispatchThrust(), Autonomy::OnEvent::Task::fire(), Control::ROV::RemoteOperation::Task::forwardControl(), Sensors::MLBL::Task::fullAcousticReport(), Power::LUEMB::Task::getMonitors(), Actuators::LED4R::Task::getMonitors(), Transports::SUNSET::Task::handleAbort(), Autonomy::TextActions::Task::handleAbortCommand(), Control::UAV::Ardupilot::Task::handleAttitudePacket(), Sensors::MLBL::Task::handleBinaryMessage(), Sensors::MLBLTracker::Task::handleCAMPCSNPNT(), Sensors::MLBLTracker::Task::handleCAMPR(), Sensors::MLBLTracker::Task::handleCAMUA(), Sensors::MLBLTracker::Task::handleCAMUC(), Sensors::MLBLTracker::Task::handleCARXD(), DUNE::Tasks::SimpleTransport::handleData(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleHUDPacket(), Control::UAV::Ardupilot::Task::handleHWStatusPacket(), Control::UAV::Ardupilot::Task::handleImuRaw(), Transports::Iridium::Task::handleIridiumCommand(), Sensors::MLBL::Task::handleMiniPacket(), Control::UAV::Ardupilot::Task::handleNavControllerPacket(), Sensors::MLBL::Task::handlePingReply(), Transports::SUNSET::Task::handlePlanAdd(), Autonomy::TextActions::Task::handlePlanCommand(), Transports::SUNSET::Task::handlePlanDelete(), Autonomy::TextActions::Task::handlePlanGeneratorCommand(), Transports::SUNSET::Task::handlePlanGet(), Transports::SUNSET::Task::handlePlanListGet(), Transports::SUNSET::Task::handlePlanStart(), Transports::SUNSET::Task::handlePlanStop(), Transports::SUNSET::Task::handleRange(), Transports::IridiumSBD::Task::handleSBD(), Control::UAV::Ardupilot::Task::handleScaledPressurePacket(), Sensors::MLBLTracker::Task::handleSNTTA(), Control::UAV::Ardupilot::Task::handleSystemStatusPacket(), Control::UAV::Ardupilot::Task::handleSystemTimePacket(), Sensors::MLBL::Task::handleTransponderTravelTimes(), Transports::Iridium::Task::handleUpdates(), Control::UAV::Ardupilot::Task::handleWindPacket(), Sensors::MLBLTracker::Task::hasTransducer(), Control::AUV::Attitude::Task::headingControl(), DUNE::Navigation::BasicNavigation::isActive(), Transports::Cache::Task::load(), Transports::Cache::Task::loadSnapshot(), Sensors::MLBL::Task::logCommand(), Control::ROV::HorizontalPlane::Task::logDesiredHRate(), Control::Path::VectorField::Task::loiter(), Control::Path::ILOS::Task::loiter(), Control::UAV::Ardupilot::Task::loiterHere(), Autonomy::TREX::Task::onActivation(), Sensors::CyclopsC7::Task::onDeactivation(), Sensors::Imagenex881A::Task::onDeactivation(), Control::ROV::Depth::Task::onEstimatedState(), Control::AUV::LMI::Task::onEstimatedState(), Control::AUV::Attitude::Task::onEstimatedState(), Sensors::GillWindObserverII::Task::onMain(), Sensors::MiniSVS::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Plan::Generator::Task::onMain(), Transports::Replay::Task::onMain(), Autonomy::TREX::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Plan::Engine::Task::onMain(), Navigation::AUV::Navigation::Task::onReportEntityState(), Sensors::CyclopsC7::Task::onRequestActivation(), Vision::DFK51BG02H::Task::onRequestActivation(), Sensors::Imagenex881A::Task::onRequestActivation(), Transports::UDP::Task::onResourceAcquisition(), Transports::Iridium::Task::onResourceInitialization(), Transports::UAN::Task::onResourceInitialization(), Sensors::MLBLTracker::Task::onResourceInitialization(), Simulators::UAV::Task::onUpdateParameters(), Navigation::AUV::Ranger::Task::ping(), Navigation::AUV::CLRanger::Task::ping(), Sensors::MLBLTracker::Task::ping(), Sensors::WifiRSSI::Task::poll(), Sensors::AIS::Task::process(), Sensors::MLBLTracker::Task::process(), Sensors::ExplorerDVL::Task::processAltitude(), Sensors::ExplorerDVL::Task::processGroundVelocity(), Sensors::MLBL::Task::processInput(), Transports::LogBook::Task::provide(), Navigation::AUV::CLRanger::Task::queue(), Simulators::AcousticModem::Task::readData(), Transports::Discovery::Task::readMessage(), Sensors::ExplorerDVL::Task::readSample(), Sensors::MCC1608G::Task::readTemperature(), Transports::UAN::Task::recvAbort(), Transports::UAN::Task::recvMessage(), Transports::UAN::Task::recvPlanControl(), Transports::UAN::Task::recvReport(), Transports::UAN::Task::recvRestartSystem(), Monitors::Entities::Task::reportState(), DUNE::Navigation::BasicNavigation::reportToBus(), Sensors::BlueView4::Task::requestLogName(), Control::ROV::Depth::Task::reset(), Control::AUV::Speed::Task::reset(), Autonomy::TREX::Task::resetAuxCpu(), DUNE::Navigation::BasicNavigation::runKalmanLBL(), Sensors::MCC1608G::Task::scanAnalogueInputs(), Supervisors::Entities::Task::sendActivation(), Transports::Iridium::Task::sendAnnounce(), DUNE::Hardware::HayesModem::sendAT(), Sensors::MLBLTracker::Task::sendCommand(), Transports::Iridium::Task::sendDeviceUpdates(), Transports::UAN::Task::sendFrame(), Monitors::Emergency::Task::sendSMS(), Transports::IridiumSBD::Task::sendTxRequestStatus(), Plan::Engine::Task::setInitialState(), DUNE::Hardware::HayesModem::setRSSI(), Vision::Lumenera::Task::setStrobePower(), Monitors::Clock::Task::setTime(), Supervisors::Vehicle::Task::startCalibration(), Autonomy::TREX::Task::startExecution(), Transports::LoggingDigest::Task::startLog(), Supervisors::UAV::LostComms::Task::startLostComms(), Plan::Engine::Task::startPlan(), Transports::Replay::Task::startReplay(), Control::Path::PurePursuit::Task::step(), DUNE::Control::DiscretePID::step(), Control::Path::VectorField::Task::step(), Control::UAV::LOS::Task::step(), Control::Path::LOSnSMC::Task::step(), Control::Path::ILOS::Task::step(), Autonomy::TREX::Task::stopExecution(), Transports::Replay::Task::stopReplay(), Control::UAV::Ardupilot::Task::takeoff_copter(), Control::UAV::Ardupilot::Task::takeoff_plane(), Control::ROV::HorizontalPlane::Task::tal(), Vision::FrameGrabber::Task::task(), Simulators::UAVAutopilot::Task::task(), Sensors::SW100::Task::task(), Sensors::AIM104MultiIO::Task::task(), Supervisors::AUV::LostComms::Task::task(), Monitors::FuelLevel::Task::task(), Monitors::Medium::Task::task(), Sensors::Microstrain3DMGX3::Task::task(), Supervisors::Vehicle::Task::task(), Simulators::UAV::Task::task(), Autonomy::OnEvent::Task::transmit(), Transports::Noptilus::Task::transmit(), Transports::Noptilus::Task::transmitPending(), Vision::PhotoTrigger::Task::trigger(), Control::UAV::RemoteOperation::Task::update(), Navigation::AUV::CLRanger::Task::updateLblConfig(), Supervisors::ClockPPS::Task::updateState(), and Plan::Engine::Task::vehicleRequest().

void DUNE::Tasks::Task::dispatch ( IMC::Message msg,
unsigned int  flags = 0 
)
inline

Dispatch message to the message bus.

Parameters
[in]msgmessage reference.
[in]flagsbitfield with flags (see DispatchFlags).

References dispatch().

void DUNE::Tasks::Task::dispatchReply ( const IMC::Message original,
IMC::Message msg,
unsigned int  flags = 0 
)
inline
void DUNE::Tasks::Task::err ( const char *  format,
  ... 
)
virtual

Send an human-readable error message to all configured output channels and files.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::IMC::LogBookEntry::LBET_ERROR.

Referenced by Supervisors::Vehicle::Task::answer(), Plan::DB::Task::answer(), Plan::Engine::Task::answer(), Vision::Lumenera::Task::checkCaptureOk(), Transports::SerialOverTCP::Task::checkClientSockets(), Transports::SerialOverTCP::Task::checkMainSocket(), DUNE::Control::BasicAutopilot::consume(), DUNE::Control::PathController::consume(), Transports::LogBook::Task::consume(), Transports::Replay::Task::consume(), Transports::LoggingDigest::Task::consume(), Monitors::Entities::Task::consume(), Transports::GSM::Task::consume(), Transports::Noptilus::Task::consume(), Supervisors::Vehicle::Task::consume(), Plan::Engine::Task::consume(), Vision::Lumenera::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Transports::Cache::Task::copySnapshot(), DUNE::Daemon::Daemon(), Transports::SerialOverTCP::Task::dispatchToClients(), Monitors::Entities::Task::enable(), Supervisors::AUV::Assist::Task::failedStartPlan(), Power::LUEMB::Task::getMonitors(), Autonomy::TextActions::Task::handleAbortCommand(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Transports::IridiumSBD::Task::handleSBD(), Sensors::MLBLTracker::Task::hasTransducer(), initializeResources(), loadConfig(), Sensors::WifiRSSI::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Plan::Engine::Task::onMain(), Sensors::MLBLTracker::Task::onResourceAcquisition(), Sensors::AIM104MultiIO::Task::onResourceInitialization(), onSetEntityParameters(), Monitors::Entities::Task::onTimeoutCheck(), Control::AUV::LMI::Task::onUpdateParameters(), Monitors::FuelLevel::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Sensors::MTi::Task::parse(), Sensors::MLBLTracker::Task::process(), Sensors::MLBL::Task::processInput(), Control::UAV::Ardupilot::Task::receiveData(), Transports::UAN::Task::recvMessage(), Monitors::OperationalLimits::Task::setError(), DUNE::Network::FragmentedMessage::setFragment(), Navigation::AUV::CLRanger::Task::setTDMA(), Monitors::Clock::Task::setTime(), Sensors::MTi::Task::setup(), Monitors::Entities::Task::setupDefaults(), DUNE::Control::BasicAutopilot::signalBadVertical(), DUNE::Control::BasicAutopilot::signalBadYaw(), DUNE::Control::PathController::signalError(), DUNE::Tasks::Manager::start(), Transports::Replay::Task::startReplay(), Vision::Lumenera::Task::startVideo(), Sensors::AIM104MultiIO::Task::task(), Supervisors::Vehicle::Task::task(), Sensors::MLBLTracker::Task::transmitMessage(), and Supervisors::ClockPPS::Task::updateState().

uint16_t DUNE::Tasks::Task::getActivationTime ( void  ) const
inline
uint16_t DUNE::Tasks::Task::getDeactivationTime ( void  ) const
inline

Retrieve the task's deactivation time.

Returns
deactivation time of the task.

Referenced by Vision::Lumenera::Task::onRequestDeactivation().

DebugLevel DUNE::Tasks::Task::getDebugLevel ( void  ) const
inline

Get current debug level.

Returns
debug level.
const char* DUNE::Tasks::Task::getName ( void  ) const
inlinevirtual

Retrieve the task's name.

Returns
name of the task.

Implements DUNE::Tasks::AbstractTask.

Referenced by loadConfig(), reserveEntities(), and reserveEntity().

unsigned int DUNE::Tasks::Task::getPriority ( void  ) const
inline

Get scheduling priority.

The priority of a task might change when configuration parameters are updated.

Returns
task priority.
unsigned int DUNE::Tasks::Task::getSystemId ( void  ) const
inline

Retrieve the system's identifier.

Returns
system identifier.

References DUNE::IMC::AddressResolver::id(), m_ctx, and DUNE::Tasks::Context::resolver.

Referenced by DUNE::Hardware::BasicDeviceDriver::consume(), DUNE::Daemon::consume(), DUNE::Control::BasicAutopilot::consume(), Navigation::AUV::Ranger::Task::consume(), Control::AntennaTracker::Task::consume(), Simulators::AcousticModem::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Vision::PhotoTrigger::Task::consume(), Supervisors::UAV::LostComms::Task::consume(), Sensors::EmulatedGPS::Task::consume(), Plan::Generator::Task::consume(), Monitors::Clock::Task::consume(), Supervisors::AUV::LostComms::Task::consume(), Transports::Replay::Task::consume(), Navigation::AUV::CLRanger::Task::consume(), Supervisors::ClockPPS::Task::consume(), Transports::Noptilus::Task::consume(), Transports::GSM::Task::consume(), Transports::UAN::Task::consume(), Autonomy::TREX::Task::consume(), Transports::IridiumSBD::Task::consume(), Transports::Announce::Task::consume(), Monitors::Medium::Task::consume(), Monitors::Emergency::Task::consume(), Plan::DB::Task::consume(), Plan::Engine::Task::consume(), Supervisors::Vehicle::Task::consume(), Transports::SUNSET::Task::consume(), Control::AUV::RemoteOperation::Task::consume(), Control::AUV::Speed::Task::consume(), Control::ROV::RemoteOperation::Task::consume(), Transports::UDP::Task::consume(), Monitors::OperationalLimits::Task::consume(), Vision::Lumenera::Task::consume(), Vision::DFK51BG02H::Task::consume(), Simulators::UAV::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Sensors::MLBL::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), dispatch(), Autonomy::OnEvent::Task::fire(), Transports::SUNSET::Task::handleAbort(), Autonomy::TextActions::Task::handleAbortCommand(), Sensors::MLBL::Task::handleMiniPacket(), Transports::IridiumSBD::Task::handleSBD(), Vision::Lumenera::EntityActivationMaster::onEntityInfo(), Plan::DB::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Transports::Announce::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Navigation::AUV::Ranger::Task::ping(), Navigation::AUV::CLRanger::Task::ping(), Navigation::AUV::CLRanger::Task::queue(), Simulators::AcousticModem::Task::readData(), Transports::UAN::Task::replaceLastOp(), Transports::Iridium::Task::sendAnnounce(), Transports::Iridium::Task::sendDeviceUpdates(), Transports::UAN::Task::sendFrame(), DUNE::Control::PathController::sourceFilter(), Transports::LoggingDigest::Task::startLog(), Simulators::UAV::Task::task(), Autonomy::OnEvent::Task::transmit(), Transports::Noptilus::Task::transmit(), Transports::Noptilus::Task::transmitPending(), and Navigation::AUV::CLRanger::Task::updateLblConfig().

void DUNE::Tasks::Task::inf ( const char *  format,
  ... 
)
virtual

Send an human-readable informational message to all configured output channels and files.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::IMC::LogBookEntry::LBET_INFO.

Referenced by Monitors::Entities::Task::activate(), Plan::DB::Task::answer(), Plan::Engine::Task::answer(), Vision::Lumenera::Task::captureAndSave(), Vision::Lumenera::Task::checkConfiguration(), Transports::SerialOverTCP::Task::checkMainSocket(), Sensors::MCC1608G::Task::connect(), DUNE::Tasks::SimpleTransport::consume(), DUNE::Control::PathController::consume(), Transports::LogBook::Task::consume(), Plan::Generator::Task::consume(), Maneuver::VehicleFormation::Test::Task::consume(), Transports::Iridium::Task::consume(), Autonomy::TREX::Task::consume(), Monitors::OperationalLimits::Task::consume(), Monitors::Entities::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), DUNE::Daemon::Daemon(), Monitors::Entities::Task::disable(), Monitors::Entities::Task::enable(), Plan::Generator::Task::generate(), Sensors::MLBL::Task::handleBinaryMessage(), Sensors::MLBLTracker::Task::handleCAMUA(), Sensors::MLBLTracker::Task::handleCARXD(), DUNE::Tasks::SimpleTransport::handleData(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Transports::Iridium::Task::handleIridiumCommand(), Sensors::MLBL::Task::handleMiniPacket(), Transports::SUNSET::Task::handleParam(), Autonomy::TextActions::Task::handlePlanCommand(), Control::UAV::Ardupilot::Task::handleStatusTextPacket(), Transports::Iridium::Task::handleUpdates(), Control::UAV::Ardupilot::Task::info(), Autonomy::TREX::Task::onActivation(), Sensors::BlueView4::Task::onActivation(), Sensors::Imagenex881A::Task::onActivation(), Vision::Lumenera::Task::onActivation(), Autonomy::TREX::Task::onDeactivation(), Sensors::BlueView4::Task::onDeactivation(), Sensors::Imagenex881A::Task::onDeactivation(), Vision::Lumenera::Task::onDeactivation(), Sensors::MLBL::Task::onEntityResolution(), Sensors::GillWindObserverII::Task::onMain(), Maneuver::VehicleFormation::FormCollAvoid::Task::onRequestActivation(), Plan::DB::Task::onResourceAcquisition(), Sensors::IFOG::Task::onResourceAcquisition(), Actuators::LED4R::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Power::LUEMB::Task::onResourceAcquisition(), Actuators::MCD4R::Task::onResourceAcquisition(), Simulators::UAV::Task::onResourceAcquisition(), Transports::Discovery::Task::onResourceInitialization(), Sensors::MicrostrainMIP::Task::onResourceInitialization(), Control::AntennaTracker::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Control::UAV::Ardupilot::Task::openConnection(), Maneuver::VehicleFormation::FormCollAvoid::Task::printState(), Plan::Engine::Task::processRequest(), Transports::Discovery::Task::readMessage(), Transports::UDP::Task::refreshContacts(), Sensors::Microstrain3DMGX3::Task::runCalibration(), Sensors::MLBLTracker::Task::sendCommand(), Monitors::Emergency::Task::sendSMS(), Sensors::Microstrain3DMGX3::Task::setHardIron(), DUNE::Tasks::Manager::start(), Supervisors::Vehicle::Task::startCalibration(), Autonomy::TREX::Task::startExecution(), Vision::Lumenera::Task::startVideo(), Autonomy::TREX::Task::stopExecution(), Sensors::SW100::Task::task(), Supervisors::Vehicle::Task::task(), Control::ROV::RemoteOperation::Task::toggleWallTracker(), Sensors::MicrostrainMIP::Task::updateHardIronOffset(), Sensors::SmartX::Task::updateStateMachine(), and DUNE::Daemon::~Daemon().

void DUNE::Tasks::Task::initializeResources ( void  )

Instruct task to initialize the resources acquired in acquireResources().

References err(), onResourceInitialization(), stopping(), and DUNE::Time::Delay::wait().

bool DUNE::Tasks::Task::isActive ( void  ) const
inlineprotected

Test if task is active.

Returns
true if task is active, false otherwise.

References DUNE::Entities::StatefulEntity::isActive().

Referenced by Sensors::ExplorerDVL::Task::canRequestActivation(), Autonomy::TREX::Task::checkState(), Simulators::UAV::Task::commandFilter(), DUNE::Hardware::BasicDeviceDriver::consume(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Control::BasicUAVAutopilot::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicAutopilot::consume(), Simulators::UAVAutopilot::Task::consume(), Supervisors::AUV::LostComms::Task::consume(), Transports::Replay::Task::consume(), Navigation::AUV::CLRanger::Task::consume(), Sensors::CyclopsC7::Task::consume(), Control::AUV::Allocator::Task::consume(), Transports::Noptilus::Task::consume(), Control::AUV::Speed::Task::consume(), Sensors::ExplorerDVL::Task::consume(), Simulators::UAV::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Sensors::MLBL::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), DUNE::Maneuvers::Maneuver::consumeIfActive(), Autonomy::OnEvent::Task::fire(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Vision::PhotoTrigger::Task::onMain(), Navigation::AUV::Ranger::Task::onMain(), Sensors::MCC1608G::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Sensors::SmartX::Task::onMain(), Transports::Iridium::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::UAN::Task::onMain(), Sensors::ExplorerDVL::Task::onMain(), Vision::Lumenera::Task::onMain(), Sensors::MLBL::Task::onMain(), Monitors::Emergency::Task::onResourceInitialization(), Simulators::AcousticModem::Task::onUpdateParameters(), Sensors::SmartX::Task::onUpdateParameters(), Vision::Lumenera::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Sensors::MLBL::Task::processInput(), Transports::IridiumSBD::Task::processQueue(), Navigation::AUV::CLRanger::Task::setTDMA(), Transports::Replay::Task::startReplay(), Simulators::UAVAutopilot::Task::task(), Maneuver::VehicleFormation::Test::Task::task(), Supervisors::UAV::LostComms::Task::task(), Monitors::Emergency::Task::task(), Supervisors::AUV::LostComms::Task::task(), Monitors::Medium::Task::task(), Simulators::UAV::Task::task(), Maneuver::VehicleFormation::Coordinator::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::task(), and Autonomy::TREX::Task::updateEntityState().

bool DUNE::Tasks::Task::isDeactivating ( void  ) const
inlineprotected
virtual void DUNE::Tasks::Task::onEntityReservation ( void  )
inlineprotectedvirtual
virtual void DUNE::Tasks::Task::onMain ( void  )
protectedpure virtual

Implemented in Control::UAV::Ardupilot::Task, Sensors::MLBL::Task, Plan::Engine::Task, Vision::Lumenera::Task, Transports::SUNSET::Task, Sensors::MLBLTracker::Task, Sensors::ExplorerDVL::Task, Sensors::BlueView4::Task, Sensors::MetrecX::Task, Transports::UAN::Task, Sensors::Imagenex881A::Task, Plan::DB::Task, Actuators::MCD4R::Task, Control::AUV::Speed::Task, Transports::Noptilus::Task, Navigation::AUV::CLRanger::Task, Power::LUEMB::Task, Monitors::Entities::Task, Control::AUV::Allocator::Task, Vision::DFK51BG02H::Task, Actuators::LED4R::Task, Transports::Announce::Task, Transports::Iridium::Task, Sensors::MTi::Task, Sensors::OS4000::Task, Sensors::XR620CTD::Task, Transports::IridiumSBD::Task, Transports::UDP::Task, Autonomy::TREX::Task, Sensors::SmartX::Task, Sensors::MicrostrainMIP::Task, Supervisors::ClockPPS::Task, Sensors::IFOG::Task, Transports::Replay::Task, Autonomy::OnEvent::Task, Sensors::MCC1608G::Task, DUNE::Maneuvers::Maneuver, Transports::Cache::Task, DUNE::Control::PathController, Transports::LoggingDigest::Task, Transports::GSM::Task, Sensors::EmulatedGPS::Task, Plan::Generator::Task, Navigation::General::GPSNavigation::Task, Monitors::Clock::Task, Transports::SerialOverTCP::Task, Transports::Discovery::Task, Sensors::CyclopsC7::Task, Sensors::WifiRSSI::Task, Navigation::AUV::Ranger::Task, Sensors::AIS::Task, Simulators::AcousticModem::Task, Vision::PhotoTrigger::Task, Control::AntennaTracker::Task, Sensors::XchangeSV::Task, Transports::LogBook::Task, Autonomy::TextActions::Task, Transports::Fragments::Task, Sensors::MiniSVS::Task, DUNE::Control::BasicAutopilot, Sensors::GillWindObserverII::Task, DUNE::Control::BasicUAVAutopilot, DUNE::Daemon, and DUNE::Tasks::SimpleTransport.

void DUNE::Tasks::Task::onPopEntityParameters ( const IMC::PopEntityParameters msg)
protectedvirtual
virtual void DUNE::Tasks::Task::onReportEntityState ( void  )
inlineprotectedvirtual

Called when the task is instructed to report the state of its entities.

Derived classes that need to report the state of entities other than the main entity should override this function to dispatch the EntityState of those entities.

Reimplemented in Navigation::AUV::Navigation::Task, and Monitors::Entities::Task.

virtual void DUNE::Tasks::Task::onRequestActivation ( void  )
inlineprotectedvirtual

Called when an external activation request is received.

Derived classes that need to perform extra steps to prepare normal execution should replace the default behaviour of immediate activation with calls to activate() when the request is completed or activationFailed() if the request cannot be honoured.

Reimplemented in Maneuver::VehicleFormation::FormCollAvoid::Task, Maneuver::VehicleFormation::Coordinator::Task, Vision::Lumenera::Task, Sensors::Imagenex881A::Task, Vision::DFK51BG02H::Task, Sensors::ExplorerDVL::Task, Sensors::BlueView4::Task, Sensors::CyclopsC7::Task, and Sensors::SmartX::Task.

References activate(), and spew().

Referenced by requestActivation().

virtual void DUNE::Tasks::Task::onRequestDeactivation ( void  )
inlineprotectedvirtual

Called when an external deactivation request is received.

Derived classes that need to perform extra steps to prepare normal execution should replace the default behaviour of immediate deactivation with calls to deactivate() when the request is completed or deactivationFailed() if the request cannot be honoured.

Reimplemented in Maneuver::VehicleFormation::FormCollAvoid::Task, Maneuver::VehicleFormation::Coordinator::Task, Vision::Lumenera::Task, Sensors::ExplorerDVL::Task, Sensors::BlueView4::Task, and Sensors::SmartX::Task.

References deactivate(), and spew().

Referenced by requestDeactivation().

virtual void DUNE::Tasks::Task::onResourceAcquisition ( void  )
inlineprotectedvirtual
virtual void DUNE::Tasks::Task::onResourceInitialization ( void  )
inlineprotectedvirtual

Called when the task is instructed to initialize resources acquired previously or whose initialization depends on run-time parameters.

Reimplemented in Sensors::MLBL::Task, Sensors::MetrecX::Task, Sensors::Imagenex881A::Task, Sensors::ExplorerDVL::Task, Actuators::MCD4R::Task, Sensors::MLBLTracker::Task, Vision::DFK51BG02H::Task, Control::AUV::Attitude::Task, Navigation::AUV::Navigation::Task, Power::LUEMB::Task, Sensors::BlueView4::Task, Control::ROV::RemoteOperation::Task, Actuators::LED4R::Task, Sensors::IFOG::Task, Sensors::Microstrain3DMGX3::Task, Plan::Engine::Task, Transports::SUNSET::Task, Control::AUV::Speed::Task, Sensors::OS4000::Task, Sensors::MicrostrainMIP::Task, Monitors::Medium::Task, Autonomy::OnEvent::Task, Sensors::XR620CTD::Task, Control::ROV::HorizontalPlane::Task, Transports::GSM::Task, Transports::Announce::Task, Transports::IridiumSBD::Task, Sensors::MCC1608G::Task, Transports::UAN::Task, Control::AUV::Allocator::Task, Navigation::General::ROV::Task, Supervisors::AUV::Assist::Task, Navigation::AUV::CLRanger::Task, Supervisors::Vehicle::Task, Control::AUV::LMI::Task, DUNE::Navigation::BasicNavigation, Sensors::WifiRSSI::Task, Monitors::Entities::Task, Sensors::AIM104MultiIO::Task, Sensors::SW100::Task, Monitors::Clock::Task, Control::ROV::Depth::Task, Sensors::XchangeSV::Task, Transports::SerialOverTCP::Task, Supervisors::AUV::LostComms::Task, Vision::FrameGrabber::Task, DUNE::Control::PathController, Sensors::SmartX::Task, Monitors::Emergency::Task, Transports::LoggingDigest::Task, Transports::Iridium::Task, DUNE::Control::BasicRemoteOperation, Sensors::MiniSVS::Task, Supervisors::Entities::Task, Transports::Cache::Task, Transports::Discovery::Task, Monitors::CPU::Task, Navigation::AUV::Ranger::Task, Transports::LogBook::Task, DUNE::Maneuvers::Maneuver, DUNE::Control::BasicAutopilot, DUNE::Control::BasicUAVAutopilot, DUNE::Daemon, and Autonomy::TextActions::Task.

Referenced by initializeResources().

virtual void DUNE::Tasks::Task::onResourceRelease ( void  )
inlineprotectedvirtual

Called when the task is instructed to release resources.

Derived classes that override this function must not assume that any resource was previously acquired. This function must be implemented in such a way that it can be called at any time.

Reimplemented in Maneuver::VehicleFormation::FormCollAvoid::Task, Maneuver::VehicleFormation::Coordinator::Task, Sensors::MetrecX::Task, Sensors::MLBL::Task, Control::UAV::Ardupilot::Task, Sensors::Imagenex881A::Task, Vision::Lumenera::Task, Actuators::MCD4R::Task, Sensors::MLBLTracker::Task, Simulators::UAV::Task, Vision::DFK51BG02H::Task, Sensors::ExplorerDVL::Task, Control::AUV::Attitude::Task, Navigation::AUV::Navigation::Task, Transports::UDP::Task, Power::LUEMB::Task, Actuators::LED4R::Task, Sensors::BlueView4::Task, Control::ROV::RemoteOperation::Task, Transports::SUNSET::Task, Monitors::FuelLevel::Task, Sensors::IFOG::Task, Plan::Engine::Task, Sensors::Microstrain3DMGX3::Task, Maneuver::VehicleFormation::Test::Task, Sensors::MicrostrainMIP::Task, Sensors::OS4000::Task, Transports::IridiumSBD::Task, Transports::UAN::Task, Transports::GSM::Task, Plan::DB::Task, Sensors::XR620CTD::Task, Supervisors::ClockPPS::Task, Sensors::AIM104MultiIO::Task, Navigation::General::ROV::Task, Sensors::CyclopsC7::Task, DUNE::Navigation::BasicNavigation, Supervisors::AUV::Assist::Task, Sensors::SW100::Task, Supervisors::Vehicle::Task, Sensors::MTi::Task, Vision::FrameGrabber::Task, Sensors::EmulatedGPS::Task, DUNE::Control::PathController, Plan::Generator::Task, Sensors::AIS::Task, Transports::Iridium::Task, Simulators::AcousticModem::Task, Simulators::UAVAutopilot::Task, Sensors::XchangeSV::Task, Sensors::MiniSVS::Task, Transports::SerialOverTCP::Task, Monitors::CPU::Task, Sensors::GillWindObserverII::Task, DUNE::Control::BasicAutopilot, DUNE::Control::BasicUAVAutopilot, and Transports::Fragments::Task.

Referenced by releaseResources(), and Sensors::MCC1608G::Task::~Task().

virtual void DUNE::Tasks::Task::onUpdateParameters ( void  )
inlineprotectedvirtual

Called when the task is instructed to update its run-time parameters.

Derived classes that need to compute auxiliary values based on run-time parameters should override this function.

Reimplemented in Maneuver::VehicleFormation::FormCollAvoid::Task, Sensors::MLBL::Task, Control::UAV::Ardupilot::Task, Maneuver::VehicleFormation::Coordinator::Task, Sensors::MetrecX::Task, Sensors::Imagenex881A::Task, Control::AUV::Attitude::Task, Actuators::MCD4R::Task, Vision::Lumenera::Task, Vision::DFK51BG02H::Task, Control::ROV::RemoteOperation::Task, Simulators::UAV::Task, Autonomy::TREX::Task, Sensors::MLBLTracker::Task, Navigation::AUV::Navigation::Task, Sensors::BlueView4::Task, Sensors::ExplorerDVL::Task, Sensors::OS4000::Task, Control::AUV::Speed::Task, Monitors::FuelLevel::Task, Plan::Engine::Task, Monitors::OperationalLimits::Task, Actuators::LED4R::Task, Transports::UDP::Task, Transports::SUNSET::Task, Power::LUEMB::Task, Sensors::Microstrain3DMGX3::Task, Sensors::IFOG::Task, Control::ROV::HorizontalPlane::Task, Transports::Announce::Task, Maneuver::VehicleFormation::Test::Task, Autonomy::OnEvent::Task, Sensors::XR620CTD::Task, Sensors::MicrostrainMIP::Task, Transports::UAN::Task, Transports::Noptilus::Task, Control::AUV::LMI::Task, Transports::GSM::Task, Control::AUV::RemoteOperation::Task, Navigation::AUV::CLRanger::Task, Control::ROV::Depth::Task, Transports::IridiumSBD::Task, Control::Path::LOSnSMC::Task, DUNE::Navigation::BasicNavigation, Control::AUV::Allocator::Task, Sensors::MCC1608G::Task, Control::Path::ILOS::Task, Navigation::General::ROV::Task, Sensors::WifiRSSI::Task, Transports::LoggingDigest::Task, Transports::Replay::Task, Vision::PhotoTrigger::Task, DUNE::Control::PathController, Navigation::General::GPSNavigation::Task, Sensors::SmartX::Task, Supervisors::UAV::LostComms::Task, Vision::FrameGrabber::Task, Sensors::CyclopsC7::Task, Control::UAV::LOS::Task, Control::Path::VectorField::Task, Supervisors::Entities::Task, Control::AntennaTracker::Task, Control::UAV::RemoteOperation::Task, Simulators::AcousticModem::Task, Simulators::UAVAutopilot::Task, Navigation::AUV::Ranger::Task, and Control::Path::PurePursuit::Task.

Referenced by updateParameters().

virtual bool DUNE::Tasks::Task::onWriteParamsXML ( std::ostream &  os) const
inlineprotectedvirtual

Referenced by writeParamsXML().

template<typename T >
Parameter& DUNE::Tasks::Task::param ( const std::string &  name,
T &  var 
)
inlineprotected

Declare a configuration parameter that can be parsed using the basic parameter parser.

Template Parameters
Ttype of the destination variable.
Parameters
[in]nameparameter name.
[in]varvariable that will hold the parameter value.
Returns
Parameter object.

Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Control::BasicRemoteOperation::BasicRemoteOperation(), paramActive(), DUNE::Control::PathController::PathController(), DUNE::Tasks::Periodic::Periodic(), DUNE::Control::ProxyPathController::ProxyPathController(), DUNE::Tasks::SimpleTransport::SimpleTransport(), Transports::Fragments::Task::Task(), Control::ASV::RemoteOperation::Task::Task(), Monitors::CPU::Task::Task(), Control::UAV::RemoteOperation::Task::Task(), Sensors::GillWindObserverII::Task::Task(), Navigation::AUV::Ranger::Task::Task(), Simulators::AcousticModem::Task::Task(), Simulators::UAVAutopilot::Task::Task(), Transports::Cache::Task::Task(), Sensors::XchangeSV::Task::Task(), Sensors::MiniSVS::Task::Task(), Transports::SerialOverTCP::Task::Task(), Transports::Discovery::Task::Task(), Transports::Iridium::Task::Task(), Control::AntennaTracker::Task::Task(), Control::Path::VectorField::Task::Task(), Supervisors::Entities::Task::Task(), Transports::LoggingDigest::Task::Task(), Vision::FrameGrabber::Task::Task(), Sensors::CyclopsC7::Task::Task(), Control::UAV::LOS::Task::Task(), Monitors::Emergency::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Vision::PhotoTrigger::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Control::Path::ILOS::Task::Task(), Control::ROV::Depth::Task::Task(), Control::AUV::Allocator::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Autonomy::TREX::Task::Task(), Plan::Generator::Task::Task(), Control::AUV::RemoteOperation::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::SmartX::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Sensors::WifiRSSI::Task::Task(), Sensors::MCC1608G::Task::Task(), Control::AUV::LMI::Task::Task(), Sensors::AIS::Task::Task(), Monitors::Clock::Task::Task(), Navigation::AUV::CLRanger::Task::Task(), Monitors::FuelLevel::Task::Task(), Sensors::SW100::Task::Task(), Maneuver::VehicleFormation::Test::Task::Task(), Transports::Noptilus::Task::Task(), Autonomy::OnEvent::Task::Task(), Transports::Replay::Task::Task(), Sensors::MicrostrainMIP::Task::Task(), Supervisors::AUV::LostComms::Task::Task(), Supervisors::AUV::Assist::Task::Task(), Control::ROV::HorizontalPlane::Task::Task(), Transports::GSM::Task::Task(), Monitors::Entities::Task::Task(), Monitors::Medium::Task::Task(), Navigation::General::ROV::Task::Task(), Sensors::MTi::Task::Task(), Supervisors::Vehicle::Task::Task(), Transports::UAN::Task::Task(), Transports::Announce::Task::Task(), Plan::DB::Task::Task(), Supervisors::ClockPPS::Task::Task(), Task(), Transports::SUNSET::Task::Task(), Control::ROV::RemoteOperation::Task::Task(), Transports::UDP::Task::Task(), Monitors::OperationalLimits::Task::Task(), Control::AUV::Speed::Task::Task(), Sensors::OS4000::Task::Task(), Plan::Engine::Task::Task(), Power::LUEMB::Task::Task(), Simulators::UAV::Task::Task(), Sensors::BlueView4::Task::Task(), Actuators::LED4R::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::ExplorerDVL::Task::Task(), Control::AUV::Attitude::Task::Task(), Sensors::MLBLTracker::Task::Task(), Navigation::AUV::Navigation::Task::Task(), Vision::DFK51BG02H::Task::Task(), Maneuver::VehicleFormation::Coordinator::Task::Task(), Sensors::Imagenex881A::Task::Task(), Sensors::MetrecX::Task::Task(), Control::UAV::Ardupilot::Task::Task(), Actuators::MCD4R::Task::Task(), Sensors::MLBL::Task::Task(), and Maneuver::VehicleFormation::FormCollAvoid::Task::Task().

template<typename Y , typename T >
Parameter& DUNE::Tasks::Task::param ( const std::string &  name,
T &  var 
)
inlineprotected

Declare a configuration parameter that can be parsed using a custom parameter reader.

Template Parameters
Ytype of the custom parameter reader.
Ttype of the destination variable.
Parameters
[in]nameparameter name.
[in]varvariable that will hold the parameter value.
Returns
Parameter object.

References DUNE::Tasks::ParameterTable::add().

void DUNE::Tasks::Task::paramActive ( Parameter::Scope  def_scope,
Parameter::Visibility  def_visibility,
bool  def_value = false 
)
protected

Declare parameter 'Active' and associated parameters 'Active.

  • Scope' and 'Active - Visibility'. These parameters allows the task to be activated/deactivated using the message SetEntityParameters.
    Parameters
    [in]def_scopedefault scope of 'Active' parameter.
    [in]def_visibilitydefault visibility of 'Active' parameter.
    [in]def_valuedefault value of 'Active' parameter.

References DUNE::Tasks::Parameter::defaultValue(), param(), DUNE::Tasks::Parameter::scope(), DUNE::Tasks::Parameter::SCOPE_GLOBAL, DUNE::Tasks::Parameter::scopeToString(), DUNE::uncastLexical(), DUNE::Tasks::Parameter::visibility(), DUNE::Tasks::Parameter::VISIBILITY_DEVELOPER, and DUNE::Tasks::Parameter::visibilityToString().

Referenced by DUNE::Control::BasicRemoteOperation::BasicRemoteOperation(), Navigation::AUV::Ranger::Task::Task(), Transports::Iridium::Task::Task(), Sensors::CyclopsC7::Task::Task(), Monitors::Emergency::Task::Task(), Vision::PhotoTrigger::Task::Task(), Autonomy::TREX::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::SmartX::Task::Task(), Sensors::MCC1608G::Task::Task(), Navigation::AUV::CLRanger::Task::Task(), Transports::Noptilus::Task::Task(), Maneuver::VehicleFormation::Test::Task::Task(), Autonomy::OnEvent::Task::Task(), Monitors::Medium::Task::Task(), Transports::UAN::Task::Task(), Sensors::BlueView4::Task::Task(), Sensors::IFOG::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::ExplorerDVL::Task::Task(), Vision::DFK51BG02H::Task::Task(), Sensors::Imagenex881A::Task::Task(), and Sensors::MLBL::Task::Task().

template<typename T >
bool DUNE::Tasks::Task::paramChanged ( T &  var)
inlineprotected

References DUNE::Tasks::ParameterTable::changed().

Referenced by Vision::Lumenera::Task::checkExposure(), Vision::Lumenera::Task::checkGain(), Vision::Lumenera::Task::checkParameters(), Vision::Lumenera::Task::checkWhiteBalance(), Navigation::AUV::Ranger::Task::onUpdateParameters(), Simulators::AcousticModem::Task::onUpdateParameters(), Control::UAV::RemoteOperation::Task::onUpdateParameters(), Control::Path::VectorField::Task::onUpdateParameters(), Control::UAV::LOS::Task::onUpdateParameters(), Sensors::CyclopsC7::Task::onUpdateParameters(), Supervisors::UAV::LostComms::Task::onUpdateParameters(), Sensors::SmartX::Task::onUpdateParameters(), DUNE::Control::PathController::onUpdateParameters(), Transports::LoggingDigest::Task::onUpdateParameters(), Control::Path::ILOS::Task::onUpdateParameters(), Sensors::MCC1608G::Task::onUpdateParameters(), Control::AUV::Allocator::Task::onUpdateParameters(), Transports::IridiumSBD::Task::onUpdateParameters(), Control::AUV::RemoteOperation::Task::onUpdateParameters(), Transports::GSM::Task::onUpdateParameters(), Transports::UAN::Task::onUpdateParameters(), Sensors::MicrostrainMIP::Task::onUpdateParameters(), Autonomy::OnEvent::Task::onUpdateParameters(), Sensors::XR620CTD::Task::onUpdateParameters(), Control::ROV::HorizontalPlane::Task::onUpdateParameters(), Sensors::Microstrain3DMGX3::Task::onUpdateParameters(), Transports::UDP::Task::onUpdateParameters(), Plan::Engine::Task::onUpdateParameters(), Monitors::FuelLevel::Task::onUpdateParameters(), Control::AUV::Speed::Task::onUpdateParameters(), Sensors::OS4000::Task::onUpdateParameters(), Sensors::ExplorerDVL::Task::onUpdateParameters(), Sensors::BlueView4::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), Control::ROV::RemoteOperation::Task::onUpdateParameters(), Control::AUV::Attitude::Task::onUpdateParameters(), Sensors::Imagenex881A::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Sensors::MLBL::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), and updateParameters().

void DUNE::Tasks::Task::receive ( const IMC::Message msg)
inlinevirtual

Queue a message for later consumption.

Parameters
msgmessage object.

Implements DUNE::Tasks::AbstractTask.

References DUNE::Tasks::Recipient::put().

Referenced by Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), and Control::UAV::Ardupilot::Task::handleNavControllerPacket().

void DUNE::Tasks::Task::releaseResources ( void  )

Free all resources acquired in acquireResources().

References onResourceRelease().

void DUNE::Tasks::Task::reserveEntities ( void  )
template<typename E >
E* DUNE::Tasks::Task::reserveEntity ( const std::string &  label)
inlineprotected

Associate an entity label with an internally stored entity object, and retrieve a pointer to the object.

Parameters
[in]labelentity name/label.
Returns
pointer to entity object.

References DUNE::Tasks::Context::entities, getName(), m_ctx, m_entities, and DUNE::Entities::EntityDataBase::reserve().

void DUNE::Tasks::Task::resolveEntities ( void  )

Instruct task to resolve all entity identifiers that it needs for normal execution.

References onEntityResolution().

unsigned int DUNE::Tasks::Task::resolveEntity ( const std::string &  label) const
inline

Retrieve the entity id of a given entity label.

Parameters
[in]labelentity label.
Exceptions
NonexistentLabelif the label doesn't have an associated id.
Returns
entity id.

References DUNE::Tasks::Context::entities, m_ctx, and DUNE::Entities::EntityDataBase::resolve().

Referenced by Monitors::Entities::Task::activate(), Simulators::UAV::Task::commandPrintOut(), Maneuver::VehicleFormation::Test::Task::consume(), Plan::Engine::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Sensors::MetrecX::Task::dispatchDepth(), Power::LUEMB::Task::onEntityReservation(), Sensors::MetrecX::Task::onEntityReservation(), Sensors::CyclopsC7::Task::onEntityResolution(), Navigation::General::GPSNavigation::Task::onEntityResolution(), DUNE::Navigation::BasicNavigation::onEntityResolution(), Transports::Noptilus::Task::onEntityResolution(), Control::AUV::Allocator::Task::onEntityResolution(), Monitors::Medium::Task::onEntityResolution(), Plan::Engine::Task::onEntityResolution(), Control::ROV::RemoteOperation::Task::onEntityResolution(), Monitors::FuelLevel::Task::onEntityResolution(), Navigation::AUV::Navigation::Task::onEntityResolution(), Sensors::ExplorerDVL::Task::onEntityResolution(), Sensors::MLBL::Task::onEntityResolution(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Sensors::MCC1608G::Task::onUpdateParameters(), Power::LUEMB::Task::onUpdateParameters(), Sensors::MetrecX::Task::onUpdateParameters(), Monitors::Entities::Task::setupDefaults(), DUNE::Tasks::MessageFilter::setupEntities(), and Maneuver::VehicleFormation::Coordinator::Task::task().

std::string DUNE::Tasks::Task::resolveEntity ( unsigned int  id) const
inline

Retrieve the entity label of a given entity id.

Parameters
[in]identity id.
Exceptions
NonexistentIdif the id doesn't have an associated label.
Returns
entity label.

References DUNE::Tasks::Context::entities, m_ctx, and DUNE::Entities::EntityDataBase::resolve().

void DUNE::Tasks::Task::setEntityLabel ( const std::string &  label)
inline

Set the main entity label of the task.

Parameters
[in]labelmain entity label.

References DUNE::Entities::BasicEntity::setLabel().

Referenced by DUNE::Daemon::Daemon().

void DUNE::Tasks::Task::setEntityState ( IMC::EntityState::StateEnum  state,
Status::Code  code 
)
inlineprotected

Set current entity state with an optional pre-defined description.

If a status code is not given, then the existing description will be kept.

Parameters
[in]stateentity state.
[in]codestatus code.

References DUNE::Entities::StatefulEntity::setState().

Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Control::BasicUAVAutopilot::BasicUAVAutopilot(), Vision::Lumenera::Task::checkActivationProgress(), Vision::Lumenera::Task::checkCaptureOk(), DUNE::Navigation::BasicNavigation::checkUncertainty(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Control::BasicAutopilot::consume(), Monitors::CPU::Task::consume(), Control::AntennaTracker::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Plan::Generator::Task::consume(), Monitors::Clock::Task::consume(), Transports::LoggingDigest::Task::consume(), Navigation::General::GPSNavigation::Task::consume(), Sensors::CyclopsC7::Task::consume(), Plan::DB::Task::consume(), Plan::Engine::Task::consume(), Sensors::OS4000::Task::consume(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Navigation::AUV::Ranger::Task::onActivation(), DUNE::Control::BasicUAVAutopilot::onActivation(), Transports::Iridium::Task::onActivation(), Monitors::Emergency::Task::onActivation(), Control::AUV::Allocator::Task::onActivation(), Navigation::AUV::CLRanger::Task::onActivation(), DUNE::Control::BasicAutopilot::onActivation(), Transports::IridiumSBD::Task::onActivation(), Transports::UAN::Task::onActivation(), Transports::Noptilus::Task::onActivation(), Sensors::MCC1608G::Task::onActivation(), Control::AUV::Speed::Task::onActivation(), Autonomy::OnEvent::Task::onActivation(), Autonomy::TREX::Task::onActivation(), Sensors::BlueView4::Task::onActivation(), Sensors::ExplorerDVL::Task::onActivation(), Vision::DFK51BG02H::Task::onActivation(), Sensors::Imagenex881A::Task::onActivation(), Vision::Lumenera::Task::onActivation(), Navigation::AUV::Ranger::Task::onDeactivation(), DUNE::Control::BasicUAVAutopilot::onDeactivation(), Supervisors::AUV::LostComms::Task::onDeactivation(), Transports::Iridium::Task::onDeactivation(), Monitors::Emergency::Task::onDeactivation(), Control::AUV::Allocator::Task::onDeactivation(), DUNE::Control::BasicAutopilot::onDeactivation(), Navigation::AUV::CLRanger::Task::onDeactivation(), Sensors::CyclopsC7::Task::onDeactivation(), Transports::IridiumSBD::Task::onDeactivation(), Transports::Noptilus::Task::onDeactivation(), Transports::UAN::Task::onDeactivation(), Sensors::MCC1608G::Task::onDeactivation(), Control::AUV::Speed::Task::onDeactivation(), Autonomy::OnEvent::Task::onDeactivation(), Sensors::IFOG::Task::onDeactivation(), Autonomy::TREX::Task::onDeactivation(), Sensors::BlueView4::Task::onDeactivation(), Sensors::ExplorerDVL::Task::onDeactivation(), Vision::DFK51BG02H::Task::onDeactivation(), Sensors::Imagenex881A::Task::onDeactivation(), Vision::Lumenera::Task::onDeactivation(), Sensors::MiniSVS::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Sensors::AIS::Task::onMain(), Sensors::WifiRSSI::Task::onMain(), Monitors::Clock::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Sensors::IFOG::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Actuators::LED4R::Task::onMain(), Actuators::MCD4R::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Sensors::MetrecX::Task::onMain(), Sensors::ExplorerDVL::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Control::UAV::Ardupilot::Task::onMain(), Sensors::MiniSVS::Task::onResourceAcquisition(), Sensors::XchangeSV::Task::onResourceAcquisition(), Simulators::AcousticModem::Task::onResourceAcquisition(), Sensors::EmulatedGPS::Task::onResourceAcquisition(), Plan::DB::Task::onResourceAcquisition(), Sensors::AIM104MultiIO::Task::onResourceAcquisition(), Sensors::MicrostrainMIP::Task::onResourceAcquisition(), Maneuver::VehicleFormation::Test::Task::onResourceAcquisition(), Transports::SUNSET::Task::onResourceAcquisition(), Sensors::Microstrain3DMGX3::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Sensors::MLBLTracker::Task::onResourceAcquisition(), Vision::Lumenera::Task::onResourceAcquisition(), Sensors::Imagenex881A::Task::onResourceAcquisition(), Sensors::MetrecX::Task::onResourceAcquisition(), Maneuver::VehicleFormation::Coordinator::Task::onResourceAcquisition(), Maneuver::VehicleFormation::FormCollAvoid::Task::onResourceAcquisition(), Autonomy::TextActions::Task::onResourceInitialization(), DUNE::Daemon::onResourceInitialization(), DUNE::Maneuvers::Maneuver::onResourceInitialization(), Transports::LogBook::Task::onResourceInitialization(), Navigation::AUV::Ranger::Task::onResourceInitialization(), Transports::Discovery::Task::onResourceInitialization(), Transports::Cache::Task::onResourceInitialization(), Supervisors::Entities::Task::onResourceInitialization(), DUNE::Control::BasicRemoteOperation::onResourceInitialization(), Transports::Iridium::Task::onResourceInitialization(), Transports::LoggingDigest::Task::onResourceInitialization(), Monitors::Emergency::Task::onResourceInitialization(), Sensors::SmartX::Task::onResourceInitialization(), Supervisors::AUV::LostComms::Task::onResourceInitialization(), Monitors::Entities::Task::onResourceInitialization(), Sensors::WifiRSSI::Task::onResourceInitialization(), Navigation::AUV::CLRanger::Task::onResourceInitialization(), Supervisors::AUV::Assist::Task::onResourceInitialization(), Transports::UAN::Task::onResourceInitialization(), Sensors::MCC1608G::Task::onResourceInitialization(), Transports::Announce::Task::onResourceInitialization(), Transports::IridiumSBD::Task::onResourceInitialization(), Transports::GSM::Task::onResourceInitialization(), Sensors::MicrostrainMIP::Task::onResourceInitialization(), Sensors::OS4000::Task::onResourceInitialization(), Sensors::IFOG::Task::onResourceInitialization(), Sensors::Microstrain3DMGX3::Task::onResourceInitialization(), Actuators::LED4R::Task::onResourceInitialization(), Sensors::BlueView4::Task::onResourceInitialization(), Power::LUEMB::Task::onResourceInitialization(), Vision::DFK51BG02H::Task::onResourceInitialization(), Actuators::MCD4R::Task::onResourceInitialization(), Sensors::ExplorerDVL::Task::onResourceInitialization(), Sensors::Imagenex881A::Task::onResourceInitialization(), Control::UAV::Ardupilot::Task::openConnection(), Plan::Engine::Task::openDB(), Transports::GSM::Task::processQueue(), Sensors::MLBLTracker::Task::readSentence(), Sensors::MicrostrainMIP::Task::reportEntityState(), Monitors::OperationalLimits::Task::reset(), DUNE::Navigation::BasicNavigation::reset(), Sensors::ExplorerDVL::Task::runActivationStateMachine(), Sensors::Microstrain3DMGX3::Task::runCalibration(), Sensors::ExplorerDVL::Task::runDeactivationStateMachine(), Sensors::MLBL::Task::setAndSendState(), Supervisors::Vehicle::Task::setInitialState(), Navigation::AUV::CLRanger::Task::setTDMA(), DUNE::Control::BasicAutopilot::signalBadVertical(), DUNE::Control::BasicAutopilot::signalBadYaw(), Sensors::XR620CTD::Task::startSampling(), Sensors::XR620CTD::Task::stopSampling(), Transports::Fragments::Task::Task(), Monitors::CPU::Task::Task(), Sensors::CyclopsC7::Task::Task(), Control::Path::ILOS::Task::Task(), Control::AUV::Allocator::Task::Task(), Monitors::Clock::Task::Task(), Transports::Noptilus::Task::Task(), Autonomy::OnEvent::Task::Task(), Control::AUV::Speed::Task::Task(), Sensors::SW100::Task::task(), Monitors::FuelLevel::Task::task(), Monitors::Medium::Task::task(), Sensors::Microstrain3DMGX3::Task::task(), Sensors::OS4000::Task::terminateCalibration(), Autonomy::TREX::Task::updateEntityState(), Supervisors::ClockPPS::Task::updateState(), Monitors::OperationalLimits::Task::updateState(), Sensors::SmartX::Task::updateStateMachine(), and Sensors::BlueView4::Task::updateStateMachine().

void DUNE::Tasks::Task::setEntityState ( IMC::EntityState::StateEnum  state,
const std::string &  description 
)
inlineprotected

Set current entity state with a custom description.

Parameters
[in]stateentity state.
[in]descriptioncustom state description.

References DUNE::Entities::StatefulEntity::setState().

void DUNE::Tasks::Task::setParamSectionEditor ( const std::string &  name)
inlineprotected

Set the name of the parameter editor that should be used to interact with the parameters of the task.

Parameters
[in]nameeditor name (free-form string).
void DUNE::Tasks::Task::setPriority ( unsigned int  value)
inline

Set scheduling priority programatically.

The priority of a task might change when configuration parameters are updated.

Parameters
[in]valuedesired scheduling priority.
void DUNE::Tasks::Task::spew ( const char *  format,
  ... 
)
virtual

Send a very verbose or frequent human-readable debug message to all configured output channels and files.

The message will only be processed if the configured log level is DEBUG_LEVEL_SPEW.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::Tasks::DEBUG_LEVEL_SPEW, and DUNE::IMC::LogBookEntry::LBET_DEBUG.

Referenced by activate(), activationFailed(), Sensors::OS4000::Task::calibrating(), Vision::Lumenera::Task::captureFrame(), DUNE::Navigation::BasicNavigation::checkUncertainty(), Transports::IridiumSBD::Task::cleanExpired(), Simulators::UAV::Task::commandPrintOut(), Autonomy::TextActions::Task::consume(), Control::AntennaTracker::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Monitors::Emergency::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Power::LUEMB::Task::consume(), Navigation::AUV::Navigation::Task::consume(), Simulators::UAV::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), deactivate(), deactivationFailed(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Transports::Iridium::Task::handleIridiumCommand(), onActivation(), onDeactivation(), Maneuver::VehicleFormation::Test::Task::onEntityResolution(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Transports::Replay::Task::onMain(), Transports::Iridium::Task::onMain(), onRequestActivation(), Maneuver::VehicleFormation::Coordinator::Task::onRequestActivation(), Maneuver::VehicleFormation::FormCollAvoid::Task::onRequestActivation(), onRequestDeactivation(), Maneuver::VehicleFormation::Coordinator::Task::onRequestDeactivation(), Maneuver::VehicleFormation::FormCollAvoid::Task::onRequestDeactivation(), Simulators::UAV::Task::onResourceAcquisition(), Simulators::UAV::Task::onResourceRelease(), Control::AUV::LMI::Task::onUpdateParameters(), Maneuver::VehicleFormation::Test::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), requestActivation(), requestDeactivation(), Transports::Iridium::Task::sendDeviceUpdates(), Transports::UAN::Task::sendRange(), Navigation::AUV::CLRanger::Task::setTDMA(), DUNE::Navigation::BasicNavigation::setup(), Control::UAV::Ardupilot::Task::setupRate(), Control::Path::VectorField::Task::step(), Control::UAV::LOS::Task::step(), Control::Path::LOSnSMC::Task::step(), Simulators::UAVAutopilot::Task::task(), Maneuver::VehicleFormation::Test::Task::task(), Maneuver::VehicleFormation::Coordinator::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::teamPeriodicUpdate(), Maneuver::VehicleFormation::FormCollAvoid::Task::teamUnevenUpdate(), Sensors::MicrostrainMIP::Task::updateHardIronOffset(), and Maneuver::VehicleFormation::Coordinator::Task::updateLeaderLimits().

bool DUNE::Tasks::Task::stopping ( void  )
inlineprotected

Test if task is stopping.

Returns
true if task is stopping, false otherwise.

References DUNE::Concurrency::Runnable::isStopping().

Referenced by Sensors::XR620CTD::Task::getCalibration(), initializeResources(), DUNE::Tasks::SimpleTransport::onMain(), DUNE::Daemon::onMain(), DUNE::Control::BasicUAVAutopilot::onMain(), Sensors::GillWindObserverII::Task::onMain(), DUNE::Control::BasicAutopilot::onMain(), Sensors::MiniSVS::Task::onMain(), Transports::Fragments::Task::onMain(), Autonomy::TextActions::Task::onMain(), Transports::LogBook::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Control::AntennaTracker::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Simulators::AcousticModem::Task::onMain(), Navigation::AUV::Ranger::Task::onMain(), Sensors::AIS::Task::onMain(), Sensors::WifiRSSI::Task::onMain(), Sensors::CyclopsC7::Task::onMain(), Transports::Discovery::Task::onMain(), Transports::SerialOverTCP::Task::onMain(), Monitors::Clock::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Plan::Generator::Task::onMain(), Sensors::EmulatedGPS::Task::onMain(), Transports::GSM::Task::onMain(), Transports::LoggingDigest::Task::onMain(), DUNE::Control::PathController::onMain(), Transports::Cache::Task::onMain(), Sensors::MCC1608G::Task::onMain(), Autonomy::OnEvent::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Supervisors::ClockPPS::Task::onMain(), Sensors::MicrostrainMIP::Task::onMain(), Sensors::SmartX::Task::onMain(), Autonomy::TREX::Task::onMain(), Transports::UDP::Task::onMain(), Transports::IridiumSBD::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Sensors::MTi::Task::onMain(), Transports::Iridium::Task::onMain(), Transports::Announce::Task::onMain(), Actuators::LED4R::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Control::AUV::Allocator::Task::onMain(), Monitors::Entities::Task::onMain(), Power::LUEMB::Task::onMain(), Navigation::AUV::CLRanger::Task::onMain(), Transports::Noptilus::Task::onMain(), Control::AUV::Speed::Task::onMain(), Actuators::MCD4R::Task::onMain(), Plan::DB::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::UAN::Task::onMain(), Sensors::MetrecX::Task::onMain(), Sensors::BlueView4::Task::onMain(), Sensors::ExplorerDVL::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Transports::SUNSET::Task::onMain(), Vision::Lumenera::Task::onMain(), Plan::Engine::Task::onMain(), Sensors::MLBL::Task::onMain(), Control::UAV::Ardupilot::Task::onMain(), Sensors::MicrostrainMIP::Task::onResourceInitialization(), Sensors::OS4000::Task::onResourceInitialization(), Sensors::Microstrain3DMGX3::Task::onResourceInitialization(), Sensors::OS4000::Task::setParameter(), Sensors::XR620CTD::Task::setParameters(), and Sensors::XR620CTD::Task::stopSampling().

void DUNE::Tasks::Task::trace ( const char *  format,
  ... 
)
virtual

Send a verbose or frequent human-readable debug message to all configured output channels and files.

The message will only be processed if the configured log level is DEBUG_LEVEL_TRACE or greater.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::Tasks::DEBUG_LEVEL_TRACE, and DUNE::IMC::LogBookEntry::LBET_DEBUG.

Referenced by Vision::Lumenera::EntityActivationMaster::addEntity(), Supervisors::Vehicle::Task::answer(), Vision::Lumenera::EntityActivationMaster::checkActivation(), Vision::Lumenera::Task::checkActivationProgress(), Vision::Lumenera::EntityActivationMaster::checkDeactivation(), Vision::Lumenera::Task::checkDeactivationProgress(), Sensors::BlueView4::Task::closeLog(), Simulators::UAV::Task::commandFilter(), Sensors::ExplorerDVL::Task::configureInputTrigger(), Sensors::BlueView4::Task::connect(), DUNE::Control::PathController::consume(), Vision::Lumenera::Task::consume(), Supervisors::Vehicle::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Sensors::BlueView4::Task::controlPower(), Sensors::BlueView4::Task::disconnect(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Sensors::MLBLTracker::Task::handleCARXD(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleMissionCurrentPacket(), Control::UAV::Ardupilot::Task::handleMissionItemPacket(), Control::UAV::Ardupilot::Task::handleNavControllerPacket(), DUNE::Hardware::BasicDeviceDriver::onCloseLog(), Monitors::Entities::Task::onEntityResolution(), Transports::Replay::Task::onMain(), Sensors::ExplorerDVL::Task::onMain(), DUNE::Hardware::BasicDeviceDriver::onOpenLog(), Vision::Lumenera::Task::onRequestActivation(), Vision::Lumenera::Task::onRequestDeactivation(), Vision::Lumenera::Task::onResourceRelease(), Transports::LogBook::Task::provide(), Transports::LogBook::Task::report(), Sensors::ExplorerDVL::Task::runActivationStateMachine(), Sensors::ExplorerDVL::Task::runDeactivationStateMachine(), DUNE::Hardware::BasicModem::send(), Control::UAV::Ardupilot::Task::sendCommandPacket(), Control::UAV::Ardupilot::Task::sendData(), Sensors::ExplorerDVL::Task::setInputTrigger(), Maneuver::VehicleFormation::Coordinator::Task::setLeaderState(), Maneuver::VehicleFormation::FormCollAvoid::Task::setLeaderState(), Sensors::BlueView4::Task::setRange(), Sensors::BlueView4::Task::setup(), Sensors::ExplorerDVL::Task::setup(), Maneuver::VehicleFormation::Test::Task::task(), Supervisors::AUV::LostComms::Task::task(), Monitors::FuelLevel::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::task(), Sensors::BlueView4::Task::turnPowerOff(), Sensors::BlueView4::Task::turnPowerOn(), Control::UAV::RemoteOperation::Task::update(), Sensors::BlueView4::Task::updateStateMachine(), and Sensors::EmulatedGPS::Task::writeToUART().

void DUNE::Tasks::Task::waitForMessages ( double  timeout)
inlineprotected

Wait for the receiving queue to contain at least one message and then call the consumer functions for all the messages currently in it.

Parameters
[in]timeoutwait for timeout seconds.

References DUNE::Tasks::Recipient::waitForMessages().

Referenced by Transports::SUNSET::Task::handleAbort(), Transports::SUNSET::Task::handlePlanAdd(), Transports::SUNSET::Task::handlePlanDelete(), Transports::SUNSET::Task::handlePlanGet(), Transports::SUNSET::Task::handlePlanListGet(), Transports::SUNSET::Task::handlePlanStart(), Transports::SUNSET::Task::handlePlanStop(), DUNE::Daemon::onMain(), DUNE::Control::BasicUAVAutopilot::onMain(), DUNE::Control::BasicAutopilot::onMain(), Transports::Fragments::Task::onMain(), Autonomy::TextActions::Task::onMain(), Transports::LogBook::Task::onMain(), Control::AntennaTracker::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Sensors::WifiRSSI::Task::onMain(), Sensors::CyclopsC7::Task::onMain(), Monitors::Clock::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Plan::Generator::Task::onMain(), Sensors::EmulatedGPS::Task::onMain(), Transports::GSM::Task::onMain(), Transports::LoggingDigest::Task::onMain(), DUNE::Control::PathController::onMain(), Transports::Cache::Task::onMain(), Sensors::MCC1608G::Task::onMain(), Autonomy::OnEvent::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Supervisors::ClockPPS::Task::onMain(), Sensors::SmartX::Task::onMain(), Transports::IridiumSBD::Task::onMain(), Transports::UDP::Task::onMain(), Sensors::MTi::Task::onMain(), Transports::Iridium::Task::onMain(), Actuators::LED4R::Task::onMain(), Control::AUV::Allocator::Task::onMain(), Monitors::Entities::Task::onMain(), Power::LUEMB::Task::onMain(), Navigation::AUV::CLRanger::Task::onMain(), Transports::Noptilus::Task::onMain(), Control::AUV::Speed::Task::onMain(), Actuators::MCD4R::Task::onMain(), Plan::DB::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::UAN::Task::onMain(), Sensors::ExplorerDVL::Task::onMain(), Transports::SUNSET::Task::onMain(), Vision::Lumenera::Task::onMain(), Plan::Engine::Task::onMain(), Sensors::MLBL::Task::onMain(), Sensors::ExplorerDVL::Task::runActivationStateMachine(), Sensors::ExplorerDVL::Task::runDeactivationStateMachine(), Sensors::BlueView4::Task::updateStateMachine(), and Navigation::AUV::Ranger::Task::wait().

void DUNE::Tasks::Task::war ( const char *  format,
  ... 
)
virtual

Send an human-readable warning message to all configured output channels and files.

Parameters
formatstring format (similar to printf(3)).
...arguments.

Reimplemented from DUNE::Tasks::AbstractTask.

References DUNE::IMC::LogBookEntry::LBET_WARNING.

Referenced by Supervisors::Vehicle::Task::changeMode(), Plan::Engine::Task::changeMode(), Monitors::OperationalLimits::Task::clearError(), DUNE::Simulation::UAVSimulation::commandAirspeed(), DUNE::Simulation::UAVSimulation::commandAlt(), DUNE::Simulation::UAVSimulation::commandBank(), Simulators::UAV::Task::commandFilter(), DUNE::Simulation::UAVSimulation::commandFPA(), DUNE::Simulation::UAVSimulation::commandPitch(), Simulators::UAV::Task::commandPrintOut(), Sensors::MetrecX::Task::configureInternalChannels(), DUNE::Control::BasicAutopilot::consume(), Monitors::Clock::Task::consume(), Sensors::MTi::Task::consume(), Monitors::Entities::Task::consume(), Plan::DB::Task::consume(), Autonomy::TREX::Task::consume(), Transports::Iridium::Task::consume(), Transports::Noptilus::Task::consume(), Supervisors::Vehicle::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::formationControl(), Transports::SUNSET::Task::handleAbort(), Sensors::MLBL::Task::handleBinaryMessage(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Sensors::MLBL::Task::handleMiniPacket(), Sensors::MLBL::Task::handlePingReply(), Transports::SUNSET::Task::handleRange(), Transports::IridiumSBD::Task::handleSessionResult(), Sensors::MLBL::Task::handleTransponderTravelTimes(), Sensors::Microstrain3DMGX3::Task::isCalibrated(), Maneuver::VehicleFormation::FormCollAvoid::Task::isControlActive(), Transports::Fragments::Task::messageRipper(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Vision::DFK51BG02H::Task::onMain(), Sensors::MetrecX::Task::onMain(), Maneuver::VehicleFormation::Coordinator::Task::onRequestActivation(), Maneuver::VehicleFormation::Coordinator::Task::onRequestDeactivation(), Sensors::IFOG::Task::onResourceAcquisition(), Actuators::LED4R::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Power::LUEMB::Task::onResourceAcquisition(), Actuators::MCD4R::Task::onResourceAcquisition(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Control::UAV::Ardupilot::Task::openConnection(), Sensors::MLBL::Task::pingNarrowBand(), Sensors::WifiRSSI::Task::poll(), Transports::GSM::Task::processQueue(), Transports::Discovery::Task::readMessage(), Control::UAV::Ardupilot::Task::receiveData(), Transports::UAN::Task::recvAbort(), Transports::UAN::Task::recvPlanControl(), DUNE::Simulation::UAVSimulation::setPosition(), Sensors::BlueView4::Task::setRange(), DUNE::Simulation::UAVSimulation::setVelocity(), Transports::Replay::Task::startReplay(), Control::UAV::LOS::Task::step(), Control::Path::LOSnSMC::Task::step(), Transports::Replay::Task::stopReplay(), Supervisors::AUV::LostComms::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::teamPeriodicUpdate(), and DUNE::Simulation::UAVSimulation::update().

void DUNE::Tasks::Task::writeParamsXML ( std::ostream &  os) const

Write task parameters in XML format.

Parameters
[in]osoutput stream.

References getEntityLabel(), onWriteParamsXML(), and DUNE::Tasks::ParameterTable::writeXML().

Member Data Documentation

Context& DUNE::Tasks::Task::m_ctx
protected

Context.

Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Navigation::BasicNavigation::checkDeclination(), DUNE::Hardware::BasicDeviceDriver::consume(), DUNE::Daemon::consume(), Navigation::General::GPSNavigation::Task::consume(), Autonomy::TREX::Task::consume(), Navigation::AUV::CLRanger::Task::consume(), Vision::Lumenera::Task::consume(), Vision::DFK51BG02H::Task::consume(), Control::UAV::Ardupilot::Task::consume(), DUNE::Daemon::Daemon(), dispatch(), Sensors::BlueView4::Task::getLogPath(), getSystemId(), getSystemName(), Control::UAV::Ardupilot::Task::handlePositionPacket(), loadConfig(), DUNE::Navigation::BasicNavigation::onEntityResolution(), Monitors::Entities::Task::onEntityResolution(), Plan::DB::Task::onResourceAcquisition(), Plan::Engine::Task::onResourceAcquisition(), DUNE::Daemon::onResourceInitialization(), Sensors::MLBL::Task::onResourceInitialization(), Sensors::WifiRSSI::Task::onUpdateParameters(), DUNE::Navigation::BasicNavigation::onUpdateParameters(), Transports::Announce::Task::onUpdateParameters(), Transports::UDP::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), Plan::Engine::Task::openDB(), DUNE::Control::PathController::PathController(), Transports::Discovery::Task::readMessage(), reserveEntities(), reserveEntity(), resolveEntity(), resolveSystemId(), resolveSystemName(), Transports::LoggingDigest::Task::startLog(), Transports::Cache::Task::Task(), Transports::Discovery::Task::Task(), Plan::Generator::Task::Task(), Monitors::FuelLevel::Task::Task(), Supervisors::AUV::Assist::Task::Task(), Monitors::Medium::Task::Task(), Task(), Control::AUV::Speed::Task::Task(), Monitors::OperationalLimits::Task::Task(), Control::AUV::Attitude::Task::Task(), and DUNE::Daemon::~Daemon().

std::vector<Entities::BasicEntity*> DUNE::Tasks::Task::m_entities
protected

Owned entity list.

Referenced by reserveEntity(), Task(), and ~Task().

Collaboration diagram for DUNE::Tasks::Task:
Collaboration graph