Fawkes API
Fawkes Development Version
|
21 #include "execution_time_estimator_navgraph_thread.h"
23 #include "navgraph_estimator.h"
25 #include <interfaces/Position3DInterface.h>
31 constexpr
char ExecutionTimeEstimatorNavgraphThread::cfg_prefix_[];
35 : Thread(
"ExecutionTimeEstimatorNavgraphThread", Thread::OPMODE_WAITFORWAKEUP)
43 estimator_ = std::make_shared<fawkes::NavGraphEstimator>(
navgraph,
config, cfg_prefix_);
void finalize()
Unregister the estimator.
void register_provider(std::shared_ptr< ExecutionTimeEstimator > provider, int priority=0)
Add an execution time provider.
void unregister_provider(std::shared_ptr< ExecutionTimeEstimator > provider)
Remove an execution time estimate provider.
ExecutionTimeEstimatorManager * execution_time_estimator_manager_
The ExecutionTimeEstimatorManager that is used to manage the estimators.
void init()
Register the estimator.
ExecutionTimeEstimatorNavgraphThread()
Constructor.
Configuration * config
This is the Configuration member used to access the configuration.
fawkes::LockPtr< NavGraph > navgraph
NavGraph instance shared in framework.
virtual int get_int_or_default(const char *path, const int &default_val)
Get value from configuration which is of type int, or the given default if the path does not exist.