in ctrl_pkg/src/ctrl_node.cpp [382:393]
void autoThrottleHdl(const std::shared_ptr<rmw_request_id_t> request_header,
std::shared_ptr<deepracer_interfaces_pkg::srv::NavThrottleSrv::Request> req,
std::shared_ptr<deepracer_interfaces_pkg::srv::NavThrottleSrv::Response> res) {
(void)request_header;
if (activeState_ == stateList_.end()) {
RCLCPP_ERROR(this->get_logger(), "No active state");
res->error = 1;
return;
}
activeState_->second->setConstantThrottle(req->throttle);
res->error = 0;
}