Skip to content
Snippets Groups Projects
Commit 494eeaa9 authored by Your Name's avatar Your Name
Browse files

HeartbeatComponentPlugin: fix: reading properties is only possible in...

HeartbeatComponentPlugin: fix: reading properties is only possible in postOnInitComponent (not preOnInit)
parent 175602a4
No related branches found
Tags rpc-2023
No related merge requests found
...@@ -109,11 +109,6 @@ namespace armarx::plugins ...@@ -109,11 +109,6 @@ namespace armarx::plugins
void void
HeartbeatComponentPlugin::preOnInitComponent() HeartbeatComponentPlugin::preOnInitComponent()
{ {
// set default args
auto warn = armarx::core::time::Duration::MilliSeconds(p.maximumCycleTimeWarningMS);
auto err = armarx::core::time::Duration::MilliSeconds(p.maximumCycleTimeErrorMS);
armarx::core::time::toIce(defaultHeartbeatArgs.maximumCycleTimeWarning, warn);
armarx::core::time::toIce(defaultHeartbeatArgs.maximumCycleTimeError, err);
// defaultHeartbeatArgs.requiredByDefault = true; // defaultHeartbeatArgs.requiredByDefault = true;
// if (topicName.empty()) // if (topicName.empty())
...@@ -126,6 +121,11 @@ namespace armarx::plugins ...@@ -126,6 +121,11 @@ namespace armarx::plugins
void void
HeartbeatComponentPlugin::postOnInitComponent() HeartbeatComponentPlugin::postOnInitComponent()
{ {
// set default args
auto warn = armarx::core::time::Duration::MilliSeconds(p.maximumCycleTimeWarningMS);
auto err = armarx::core::time::Duration::MilliSeconds(p.maximumCycleTimeErrorMS);
armarx::core::time::toIce(defaultHeartbeatArgs.maximumCycleTimeWarning, warn);
armarx::core::time::toIce(defaultHeartbeatArgs.maximumCycleTimeError, err);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment