Code Complexity Report

Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/src/optimizer/pseudo_jerk_linf_optimizer.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
LinfPseudoJerkOptimizer::LinfPseudoJerkOptimizer 1 9 58 1
LinfPseudoJerkOptimizer::setParam 1 1 15 1
LinfPseudoJerkOptimizer::solve 18 140 1483 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/src/optimizer/pseudo_jerk_l2_optimizer.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
L2PseudoJerkOptimizer::L2PseudoJerkOptimizer 1 9 58 1
L2PseudoJerkOptimizer::setParam 1 1 15 1
L2PseudoJerkOptimizer::solve 18 133 1376 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/src/interpolate.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
LinearInterpolate::interpolate 18 63 582 4
SplineInterpolate::SplineInterpolate 1 1 7 0
SplineInterpolate::SplineInterpolate 1 1 21 1
SplineInterpolate::~SplineInterpolate 1 1 7 0
SplineInterpolate::generateSpline 5 32 338 1
SplineInterpolate::getValue 2 9 104 1
SplineInterpolate::getValueVector 3 11 79 2
SplineInterpolate::interpolate 16 59 549 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/src/motion_velocity_optimizer.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
update_param 2 10 95 3
MotionVelocityOptimizer::MotionVelocityOptimizer 5 100 1067 1
MotionVelocityOptimizer::~MotionVelocityOptimizer 1 1 7 0
MotionVelocityOptimizer::publishTrajectory 1 5 23 1
MotionVelocityOptimizer::callbackCurrentVelocity 1 5 20 1
MotionVelocityOptimizer::callbackCurrentTrajectory 1 6 24 1
MotionVelocityOptimizer::callbackExternalVelocityLimit 1 6 28 1
MotionVelocityOptimizer::updateCurrentPose 2 19 150 0
MotionVelocityOptimizer::run 5 27 202 0
MotionVelocityOptimizer::calcTrajectoryVelocity 9 65 448 1
MotionVelocityOptimizer::insertBehindVelocity 5 20 207 3
MotionVelocityOptimizer::calcRoundWaypointFromCurrentPose 10 77 811 6
MotionVelocityOptimizer::publishStopDistance 3 15 122 2
MotionVelocityOptimizer::resampleTrajectory 9 52 380 2
MotionVelocityOptimizer::calcInitialMotion 9 65 421 7
MotionVelocityOptimizer::optimizeVelocity 3 23 185 4
MotionVelocityOptimizer::overwriteStopPoint 4 27 190 2
MotionVelocityOptimizer::lateralAccelerationFilter 8 50 456 2
MotionVelocityOptimizer::externalVelocityLimitFilter 2 13 63 2
MotionVelocityOptimizer::preventMoveToCloseStopLine 5 25 160 2
MotionVelocityOptimizer::extractPathAroundIndex 9 41 343 3
MotionVelocityOptimizer::applyStoppingVelocity 5 18 141 1
MotionVelocityOptimizer::publishFloat 1 9 57 2
MotionVelocityOptimizer::updateExternalVelocityLimit 6 24 170 1
MotionVelocityOptimizer::timerCallback 1 5 22 0
MotionVelocityOptimizer::blockUntilVehiclePositionAvailable 3 11 90 1
MotionVelocityOptimizer::paramCallback 2 44 282 1
MotionVelocityOptimizer::publishClosestJerk 2 14 93 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/src/motion_velocity_optimizer_utils.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
vpu::square 1 1 14 1
vpu::calcSquaredDist2d 1 4 45 2
vpu::calcSquaredDist2d 1 4 53 2
vpu::calcSquaredDist2d 1 6 61 2
vpu::calcSquaredDist2d 1 7 61 2
vpu::calcDist2d 1 4 35 2
vpu::calcDist2d 1 4 35 2
vpu::calcDist2d 1 5 35 2
vpu::calcDist2d 1 6 35 2
vpu::calcDist2dToLine 1 9 121 3
vpu::calcTriangleVerticalInterpolatedLength 2 12 157 3
vpu::calcWhichSideOfLine 1 14 149 3
vpu::calcClosestWaypoint 3 16 147 2
vpu::calcClosestWaypoint 4 21 210 3
vpu::getTransVector3 1 8 79 2
vpu::calcClosestTrajectoryPointWithInterpolation 6 40 426 2
vpu::extractPathAroundIndex 9 35 288 5
vpu::calcLengthOnWaypoints 7 20 178 3
vpu::calcTrajectoryArclength 2 13 123 2
vpu::calcTrajectoryIntervalDistance 2 11 111 2
vpu::setZeroVelocity 2 6 36 1
vpu::getMaxVelocity 3 10 59 1
vpu::getMaxAbsVelocity 3 11 63 1
vpu::minimumVelocityFilter 3 9 53 2
vpu::maximumVelocityFilter 4 12 91 2
vpu::multiplyConstantToTrajectoryVelocity 2 7 40 2
vpu::insertZeroVelocityAfterIdx 3 10 74 2
vpu::getVx 1 4 34 2
vpu::searchZeroVelocityIdx 3 10 74 2
vpu::calcTrajectoryCurvatureFrom3Points 6 40 434 3
vpu::normalizeRadian 3 6 50 1
vpu::convertEulerAngleToMonotonic 2 7 67 1
vpu::getQuaternionFromYaw 1 6 31 1
vpu::linearInterpTrajectory 11 48 518 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/scripts/closest_velocity_checker.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 72 398 1
printInfo 4 45 241 1
timerCallback 1 4 33 1
CallBackAwEngage 1 2 14 2
CallBackExternalVelLim 1 2 14 2
CallBackLocalizationTwist 1 2 14 2
CallBackVehicleTwist 1 2 14 2
CallBackBehaviorPathWLid 1 4 37 2
CallBackBehaviorPath 1 4 35 2
CallBackAvoidTrajectory 1 4 35 2
CallBackLaneDriveTrajectory 1 4 35 2
CallBackLataccTrajectory 1 4 35 2
CallBackScenarioTrajectory 1 4 35 2
CallBackControlCmd 1 4 32 2
CallBackVehicleCmd 1 4 32 2
calcClosestPath 3 9 63 2
calcClosestPathWLid 3 9 65 2
calcClosestTrajectory 3 9 63 2
calcSquaredDist2d 1 4 43 3
updatePose 2 14 161 3
main 3 10 44 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/scripts/trajectory_visualizer.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 2 87 575 1
test 1 2 13 1
CallbackLocalizationTwist 1 2 14 2
CallbackVehicleTwist 1 2 14 2
CallbackMotionVelOptTraj 1 6 45 6
CallBackTrajExVelLim 1 3 17 2
CallBackTrajLatAccFiltered 1 3 17 2
CallBackTrajRaw 1 3 17 2
CallBackTrajTimeResampled 1 3 17 2
CallBackTrajFinal 1 3 17 2
CallBackLaneDrivingTraj 1 5 37 5
CallBackLaneChangePath 1 3 17 2
CallBackBehaviorPath 1 3 17 2
CallbackObstacleAvoidTraj 1 3 17 2
CallbackObstacleStopTraj 1 3 17 2
setPlotTrajectoryVelocity 1 36 454 1
plotTrajectoryVelocity 13 94 603 2
CalcArcLength 3 15 129 2
CalcArcLengthPathWLid 3 15 133 2
CalcArcLengthPath 3 15 129 2
ToVelList 2 5 32 2
ToVelListPathWLid 2 5 34 2
ToVelListPath 2 5 32 2
CalcAcceleration 3 18 177 2
CalcJerk 3 26 309 2
setPlotTrajectory 1 21 303 1
plotTrajectory 9 40 404 2
calcClosestPath 3 9 63 2
calcClosestPathWLid 3 9 65 2
calcClosestTrajectory 3 9 63 2
calcSquaredDist2d 1 4 43 3
updatePose 2 18 169 3
closeFigure 1 2 13 1
main 3 10 44 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/include/motion_velocity_optimizer/optimizer/linf_pseudo_jerk_optimizer.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/include/motion_velocity_optimizer/optimizer/optimizer_base.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/include/motion_velocity_optimizer/optimizer/l2_pseudo_jerk_optimizer.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/include/motion_velocity_optimizer/motion_velocity_optimizer.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
MotionVelocityOptimizer::createVelocityLimitMsg 1 7 32 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/include/motion_velocity_optimizer/interpolate.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
LinearInterpolate::LinearInterpolate 1 1 5 0
LinearInterpolate::~LinearInterpolate 1 1 5 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/common/motion_velocity_optimizer/include/motion_velocity_optimizer/motion_velocity_optimizer_utils.hpp