From b740a5c372c4df35166284cc6895338652ff9da8 Mon Sep 17 00:00:00 2001 From: Tomas Baca Date: Wed, 23 Aug 2023 17:55:54 +0200 Subject: [PATCH] added limit for async loop rate --- src/mpc_tracker/mpc_tracker.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mpc_tracker/mpc_tracker.cpp b/src/mpc_tracker/mpc_tracker.cpp index 3241317..0d35878 100644 --- a/src/mpc_tracker/mpc_tracker.cpp +++ b/src/mpc_tracker/mpc_tracker.cpp @@ -453,6 +453,11 @@ bool MpcTracker::initialize(const ros::NodeHandle& nh, std::shared_ptr 15 Hz"); + return false; + } + dt1_ = 1.0 / _mpc_asynchronous_rate_; param_loader.loadParam(yaml_prefix + "braking/enabled", drs_params_.braking_enabled);