@@ -50,20 +50,20 @@ void ControlNode::control_loop_callback()
5050 return ;
5151 }
5252
53- // the car's current velocity. we only support moving forward atp
53+ // the car's current velocity - the car only ever moves forward G
5454 const vec3f velocity (this ->vehicle_speed_ ->value , 0 , 0 ); // +x is always forward on the car
5555
5656 const bool PATH_IS_STALE = false , SPEED_PROFILE_IS_STALE = false ; // TEMP
5757
5858 // if path has no waypoints OR path is too old
5959 if (!target_path_ || target_path_->path .size () < 1 || PATH_IS_STALE) {
60- RCLCPP_WARN (this ->get_logger (), " Target path is cooked fam . Null, not enough waypoints, or old, skipping." ); // TODO: should be throttled
60+ RCLCPP_WARN_THROTTLE (this ->get_logger (), * this -> get_clock (), 5000 , " Target path is invalid . Null, not enough waypoints, or old, skipping." );
6161 return ;
6262 }
6363
6464 // if speed profile has no waypoints or speed profile is too old
6565 if (!speed_profile_ || speed_profile_->speeds .size () < 1 || SPEED_PROFILE_IS_STALE) {
66- RCLCPP_WARN (this ->get_logger (), " Speed profile is cooked fam . Null, not enough waypoints, or old, skipping." );
66+ RCLCPP_WARN_THROTTLE (this ->get_logger (), * this -> get_clock (), 5000 , " Speed profile is invalid . Null, not enough waypoints, or old, skipping." );
6767 return ;
6868 }
6969
@@ -77,7 +77,7 @@ void ControlNode::control_loop_callback()
7777 AckermannController::Command cmd = ackermann_controller_.compute_command (acc, velocity);
7878
7979 // ALY'S FAVOURITE DEBUG CMD 2
80- // RCLCPP_INFO_THROTTLE(this->get_logger(), *this->get_clock(), 700, "CMD: {throttle: %.2f, steering: %.2f}", cmd.throttle, cmd.steering);
80+ // RCLCPP_INFO_THROTTLE(this->get_logger(), *this->get_clock(), 700, "CMD: {throttle: %.2f, steering: %.2f, brake: %.2f }", cmd.throttle, cmd.steering, cmd.brake );
8181
8282 // pack the turn angle into a message
8383 FloatStamped turn_msg;
0 commit comments