bota_worker_test.cpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/test/
bota__worker__test_8cpp
int
main
bota__worker__test_8cpp.html
a3c04138a5bfe5d72780bb7e82a18e627
(int argc, char **argv)
Rate.cpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/src/
Rate_8cpp
bota_worker/Rate.hpp
bota_worker
Rate.hpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/include/bota_worker/
Rate_8hpp
bota_worker/RateOptions.hpp
bota_worker::Rate
bota_worker
RateOptions.hpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/include/bota_worker/
RateOptions_8hpp
bota_worker::RateOptions
bota_worker
RateTest.cpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/test/
RateTest_8cpp
bota_worker/Rate.hpp
#define
RATE_TEST_TOL
RateTest_8cpp.html
a93c1a865f61b29b5460bc76ea94d27ec
#define
RATE_TEST_TOL_BUILD_SERVER
RateTest_8cpp.html
a159f634bc4c595fce91adc3ff6e7497c
#define
RATE_TEST_TOL_LOCAL
RateTest_8cpp.html
a4b268c5b5ba74ee712e00970f376a8a1
void
doSomething
RateTest_8cpp.html
a07f05f393300fceaf8e422a996cb1d53
(const double duration)
TEST
RateTest_8cpp.html
ab9fe94fed2dc2596d93002b2afcc05a2
(RateTest, Initialization)
TEST
RateTest_8cpp.html
a1f35d4207964596621358971ba01acbe
(RateTest, Reset)
TEST
RateTest_8cpp.html
a0bc7a2f196cd8bf53991327084f60b71
(RateTest, SleepWithEnforceRate)
TEST
RateTest_8cpp.html
a9724ba8e2e3b6f9d710309823ba0a664
(RateTest, SleepWithoutEnforceRate)
TEST
RateTest_8cpp.html
a86cd441c47bd01321011c4f49acaf450
(RateTest, WarningsAndErrors)
TEST
RateTest_8cpp.html
ac6b4693749fb8473ddcecee884977d91
(RateTest, StatisticsWithEnforceRate)
TEST
RateTest_8cpp.html
ab60c13f94f340e5a442269b21a38c7e9
(RateTest, StatisticsWithoutEnforceRate)
Worker.cpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/src/
Worker_8cpp
bota_worker/Worker.hpp
bota_worker
Worker.hpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/include/bota_worker/
Worker_8hpp
bota_worker/Rate.hpp
bota_worker/WorkerEvent.hpp
bota_worker/WorkerOptions.hpp
bota_worker::Worker
bota_worker
WorkerEvent.hpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/include/bota_worker/
WorkerEvent_8hpp
bota_worker::WorkerEvent
bota_worker
WorkerManager.cpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/src/
WorkerManager_8cpp
bota_worker/WorkerManager.hpp
bota_worker
WorkerManager.hpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/include/bota_worker/
WorkerManager_8hpp
bota_worker/Worker.hpp
bota_worker/WorkerOptions.hpp
bota_worker::WorkerManager
bota_worker
WorkerOptions.hpp
/tmp/ws/src/bota_driver/bota_node/bota_worker/include/bota_worker/
WorkerOptions_8hpp
bota_worker/RateOptions.hpp
bota_worker/WorkerEvent.hpp
bota_worker::WorkerOptions
bota_worker
std::function< bool(const WorkerEvent &)>
WorkerCallback
namespacebota__worker.html
a683448bd2a23a064eb12a0abd35daea3
std::function< void(void)>
WorkerCallbackFailureReaction
namespacebota__worker.html
ac3eb4cca6c9ab3d8f4b432f41a74cdab
bota_worker::Rate
classbota__worker_1_1Rate.html
double
getAwakeTime
classbota__worker_1_1Rate.html
a52ba315aa6865018017aa99115282748
() const
double
getAwakeTimeMean
classbota__worker_1_1Rate.html
a0ffbb14ef8c0c58c0378088f50b983a6
() const
double
getAwakeTimeStdDev
classbota__worker_1_1Rate.html
ae89e2b59b0fed178aeb06c69659c195e
() const
double
getAwakeTimeVar
classbota__worker_1_1Rate.html
af047321cf5dd58f96d5bf83ec6155668
() const
unsigned int
getNumErrors
classbota__worker_1_1Rate.html
ad32b5622742cebd26fdac7f278628b20
() const
unsigned int
getNumTimeSteps
classbota__worker_1_1Rate.html
a0ddeb8c4a389aae0e4f3b4b6bee11515
() const
unsigned int
getNumWarnings
classbota__worker_1_1Rate.html
ab86fe4d6bc61b7ca3087c68b8ca8dc86
() const
RateOptions &
getOptions
classbota__worker_1_1Rate.html
a9dcf4a43931758b4f81bd8cee8e7e742
()
const RateOptions &
getOptions
classbota__worker_1_1Rate.html
a2d455039dee9d857f2269c131d980eb5
() const
const timespec &
getSleepEndTime
classbota__worker_1_1Rate.html
a2f2e78cfe229748a9961ce7f4fd0b079
() const
const timespec &
getSleepStartTime
classbota__worker_1_1Rate.html
ad7eb977fc091fef81c85089ecb2b8831
() const
const timespec &
getStepTime
classbota__worker_1_1Rate.html
a44cdefff24711760958f313144f2026c
() const
Rate
classbota__worker_1_1Rate.html
afae80d384cd8811e497fb90932fa2e5a
(const std::string &name, const double timeStep)
Rate
classbota__worker_1_1Rate.html
affbdb3bdcfa0f48f4e4dc738260733a8
(RateOptions options)
Rate
classbota__worker_1_1Rate.html
a9c968ba11b22c7a2d0d8503bab1a966c
(Rate &&other) noexcept
void
reset
classbota__worker_1_1Rate.html
ad770ca431dc042d9f20129e6729cf70b
()
void
sleep
classbota__worker_1_1Rate.html
a54a11648ae960c58d26224b17116a633
()
static void
addDuration
classbota__worker_1_1Rate.html
ab694e4a49b94b63cd87e8c83ce641552
(timespec &time, const double duration)
static double
getDuration
classbota__worker_1_1Rate.html
a75665ecf8c8d960dd3c2ffc42bdec51e
(const timespec &start, const timespec &end)
double
awakeTime_
classbota__worker_1_1Rate.html
a291ff40067d898e9257020b8c094042c
double
awakeTimeM2_
classbota__worker_1_1Rate.html
a0ac17e3dfd769a843e27b5d82e7d94a3
double
awakeTimeMean_
classbota__worker_1_1Rate.html
ad92f5ad654cb4b87a1eb9c9e93fac009
timespec
lastErrorPrintTime_
classbota__worker_1_1Rate.html
ac7286008700c0b7d40bd0718696c1918
timespec
lastWarningPrintTime_
classbota__worker_1_1Rate.html
aca73e8f245cea29ad29d515a8600edd6
unsigned int
numErrors_
classbota__worker_1_1Rate.html
a8fdf6254d59c5a59db2ed0bad4a4c12c
unsigned int
numTimeSteps_
classbota__worker_1_1Rate.html
ac01b1aae2f7b6c0808d644b0681320e5
unsigned int
numWarnings_
classbota__worker_1_1Rate.html
ae7e68d8e73793212aff88167d08fd21c
RateOptions
options_
classbota__worker_1_1Rate.html
add020bb910d866895810da3dc3749ee3
timespec
sleepEndTime_
classbota__worker_1_1Rate.html
a88fb864b3fd4a8ea70fad4d6a2b8d4f2
timespec
sleepStartTime_
classbota__worker_1_1Rate.html
aeac0039f46b32ea581adfb1141681afa
timespec
stepTime_
classbota__worker_1_1Rate.html
aef98815b5f68b08d51dde173ea610708
static constexpr long int
N_SEC_PER_SEC
classbota__worker_1_1Rate.html
a1f544355e982087a042f9a77cdeb64c5
static constexpr double
SEC_PER_N_SEC
classbota__worker_1_1Rate.html
a82003ee4ec5aef1e87a84bc051197a5c
bota_worker::RateOptions
structbota__worker_1_1RateOptions.html
virtual bool
isValid
structbota__worker_1_1RateOptions.html
aa53d01476160b959f0b172b5640dce13
() const
RateOptions &
operator=
structbota__worker_1_1RateOptions.html
a7d7980c3d2951ad1271d7f8d54acf09e
(const RateOptions &other)
RateOptions
structbota__worker_1_1RateOptions.html
a7f4e57eb092f515c63e29dbabc134ce5
(std::string name="", const double timeStep=0.0, const double maxTimeStepFactorWarning=1.0, const double maxTimeStepFactorError=10.0, const bool enforceRate=true, const clockid_t clockId=CLOCK_MONOTONIC)
RateOptions
structbota__worker_1_1RateOptions.html
a8e27ce2065d18cfebd853f35c4692152
(const RateOptions &other)
RateOptions
structbota__worker_1_1RateOptions.html
aa650c9065bcfd6cd9eb8e3fbf0e6ad0f
(RateOptions &&other) noexcept
virtual
~RateOptions
structbota__worker_1_1RateOptions.html
a48fb4344e60a04118c4b4fd74b9f9af6
()=default
std::atomic< clockid_t >
clockId_
structbota__worker_1_1RateOptions.html
a3a8ee6ba94ef34a827489147c0392be9
std::atomic< bool >
enforceRate_
structbota__worker_1_1RateOptions.html
a4da551b3d4280a36e52d3e0854d358ba
std::atomic< double >
maxTimeStepFactorError_
structbota__worker_1_1RateOptions.html
a893cb88bb7d914d89330bf9baafd7e1b
std::atomic< double >
maxTimeStepFactorWarning_
structbota__worker_1_1RateOptions.html
a4a767e1256a6373a5db313056226ba80
std::string
name_
structbota__worker_1_1RateOptions.html
a7f0ee0f21a665b6f9f9e09d067851ecf
std::atomic< double >
timeStep_
structbota__worker_1_1RateOptions.html
ac5a641ef53419dda83a5f183277f363a
bota_worker::Worker
classbota__worker_1_1Worker.html
const std::string &
getName
classbota__worker_1_1Worker.html
a0ee65ce2c2de38411ae12efe0015f79c
() const
const Rate &
getRate
classbota__worker_1_1Worker.html
abf5c036c16380ed38ea6bf377b299b89
() const
Rate &
getRate
classbota__worker_1_1Worker.html
ab34bb6dab87078ad3c92d92d6754874d
()
bool
isDestructible
classbota__worker_1_1Worker.html
ae02b6da02592a93fed71f3d651d01679
() const
bool
isRunning
classbota__worker_1_1Worker.html
af6a4bd82850c3822b972e0348d93590b
() const
void
setEnforceRate
classbota__worker_1_1Worker.html
a7a4842ee77851364a9407a747de8ddbf
(const bool enforceRate)
void
setTimestep
classbota__worker_1_1Worker.html
a45f234e2dc29cddc59b9e7c7ad9cc38f
(const double timeStep)
bool
start
classbota__worker_1_1Worker.html
a649de3505e8a1108b42d6d40a3935260
(const int priority=0)
void
stop
classbota__worker_1_1Worker.html
ae20d0979243d5f6a0e40cd126dd34a33
(const bool wait=true)
Worker
classbota__worker_1_1Worker.html
a439e6e13fce5458add0c3db9be037540
()=delete
Worker
classbota__worker_1_1Worker.html
a2eb98753313ab3505135bb2737bfc996
(const std::string &name, const double timestep, const WorkerCallback &callback)
Worker
classbota__worker_1_1Worker.html
a83def72d45dd6639f2e7e4e0164b8fa1
(const std::string &name, const double timestep, const WorkerCallback &callback, const WorkerCallbackFailureReaction &callbackFailureReaction)
Worker
classbota__worker_1_1Worker.html
afcb8b294b227d96ea64f60e7a6e80433
(const WorkerOptions &options)
Worker
classbota__worker_1_1Worker.html
affde72146472f2172c4154b078cc202e
(const Worker &)=delete
Worker
classbota__worker_1_1Worker.html
a53e17c7db37be3f1f4ee5cc24848ede7
(Worker &&) noexcept
virtual
~Worker
classbota__worker_1_1Worker.html
a2c73257e9a1d04997414c72deee435f0
()
void
run
classbota__worker_1_1Worker.html
aaeb4f962324c61adfbdd8040baff1beb
()
std::atomic< bool >
done_
classbota__worker_1_1Worker.html
a8bc2d6d73be39688440a591facb3b472
WorkerOptions
options_
classbota__worker_1_1Worker.html
aa348a802584032528a803c3494688ad6
Rate
rate_
classbota__worker_1_1Worker.html
aa542107dc1ccc452a6c8c123820b4fa6
std::atomic< bool >
running_
classbota__worker_1_1Worker.html
a101b2e2e739ae003f582a02261095de8
std::thread
thread_
classbota__worker_1_1Worker.html
a33634c3e68f2414462ead089346d65c4
bota_worker::WorkerEvent
structbota__worker_1_1WorkerEvent.html
WorkerEvent
structbota__worker_1_1WorkerEvent.html
a3b55ff56e7af3eb5d8f703c5295d056b
()
WorkerEvent
structbota__worker_1_1WorkerEvent.html
ae12bd9d7ea9abcaf87721bea59357d7a
(const double dt, const timespec &time)
virtual
~WorkerEvent
structbota__worker_1_1WorkerEvent.html
a32736bf5dafabd846da5ef2b4b06a8a2
()=default
timespec
timeStamp
structbota__worker_1_1WorkerEvent.html
a42325968987be2a0e48da44f5cff5815
double
timeStep
structbota__worker_1_1WorkerEvent.html
af505977f480e7a0c8cfeb89cfa7bda12
bota_worker::WorkerManager
classbota__worker_1_1WorkerManager.html
bool
addWorker
classbota__worker_1_1WorkerManager.html
a4792ccfd8f84391eda95db6672564d40
(const std::string &name, const double timestep, bool(T::*fp)(const WorkerEvent &), T *obj, const int priority=0, const bool autostart=true)
bool
addWorker
classbota__worker_1_1WorkerManager.html
a9baf6a6b1f8e422b7f314fa473036055
(const std::string &name, const double timestep, bool(T::*cfp)(const WorkerEvent &), void(T::*rfp)(), T *obj, const int priority=0, const bool autostart=true)
bool
addWorker
classbota__worker_1_1WorkerManager.html
a9c5ca65375b35c88c350cfac1e770b77
(const std::string &name, const double timestep, const WorkerCallback &callback, const int priority=0, const bool autostart=true)
bool
addWorker
classbota__worker_1_1WorkerManager.html
a7c8db7eb0c743455bc0e1f083689ee38
(const std::string &name, const double timestep, const WorkerCallback &callback, const WorkerCallbackFailureReaction &callbackFailureReaction, const int priority=0, const bool autostart=true)
bool
addWorker
classbota__worker_1_1WorkerManager.html
a0456219669b5775fd9a697abbc55a1d4
(const WorkerOptions &options, const bool autostart=true)
void
cancelWorker
classbota__worker_1_1WorkerManager.html
a8975d05ebb563a093e7926f90dcb5913
(const std::string &name, const bool wait=true)
void
cancelWorkers
classbota__worker_1_1WorkerManager.html
ac5bd0c726bed3c04f343093a48d23a00
(const bool wait=true)
void
cleanDestructibleWorkers
classbota__worker_1_1WorkerManager.html
a8154921fe1bfed5c16ba523b8173e7d1
()
bool
hasWorker
classbota__worker_1_1WorkerManager.html
a3e88c0b6b0a769328243d2b230d5b2f0
(const std::string &name)
void
setWorkerTimestep
classbota__worker_1_1WorkerManager.html
a448e1eb2d6f26836a10173ee020aef4d
(const std::string &name, const double timeStep)
void
startWorker
classbota__worker_1_1WorkerManager.html
ac9cf2bb5a3405776add58fa83ab29b83
(const std::string &name, const int priority=0)
void
startWorkers
classbota__worker_1_1WorkerManager.html
af4b39ef53317c7a4a93ed1f98ef07b2b
()
void
stopWorker
classbota__worker_1_1WorkerManager.html
af98f92b8b8ee6043f858e51de3371e31
(const std::string &name, const bool wait=true)
void
stopWorkers
classbota__worker_1_1WorkerManager.html
a26ce6d83fe0569f84d3dc0ed39c4af14
(const bool wait=true)
WorkerManager
classbota__worker_1_1WorkerManager.html
a753ca4a5d9e306ccc36c1efc0faedaba
()
virtual
~WorkerManager
classbota__worker_1_1WorkerManager.html
ac4c94bd357720ef616de401f7e049cd4
()
std::mutex
mutexWorkers_
classbota__worker_1_1WorkerManager.html
a83b79e5e3794b7b9717329526030d0a0
std::unordered_map< std::string, Worker >
workers_
classbota__worker_1_1WorkerManager.html
aaaa59e09324b1a0487da36d51a76f75e
bota_worker::WorkerOptions
structbota__worker_1_1WorkerOptions.html
bota_worker::RateOptions
WorkerOptions
structbota__worker_1_1WorkerOptions.html
a637b5e75510c7ebf0fc5cf626e50bed1
()
WorkerOptions
structbota__worker_1_1WorkerOptions.html
a1aa11e4d71836dd0f59885023cf4510d
(const std::string &name, const double timestep, WorkerCallback callback, const int priority=0)
WorkerOptions
structbota__worker_1_1WorkerOptions.html
aa8af64d11954258f6757fa7dc33bd97d
(const std::string &name, const double timestep, WorkerCallback callback, WorkerCallbackFailureReaction callbackFailureReaction, const int priority=0)
WorkerOptions
structbota__worker_1_1WorkerOptions.html
a2f84e744f72104b25055a6d13605c732
(const WorkerOptions &other)=default
WorkerOptions
structbota__worker_1_1WorkerOptions.html
a73097f5a1fa81c508934d0c3155d3be8
(WorkerOptions &&other) noexcept
WorkerCallback
callback_
structbota__worker_1_1WorkerOptions.html
a316f893e6210efe8eab7c4713d892ddd
WorkerCallbackFailureReaction
callbackFailureReaction_
structbota__worker_1_1WorkerOptions.html
ac121ba268be7cd37cc64a4c8ea80ba29
int
defaultPriority_
structbota__worker_1_1WorkerOptions.html
aac2e7602d2f743b255ab439603e3c56d
bool
destructWhenDone_
structbota__worker_1_1WorkerOptions.html
a12a570574189c31f69fb664e3af98135
bota_worker
namespacebota__worker.html
bota_worker::Rate
bota_worker::RateOptions
bota_worker::Worker
bota_worker::WorkerEvent
bota_worker::WorkerManager
bota_worker::WorkerOptions
std::function< bool(const WorkerEvent &)>
WorkerCallback
namespacebota__worker.html
a683448bd2a23a064eb12a0abd35daea3
std::function< void(void)>
WorkerCallbackFailureReaction
namespacebota__worker.html
ac3eb4cca6c9ab3d8f4b432f41a74cdab