-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ec9b01
commit 9047a35
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/controller_manager/src/ros2_control_node.cpp b/controller_manager/src/ros2_control_node.cpp | ||
index f2079f80..75a98d19 100644 | ||
--- a/controller_manager/src/ros2_control_node.cpp | ||
+++ b/controller_manager/src/ros2_control_node.cpp | ||
@@ -61,10 +61,11 @@ int main(int argc, char ** argv) | ||
|
||
const bool has_realtime = realtime_tools::has_realtime_kernel(); | ||
const bool lock_memory = cm->get_parameter_or<bool>("lock_memory", has_realtime); | ||
- if (lock_memory) | ||
+ if (lock_memory) | ||
{ | ||
const auto lock_result = realtime_tools::lock_memory(); | ||
- if (!lock_result.first) { | ||
+ if (!lock_result.first) | ||
+ { | ||
RCLCPP_WARN(cm->get_logger(), "Unable to lock the memory: '%s'", lock_result.second.c_str()); | ||
} | ||
} |