Code Complexity Report

Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/src/velocity_controller_utils.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
velocity_controller_utils::isValidTrajectory 16 19 195 1
velocity_controller_utils::calcStopDistance 2 8 76 2
velocity_controller_utils::getPitchByPose 1 8 107 1
velocity_controller_utils::getPitchByTraj 6 25 253 3
velocity_controller_utils::calcElevationAngle 1 9 95 2
velocity_controller_utils::calcPoseAfterTimeDelay 1 12 88 3
velocity_controller_utils::lerp 1 4 27 3
velocity_controller_utils::lerpOrientation 1 8 64 3
velocity_controller_utils::applyDiffLimitFilter 1 9 69 5
velocity_controller_utils::applyDiffLimitFilter 1 7 52 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/src/velocity_controller_core.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
VelocityController::VelocityController 1 109 1130 1
VelocityController::callbackCurrentVelocity 2 8 43 1
VelocityController::callbackTrajectory 3 14 96 1
VelocityController::paramCallback 2 100 824 1
VelocityController::callbackTimerControl 5 20 138 0
VelocityController::getControlData 4 29 203 1
VelocityController::calcEmergencyCtrlCmd 1 12 99 1
VelocityController::updateControlState 20 65 403 3
VelocityController::calcCtrlCmd 5 55 452 3
VelocityController::publishCtrlCmd 2 14 116 2
VelocityController::publishDebugData 2 21 216 3
VelocityController::getDt 2 14 117 0
VelocityController::getCurrentMotion 1 12 108 0
VelocityController::getCurrentShift 3 11 69 1
VelocityController::calcFilteredAcc 1 13 117 2
VelocityController::storeAccelCmd 4 17 117 1
VelocityController::applySlopeCompensation 4 11 96 3
VelocityController::keepBrakeBeforeStop 7 27 195 3
VelocityController::calcInterpolatedTargetValue 6 19 172 4
VelocityController::predictedVelocityInTargetPoint 9 37 384 2
VelocityController::applyVelocityFeedback 1 21 185 3
VelocityController::updatePitchDebugValues 1 11 111 3
VelocityController::updateDebugVelAcc 1 15 159 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/src/pid.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
PIDController::PIDController 1 1 26 0
PIDController::calculate 3 29 245 4
PIDController::setGains 1 6 36 3
PIDController::setLimits 1 13 86 8
PIDController::reset 1 6 23 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/include/velocity_controller/smooth_stop.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
SmoothStop::init 2 10 90 2
SmoothStop::setParams 1 17 103 11
SmoothStop::calcTimeToStop 6 36 266 1
SmoothStop::calculate 10 27 212 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/include/velocity_controller/velocity_controller.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/include/velocity_controller/debug_values.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
DebugValues::getValuesIdx 1 1 18 1
DebugValues::getValues 1 1 9 0
DebugValues::setValues 1 1 27 2
DebugValues::setValues 1 1 21 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/include/velocity_controller/velocity_controller_utils.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
velocity_controller_utils::lerpXYZ 1 8 75 3
velocity_controller_utils::lerpTrajectoryPoint 1 26 304 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/control/velocity_controller/include/velocity_controller/pid.hpp