1 #ifndef ORG_EEROS_CORE_EXECUTOR_HPP_ 2 #define ORG_EEROS_CORE_EXECUTOR_HPP_ 5 #include <condition_variable> 13 #include <EtherCATMain.hpp> 34 static constexpr
int basePriority = 49;
39 void syncWithEtherCATSTack(ethercat::EtherCATMain* etherCATStack);
48 static void prefault_stack();
49 static bool lock_memory();
50 static bool set_priority(
int nice);
58 void syncWithRosTime();
59 void syncWithRosTopic(ros::CallbackQueue* syncRosCallbackQueue);
60 ros::CallbackQueue* syncRosCallbackQueue;
65 void assignPriorities();
68 ethercat::EtherCATMain* etherCATStack;
70 std::condition_variable* cv;
72 bool syncWithEtherCatStackIsSet;
73 bool syncWithRosTimeIsSet;
74 bool syncWithRosTopicIsSet;
78 std::vector<task::Periodic> tasks;
83 #endif // ORG_EEROS_CORE_EXECUTOR_HPP_ Safety system.
Definition: SafetySystem.hpp:19
Definition: Logger.hpp:15
Definition: PeriodicCounter.hpp:14
Definition: Executor.hpp:31
Definition: Config.hpp:14
Definition: Runnable.hpp:6
PeriodicCounter counter
Definition: Executor.hpp:54
Definition: Periodic.hpp:13
Definition: TimeDomain.hpp:17