Skip to content

Commit

Permalink
Fixe merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Aug 22, 2024
1 parent d9a848d commit 289b98f
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions controller_manager/src/ros2_control_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

<<<<<<< HEAD
#include <algorithm>
=======
#include <errno.h>
>>>>>>> dd352eb (inform user what reason is for not setting rt policy, inform is policy (#1705))
#include <algorithm>
#include <chrono>
#include <memory>
#include <string>
Expand Down Expand Up @@ -54,29 +51,21 @@ int main(int argc, char ** argv)
{
if (realtime_tools::has_realtime_kernel())
{
<<<<<<< HEAD
if (!realtime_tools::configure_sched_fifo(kSchedPriority))
{
RCLCPP_WARN(cm->get_logger(), "Could not enable FIFO RT scheduling policy");
RCLCPP_WARN(
cm->get_logger(),
"Could not enable FIFO RT scheduling policy: with error number <%i>(%s). See "
"[https://control.ros.org/master/doc/ros2_control/controller_manager/doc/userdoc.html] "
"for details on how to enable realtime scheduling.",
errno, strerror(errno));
}
}
else
{
RCLCPP_INFO(cm->get_logger(), "RT kernel is recommended for better performance");
=======
RCLCPP_WARN(
cm->get_logger(),
"Could not enable FIFO RT scheduling policy: with error number <%i>(%s). See "
"[https://control.ros.org/master/doc/ros2_control/controller_manager/doc/userdoc.html] "
"for details on how to enable realtime scheduling.",
errno, strerror(errno));
}
else
{
RCLCPP_INFO(
cm->get_logger(), "Successful set up FIFO RT scheduling policy with priority %i.",
kSchedPriority);
>>>>>>> dd352eb (inform user what reason is for not setting rt policy, inform is policy (#1705))
}

// for calculating sleep time
Expand Down

0 comments on commit 289b98f

Please sign in to comment.