Skip to content

Commit 7afd5d5

Browse files
committed
added yaml file for scheduler configuration
1 parent 836d5b8 commit 7afd5d5

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CMakeLists.txt

+13
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ install(
8787
DESTINATION /usr/include/dls2/state_estimator/${PROJECT_NAME}
8888
)
8989

90+
install(
91+
DIRECTORY config/
92+
COMPONENT ${PROJECT_NAME}
93+
DESTINATION /usr/include/dls2/state_estimator/${PROJECT_NAME}
94+
PATTERN "scheduler" EXCLUDE
95+
)
96+
97+
install(
98+
FILES config/scheduler.yaml
99+
COMPONENT ${PROJECT_NAME}
100+
DESTINATION /usr/include/dls2/schedulers/${PROJECT_NAME}
101+
)
102+
90103
install(
91104
TARGETS ${PROJECT_NAME}
92105
LIBRARY DESTINATION /usr/lib/dls2/estimators

config/scheduler.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Attributes for SCHED_DEADLINE policy
2+
period : 10 # ms, setting sched_period. This is the desired periodicity of the process
3+
runtime_factor : 1 # used to compute sched_runtime = period * runtime_factor. The sched_runtime attribute is usually set to the average computation time (or worst-case execution time for hard real-time tasts)
4+
deadline_factor : 1 # used to compute sched_deadline = period * deadline_factor. The sched_deadline attribute is a time window, starting from the beginning of the period, when sched_runtime microseconds are available to execute the task.

src/vicon_bridge.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ namespace dls
2222
{
2323
ViconBridge::ViconBridge(std::string& ID)
2424
: Estimator(
25-
ID,
26-
std::chrono::milliseconds(10))
25+
ID)
2726
, writer_vicon_(
2827
this->getParticipant(),
2928
dls::topics::high_level_estimation::vicon,

0 commit comments

Comments
 (0)