DUNE: Uniform Navigational Environment
2019.02.0
|
Task.
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) |
unsigned | getPriority (void) |
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) |
Entities::BasicEntity * | getLocalEntity (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 > | |
Parameter & | param (const std::string &name, T &var) |
template<typename Y , typename T > | |
Parameter & | param (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) |
unsigned | getPriorityImpl (void) |
Protected Attributes | |
Context & | m_ctx |
std::vector < Entities::BasicEntity * > | m_entities |
Additional Inherited Members | |
Public Types inherited from DUNE::Concurrency::Runnable | |
enum | State { StateStarting, StateRunning, StateStopping, StateDead, StateUnknown } |
DUNE::Tasks::Task::Task | ( | const std::string & | name, |
Context & | context | ||
) |
Construct a task object.
[in] | name | name of the task. |
[in] | context | task context. |
References DUNE::Tasks::Parameter::defaultValue(), m_ctx, m_entities, param(), and DUNE::Tasks::Recipient.
|
inlinevirtual |
Destructor.
Reimplemented in Actuators::MCD4R::Task, Vision::DFK51BG02H::Task, Sensors::MetrecX::Task, Sensors::MLBLTracker::Task, Monitors::FuelLevel::Task, Transports::UAN::Task, Transports::UDP::Task, Sensors::IFOG::Task, Actuators::LED4R::Task, Autonomy::OnEvent::Task, Power::LUEMB::Task, Transports::Announce::Task, Power::CPMBv2::Task, Power::CPMB::Task, Power::APD::Task, Transports::Replay::Task, Sensors::MTi::Task, Transports::IridiumSBD::Task, Transports::LoggingDigest::Task, Transports::Cache::Task, Transports::SerialOverTCP::Task, and Simulators::UAVAutopilot::Task.
References m_entities.
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.
|
protected |
Derived classes should use this function to signal that activation was completed successfully.
References DUNE::IMC::EntityActivationState::EAS_ACT_IP, DUNE::Entities::StatefulEntity::getActivationState(), DUNE::Entities::StatefulEntity::hasPendingDeactivation(), onActivation(), requestDeactivation(), DUNE::Tasks::ParameterTable::set(), spew(), and DUNE::Entities::StatefulEntity::succeedActivation().
Referenced by Vision::Lumenera::Task::checkActivationProgress(), Sensors::Imagenex881A::Task::checkActivationProgress(), Sensors::CyclopsC7::Task::consume(), Monitors::Entities::Task::consume(), Vision::DFK51BG02H::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Transports::Radio::Task::hardwareUpdateStateMachine(), Maneuver::VehicleFormation::FormCollAvoid::Task::isControlActive(), Sensors::CyclopsC7::Task::onRequestActivation(), Vision::UI2210MGL::Task::onRequestActivation(), and onRequestActivation().
|
protected |
Derived classes should use this function to signal that activation failed.
[in] | reason | reason for activation failure. |
References DUNE::Entities::StatefulEntity::failActivation(), and spew().
Referenced by Vision::Lumenera::Task::checkActivationProgress(), Sensors::Imagenex881A::Task::checkActivationProgress(), and Transports::Radio::Task::failActivation().
|
inlineprotected |
Bind a message to a consumer method.
task_obj | consumer task. |
consumer | consumer method. |
Referenced by bind(), DUNE::Tasks::SimpleTransport::onMain(), Transports::UDP::Task::onResourceAcquisition(), Autonomy::OnEvent::Task::onResourceInitialization(), Transports::LoggingDigest::Task::onUpdateParameters(), and Transports::DataStore::Task::onUpdateParameters().
|
inlineprotected |
Bind multiple messages to a default consumer method.
task_obj | consumer object. |
list | list of message identifiers. |
References bind().
|
inlineprotected |
Bind multiple messages to a consumer method.
task_obj | consumer object. |
list | list of message identifiers. |
consumer | consumer method. |
References bind().
|
inlineprotected |
Bind multiple messages to a default consumer method.
task_obj | consumer task. |
list | list of message abbreviations. |
References bind(), and DUNE::IMC::Factory::getIdFromAbbrev().
|
inlineprotected |
Call the consumers of all messages currently in the receiving queue.
References DUNE::Tasks::Recipient::runCallBacks().
Referenced by Sensors::MLBL::Task::fullAcousticReport(), Sensors::XR620CTD::Task::getCalibration(), DUNE::Tasks::SimpleTransport::onMain(), Sensors::MiniSVS::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Supervisors::PowerManager::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Simulators::AcousticModem::Task::onMain(), Transports::Discovery::Task::onMain(), Sensors::AIS::Task::onMain(), Sensors::EmulatedGPS::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Vision::UI2210MGL::Task::onMain(), Autonomy::TREX::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Sensors::DMS::Task::onMain(), Transports::Announce::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Sensors::SADC::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::Radio::Task::onMain(), Sensors::MetrecX::Task::onMain(), Control::UAV::PX4::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Control::UAV::Ardupilot::Task::onMain(), Sensors::MLBL::Task::processInput(), Transports::Seatrac::Task::processInput(), Sensors::OS4000::Task::readString(), Sensors::XR620CTD::Task::setParameters(), 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().
|
virtual |
Send an human-readable critical error message to all configured output channels and files.
format | string format (similar to printf(3)). |
... | arguments. |
Reimplemented from DUNE::Tasks::AbstractTask.
References DUNE::IMC::LogBookEntry::LBET_CRITICAL.
|
protected |
Derived classes should use this function to signal that deactivation was completed successfully.
References DUNE::IMC::EntityActivationState::EAS_DEACT_IP, DUNE::Entities::StatefulEntity::getActivationState(), DUNE::Entities::StatefulEntity::hasPendingActivation(), onDeactivation(), requestActivation(), DUNE::Tasks::ParameterTable::set(), spew(), and DUNE::Entities::StatefulEntity::succeedDeactivation().
Referenced by Vision::Lumenera::Task::checkDeactivationProgress(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Transports::Radio::Task::hardwareUpdateStateMachine(), Maneuver::VehicleFormation::FormCollAvoid::Task::isControlActive(), and onRequestDeactivation().
|
protected |
Derived classes should use this function to signal that deactivation failed.
[in] | reason | reason for deactivation failure. |
References DUNE::Entities::StatefulEntity::failDeactivation(), and spew().
Referenced by Vision::Lumenera::Task::checkDeactivationProgress().
|
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.
format | string 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::UAV::Ardupilot::Task::activateFBW(), Control::ASV::RemoteOperation::Task::actuate(), Control::AUV::RemoteOperation::Task::actuate(), Transports::DataStore::DataStore::addData(), Transports::DataStore::DataStore::addSample(), Plan::DB::Task::answer(), Control::UAV::Ardupilot::Task::autoLand(), Control::UAV::Ardupilot::Task::autoTakeoff(), Vision::Lumenera::Task::captureAndSave(), Sensors::OS4000::Task::changeCalibrationState(), Plan::Engine::Task::changeMode(), Vision::Lumenera::Task::checkActivationProgress(), Sensors::Imagenex881A::Task::checkActivationProgress(), Power::OPCON::Task::checkPowerOff(), Transports::SerialOverTCP::Task::checkSerialPort(), Transports::Seatrac::Task::checkTxOWAY(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Hardware::BasicDeviceDriver::consume(), Transports::Fragments::Task::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicUAVAutopilot::consume(), DUNE::Control::BasicAutopilot::consume(), Supervisors::PowerManager::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Simulators::AcousticModem::Task::consume(), Supervisors::Reporter::Task::consume(), Transports::IridiumSBD::Task::consume(), Monitors::Medium::Task::consume(), Power::APD::Task::consume(), Control::AUV::Speed::Task::consume(), Power::CPMB::Task::consume(), Power::CPMBv2::Task::consume(), Sensors::CyclopsC7::Task::consume(), Transports::UAN::Task::consume(), Transports::Iridium::Task::consume(), Plan::Engine::Task::consume(), Control::AUV::Allocator::Task::consume(), Navigation::AUV::Navigation::Task::consume(), Supervisors::Vehicle::Task::consume(), Power::OPCON::Task::consume(), Simulators::UAV::Task::consume(), Control::UAV::PX4::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(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Power::OPCON::Task::gsm3gActivate(), Control::UAV::PX4::Task::handleArdupilotData(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Transports::Seatrac::Task::handleBinaryMessage(), Sensors::MLBL::Task::handleBinaryMessage(), Sensors::MLBLTracker::Task::handleBinaryReception(), Control::UAV::Ardupilot::Task::handleCmdAckPacket(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::PX4::Task::handleMissionAckPacket(), Control::UAV::Ardupilot::Task::handleMissionAckPacket(), Control::UAV::PX4::Task::handleMissionItemReachedPacket(), Transports::Radio::Task::hardwareUpdateStateMachine(), Power::BATMANv2::DriverBatMan::haveNewData(), Power::BATMANv2::Task::initBoard(), Transports::IridiumSBD::Task::invalidateTxRequest(), Transports::Seatrac::Task::isCalibrated(), Sensors::Microstrain3DMGX1::Task::isCalibrated(), Control::UAV::Ardupilot::Task::loiterHere(), Transports::Fragments::Task::messageRipper(), Supervisors::Vehicle::Task::onDisabledControlLoops(), Supervisors::Vehicle::Task::onEnabledControlLoops(), Sensors::CyclopsC7::Task::onEntityResolution(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Supervisors::PowerManager::Task::onMain(), Power::BATMANv2::Task::onMain(), Sensors::CyclopsC7::Task::onRequestActivation(), Transports::Radio::Task::onRequestActivation(), Transports::IridiumSBD::Task::onResourceAcquisition(), Transports::GSM::Task::onResourceAcquisition(), Simulators::UAV::Task::onResourceAcquisition(), Plan::Engine::Task::onResourceInitialization(), Vision::DFK51BG02H::Task::onResourceInitialization(), Transports::Seatrac::Task::onResourceInitialization(), Simulators::UAVAutopilot::Task::onUpdateParameters(), Control::AUV::RemoteOperation::Task::onUpdateParameters(), Transports::DataStore::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(), Control::UAV::Ardupilot::Task::openConnection(), Sensors::Microstrain3DMGX1::Task::parse(), Transports::DataStore::Task::process(), Sensors::DMS::Task::processInput(), Sensors::SADC::Task::processInput(), Transports::IridiumSBD::Task::processQueue(), Sensors::DMS::Task::processValueOfDMSChannel(), Simulators::AcousticModem::Task::readData(), Transports::UAN::Task::recvMessage(), Sensors::MLBL::Task::reportRanges(), Transports::Iridium::Task::sendAnnounce(), Sensors::OEMX::DriverOEMX::sendCommand(), Transports::Iridium::Task::sendDeviceUpdates(), Sensors::DataStore::Task::sendHistoricMessages(), Control::UAV::Ardupilot::Task::sendMissionItem(), Power::OPCON::Task::set3G(), Vision::UI2210MGL::CaptureUeye::setExposure(), Vision::UI2210MGL::CaptureUeye::setFPS(), Vision::UI2210MGL::CaptureUeye::setGain(), Sensors::Microstrain3DMGX1::Task::setHardIron(), Sensors::OS4000::Task::setParameter(), DUNE::Maneuvers::Maneuver::startManeuver(), Vision::Lumenera::Task::startVideo(), Supervisors::Vehicle::Task::stopCalibration(), Vision::UI2210MGL::Task::stopCapture(), Plan::Engine::Task::stopPlan(), Vision::Lumenera::Task::stopVideo(), Supervisors::AUV::LostComms::Task::task(), Transports::Radio::Task::turnPowerOff(), Transports::Radio::Task::turnPowerOn(), DUNE::Control::YoYoMotion::update(), Vision::Lumenera::Task::updateActualFrameRate(), Vision::Lumenera::Task::updateExposure(), Vision::Lumenera::Task::updateFps(), Vision::Lumenera::Task::updateGain(), Vision::Lumenera::Task::updateGamma(), Vision::Lumenera::Task::updateMedianFilter(), Vision::Lumenera::Task::updateStrobe(), Vision::Lumenera::Task::updateWhiteBalance(), Monitors::Medium::Task::waterMediumCheck(), and Transports::DataStore::Task::wifiRouting().
void DUNE::Tasks::Task::dispatch | ( | IMC::Message * | msg, |
unsigned int | flags = 0 |
||
) |
Dispatch message to the message bus.
[in] | msg | message pointer. |
[in] | flags | bitfield 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(), Transports::DataStore::DataStore::addData(), Control::AUV::Allocator::Task::allocate(), Transports::Announce::Task::announce(), Transports::UAN::Task::announceUSBL(), Transports::CommManager::Task::answer(), Supervisors::Vehicle::Task::answer(), Plan::DB::Task::answer(), Plan::Engine::Task::answer(), Control::UAV::Ardupilot::Task::autoTakeoff(), Vision::UAVCamera::Task::cameraControl(), 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(), Power::OPCON::Task::checkPowerOff(), Autonomy::TREX::Task::checkState(), Sensors::MLBLTracker::Task::checkTimeouts(), Control::AUV::Allocator::Task::computeProducedTorque(), DUNE::Control::BasicRemoteOperation::consume(), Transports::Fragments::Task::consume(), DUNE::Control::BasicUAVAutopilot::consume(), DUNE::Daemon::consume(), DUNE::Control::BasicAutopilot::consume(), DUNE::Control::PathController::consume(), Control::AntennaTracker::Task::consume(), Navigation::AUV::Ranger::Task::consume(), Monitors::Clock::Task::consume(), Sensors::MTi::Task::consume(), Sensors::DataStore::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Navigation::General::GPSNavigation::Task::consume(), Plan::Generator::Task::consume(), Transports::Iridium::Task::consume(), Autonomy::TREX::Task::consume(), Sensors::Microstrain3DMGX1::Task::consume(), Monitors::OperationalLimits::Task::consume(), Transports::UAN::Task::consume(), Sensors::CyclopsC7::Task::consume(), Transports::GSM::Task::consume(), Sensors::Microstrain3DMGX3::Task::consume(), Control::ROV::RemoteOperation::Task::consume(), Transports::Radio::Task::consume(), Supervisors::Vehicle::Task::consume(), Sensors::MLBLTracker::Task::consume(), Control::UAV::PX4::Task::consume(), Transports::Seatrac::Task::consume(), Actuators::MCD4R::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Transports::Radio::Task::controlPower(), Transports::Cache::Task::copySnapshot(), Sensors::IFOG::Task::decodeFrame(), Control::ROV::Depth::Task::depthControl(), Control::AUV::Attitude::Task::depthControl(), Supervisors::Vehicle::Task::disableLoops(), DUNE::Navigation::BeamFilter::dispatch(), dispatch(), Maneuver::VehicleFormation::Coordinator::Task::dispatchAlias(), Maneuver::VehicleFormation::FormCollAvoid::Task::dispatchAlias(), Control::AUV::Allocator::Task::dispatchAllFins(), Power::BATMANv2::Task::dispatchData(), Sensors::OEMX::Task::dispatchData(), Sensors::MetrecX::Task::dispatchDepth(), Supervisors::AUV::Assist::Task::dispatchDislodge(), Maneuver::VehicleFormation::FormCollAvoid::Task::dispatchLeader(), Sensors::MetrecX::Task::dispatchPH(), Power::APD::Task::dispatchPowerChannelStates(), Power::CPMB::Task::dispatchPowerChannelStates(), Power::CPMBv2::Task::dispatchPowerChannelStates(), Power::LUEMB::Task::dispatchPowerChannelStates(), Sensors::MetrecX::Task::dispatchRedox(), dispatchReply(), Actuators::MCD4R::Task::dispatchState(), Control::AUV::Speed::Task::dispatchThrust(), Sensors::MetrecX::Task::dispatchValue(), Autonomy::OnEvent::Task::fire(), Transports::DataStore::Router::forwardCommandsAcoustic(), Transports::DataStore::Router::forwardCommandsWifi(), Control::ROV::RemoteOperation::Task::forwardControl(), Sensors::MLBL::Task::fullAcousticReport(), Power::APD::Task::getMonitors(), Power::CPMB::Task::getMonitors(), Power::CPMBv2::Task::getMonitors(), Power::LUEMB::Task::getMonitors(), Actuators::LED4R::Task::getMonitors(), Autonomy::TextActions::Task::handleAbortCommand(), Transports::Seatrac::Task::handleAcousticInformation(), Transports::Seatrac::Task::handleAhrsData(), Control::UAV::PX4::Task::handleAttitudePacket(), Control::UAV::Ardupilot::Task::handleAttitudePacket(), Sensors::MLBL::Task::handleBinaryMessage(), Sensors::MLBLTracker::Task::handleBinaryReception(), Autonomy::TextActions::Task::handleChangeNumCommand(), DUNE::Tasks::SimpleTransport::handleData(), Control::UAV::PX4::Task::handleExtendedStatePacket(), Control::UAV::PX4::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::PX4::Task::handleHUDPacket(), Control::UAV::Ardupilot::Task::handleHUDPacket(), Control::UAV::PX4::Task::handleHWStatusPacket(), Control::UAV::Ardupilot::Task::handleHWStatusPacket(), Control::UAV::PX4::Task::handleImuRaw(), Control::UAV::Ardupilot::Task::handleImuRaw(), Transports::Iridium::Task::handleIridiumCommand(), Sensors::MLBL::Task::handleMiniPacket(), Sensors::MLBLTracker::Task::handleMiniPacketEcho(), Sensors::MLBLTracker::Task::handleMiniPacketReception(), Control::UAV::PX4::Task::handleNavControllerPacket(), Control::UAV::Ardupilot::Task::handleNavControllerPacket(), Sensors::MLBL::Task::handlePingReply(), Autonomy::TextActions::Task::handlePlanGeneratorCommand(), Control::UAV::PX4::Task::handlePositionPacket(), Transports::Seatrac::Task::handlePressureSensor(), Sensors::MLBLTracker::Task::handleRangeInProgress(), Sensors::MLBLTracker::Task::handleRangeModem(), Sensors::MLBLTracker::Task::handleRangeTransponder(), Autonomy::TextActions::Task::handleRebootCommand(), Transports::Seatrac::Task::handleRxMessage(), Transports::IridiumSBD::Task::handleSBD(), Control::UAV::PX4::Task::handleScaledPressurePacket(), Control::UAV::Ardupilot::Task::handleScaledPressurePacket(), Autonomy::TextActions::Task::handleStartCommand(), Control::UAV::PX4::Task::handleStatusTextPacket(), Control::UAV::Ardupilot::Task::handleStatusTextPacket(), Control::UAV::PX4::Task::handleSystemStatusPacket(), Control::UAV::Ardupilot::Task::handleSystemStatusPacket(), Control::UAV::PX4::Task::handleSystemTimePacket(), Control::UAV::Ardupilot::Task::handleSystemTimePacket(), Sensors::MLBL::Task::handleTransponderTravelTimes(), Transports::Iridium::Task::handleUpdates(), Control::UAV::PX4::Task::handleWindPacket(), Control::UAV::Ardupilot::Task::handleWindPacket(), Control::AUV::Attitude::Task::headingControl(), Transports::DataStore::Router::iridiumUpload(), 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(), DUNE::Tasks::Manager::measureCpuUsage(), 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(), Supervisors::PowerManager::Task::onMain(), Actuators::PWM::Task::onMain(), Plan::Generator::Task::onMain(), Transports::Replay::Task::onMain(), Autonomy::TREX::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Transports::CommManager::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Plan::Engine::Task::onMain(), Navigation::AUV::Navigation::Task::onReportEntityState(), Sensors::CyclopsC7::Task::onRequestActivation(), Vision::UI2210MGL::Task::onRequestActivation(), Vision::DFK51BG02H::Task::onRequestActivation(), Sensors::Imagenex881A::Task::onRequestActivation(), Transports::UDP::Task::onResourceAcquisition(), Control::UAV::PX4::Task::onResourceAcquisition(), Control::UAV::Ardupilot::Task::onResourceAcquisition(), Transports::Iridium::Task::onResourceInitialization(), Transports::UAN::Task::onResourceInitialization(), Sensors::MLBLTracker::Task::onResourceInitialization(), Transports::Radio::Task::onResourceInitialization(), Supervisors::Reporter::Task::onUpdateParameters(), Simulators::UAV::Task::onUpdateParameters(), DUNE::Navigation::UsblTools::Node::parse(), Sensors::Microstrain3DMGX1::Task::parse(), Navigation::AUV::Ranger::Task::ping(), Sensors::MLBLTracker::Task::ping(), Sensors::AIS::Task::process(), Transports::DataStore::Task::process(), Sensors::MLBLTracker::Task::process(), Sensors::DMS::Task::processInput(), Sensors::SADC::Task::processInput(), Sensors::MLBL::Task::processInput(), Sensors::DMS::Task::processValueOfDMSChannel(), Transports::LogBook::Task::provide(), Simulators::AcousticModem::Task::readData(), Transports::Discovery::Task::readMessage(), Transports::Seatrac::Task::readSentence(), Transports::UAN::Task::recvAbort(), Transports::UAN::Task::recvMessage(), Transports::UAN::Task::recvPlanControl(), Transports::UAN::Task::recvReport(), Transports::UAN::Task::recvRestartSystem(), Autonomy::TextActions::Task::reply(), Monitors::Entities::Task::reportState(), DUNE::Navigation::BasicNavigation::reportToBus(), Control::ROV::Depth::Task::reset(), Control::AUV::Speed::Task::reset(), Autonomy::TREX::Task::resetAuxCpu(), Sensors::MLBLTracker::Task::reverseRange(), Transports::DataStore::Router::routeOverAcoustic(), Transports::DataStore::Router::routeOverWifi(), DUNE::Navigation::BasicNavigation::runKalmanLBL(), Supervisors::Entities::Task::sendActivation(), Power::OPCON::Task::sendActiveParameter(), Transports::Iridium::Task::sendAnnounce(), DUNE::Hardware::HayesModem::sendAT(), Sensors::MLBLTracker::Task::sendCommand(), Transports::Seatrac::Task::sendCommand(), Navigation::AUV::Navigation::Task::sendDeActiveIMU(), Transports::Iridium::Task::sendDeviceUpdates(), Transports::UAN::Task::sendFrame(), Sensors::DataStore::Task::sendHistoricMessages(), Monitors::Emergency::Task::sendSMS(), Transports::GSM::Task::sendSmsStatus(), Transports::IridiumSBD::Task::sendTxRequestStatus(), Transports::Seatrac::Task::sendTxStatus(), Transports::CommManager::Task::sendViaSatellite(), Transports::CommManager::Task::sendViaSms(), Plan::Engine::Task::setInitialState(), DUNE::Hardware::HayesModem::setRSSI(), 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::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(), Supervisors::Vehicle::Task::task(), Sensors::Microstrain3DMGX3::Task::task(), Simulators::UAV::Task::task(), Autonomy::OnEvent::Task::transmit(), Sensors::MLBLTracker::Task::transmitMessage(), Vision::PhotoTrigger::Task::trigger(), Control::UAV::RemoteOperation::Task::update(), Monitors::Medium::Task::updateStateMachine(), Plan::Engine::Task::vehicleRequest(), and Monitors::Medium::Task::waterMediumCheck().
|
inline |
Dispatch message to the message bus.
[in] | msg | message reference. |
[in] | flags | bitfield with flags (see DispatchFlags). |
References dispatch().
|
inline |
Dispatch message to the message bus in reply to another message.
[in] | original | original message. |
[in] | msg | message reference. |
[in] | flags | bitfield with flags (see DispatchFlags). |
References dispatch(), DUNE::IMC::Message::getSource(), DUNE::IMC::Message::getSourceEntity(), DUNE::IMC::Message::setDestination(), and DUNE::IMC::Message::setDestinationEntity().
Referenced by Navigation::AUV::Ranger::Task::consume(), Supervisors::Reporter::Task::consume(), Actuators::LED4R::Task::consume(), Power::LUEMB::Task::consume(), DUNE::Navigation::UsblTools::Node::consume(), Sensors::MLBL::Task::consume(), Sensors::MLBLTracker::Task::handleMiniPacketReception(), and onQueryEntityParameters().
|
virtual |
Send an human-readable error message to all configured output channels and files.
format | string 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(), Sensors::SADC::Task::checkDataSADC(), Transports::SerialOverTCP::Task::checkMainSocket(), Sensors::DMS::Task::checkSerialPort(), Sensors::SADC::Task::checkSerialPort(), Sensors::SADC::Task::config_SADC(), Sensors::DMS::Task::configDMS(), DUNE::Control::BasicAutopilot::consume(), Transports::LogBook::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Transports::Replay::Task::consume(), Transports::LoggingDigest::Task::consume(), Monitors::Entities::Task::consume(), Supervisors::Vehicle::Task::consume(), Plan::Engine::Task::consume(), Power::OPCON::Task::consume(), Vision::Lumenera::Task::consume(), Transports::Seatrac::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(), Control::UAV::Ardupilot::Task::handleScaledPressurePacket(), Transports::Radio::Task::hardwareUpdateStateMachine(), Sensors::MLBLTracker::Task::hasTransducer(), Power::BATMANv2::DriverBatMan::haveNewData(), Sensors::OEMX::DriverOEMX::haveNewData(), Sensors::OEMX::DriverOEMX::initCTD(), initializeResources(), loadConfig(), Actuators::PWM::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Plan::Engine::Task::onMain(), Sensors::MLBLTracker::Task::onResourceAcquisition(), Sensors::AIM104MultiIO::Task::onResourceInitialization(), Transports::Seatrac::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::Microstrain3DMGX1::Task::parse(), Sensors::MLBLTracker::Task::process(), Sensors::DMS::Task::processInput(), Sensors::SADC::Task::processInput(), Sensors::MLBL::Task::processInput(), Control::UAV::PX4::Task::receiveData(), Control::UAV::Ardupilot::Task::receiveData(), Transports::UAN::Task::recvMessage(), Vision::UI2210MGL::CaptureUeye::setAOI(), Monitors::OperationalLimits::Task::setError(), DUNE::Network::FragmentedMessage::setFragment(), Monitors::Clock::Task::setTime(), Sensors::MTi::Task::setup(), Monitors::Entities::Task::setupDefaults(), Sensors::MetrecX::Task::setupInternal(), 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 Vision::UI2210MGL::CaptureUeye::~CaptureUeye().
|
inline |
Retrieve the task's activation time.
Referenced by Vision::Lumenera::Task::checkActivationProgress(), Sensors::Imagenex881A::Task::checkActivationProgress(), Vision::Lumenera::Task::onRequestActivation(), and Sensors::Imagenex881A::Task::onUpdateParameters().
|
inline |
Retrieve the task's deactivation time.
Referenced by Vision::Lumenera::Task::onRequestDeactivation().
|
inline |
Get current debug level.
|
inline |
Retrieve the main entity identifier of the task.
References DUNE::Entities::BasicEntity::getId().
Referenced by Supervisors::Vehicle::Task::changeMode(), DUNE::Daemon::consume(), Navigation::AUV::Ranger::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Simulators::AcousticModem::Task::consume(), Plan::DB::Task::consume(), Transports::IridiumSBD::Task::consume(), Transports::LoggingDigest::Task::consume(), Sensors::Microstrain3DMGX1::Task::consume(), Monitors::OperationalLimits::Task::consume(), Transports::GSM::Task::consume(), Sensors::Microstrain3DMGX3::Task::consume(), Sensors::OS4000::Task::consume(), Plan::Engine::Task::consume(), Transports::UAN::Task::consume(), DUNE::Navigation::UsblTools::Node::consume(), Transports::Seatrac::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), dispatch(), Sensors::MetrecX::Task::dispatchValue(), DUNE::Tasks::Manager::measureCpuUsage(), Plan::Engine::Task::parseArg(), Transports::DataStore::Task::process(), Transports::IridiumSBD::Task::processQueue(), Transports::UAN::Task::replaceLastOp(), and Autonomy::OnEvent::Task::transmit().
|
inline |
Retrieve the main entity label of the task.
References DUNE::Entities::BasicEntity::getLabel().
Referenced by Transports::UAN::Task::announceUSBL(), Sensors::Microstrain3DMGX1::Task::consume(), Sensors::Microstrain3DMGX3::Task::consume(), Transports::Seatrac::Task::consume(), Sensors::MetrecX::Task::dispatchValue(), DUNE::Control::PathController::onEntityReservation(), Actuators::LED4R::Task::onEntityReservation(), Actuators::MCD4R::Task::onEntityReservation(), Sensors::MetrecX::Task::onEntityReservation(), onPopEntityParameters(), onPushEntityParameters(), onQueryEntityParameters(), Transports::UAN::Task::onResourceInitialization(), Sensors::MLBLTracker::Task::onResourceInitialization(), Transports::Radio::Task::onResourceInitialization(), onSetEntityParameters(), Sensors::MetrecX::Task::onUpdateParameters(), and writeParamsXML().
|
inlineprotected |
Retrieve the current entity state.
References DUNE::Entities::StatefulEntity::getState().
Referenced by Vision::Lumenera::Task::checkActivationProgress(), Vision::Lumenera::Task::checkCaptureOk(), DUNE::Control::BasicAutopilot::consume(), Sensors::OS4000::Task::consume(), Plan::Engine::Task::consume(), Control::UAV::Ardupilot::Task::loiterHere(), Monitors::Clock::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Plan::Engine::Task::onMain(), Plan::Engine::Task::processRequest(), and Monitors::FuelLevel::Task::task().
|
protected |
Retrieve pointer to a previously stored entity object object.
[in] | label | entity name/label. |
References m_entities.
|
inlinevirtual |
Retrieve the task's name.
Implements DUNE::Tasks::AbstractTask.
Referenced by loadConfig(), onSetEntityParameters(), reserveEntities(), and reserveEntity().
|
inline |
Get scheduling priority.
The priority of a task might change when configuration parameters are updated.
|
inline |
Retrieve the system's identifier.
References DUNE::IMC::AddressResolver::id(), m_ctx, and DUNE::Tasks::Context::resolver.
Referenced by Transports::DataStore::DataStore::addData(), Power::OPCON::Task::checkPowerOff(), DUNE::Hardware::BasicDeviceDriver::consume(), DUNE::Control::BasicAutopilot::consume(), DUNE::Daemon::consume(), Transports::CommManager::Task::consume(), Navigation::AUV::Ranger::Task::consume(), Control::AntennaTracker::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Supervisors::UAV::LostComms::Task::consume(), Sensors::EmulatedGPS::Task::consume(), Simulators::AcousticModem::Task::consume(), Monitors::Clock::Task::consume(), Supervisors::AUV::LostComms::Task::consume(), Plan::Generator::Task::consume(), Vision::PhotoTrigger::Task::consume(), Transports::Replay::Task::consume(), Monitors::Entities::Task::consume(), Supervisors::AUV::Assist::Task::consume(), Autonomy::TREX::Task::consume(), Transports::IridiumSBD::Task::consume(), Transports::Announce::Task::consume(), Monitors::Medium::Task::consume(), Plan::DB::Task::consume(), Transports::UAN::Task::consume(), Supervisors::Vehicle::Task::consume(), Monitors::Emergency::Task::consume(), Control::AUV::RemoteOperation::Task::consume(), Plan::Engine::Task::consume(), Transports::GSM::Task::consume(), Vision::UI2210MGL::Task::consume(), Control::AUV::Speed::Task::consume(), Sensors::MetrecX::Task::consume(), Monitors::FuelLevel::Task::consume(), Control::ROV::RemoteOperation::Task::consume(), Monitors::OperationalLimits::Task::consume(), Transports::UDP::Task::consume(), Transports::Radio::Task::consume(), Vision::Lumenera::Task::consume(), Control::AUV::Allocator::Task::consume(), Navigation::AUV::Navigation::Task::consume(), Vision::DFK51BG02H::Task::consume(), Power::OPCON::Task::consume(), DUNE::Navigation::UsblTools::Node::consume(), Simulators::UAV::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Transports::Seatrac::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Sensors::MLBL::Task::consume(), dispatch(), Autonomy::OnEvent::Task::fire(), Autonomy::TextActions::Task::handleAbortCommand(), Sensors::MLBL::Task::handleMiniPacket(), Transports::IridiumSBD::Task::handleSBD(), Transports::DataStore::Router::iridiumUpload(), 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(), Sensors::DMS::Task::processInput(), Sensors::SADC::Task::processInput(), Transports::IridiumSBD::Task::processQueue(), Sensors::DMS::Task::processValueOfDMSChannel(), Simulators::AcousticModem::Task::readData(), Transports::UAN::Task::recvAbort(), Transports::UAN::Task::replaceLastOp(), Transports::DataStore::Router::routeOverAcoustic(), Transports::Iridium::Task::sendAnnounce(), Transports::Iridium::Task::sendDeviceUpdates(), Transports::UAN::Task::sendFrame(), Transports::CommManager::Task::sendViaSatellite(), DUNE::Control::PathController::sourceFilter(), Transports::LoggingDigest::Task::startLog(), Simulators::UAV::Task::task(), and Autonomy::OnEvent::Task::transmit().
|
inline |
Retrieve the system's name.
References m_ctx, DUNE::IMC::AddressResolver::name(), and DUNE::Tasks::Context::resolver.
Referenced by Vision::Lumenera::EntityActivationMaster::addEntity(), Monitors::Emergency::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Transports::Seatrac::Task::consume(), Autonomy::TREX::Task::onMain(), Transports::Radio::Task::onRequestActivation(), Plan::DB::Task::onResourceAcquisition(), Transports::Seatrac::Task::onResourceInitialization(), Sensors::MLBL::Task::onResourceInitialization(), Transports::Announce::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), DUNE::Navigation::UsblTools::Node::parse(), Simulators::AcousticModem::Task::readData(), Transports::Iridium::Task::sendAnnounce(), Monitors::Emergency::Task::sendSMS(), Maneuver::VehicleFormation::Test::Task::task(), Maneuver::VehicleFormation::Coordinator::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::task(), and DUNE::Daemon::writeParamsXML().
|
virtual |
Send an human-readable informational message to all configured output channels and files.
format | string format (similar to printf(3)). |
... | arguments. |
Reimplemented from DUNE::Tasks::AbstractTask.
References DUNE::IMC::LogBookEntry::LBET_INFO.
Referenced by Transports::DataStore::Task::acousticRouting(), Monitors::Entities::Task::activate(), Transports::CommManager::Task::answer(), Plan::DB::Task::answer(), Plan::Engine::Task::answer(), Control::UAV::Ardupilot::Task::autoLand(), Control::UAV::Ardupilot::Task::autoTakeoff(), Vision::Lumenera::Task::captureAndSave(), Plan::Engine::Task::changeMode(), Vision::Lumenera::Task::checkConfiguration(), Transports::SerialOverTCP::Task::checkMainSocket(), Sensors::SADC::Task::config_SADC(), Sensors::DMS::Task::configDMS(), DUNE::Tasks::SimpleTransport::consume(), DUNE::Daemon::consume(), Transports::LogBook::Task::consume(), DUNE::Control::PathController::consume(), Autonomy::TextActions::Task::consume(), Monitors::Entities::Task::consume(), Transports::DataStore::Task::consume(), Plan::Generator::Task::consume(), Maneuver::VehicleFormation::Test::Task::consume(), Transports::Iridium::Task::consume(), Autonomy::TREX::Task::consume(), Monitors::OperationalLimits::Task::consume(), Transports::GSM::Task::consume(), Supervisors::Vehicle::Task::consume(), Control::UAV::PX4::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Transports::Seatrac::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), DUNE::Daemon::Daemon(), Transports::IridiumSBD::Task::dequeueTxRequest(), Monitors::Entities::Task::disable(), Sensors::OEMX::Task::dispatchData(), Monitors::Entities::Task::enable(), Transports::DataStore::Router::forwardCommandsAcoustic(), Transports::DataStore::Router::forwardCommandsWifi(), Plan::Generator::Task::generate(), Sensors::OEMX::Task::getInfoOfCTD(), Sensors::MLBL::Task::handleBinaryMessage(), Sensors::MLBLTracker::Task::handleBinaryReception(), DUNE::Tasks::SimpleTransport::handleData(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Transports::Iridium::Task::handleIridiumCommand(), Sensors::MLBL::Task::handleMiniPacket(), Sensors::MLBLTracker::Task::handleMiniPacketReception(), Autonomy::TextActions::Task::handleStartCommand(), Control::UAV::PX4::Task::handleStatusTextPacket(), Control::UAV::Ardupilot::Task::handleStatusTextPacket(), Transports::Iridium::Task::handleUpdates(), Control::UAV::Ardupilot::Task::info(), Power::BATMANv2::Task::initBoard(), Transports::DataStore::Router::iridiumUpload(), Autonomy::TREX::Task::onActivation(), Sensors::Imagenex881A::Task::onActivation(), Vision::Lumenera::Task::onActivation(), Autonomy::TREX::Task::onDeactivation(), Sensors::Imagenex881A::Task::onDeactivation(), Vision::Lumenera::Task::onDeactivation(), Sensors::MLBL::Task::onEntityResolution(), Sensors::GillWindObserverII::Task::onMain(), Transports::CommManager::Task::onMain(), Maneuver::VehicleFormation::FormCollAvoid::Task::onRequestActivation(), Plan::DB::Task::onResourceAcquisition(), Sensors::IFOG::Task::onResourceAcquisition(), Transports::GSM::Task::onResourceAcquisition(), Actuators::LED4R::Task::onResourceAcquisition(), Power::APD::Task::onResourceAcquisition(), Power::CPMB::Task::onResourceAcquisition(), Power::CPMBv2::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Power::LUEMB::Task::onResourceAcquisition(), Actuators::MCD4R::Task::onResourceAcquisition(), Simulators::UAV::Task::onResourceAcquisition(), DUNE::Daemon::onResourceInitialization(), Transports::Discovery::Task::onResourceInitialization(), Control::AntennaTracker::Task::onUpdateParameters(), Control::UAV::PX4::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Control::UAV::PX4::Task::openConnection(), Control::UAV::Ardupilot::Task::openConnection(), Maneuver::VehicleFormation::FormCollAvoid::Task::printState(), Transports::GSM::Task::processQueue(), Plan::Engine::Task::processRequest(), Transports::Discovery::Task::readMessage(), Transports::UAN::Task::recvAbort(), Transports::UDP::Task::refreshContacts(), Autonomy::TextActions::Task::reply(), Sensors::Microstrain3DMGX3::Task::runCalibration(), Sensors::MLBLTracker::Task::sendCommand(), Monitors::Emergency::Task::sendSMS(), Transports::CommManager::Task::sendViaSatellite(), Transports::CommManager::Task::sendViaSms(), Sensors::Microstrain3DMGX3::Task::setHardIron(), Sensors::Microstrain3DMGX1::Task::setHardIron(), Autonomy::TextActions::Task::splitCommand(), DUNE::Tasks::Manager::start(), Supervisors::Vehicle::Task::startCalibration(), Autonomy::TREX::Task::startExecution(), Navigation::AUV::Navigation::Task::startSpeedModel(), Vision::Lumenera::Task::startVideo(), Vision::UI2210MGL::CaptureUeye::stopCapture(), Autonomy::TREX::Task::stopExecution(), Sensors::SW100::Task::task(), Supervisors::Vehicle::Task::task(), Control::ROV::RemoteOperation::Task::toggleWallTracker(), Transports::DataStore::Task::wifiRouting(), 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().
|
inlineprotected |
Test if task is activating.
References DUNE::Entities::StatefulEntity::isActivating().
Referenced by Sensors::CyclopsC7::Task::consume(), Vision::DFK51BG02H::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::isControlActive(), Sensors::Imagenex881A::Task::onMain(), Vision::Lumenera::Task::onMain(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::setLeaderState(), Maneuver::VehicleFormation::Test::Task::task(), and Maneuver::VehicleFormation::FormCollAvoid::Task::task().
|
inlineprotected |
Test if task is active.
References DUNE::Entities::StatefulEntity::isActive().
Referenced by 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(), Sensors::CyclopsC7::Task::consume(), Control::AUV::Speed::Task::consume(), Control::AUV::Allocator::Task::consume(), Simulators::UAV::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Sensors::MLBL::Task::consume(), DUNE::Maneuvers::Maneuver::consumeIfActive(), Autonomy::OnEvent::Task::fire(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Vision::UAVCamera::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Navigation::AUV::Ranger::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Vision::UI2210MGL::Task::onMain(), Transports::Iridium::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::Radio::Task::onMain(), Vision::Lumenera::Task::onMain(), Sensors::MLBL::Task::onMain(), Monitors::Emergency::Task::onResourceInitialization(), Simulators::AcousticModem::Task::onUpdateParameters(), Vision::Lumenera::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Sensors::MLBL::Task::processInput(), Transports::Seatrac::Task::processInput(), Transports::IridiumSBD::Task::processQueue(), Monitors::Emergency::Task::sendDistress(), Transports::Replay::Task::startReplay(), Simulators::UAVAutopilot::Task::task(), Maneuver::VehicleFormation::Test::Task::task(), Supervisors::UAV::LostComms::Task::task(), Supervisors::AUV::LostComms::Task::task(), Simulators::UAV::Task::task(), Maneuver::VehicleFormation::Coordinator::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::task(), Autonomy::TREX::Task::updateEntityState(), Monitors::Medium::Task::updateStateMachine(), and Monitors::Medium::Task::waterMediumCheck().
|
inlineprotected |
Test if task is deactivating.
References DUNE::Entities::StatefulEntity::isDeactivating().
Referenced by Vision::Lumenera::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::isControlActive(), and Vision::Lumenera::Task::onMain().
void DUNE::Tasks::Task::loadConfig | ( | void | ) |
Load parameters from context's configuration.
References DUNE::Tasks::ParameterTable::begin(), DUNE::Tasks::Context::config, DUNE::Tasks::ParameterTable::end(), err(), DUNE::Tasks::ParameterTable::find(), DUNE::Parsers::Config::get(), DUNE::Tasks::RestartNeeded::getError(), getName(), DUNE::Parsers::Config::getSection(), m_ctx, DUNE::Tasks::ParameterTable::set(), and updateParameters().
|
inlineprotectedvirtual |
Called when the task starts/resumes normal execution.
Reimplemented in Vision::Lumenera::Task, Sensors::Imagenex881A::Task, Vision::DFK51BG02H::Task, Vision::UI2210MGL::Task, Control::ROV::RemoteOperation::Task, Autonomy::TREX::Task, Sensors::IFOG::Task, Control::AUV::Allocator::Task, Autonomy::OnEvent::Task, Control::AUV::Speed::Task, Monitors::Emergency::Task, Transports::IridiumSBD::Task, Control::AUV::RemoteOperation::Task, DUNE::Control::BasicAutopilot, Transports::Iridium::Task, DUNE::Control::BasicUAVAutopilot, Control::UAV::RemoteOperation::Task, Navigation::AUV::Ranger::Task, DUNE::Maneuvers::Maneuver, and Control::ASV::RemoteOperation::Task.
References spew().
Referenced by activate().
|
inlineprotectedvirtual |
Called when the task stops normal execution and enters an idleness state.
Reimplemented in Vision::Lumenera::Task, Sensors::Imagenex881A::Task, Vision::DFK51BG02H::Task, Vision::UI2210MGL::Task, Control::ROV::RemoteOperation::Task, Autonomy::TREX::Task, Sensors::IFOG::Task, Control::AUV::Allocator::Task, Sensors::CyclopsC7::Task, Autonomy::OnEvent::Task, Control::AUV::Speed::Task, Control::AUV::RemoteOperation::Task, Monitors::Emergency::Task, Transports::IridiumSBD::Task, DUNE::Control::BasicAutopilot, Transports::Iridium::Task, Supervisors::AUV::LostComms::Task, Control::UAV::RemoteOperation::Task, DUNE::Control::BasicUAVAutopilot, Navigation::AUV::Ranger::Task, DUNE::Maneuvers::Maneuver, and Control::ASV::RemoteOperation::Task.
References spew().
Referenced by deactivate().
|
inlineprotectedvirtual |
Called when the task is instructed to reserve all the entity identifiers it needs for normal execution.
See reserveEntity(). Derived classes that need to reserve entity identifiers other than that of the main entity should override this function.
Reimplemented in Control::AUV::Attitude::Task, Transports::Radio::Task, Sensors::MetrecX::Task, Actuators::MCD4R::Task, Control::ROV::RemoteOperation::Task, Power::LUEMB::Task, Control::ROV::HorizontalPlane::Task, Power::CPMBv2::Task, Power::CPMB::Task, Power::APD::Task, Power::BATMANv2::Task, Actuators::LED4R::Task, Sensors::SADC::Task, Sensors::AIM104MultiIO::Task, Sensors::DMS::Task, Control::ROV::Depth::Task, Control::Path::ILOS::Task, Transports::Replay::Task, Autonomy::TREX::Task, Control::Path::VectorField::Task, Supervisors::PowerManager::Task, DUNE::Control::PathController, DUNE::Maneuvers::Maneuver, and Control::Path::PurePursuit::Task.
Referenced by reserveEntities().
|
inlineprotectedvirtual |
Called when the task is instructed to resolve all the entity identifiers it needs for normal execution.
See resolveEntity(). Derived classes that need to resolve entity identifiers should override this function.
Reimplemented in Maneuver::VehicleFormation::FormCollAvoid::Task, Maneuver::VehicleFormation::Coordinator::Task, Sensors::MLBL::Task, Transports::Radio::Task, Navigation::AUV::Navigation::Task, Control::AUV::Allocator::Task, Sensors::MetrecX::Task, Monitors::FuelLevel::Task, Control::ROV::RemoteOperation::Task, Plan::Engine::Task, Monitors::Medium::Task, Maneuver::VehicleFormation::Test::Task, Power::OPCON::Task, Monitors::Entities::Task, Sensors::CyclopsC7::Task, DUNE::Navigation::BasicNavigation, Sensors::DataStore::Task, Navigation::General::GPSNavigation::Task, Supervisors::PowerManager::Task, and DUNE::Control::ProxyPathController.
Referenced by DUNE::Control::ProxyPathController::onEntityResolution(), and resolveEntities().
|
protectedpure virtual |
Implemented in Control::UAV::Ardupilot::Task, Sensors::MLBL::Task, Transports::Seatrac::Task, Plan::Engine::Task, Sensors::MLBLTracker::Task, Vision::Lumenera::Task, Transports::UAN::Task, Sensors::Microstrain3DMGX1::Task, Control::UAV::PX4::Task, Sensors::MetrecX::Task, Control::AUV::Allocator::Task, Transports::Radio::Task, Sensors::Imagenex881A::Task, Plan::DB::Task, Actuators::MCD4R::Task, Sensors::SADC::Task, Control::AUV::Speed::Task, Power::BATMANv2::Task, Autonomy::TextActions::Task, Monitors::Entities::Task, Power::LUEMB::Task, Power::OPCON::Task, Vision::DFK51BG02H::Task, Transports::CommManager::Task, Actuators::LED4R::Task, Transports::Announce::Task, Transports::Iridium::Task, Sensors::DMS::Task, Sensors::OEMX::Task, Transports::UDP::Task, Sensors::MTi::Task, Transports::IridiumSBD::Task, Sensors::OS4000::Task, Sensors::XR620CTD::Task, Transports::GSM::Task, Transports::DataStore::Task, Power::CPMBv2::Task, Power::CPMB::Task, Autonomy::TREX::Task, Power::APD::Task, Vision::UI2210MGL::Task, Sensors::IFOG::Task, Transports::Replay::Task, Autonomy::OnEvent::Task, Sensors::CyclopsC7::Task, DUNE::Control::PathController, DUNE::Maneuvers::Maneuver, Transports::Cache::Task, Transports::LoggingDigest::Task, Sensors::DataStore::Task, Sensors::EmulatedGPS::Task, Plan::Generator::Task, Navigation::General::GPSNavigation::Task, Transports::SerialOverTCP::Task, Monitors::Clock::Task, Sensors::AIS::Task, Transports::Discovery::Task, Sensors::WifiRSSI::Task, Actuators::PWM::Task, Navigation::AUV::Ranger::Task, Simulators::AcousticModem::Task, Supervisors::Reporter::Task, Vision::PhotoTrigger::Task, Supervisors::PowerManager::Task, Control::AntennaTracker::Task, Sensors::XchangeSV::Task, Transports::LogBook::Task, Vision::UAVCamera::Task, Transports::Fragments::Task, Sensors::MiniSVS::Task, DUNE::Control::BasicAutopilot, Sensors::GillWindObserverII::Task, DUNE::Daemon, DUNE::Control::BasicUAVAutopilot, and DUNE::Tasks::SimpleTransport.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
References DUNE::Tasks::ParameterTable::begin(), dispatchReply(), DUNE::Tasks::ParameterTable::end(), getEntityLabel(), DUNE::IMC::EntityParameter::name, DUNE::IMC::EntityParameters::name, DUNE::IMC::QueryEntityParameters::name, DUNE::IMC::EntityParameters::params, and DUNE::IMC::EntityParameter::value.
|
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.
|
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, Sensors::Imagenex881A::Task, Vision::DFK51BG02H::Task, Transports::Radio::Task, Vision::Lumenera::Task, Vision::UI2210MGL::Task, and Sensors::CyclopsC7::Task.
References activate(), and spew().
Referenced by requestActivation().
|
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, Transports::Radio::Task, and Vision::Lumenera::Task.
References deactivate(), and spew().
Referenced by requestDeactivation().
|
inlineprotectedvirtual |
Called when the task is instructed to acquire resources whose configuration is defined by run-time parameters.
Reimplemented in Maneuver::VehicleFormation::FormCollAvoid::Task, Maneuver::VehicleFormation::Coordinator::Task, Sensors::MLBL::Task, Control::UAV::Ardupilot::Task, Transports::Radio::Task, Sensors::MetrecX::Task, Sensors::Imagenex881A::Task, Transports::Seatrac::Task, Simulators::UAV::Task, Control::AUV::Attitude::Task, Actuators::MCD4R::Task, Vision::Lumenera::Task, Control::UAV::PX4::Task, Vision::DFK51BG02H::Task, Sensors::MLBLTracker::Task, Control::ROV::RemoteOperation::Task, Power::LUEMB::Task, Monitors::FuelLevel::Task, Sensors::Microstrain3DMGX3::Task, Plan::Engine::Task, Transports::UDP::Task, Vision::UI2210MGL::Task, Power::CPMBv2::Task, Power::CPMB::Task, Power::BATMANv2::Task, Power::APD::Task, Actuators::LED4R::Task, Sensors::SADC::Task, Sensors::Microstrain3DMGX1::Task, Transports::GSM::Task, Transports::UAN::Task, Sensors::CyclopsC7::Task, Sensors::IFOG::Task, Sensors::OS4000::Task, Maneuver::VehicleFormation::Test::Task, Sensors::DMS::Task, Sensors::OEMX::Task, Sensors::XR620CTD::Task, Supervisors::AUV::Assist::Task, Monitors::Emergency::Task, Transports::IridiumSBD::Task, Supervisors::Vehicle::Task, Sensors::MTi::Task, Sensors::AIM104MultiIO::Task, Sensors::SW100::Task, Plan::DB::Task, Sensors::EmulatedGPS::Task, Vision::FrameGrabber::Task, Simulators::AcousticModem::Task, Simulators::UAVAutopilot::Task, Transports::Iridium::Task, Sensors::AIS::Task, Sensors::MiniSVS::Task, Supervisors::PowerManager::Task, Transports::SerialOverTCP::Task, Sensors::XchangeSV::Task, Sensors::GillWindObserverII::Task, DUNE::Control::BasicAutopilot, and DUNE::Control::BasicUAVAutopilot.
Referenced by acquireResources().
|
inlineprotectedvirtual |
Called when the task is instructed to initialize resources acquired previously or whose initialization depends on run-time parameters.
Reimplemented in Transports::Radio::Task, Sensors::MLBL::Task, Sensors::MetrecX::Task, Sensors::Imagenex881A::Task, Transports::Seatrac::Task, Transports::CommManager::Task, Sensors::MLBLTracker::Task, Actuators::MCD4R::Task, Vision::DFK51BG02H::Task, Navigation::AUV::Navigation::Task, Control::AUV::Attitude::Task, Power::LUEMB::Task, Sensors::Microstrain3DMGX3::Task, Vision::UI2210MGL::Task, Power::CPMBv2::Task, Control::AUV::Allocator::Task, Power::CPMB::Task, Plan::Engine::Task, Power::APD::Task, Power::BATMANv2::Task, Control::ROV::RemoteOperation::Task, Actuators::LED4R::Task, Sensors::SADC::Task, Transports::GSM::Task, Sensors::IFOG::Task, Sensors::OEMX::Task, Sensors::Microstrain3DMGX1::Task, Transports::UAN::Task, Monitors::Medium::Task, Control::AUV::Speed::Task, Sensors::OS4000::Task, Sensors::DMS::Task, Power::OPCON::Task, Autonomy::OnEvent::Task, Transports::DataStore::Task, Sensors::XR620CTD::Task, Control::ROV::HorizontalPlane::Task, Supervisors::AUV::Assist::Task, Transports::Announce::Task, Transports::IridiumSBD::Task, Monitors::Emergency::Task, Navigation::General::ROV::Task, Supervisors::Vehicle::Task, DUNE::Navigation::BasicNavigation, Sensors::WifiRSSI::Task, Control::AUV::LMI::Task, Sensors::DataStore::Task, Monitors::Entities::Task, Sensors::AIM104MultiIO::Task, Sensors::SW100::Task, Transports::SerialOverTCP::Task, Monitors::Clock::Task, Control::ROV::Depth::Task, Sensors::XchangeSV::Task, Supervisors::AUV::LostComms::Task, Vision::FrameGrabber::Task, DUNE::Control::PathController, Transports::Iridium::Task, Transports::LoggingDigest::Task, DUNE::Control::BasicRemoteOperation, Actuators::PWM::Task, Sensors::MiniSVS::Task, Supervisors::PowerManager::Task, Supervisors::Entities::Task, Transports::Cache::Task, Autonomy::TextActions::Task, Transports::Discovery::Task, Navigation::AUV::Ranger::Task, DUNE::Daemon, Transports::LogBook::Task, DUNE::Maneuvers::Maneuver, DUNE::Control::BasicAutopilot, and DUNE::Control::BasicUAVAutopilot.
Referenced by initializeResources().
|
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, Transports::Radio::Task, Transports::Seatrac::Task, Sensors::MLBL::Task, Control::UAV::Ardupilot::Task, Sensors::MetrecX::Task, Sensors::Imagenex881A::Task, Actuators::MCD4R::Task, Control::UAV::PX4::Task, Transports::CommManager::Task, Sensors::MLBLTracker::Task, Navigation::AUV::Navigation::Task, Control::AUV::Attitude::Task, Vision::Lumenera::Task, Simulators::UAV::Task, Vision::DFK51BG02H::Task, Transports::UDP::Task, Power::LUEMB::Task, Actuators::LED4R::Task, Power::CPMBv2::Task, Power::CPMB::Task, Sensors::Microstrain3DMGX1::Task, Power::APD::Task, Power::BATMANv2::Task, Sensors::SADC::Task, Control::ROV::RemoteOperation::Task, Monitors::FuelLevel::Task, Transports::GSM::Task, Control::AUV::Allocator::Task, Sensors::Microstrain3DMGX3::Task, Sensors::OEMX::Task, Vision::UI2210MGL::Task, Plan::Engine::Task, Transports::UAN::Task, Sensors::DMS::Task, Sensors::IFOG::Task, Sensors::CyclopsC7::Task, Maneuver::VehicleFormation::Test::Task, Sensors::OS4000::Task, Transports::IridiumSBD::Task, Plan::DB::Task, Sensors::XR620CTD::Task, Supervisors::AUV::Assist::Task, Sensors::AIM104MultiIO::Task, Navigation::General::ROV::Task, DUNE::Navigation::BasicNavigation, Monitors::Emergency::Task, Sensors::SW100::Task, Supervisors::Vehicle::Task, Sensors::AIS::Task, Actuators::PWM::Task, Sensors::MTi::Task, Vision::FrameGrabber::Task, Sensors::EmulatedGPS::Task, Transports::Iridium::Task, DUNE::Control::PathController, Simulators::AcousticModem::Task, Plan::Generator::Task, Sensors::MiniSVS::Task, Simulators::UAVAutopilot::Task, Transports::SerialOverTCP::Task, Supervisors::PowerManager::Task, Sensors::XchangeSV::Task, Sensors::GillWindObserverII::Task, DUNE::Control::BasicAutopilot, DUNE::Control::BasicUAVAutopilot, and Transports::Fragments::Task.
Referenced by releaseResources().
|
protectedvirtual |
|
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, Transports::Seatrac::Task, Sensors::MLBL::Task, Control::UAV::Ardupilot::Task, Maneuver::VehicleFormation::Coordinator::Task, Control::AUV::Attitude::Task, Control::UAV::PX4::Task, Transports::Radio::Task, Sensors::Imagenex881A::Task, Actuators::MCD4R::Task, Sensors::MetrecX::Task, Navigation::AUV::Navigation::Task, Vision::DFK51BG02H::Task, Control::ROV::RemoteOperation::Task, Vision::Lumenera::Task, Simulators::UAV::Task, Sensors::MLBLTracker::Task, Autonomy::TREX::Task, Monitors::FuelLevel::Task, Plan::Engine::Task, Sensors::OS4000::Task, Control::AUV::Speed::Task, Sensors::Microstrain3DMGX3::Task, Vision::UI2210MGL::Task, Control::AUV::Allocator::Task, Monitors::OperationalLimits::Task, Transports::UDP::Task, Actuators::LED4R::Task, Sensors::Microstrain3DMGX1::Task, Transports::GSM::Task, Power::LUEMB::Task, Sensors::IFOG::Task, Control::ROV::HorizontalPlane::Task, Power::CPMBv2::Task, Power::CPMB::Task, Transports::Announce::Task, Maneuver::VehicleFormation::Test::Task, Power::APD::Task, Autonomy::OnEvent::Task, Sensors::XR620CTD::Task, Supervisors::AUV::Assist::Task, Transports::DataStore::Task, Control::AUV::LMI::Task, Control::AUV::RemoteOperation::Task, Monitors::Emergency::Task, Control::ROV::Depth::Task, Transports::IridiumSBD::Task, DUNE::Navigation::BasicNavigation, Sensors::WifiRSSI::Task, Control::Path::LOSnSMC::Task, Vision::PhotoTrigger::Task, Control::Path::ILOS::Task, Navigation::General::ROV::Task, Sensors::CyclopsC7::Task, Transports::LoggingDigest::Task, Transports::Replay::Task, DUNE::Control::PathController, Navigation::General::GPSNavigation::Task, Supervisors::UAV::LostComms::Task, Vision::FrameGrabber::Task, Control::UAV::LOS::Task, Supervisors::Reporter::Task, Control::Path::VectorField::Task, Simulators::AcousticModem::Task, Sensors::DataStore::Task, Supervisors::Entities::Task, Transports::CommManager::Task, Control::AntennaTracker::Task, Control::UAV::RemoteOperation::Task, Simulators::UAVAutopilot::Task, Sensors::MiniSVS::Task, Navigation::AUV::Ranger::Task, Supervisors::PowerManager::Task, and Control::Path::PurePursuit::Task.
Referenced by updateParameters().
|
inlineprotectedvirtual |
Referenced by writeParamsXML().
|
inlineprotected |
Declare a configuration parameter that can be parsed using the basic parameter parser.
T | type of the destination variable. |
[in] | name | parameter name. |
[in] | var | variable that will hold the parameter value. |
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::UAV::RemoteOperation::Task::Task(), Sensors::GillWindObserverII::Task::Task(), Control::ASV::RemoteOperation::Task::Task(), Navigation::AUV::Ranger::Task::Task(), Sensors::DataStore::Task::Task(), Simulators::UAVAutopilot::Task::Task(), Transports::Cache::Task::Task(), Sensors::MiniSVS::Task::Task(), Sensors::XchangeSV::Task::Task(), Supervisors::Reporter::Task::Task(), Autonomy::TextActions::Task::Task(), Transports::SerialOverTCP::Task::Task(), Transports::Discovery::Task::Task(), Control::AntennaTracker::Task::Task(), Control::Path::VectorField::Task::Task(), Vision::UAVCamera::Task::Task(), Supervisors::Entities::Task::Task(), Transports::CommManager::Task::Task(), Transports::Iridium::Task::Task(), Transports::LoggingDigest::Task::Task(), Vision::FrameGrabber::Task::Task(), Simulators::AcousticModem::Task::Task(), Control::UAV::LOS::Task::Task(), Sensors::CyclopsC7::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Control::Path::ILOS::Task::Task(), Control::ROV::Depth::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Autonomy::TREX::Task::Task(), Actuators::PWM::Task::Task(), Vision::PhotoTrigger::Task::Task(), Control::AUV::RemoteOperation::Task::Task(), Plan::Generator::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Monitors::Emergency::Task::Task(), Sensors::AIS::Task::Task(), Control::AUV::LMI::Task::Task(), Monitors::Clock::Task::Task(), Sensors::SW100::Task::Task(), Maneuver::VehicleFormation::Test::Task::Task(), Autonomy::OnEvent::Task::Task(), Transports::Replay::Task::Task(), Supervisors::AUV::LostComms::Task::Task(), Sensors::DMS::Task::Task(), Control::ROV::HorizontalPlane::Task::Task(), Monitors::FuelLevel::Task::Task(), Transports::DataStore::Task::Task(), Monitors::Entities::Task::Task(), Navigation::General::ROV::Task::Task(), Sensors::MTi::Task::Task(), Sensors::SADC::Task::Task(), Supervisors::Vehicle::Task::Task(), Monitors::Medium::Task::Task(), Transports::Announce::Task::Task(), Power::CPMB::Task::Task(), Power::APD::Task::Task(), Plan::DB::Task::Task(), Supervisors::AUV::Assist::Task::Task(), Power::CPMBv2::Task::Task(), Power::BATMANv2::Task::Task(), Transports::UAN::Task::Task(), Control::AUV::Allocator::Task::Task(), Vision::UI2210MGL::Task::Task(), Task(), Control::ROV::RemoteOperation::Task::Task(), Control::AUV::Speed::Task::Task(), Monitors::OperationalLimits::Task::Task(), Transports::UDP::Task::Task(), Sensors::OS4000::Task::Task(), Power::OPCON::Task::Task(), Power::LUEMB::Task::Task(), Simulators::UAV::Task::Task(), Actuators::LED4R::Task::Task(), Plan::Engine::Task::Task(), Sensors::OEMX::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Transports::Radio::Task::Task(), Transports::GSM::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::Microstrain3DMGX1::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Control::AUV::Attitude::Task::Task(), Transports::Seatrac::Task::Task(), Sensors::MetrecX::Task::Task(), Sensors::MLBLTracker::Task::Task(), Control::UAV::PX4::Task::Task(), Vision::DFK51BG02H::Task::Task(), Maneuver::VehicleFormation::Coordinator::Task::Task(), Navigation::AUV::Navigation::Task::Task(), Sensors::Imagenex881A::Task::Task(), Control::UAV::Ardupilot::Task::Task(), Actuators::MCD4R::Task::Task(), Sensors::MLBL::Task::Task(), and Maneuver::VehicleFormation::FormCollAvoid::Task::Task().
|
inlineprotected |
Declare a configuration parameter that can be parsed using a custom parameter reader.
Y | type of the custom parameter reader. |
T | type of the destination variable. |
[in] | name | parameter name. |
[in] | var | variable that will hold the parameter value. |
References DUNE::Tasks::ParameterTable::add().
|
protected |
Declare parameter 'Active' and associated parameters 'Active.
[in] | def_scope | default scope of 'Active' parameter. |
[in] | def_visibility | default visibility of 'Active' parameter. |
[in] | def_value | default 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(), Vision::UAVCamera::Task::Task(), Transports::Iridium::Task::Task(), Sensors::CyclopsC7::Task::Task(), Autonomy::TREX::Task::Task(), Vision::PhotoTrigger::Task::Task(), Transports::IridiumSBD::Task::Task(), Monitors::Emergency::Task::Task(), Maneuver::VehicleFormation::Test::Task::Task(), Autonomy::OnEvent::Task::Task(), Monitors::Medium::Task::Task(), Vision::UI2210MGL::Task::Task(), Transports::Radio::Task::Task(), Sensors::IFOG::Task::Task(), Vision::Lumenera::Task::Task(), Transports::Seatrac::Task::Task(), Vision::DFK51BG02H::Task::Task(), Sensors::Imagenex881A::Task::Task(), and Sensors::MLBL::Task::Task().
|
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(), Sensors::MiniSVS::Task::onUpdateParameters(), Control::UAV::RemoteOperation::Task::onUpdateParameters(), Control::Path::VectorField::Task::onUpdateParameters(), Simulators::AcousticModem::Task::onUpdateParameters(), Supervisors::Reporter::Task::onUpdateParameters(), Control::UAV::LOS::Task::onUpdateParameters(), Supervisors::UAV::LostComms::Task::onUpdateParameters(), DUNE::Control::PathController::onUpdateParameters(), Transports::LoggingDigest::Task::onUpdateParameters(), Sensors::CyclopsC7::Task::onUpdateParameters(), Control::Path::ILOS::Task::onUpdateParameters(), Transports::IridiumSBD::Task::onUpdateParameters(), Monitors::Emergency::Task::onUpdateParameters(), Control::AUV::RemoteOperation::Task::onUpdateParameters(), Supervisors::AUV::Assist::Task::onUpdateParameters(), Autonomy::OnEvent::Task::onUpdateParameters(), Sensors::XR620CTD::Task::onUpdateParameters(), Control::ROV::HorizontalPlane::Task::onUpdateParameters(), Sensors::Microstrain3DMGX1::Task::onUpdateParameters(), Transports::GSM::Task::onUpdateParameters(), Transports::UDP::Task::onUpdateParameters(), Control::AUV::Allocator::Task::onUpdateParameters(), Sensors::Microstrain3DMGX3::Task::onUpdateParameters(), Control::AUV::Speed::Task::onUpdateParameters(), Sensors::OS4000::Task::onUpdateParameters(), Plan::Engine::Task::onUpdateParameters(), Monitors::FuelLevel::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), Control::ROV::RemoteOperation::Task::onUpdateParameters(), Sensors::Imagenex881A::Task::onUpdateParameters(), Control::UAV::PX4::Task::onUpdateParameters(), Control::AUV::Attitude::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Sensors::MLBL::Task::onUpdateParameters(), Transports::Seatrac::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), and updateParameters().
|
inlinevirtual |
Queue a message for later consumption.
msg | message object. |
Implements DUNE::Tasks::AbstractTask.
References DUNE::Tasks::Recipient::put().
Referenced by Control::UAV::PX4::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::PX4::Task::handleNavControllerPacket(), and Control::UAV::Ardupilot::Task::handleNavControllerPacket().
void DUNE::Tasks::Task::releaseResources | ( | void | ) |
Free all resources acquired in acquireResources().
References onResourceRelease().
|
protected |
Request task to start/resume normal execution.
References DUNE::Entities::StatefulEntity::isActivating(), onRequestActivation(), DUNE::Entities::StatefulEntity::requestActivation(), and spew().
Referenced by DUNE::Control::BasicRemoteOperation::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicUAVAutopilot::consume(), DUNE::Control::BasicAutopilot::consume(), Simulators::UAVAutopilot::Task::consume(), Monitors::Emergency::Task::consume(), Control::AUV::Speed::Task::consume(), Control::AUV::Allocator::Task::consume(), Simulators::UAV::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), deactivate(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Simulators::UAV::Task::onUpdateParameters(), DUNE::Maneuvers::Maneuver::startManeuver(), Transports::Replay::Task::startReplay(), and updateParameters().
|
protected |
Request task to stop normal execution and enter an idleness state.
References DUNE::Entities::StatefulEntity::isDeactivating(), onRequestDeactivation(), DUNE::Entities::StatefulEntity::requestDeactivation(), and spew().
Referenced by activate(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Control::BasicAutopilot::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicUAVAutopilot::consume(), Supervisors::AUV::LostComms::Task::consume(), Autonomy::TREX::Task::consume(), Monitors::Emergency::Task::consume(), Control::AUV::Speed::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Transports::Radio::Task::hardwareUpdateStateMachine(), DUNE::Control::BasicUAVAutopilot::onResourceInitialization(), DUNE::Control::BasicAutopilot::onResourceInitialization(), DUNE::Control::PathController::onResourceInitialization(), Control::AUV::Speed::Task::onResourceInitialization(), Sensors::Imagenex881A::Task::onResourceInitialization(), Vision::Lumenera::Task::onResourceRelease(), Sensors::Imagenex881A::Task::onResourceRelease(), Control::AUV::Allocator::Task::reset(), Transports::Replay::Task::reset(), DUNE::Control::BasicAutopilot::signalBadVertical(), DUNE::Control::BasicAutopilot::signalBadYaw(), Autonomy::TREX::Task::updateEntityState(), and updateParameters().
void DUNE::Tasks::Task::reserveEntities | ( | void | ) |
Instruct task to reserve all entity identifiers that it needs for normal execution.
References DUNE::Tasks::Context::entities, DUNE::Entities::BasicEntity::getLabel(), getName(), m_ctx, onEntityReservation(), DUNE::Entities::EntityDataBase::reserve(), DUNE::Entities::StatefulEntity::setBindings(), and DUNE::Entities::BasicEntity::setId().
Referenced by DUNE::Daemon::Daemon().
|
protected |
Associate an entity label with an automatically generated number (entity id).
[in] | label | entity name/label. |
References DUNE::Entities::BasicEntity, DUNE::Tasks::Context::entities, DUNE::Entities::BasicEntity::getId(), getName(), m_ctx, m_entities, DUNE::Entities::EntityDataBase::reserve(), DUNE::Entities::BasicEntity::setBindings(), DUNE::Entities::BasicEntity::setId(), and DUNE::Entities::BasicEntity::setLabel().
Referenced by Power::BATMANv2::Task::getEid(), Autonomy::TREX::Task::onEntityReservation(), Transports::Replay::Task::onEntityReservation(), Control::ROV::Depth::Task::onEntityReservation(), Sensors::DMS::Task::onEntityReservation(), Sensors::AIM104MultiIO::Task::onEntityReservation(), Sensors::SADC::Task::onEntityReservation(), Power::APD::Task::onEntityReservation(), Power::CPMB::Task::onEntityReservation(), Power::CPMBv2::Task::onEntityReservation(), Control::ROV::HorizontalPlane::Task::onEntityReservation(), Power::LUEMB::Task::onEntityReservation(), Control::ROV::RemoteOperation::Task::onEntityReservation(), Actuators::MCD4R::Task::onEntityReservation(), Sensors::MetrecX::Task::onEntityReservation(), and Control::AUV::Attitude::Task::onEntityReservation().
|
inlineprotected |
Associate an entity label with an internally stored entity object, and retrieve a pointer to the object.
[in] | label | entity name/label. |
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().
|
inline |
Retrieve the entity id of a given entity label.
[in] | label | entity label. |
NonexistentLabel | if the label doesn't have an associated 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(), Monitors::Emergency::Task::consume(), Plan::Engine::Task::consume(), Monitors::FuelLevel::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Sensors::MetrecX::Task::dispatchValue(), Power::BATMANv2::Task::getEid(), Sensors::DMS::Task::onEntityReservation(), Sensors::SADC::Task::onEntityReservation(), Power::APD::Task::onEntityReservation(), Power::CPMB::Task::onEntityReservation(), Power::CPMBv2::Task::onEntityReservation(), Power::LUEMB::Task::onEntityReservation(), Sensors::MetrecX::Task::onEntityReservation(), Navigation::General::GPSNavigation::Task::onEntityResolution(), DUNE::Navigation::BasicNavigation::onEntityResolution(), Sensors::CyclopsC7::Task::onEntityResolution(), Power::OPCON::Task::onEntityResolution(), Monitors::Medium::Task::onEntityResolution(), Plan::Engine::Task::onEntityResolution(), Control::ROV::RemoteOperation::Task::onEntityResolution(), Monitors::FuelLevel::Task::onEntityResolution(), Sensors::MetrecX::Task::onEntityResolution(), Control::AUV::Allocator::Task::onEntityResolution(), Navigation::AUV::Navigation::Task::onEntityResolution(), Transports::Radio::Task::onEntityResolution(), Sensors::MLBL::Task::onEntityResolution(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Power::APD::Task::onUpdateParameters(), Power::CPMB::Task::onUpdateParameters(), Power::CPMBv2::Task::onUpdateParameters(), Power::LUEMB::Task::onUpdateParameters(), Sensors::MetrecX::Task::onUpdateParameters(), Monitors::Entities::Task::setupDefaults(), DUNE::Tasks::MessageFilter::setupEntities(), and Maneuver::VehicleFormation::Coordinator::Task::task().
|
inline |
Retrieve the entity label of a given entity id.
[in] | id | entity id. |
NonexistentId | if the id doesn't have an associated label. |
References DUNE::Tasks::Context::entities, m_ctx, and DUNE::Entities::EntityDataBase::resolve().
|
inline |
Retrieve the name associated with a given system identifier.
References m_ctx, DUNE::IMC::AddressResolver::resolve(), and DUNE::Tasks::Context::resolver.
Referenced by Transports::DataStore::DataStore::addData(), Simulators::UAV::Task::commandPrintOut(), Maneuver::VehicleFormation::Test::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Vision::Lumenera::EntityActivation::getSystemName(), Transports::Iridium::Task::handleUpdates(), Plan::DB::Task::onChange(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Transports::DataStore::Router::process(), Transports::DataStore::Task::process(), Simulators::AcousticModem::Task::readData(), Transports::Discovery::Task::readMessage(), Transports::UDP::Task::refreshContacts(), and Plan::DB::Task::storeInDB().
|
inline |
Retrieve the identifier associated with a given system name.
[in] | name | system name. |
References m_ctx, DUNE::IMC::AddressResolver::resolve(), and DUNE::Tasks::Context::resolver.
Referenced by Transports::UAN::Task::consume(), DUNE::Daemon::Daemon(), Transports::DataStore::Router::forwardCommandsAcoustic(), Vision::Lumenera::EntityActivation::getSystemId(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Simulators::UAVAutopilot::Task::onUpdateParameters(), Control::AntennaTracker::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), Simulators::UAV::Task::onUpdateParameters(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Simulators::AcousticModem::Task::readData(), and Transports::DataStore::Router::routeOverWifi().
|
inline |
Set the main entity label of the task.
[in] | label | main entity label. |
References DUNE::Entities::BasicEntity::setLabel().
Referenced by DUNE::Daemon::Daemon().
|
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.
[in] | state | entity state. |
[in] | code | status code. |
References DUNE::Entities::StatefulEntity::setState().
Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Control::BasicUAVAutopilot::BasicUAVAutopilot(), Vision::Lumenera::Task::checkActivationProgress(), Vision::Lumenera::Task::checkCaptureOk(), Sensors::SADC::Task::checkDataSADC(), Sensors::DMS::Task::checkSerialPort(), Sensors::SADC::Task::checkSerialPort(), DUNE::Navigation::BasicNavigation::checkUncertainty(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Control::BasicAutopilot::consume(), Control::AntennaTracker::Task::consume(), Simulators::UAVAutopilot::Task::consume(), Monitors::Clock::Task::consume(), Plan::Generator::Task::consume(), Supervisors::Reporter::Task::consume(), Actuators::PWM::Task::consume(), Transports::LoggingDigest::Task::consume(), Navigation::General::GPSNavigation::Task::consume(), Plan::DB::Task::consume(), Sensors::CyclopsC7::Task::consume(), Sensors::OS4000::Task::consume(), Power::BATMANv2::Task::dispatchData(), Supervisors::AUV::Assist::Task::dispatchDislodge(), Transports::Radio::Task::failActivation(), Supervisors::AUV::LostComms::Task::getPlanSpec(), Supervisors::UAV::LostComms::Task::getPlanSpec(), Control::UAV::PX4::Task::handleArdupilotData(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Transports::Radio::Task::hardwareUpdateStateMachine(), Power::BATMANv2::Task::initBoard(), Sensors::Microstrain3DMGX1::Task::isCalibrated(), Navigation::AUV::Ranger::Task::onActivation(), DUNE::Control::BasicUAVAutopilot::onActivation(), Transports::Iridium::Task::onActivation(), DUNE::Control::BasicAutopilot::onActivation(), Transports::IridiumSBD::Task::onActivation(), Monitors::Emergency::Task::onActivation(), Control::AUV::Speed::Task::onActivation(), Autonomy::OnEvent::Task::onActivation(), Control::AUV::Allocator::Task::onActivation(), Autonomy::TREX::Task::onActivation(), Vision::UI2210MGL::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(), DUNE::Control::BasicAutopilot::onDeactivation(), Transports::IridiumSBD::Task::onDeactivation(), Monitors::Emergency::Task::onDeactivation(), Control::AUV::Speed::Task::onDeactivation(), Autonomy::OnEvent::Task::onDeactivation(), Sensors::CyclopsC7::Task::onDeactivation(), Control::AUV::Allocator::Task::onDeactivation(), Sensors::IFOG::Task::onDeactivation(), Autonomy::TREX::Task::onDeactivation(), Vision::UI2210MGL::Task::onDeactivation(), Vision::DFK51BG02H::Task::onDeactivation(), Sensors::Imagenex881A::Task::onDeactivation(), Vision::Lumenera::Task::onDeactivation(), Sensors::MiniSVS::Task::onMain(), Vision::UAVCamera::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Actuators::PWM::Task::onMain(), Sensors::AIS::Task::onMain(), Monitors::Clock::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Sensors::IFOG::Task::onMain(), Transports::GSM::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Sensors::OEMX::Task::onMain(), Sensors::DMS::Task::onMain(), Actuators::LED4R::Task::onMain(), Power::BATMANv2::Task::onMain(), Sensors::SADC::Task::onMain(), Actuators::MCD4R::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Sensors::MetrecX::Task::onMain(), Control::UAV::PX4::Task::onMain(), Sensors::Microstrain3DMGX1::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Control::UAV::Ardupilot::Task::onMain(), Sensors::XchangeSV::Task::onResourceAcquisition(), Sensors::MiniSVS::Task::onResourceAcquisition(), Simulators::AcousticModem::Task::onResourceAcquisition(), Sensors::EmulatedGPS::Task::onResourceAcquisition(), Plan::DB::Task::onResourceAcquisition(), Sensors::AIM104MultiIO::Task::onResourceAcquisition(), Sensors::OEMX::Task::onResourceAcquisition(), Maneuver::VehicleFormation::Test::Task::onResourceAcquisition(), Power::BATMANv2::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Sensors::Microstrain3DMGX3::Task::onResourceAcquisition(), Sensors::MLBLTracker::Task::onResourceAcquisition(), Vision::Lumenera::Task::onResourceAcquisition(), Sensors::Imagenex881A::Task::onResourceAcquisition(), Sensors::MetrecX::Task::onResourceAcquisition(), Transports::Radio::Task::onResourceAcquisition(), Maneuver::VehicleFormation::Coordinator::Task::onResourceAcquisition(), Maneuver::VehicleFormation::FormCollAvoid::Task::onResourceAcquisition(), DUNE::Maneuvers::Maneuver::onResourceInitialization(), Transports::LogBook::Task::onResourceInitialization(), DUNE::Daemon::onResourceInitialization(), Navigation::AUV::Ranger::Task::onResourceInitialization(), Transports::Discovery::Task::onResourceInitialization(), Autonomy::TextActions::Task::onResourceInitialization(), Transports::Cache::Task::onResourceInitialization(), Supervisors::Entities::Task::onResourceInitialization(), Supervisors::PowerManager::Task::onResourceInitialization(), Actuators::PWM::Task::onResourceInitialization(), DUNE::Control::BasicRemoteOperation::onResourceInitialization(), Transports::LoggingDigest::Task::onResourceInitialization(), Transports::Iridium::Task::onResourceInitialization(), Supervisors::AUV::LostComms::Task::onResourceInitialization(), Monitors::Entities::Task::onResourceInitialization(), Sensors::DataStore::Task::onResourceInitialization(), Monitors::Emergency::Task::onResourceInitialization(), Transports::IridiumSBD::Task::onResourceInitialization(), Transports::Announce::Task::onResourceInitialization(), Supervisors::AUV::Assist::Task::onResourceInitialization(), Transports::DataStore::Task::onResourceInitialization(), Power::OPCON::Task::onResourceInitialization(), Sensors::DMS::Task::onResourceInitialization(), Sensors::OS4000::Task::onResourceInitialization(), Transports::UAN::Task::onResourceInitialization(), Sensors::OEMX::Task::onResourceInitialization(), Sensors::IFOG::Task::onResourceInitialization(), Transports::GSM::Task::onResourceInitialization(), Sensors::SADC::Task::onResourceInitialization(), Actuators::LED4R::Task::onResourceInitialization(), Power::APD::Task::onResourceInitialization(), Plan::Engine::Task::onResourceInitialization(), Power::CPMB::Task::onResourceInitialization(), Power::CPMBv2::Task::onResourceInitialization(), Vision::UI2210MGL::Task::onResourceInitialization(), Sensors::Microstrain3DMGX3::Task::onResourceInitialization(), Power::LUEMB::Task::onResourceInitialization(), Vision::DFK51BG02H::Task::onResourceInitialization(), Actuators::MCD4R::Task::onResourceInitialization(), Transports::CommManager::Task::onResourceInitialization(), Sensors::Imagenex881A::Task::onResourceInitialization(), Sensors::DataStore::Task::onUpdateParameters(), Supervisors::Reporter::Task::onUpdateParameters(), Control::UAV::PX4::Task::openConnection(), Control::UAV::Ardupilot::Task::openConnection(), Transports::GSM::Task::processQueue(), Sensors::MLBLTracker::Task::readSentence(), Sensors::Microstrain3DMGX3::Task::reportEntityState(), Monitors::OperationalLimits::Task::reset(), DUNE::Navigation::BasicNavigation::reset(), Sensors::Microstrain3DMGX3::Task::runCalibration(), Transports::Seatrac::Task::setAndSendState(), Sensors::MLBL::Task::setAndSendState(), Sensors::Microstrain3DMGX1::Task::setHardIron(), Supervisors::Vehicle::Task::setInitialState(), Supervisors::AUV::Assist::Task::setState(), Sensors::Microstrain3DMGX1::Task::setup(), DUNE::Control::BasicAutopilot::signalBadVertical(), DUNE::Control::BasicAutopilot::signalBadYaw(), Sensors::XR620CTD::Task::startSampling(), Sensors::XR620CTD::Task::stopSampling(), Transports::Fragments::Task::Task(), Sensors::CyclopsC7::Task::Task(), Control::Path::ILOS::Task::Task(), Monitors::Clock::Task::Task(), Autonomy::OnEvent::Task::Task(), Control::AUV::Allocator::Task::Task(), Control::AUV::Speed::Task::Task(), Sensors::SW100::Task::task(), Monitors::FuelLevel::Task::task(), Sensors::OS4000::Task::terminateCalibration(), Autonomy::TREX::Task::updateEntityState(), Monitors::OperationalLimits::Task::updateState(), Monitors::Medium::Task::updateStateMachine(), and Monitors::Medium::Task::waterMediumCheck().
|
inlineprotected |
Set current entity state with a custom description.
[in] | state | entity state. |
[in] | description | custom state description. |
References DUNE::Entities::StatefulEntity::setState().
|
inlineprotected |
Set the name of the parameter editor that should be used to interact with the parameters of the task.
[in] | name | editor name (free-form string). |
|
inline |
Set scheduling priority programatically.
The priority of a task might change when configuration parameters are updated.
[in] | value | desired scheduling priority. |
Referenced by DUNE::Daemon::onResourceInitialization().
|
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.
format | string 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(), Control::UAV::PX4::Task::checkParseState(), DUNE::Navigation::BasicNavigation::checkUncertainty(), Monitors::Medium::Task::checkWater(), Transports::IridiumSBD::Task::cleanExpired(), Simulators::UAV::Task::commandPrintOut(), Control::AntennaTracker::Task::consume(), Simulators::UAVAutopilot::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Monitors::Emergency::Task::consume(), Transports::Iridium::Task::consume(), Power::LUEMB::Task::consume(), Control::UAV::PX4::Task::consume(), Simulators::UAV::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), deactivate(), deactivationFailed(), Sensors::OEMX::Task::dispatchData(), Sensors::OEMX::DriverOEMX::getFirmwareVersion(), Sensors::OEMX::DriverOEMX::getInfoMount(), Control::UAV::PX4::Task::handleArdupilotData(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Control::UAV::PX4::Task::handleAttitudePacket(), Control::UAV::PX4::Task::handleExtendedStatePacket(), Control::UAV::PX4::Task::handleHeartbeatPacket(), Control::UAV::PX4::Task::handleHUDPacket(), Control::UAV::PX4::Task::handleHWStatusPacket(), Control::UAV::PX4::Task::handleImuRaw(), Transports::Iridium::Task::handleIridiumCommand(), Control::UAV::PX4::Task::handleMissionAckPacket(), Control::UAV::PX4::Task::handleMissionItemReachedPacket(), Control::UAV::PX4::Task::handleNavControllerPacket(), Control::UAV::PX4::Task::handlePositionPacket(), Control::UAV::PX4::Task::handleRawGPSPacket(), Control::UAV::PX4::Task::handleScaledPressurePacket(), Control::UAV::PX4::Task::handleStatusTextPacket(), Control::UAV::PX4::Task::handleSystemStatusPacket(), Control::UAV::PX4::Task::handleSystemTimePacket(), Control::UAV::PX4::Task::handleWindPacket(), Transports::Radio::Task::hardwareUpdateStateMachine(), Sensors::OEMX::DriverOEMX::haveNewData(), 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(), Power::OPCON::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(), Power::BATMANv2::DriverBatMan::sendCommand(), Sensors::MetrecX::Task::sendCommand(), Power::BATMANv2::DriverBatMan::sendCommandNoRsp(), Transports::Iridium::Task::sendDeviceUpdates(), Transports::UAN::Task::sendRange(), Monitors::Emergency::Task::sendScheduled(), 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(), Maneuver::VehicleFormation::Coordinator::Task::updateLeaderLimits(), and Monitors::Medium::Task::waterMediumCheck().
|
inlineprotected |
Test if task is stopping.
References DUNE::Concurrency::Runnable::isStopping().
Referenced by Sensors::XR620CTD::Task::getCalibration(), initializeResources(), DUNE::Tasks::SimpleTransport::onMain(), DUNE::Control::BasicUAVAutopilot::onMain(), DUNE::Daemon::onMain(), Sensors::GillWindObserverII::Task::onMain(), DUNE::Control::BasicAutopilot::onMain(), Sensors::MiniSVS::Task::onMain(), Transports::Fragments::Task::onMain(), Vision::UAVCamera::Task::onMain(), Transports::LogBook::Task::onMain(), Sensors::XchangeSV::Task::onMain(), Control::AntennaTracker::Task::onMain(), Supervisors::PowerManager::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Simulators::AcousticModem::Task::onMain(), Supervisors::Reporter::Task::onMain(), Navigation::AUV::Ranger::Task::onMain(), Actuators::PWM::Task::onMain(), Sensors::AIS::Task::onMain(), Transports::Discovery::Task::onMain(), Monitors::Clock::Task::onMain(), Transports::SerialOverTCP::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Plan::Generator::Task::onMain(), Sensors::EmulatedGPS::Task::onMain(), Sensors::DataStore::Task::onMain(), Transports::LoggingDigest::Task::onMain(), Transports::Cache::Task::onMain(), DUNE::Control::PathController::onMain(), Sensors::CyclopsC7::Task::onMain(), Autonomy::OnEvent::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Vision::UI2210MGL::Task::onMain(), Power::APD::Task::onMain(), Autonomy::TREX::Task::onMain(), Power::CPMB::Task::onMain(), Power::CPMBv2::Task::onMain(), Transports::DataStore::Task::onMain(), Transports::GSM::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Transports::IridiumSBD::Task::onMain(), Sensors::MTi::Task::onMain(), Transports::UDP::Task::onMain(), Sensors::OEMX::Task::onMain(), Sensors::DMS::Task::onMain(), Transports::Iridium::Task::onMain(), Transports::Announce::Task::onMain(), Actuators::LED4R::Task::onMain(), Transports::CommManager::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Power::OPCON::Task::onMain(), Power::LUEMB::Task::onMain(), Monitors::Entities::Task::onMain(), Autonomy::TextActions::Task::onMain(), Power::BATMANv2::Task::onMain(), Control::AUV::Speed::Task::onMain(), Sensors::SADC::Task::onMain(), Actuators::MCD4R::Task::onMain(), Plan::DB::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::Radio::Task::onMain(), Control::AUV::Allocator::Task::onMain(), Sensors::MetrecX::Task::onMain(), Control::UAV::PX4::Task::onMain(), Sensors::Microstrain3DMGX1::Task::onMain(), Transports::UAN::Task::onMain(), Vision::Lumenera::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Plan::Engine::Task::onMain(), Transports::Seatrac::Task::onMain(), Sensors::MLBL::Task::onMain(), Control::UAV::Ardupilot::Task::onMain(), Sensors::OS4000::Task::onResourceInitialization(), Sensors::Microstrain3DMGX3::Task::onResourceInitialization(), Sensors::OS4000::Task::setParameter(), Sensors::XR620CTD::Task::setParameters(), and Sensors::XR620CTD::Task::stopSampling().
|
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.
format | string 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(), Simulators::UAV::Task::commandFilter(), 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(), Control::UAV::Ardupilot::Task::handleArdupilotData(), Sensors::MLBLTracker::Task::handleBinaryReception(), Control::UAV::PX4::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleMissionItemPacket(), Control::UAV::PX4::Task::handleNavControllerPacket(), Control::UAV::Ardupilot::Task::handleNavControllerPacket(), DUNE::Hardware::BasicDeviceDriver::onCloseLog(), Monitors::Entities::Task::onEntityResolution(), Transports::Replay::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(), DUNE::Hardware::BasicModem::send(), Control::UAV::PX4::Task::sendCommandPacket(), Control::UAV::Ardupilot::Task::sendCommandPacket(), Control::UAV::PX4::Task::sendData(), Control::UAV::Ardupilot::Task::sendData(), Maneuver::VehicleFormation::Coordinator::Task::setLeaderState(), Maneuver::VehicleFormation::FormCollAvoid::Task::setLeaderState(), Maneuver::VehicleFormation::Test::Task::task(), Supervisors::AUV::LostComms::Task::task(), Monitors::FuelLevel::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::task(), Control::UAV::RemoteOperation::Task::update(), and Sensors::EmulatedGPS::Task::writeToUART().
void DUNE::Tasks::Task::updateParameters | ( | bool | act_deact = true | ) |
Instruct task to update its run-time parameters.
[in] | act_deact | if true this function will request activation/deactivation if the 'Active' parameter changed. |
References DUNE::Tasks::DEBUG_LEVEL_DEBUG, DUNE::Tasks::DEBUG_LEVEL_NONE, DUNE::Tasks::DEBUG_LEVEL_SPEW, DUNE::Tasks::DEBUG_LEVEL_TRACE, DUNE::Tasks::ParameterTable::find(), DUNE::Entities::BasicEntity::getLabel(), onUpdateParameters(), paramChanged(), DUNE::Entities::StatefulEntity::reportActivationState(), DUNE::Entities::BasicEntity::reportInfo(), requestActivation(), requestDeactivation(), DUNE::Tasks::ParameterTable::set(), DUNE::Entities::StatefulEntity::setActTimes(), DUNE::Tasks::ParameterTable::setChanged(), and DUNE::Entities::BasicEntity::setLabel().
Referenced by loadConfig(), onPopEntityParameters(), and onSetEntityParameters().
|
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.
[in] | timeout | wait for timeout seconds. |
References DUNE::Tasks::Recipient::waitForMessages().
Referenced by DUNE::Control::BasicUAVAutopilot::onMain(), DUNE::Daemon::onMain(), DUNE::Control::BasicAutopilot::onMain(), Transports::Fragments::Task::onMain(), Vision::UAVCamera::Task::onMain(), Transports::LogBook::Task::onMain(), Control::AntennaTracker::Task::onMain(), Supervisors::PowerManager::Task::onMain(), Vision::PhotoTrigger::Task::onMain(), Supervisors::Reporter::Task::onMain(), Actuators::PWM::Task::onMain(), Monitors::Clock::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Plan::Generator::Task::onMain(), Sensors::EmulatedGPS::Task::onMain(), Sensors::DataStore::Task::onMain(), Transports::LoggingDigest::Task::onMain(), Transports::Cache::Task::onMain(), DUNE::Control::PathController::onMain(), Sensors::CyclopsC7::Task::onMain(), Autonomy::OnEvent::Task::onMain(), Transports::Replay::Task::onMain(), Sensors::IFOG::Task::onMain(), Power::APD::Task::onMain(), Power::CPMB::Task::onMain(), Power::CPMBv2::Task::onMain(), Transports::DataStore::Task::onMain(), Transports::GSM::Task::onMain(), Transports::IridiumSBD::Task::onMain(), Sensors::MTi::Task::onMain(), Transports::UDP::Task::onMain(), Sensors::OEMX::Task::onMain(), Sensors::DMS::Task::onMain(), Transports::Iridium::Task::onMain(), Actuators::LED4R::Task::onMain(), Transports::CommManager::Task::onMain(), Power::OPCON::Task::onMain(), Power::LUEMB::Task::onMain(), Monitors::Entities::Task::onMain(), Autonomy::TextActions::Task::onMain(), Power::BATMANv2::Task::onMain(), Control::AUV::Speed::Task::onMain(), Sensors::SADC::Task::onMain(), Actuators::MCD4R::Task::onMain(), Plan::DB::Task::onMain(), Sensors::Imagenex881A::Task::onMain(), Transports::Radio::Task::onMain(), Control::AUV::Allocator::Task::onMain(), Transports::UAN::Task::onMain(), Vision::Lumenera::Task::onMain(), Plan::Engine::Task::onMain(), Sensors::MLBL::Task::onMain(), and Navigation::AUV::Ranger::Task::wait().
|
virtual |
Send an human-readable warning message to all configured output channels and files.
format | string format (similar to printf(3)). |
... | arguments. |
Reimplemented from DUNE::Tasks::AbstractTask.
References DUNE::IMC::LogBookEntry::LBET_WARNING.
Referenced by Transports::DataStore::Task::acousticRouting(), 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(), DUNE::Control::BasicAutopilot::consume(), DUNE::Control::PathController::consume(), Monitors::Clock::Task::consume(), Sensors::MTi::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Monitors::Entities::Task::consume(), Plan::DB::Task::consume(), Transports::DataStore::Task::consume(), Autonomy::TREX::Task::consume(), Transports::Iridium::Task::consume(), Supervisors::Vehicle::Task::consume(), Control::UAV::PX4::Task::consume(), Control::UAV::Ardupilot::Task::consume(), Transports::Seatrac::Task::consume(), Maneuver::VehicleFormation::Coordinator::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), Sensors::MetrecX::Task::dispatchValue(), Maneuver::VehicleFormation::FormCollAvoid::Task::formationControl(), Power::OPCON::Task::gsm3gActivate(), Transports::Seatrac::Task::handleBinaryMessage(), Sensors::MLBL::Task::handleBinaryMessage(), Autonomy::TextActions::Task::handleChangeNumCommand(), Transports::Seatrac::Task::handleCommunicationError(), Control::UAV::PX4::Task::handleHeartbeatPacket(), Control::UAV::Ardupilot::Task::handleHeartbeatPacket(), Autonomy::TextActions::Task::handleInfoCommand(), Sensors::MLBL::Task::handleMiniPacket(), Sensors::MLBL::Task::handlePingReply(), Autonomy::TextActions::Task::handleRebootCommand(), Control::UAV::Ardupilot::Task::handleScaledPressurePacket(), Transports::IridiumSBD::Task::handleSessionResult(), Sensors::MLBL::Task::handleTransponderTravelTimes(), Power::BATMANv2::Task::initBoard(), Sensors::OEMX::DriverOEMX::initCTD(), Sensors::Microstrain3DMGX3::Task::isCalibrated(), Transports::Seatrac::Task::isCalibrated(), Sensors::Microstrain3DMGX1::Task::isCalibrated(), Maneuver::VehicleFormation::FormCollAvoid::Task::isControlActive(), Transports::Fragments::Task::messageRipper(), Sensors::DataStore::Task::onEntityResolution(), Maneuver::VehicleFormation::Coordinator::Task::onEntityResolution(), Maneuver::VehicleFormation::FormCollAvoid::Task::onEntityResolution(), Vision::DFK51BG02H::Task::onMain(), Power::BATMANv2::Task::onMain(), Maneuver::VehicleFormation::Coordinator::Task::onRequestActivation(), Maneuver::VehicleFormation::Coordinator::Task::onRequestDeactivation(), Sensors::IFOG::Task::onResourceAcquisition(), Actuators::LED4R::Task::onResourceAcquisition(), Power::APD::Task::onResourceAcquisition(), Power::CPMB::Task::onResourceAcquisition(), Power::CPMBv2::Task::onResourceAcquisition(), Transports::UDP::Task::onResourceAcquisition(), Power::LUEMB::Task::onResourceAcquisition(), Actuators::MCD4R::Task::onResourceAcquisition(), Transports::Seatrac::Task::onResourceInitialization(), Maneuver::VehicleFormation::Coordinator::Task::onUpdateParameters(), Maneuver::VehicleFormation::FormCollAvoid::Task::onUpdateParameters(), Control::UAV::PX4::Task::openConnection(), Control::UAV::Ardupilot::Task::openConnection(), Sensors::MLBL::Task::pingNarrowBand(), Transports::GSM::Task::processQueue(), Transports::Seatrac::Task::processSentence(), Transports::Discovery::Task::readMessage(), Control::UAV::PX4::Task::receiveData(), Control::UAV::Ardupilot::Task::receiveData(), Transports::UAN::Task::recvAbort(), Transports::UAN::Task::recvPlanControl(), Autonomy::TextActions::Task::reply(), Transports::Seatrac::Task::sendProtectedCommand(), Sensors::Microstrain3DMGX1::Task::setHardIron(), DUNE::Simulation::UAVSimulation::setPosition(), 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(), Navigation::AUV::Navigation::Task::task(), Maneuver::VehicleFormation::FormCollAvoid::Task::teamPeriodicUpdate(), DUNE::Simulation::UAVSimulation::update(), and Transports::DataStore::Task::wifiRouting().
void DUNE::Tasks::Task::writeParamsXML | ( | std::ostream & | os | ) | const |
Write task parameters in XML format.
[in] | os | output stream. |
References getEntityLabel(), onWriteParamsXML(), and DUNE::Tasks::ParameterTable::writeXML().
|
protected |
Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Navigation::BasicNavigation::checkDeclination(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Daemon::consume(), Sensors::DataStore::Task::consume(), Navigation::General::GPSNavigation::Task::consume(), Transports::DataStore::Task::consume(), Autonomy::TREX::Task::consume(), Vision::Lumenera::Task::consume(), Vision::DFK51BG02H::Task::consume(), Control::UAV::Ardupilot::Task::consume(), DUNE::Daemon::Daemon(), dispatch(), getSystemId(), getSystemName(), Control::UAV::PX4::Task::handlePositionPacket(), Control::UAV::Ardupilot::Task::handlePositionPacket(), loadConfig(), Sensors::DataStore::Task::onEntityResolution(), DUNE::Navigation::BasicNavigation::onEntityResolution(), Monitors::Entities::Task::onEntityResolution(), Transports::Radio::Task::onRequestActivation(), Plan::DB::Task::onResourceAcquisition(), Plan::Engine::Task::onResourceAcquisition(), DUNE::Daemon::onResourceInitialization(), Navigation::AUV::Navigation::Task::onResourceInitialization(), Transports::Seatrac::Task::onResourceInitialization(), Sensors::MLBL::Task::onResourceInitialization(), Transports::Radio::Task::onResourceInitialization(), onSetEntityParameters(), DUNE::Navigation::BasicNavigation::onUpdateParameters(), Transports::Announce::Task::onUpdateParameters(), Transports::UDP::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), DUNE::Control::PathController::PathController(), Transports::DataStore::Task::process(), Transports::Discovery::Task::readMessage(), reserveEntities(), reserveEntity(), resolveEntity(), resolveSystemId(), resolveSystemName(), Transports::CommManager::Task::sendViaSms(), Transports::LoggingDigest::Task::startLog(), Transports::Cache::Task::Task(), Transports::Discovery::Task::Task(), Plan::Generator::Task::Task(), Monitors::FuelLevel::Task::Task(), Monitors::Medium::Task::Task(), Supervisors::AUV::Assist::Task::Task(), Control::AUV::Allocator::Task::Task(), Task(), Monitors::OperationalLimits::Task::Task(), Control::AUV::Speed::Task::Task(), Plan::Engine::Task::Task(), Control::AUV::Attitude::Task::Task(), and DUNE::Daemon::~Daemon().
|
protected |
Owned entity list.
Referenced by getLocalEntity(), reserveEntity(), Task(), and ~Task().