Code Complexity Report

Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/src/main.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
main 1 8 49 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/src/accel_brake_map_calibrator_node.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
AccelBrakeMapCalibrator::AccelBrakeMapCalibrator 12 148 1333 1
AccelBrakeMapCalibrator::initOutputCSVTimer 1 11 110 1
AccelBrakeMapCalibrator::initTimer 1 10 110 1
AccelBrakeMapCalibrator::getCurrentPitchFromTF 3 24 183 1
AccelBrakeMapCalibrator::timerCallback 23 107 651 0
AccelBrakeMapCalibrator::timerCallbackOutputCSV 6 37 230 0
AccelBrakeMapCalibrator::callbackTwist 4 28 239 1
AccelBrakeMapCalibrator::callbackSteer 1 6 33 1
AccelBrakeMapCalibrator::callbackActuationStatus 3 34 282 1
AccelBrakeMapCalibrator::callbackUpdateMapService 4 23 152 3
AccelBrakeMapCalibrator::lowpass 1 5 33 3
AccelBrakeMapCalibrator::getPedalSpeed 2 11 68 3
AccelBrakeMapCalibrator::getAccel 2 12 112 2
AccelBrakeMapCalibrator::getJerk 1 6 41 0
AccelBrakeMapCalibrator::indexValueSearch 3 13 86 4
AccelBrakeMapCalibrator::nearestValueSearch 3 14 97 2
AccelBrakeMapCalibrator::nearestPedalSearch 3 16 82 0
AccelBrakeMapCalibrator::nearestVelSearch 1 5 27 0
AccelBrakeMapCalibrator::takeConsistencyOfAccelMap 5 17 172 0
AccelBrakeMapCalibrator::takeConsistencyOfBrakeMap 5 17 172 0
AccelBrakeMapCalibrator::updateAccelBrakeMap 14 48 262 0
AccelBrakeMapCalibrator::executeUpdate 5 25 178 5
AccelBrakeMapCalibrator::updateEachValOffset 4 39 408 7
AccelBrakeMapCalibrator::updateTotalMapOffset 5 26 268 2
AccelBrakeMapCalibrator::getMapColumnFromUnifiedIndex 2 10 89 3
AccelBrakeMapCalibrator::getPedalValueFromUnifiedIndex 2 8 60 1
AccelBrakeMapCalibrator::getUnifiedIndexFromAccelBrakeIndex 2 9 47 2
AccelBrakeMapCalibrator::getPitchCompensatedAcceleration 1 5 25 0
AccelBrakeMapCalibrator::executeEvaluation 1 18 139 0
AccelBrakeMapCalibrator::calculateEstimatedAcc 2 13 80 5
AccelBrakeMapCalibrator::calculateAccelSquaredError 1 9 66 5
AccelBrakeMapCalibrator::pushDataToQue 2 9 63 3
AccelBrakeMapCalibrator::pushDataToVec 2 8 55 3
AccelBrakeMapCalibrator::getNearestTimeDataFromVec 3 16 123 3
AccelBrakeMapCalibrator::getNearestTimeDataFromVec 3 16 108 3
AccelBrakeMapCalibrator::getAverage 3 11 61 1
AccelBrakeMapCalibrator::getStandardDeviation 3 12 84 1
AccelBrakeMapCalibrator::isTimeout 1 6 51 2
AccelBrakeMapCalibrator::isTimeout 1 6 40 2
AccelBrakeMapCalibrator::getOccMsg 1 21 190 5
AccelBrakeMapCalibrator::checkUpdateSuggest 3 16 95 1
AccelBrakeMapCalibrator::publishMap 8 54 524 3
AccelBrakeMapCalibrator::publishFloat32 3 13 80 2
AccelBrakeMapCalibrator::publishCountMap 6 54 561 0
AccelBrakeMapCalibrator::publishIndex 3 63 596 0
AccelBrakeMapCalibrator::publishUpdateSuggestFlag 3 17 100 0
AccelBrakeMapCalibrator::writeMapToCSV 8 37 280 4
AccelBrakeMapCalibrator::addIndexToCSV 1 7 27 1
AccelBrakeMapCalibrator::addLogToCSV 2 15 192 15
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/log_analyzer.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
view_pedal_accel_graph 1 17 126 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/delay_estimator.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 3 68 546 1
getCorCoef 1 3 36 3
plotPedalSpeedAndAccel 1 13 134 6
main 1 6 36 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/config.py
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/__init__.py
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/calc_utils.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
get_map_list 4 9 53 2
average_filter 3 17 86 2
lowpass_filter_scipy 1 8 74 6
create_2d_map 10 24 221 8
extract_x_index_map 4 12 71 2
create_stat_map 6 20 197 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/csv_reader.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 3 9 80 3
removeUnusedData 16 51 328 13
getVelData 1 3 22 1
getPedalData 1 3 36 1
getAccData 1 3 22 1
getPitchData 1 3 22 1
extractPedalRangeWithDelay 4 8 92 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/plotter.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 6 88 4
subplot 1 4 37 2
subplot_more 1 5 52 2
plot_1d 1 2 23 4
plot 1 2 42 6
scatter 1 2 39 6
scatter_color 1 3 51 6
plot_text 4 34 143 6
imshow 2 19 227 9
set_lim 1 3 23 4
add_label 1 5 45 4
show 2 3 15 1
save 1 2 15 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/view_statistics.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 82 490 1
main 1 6 36 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/scripts/view_plot.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 9 84 464 2
plotter_function 1 2 9 1
view_pedal_accel_graph 13 66 457 14
load_map 10 26 293 2
main 1 6 37 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/include/accel_brake_map_calibrator/accel_brake_map_calibrator_node.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
DataStamped::DataStamped 1 4 25 2