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_smoother/src/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::analytical_velocity_planning_utils::calcStopDistWithJerkAndAccConstraints 14 100 968 9
motion_velocity_smoother::analytical_velocity_planning_utils::validCheckCalcStopDist 5 22 145 6
motion_velocity_smoother::analytical_velocity_planning_utils::calcStopVelocityWithConstantJerkAccLimit 18 88 956 10
motion_velocity_smoother::analytical_velocity_planning_utils::updateStopVelocityStatus 16 62 740 11
motion_velocity_smoother::analytical_velocity_planning_utils::integ_x 1 4 54 5
motion_velocity_smoother::analytical_velocity_planning_utils::integ_v 1 1 33 4
motion_velocity_smoother::analytical_velocity_planning_utils::integ_a 1 1 20 3
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_smoother/src/smoother/analytical_jerk_constrained_smoother/analytical_jerk_constrained_smoother.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
lerpByPose 1 16 156 3
applyMaxVelocity 4 14 120 4
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::AnalyticalJerkConstrainedSmoother 1 4 16 1
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::setParam 1 4 15 1
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::apply 13 118 796 5
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::resampleTrajectory 5 35 383 3
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::applyLateralAccelerationFilter 19 93 824 1
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::searchDecelTargetIndices 10 38 433 3
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::applyForwardJerkFilter 2 26 346 6
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::applyBackwardDecelFilter 14 90 525 5
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::calcEnoughDistForDecel 5 40 283 10
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::applyDecelVelocityFilter 3 23 183 7
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::strTimes 2 10 64 1
motion_velocity_smoother::AnalyticalJerkConstrainedSmoother::strStartIndices 3 13 91 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_smoother/src/smoother/linf_pseudo_jerk_smoother.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::LinfPseudoJerkSmoother::LinfPseudoJerkSmoother 1 9 59 1
motion_velocity_smoother::LinfPseudoJerkSmoother::setParam 1 4 15 1
motion_velocity_smoother::LinfPseudoJerkSmoother::apply 16 125 1351 5
motion_velocity_smoother::LinfPseudoJerkSmoother::resampleTrajectory 1 5 36 3
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_smoother/src/smoother/jerk_filtered_smoother.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::JerkFilteredSmoother::JerkFilteredSmoother 1 9 59 1
motion_velocity_smoother::JerkFilteredSmoother::setParam 1 4 15 1
motion_velocity_smoother::JerkFilteredSmoother::apply 21 204 2102 5
motion_velocity_smoother::JerkFilteredSmoother::forwardJerkFilter 8 45 466 6
motion_velocity_smoother::JerkFilteredSmoother::backwardJerkFilter 2 14 163 6
motion_velocity_smoother::JerkFilteredSmoother::mergeFilteredTrajectory 8 41 426 6
motion_velocity_smoother::JerkFilteredSmoother::resampleTrajectory 1 6 37 3
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_smoother/src/smoother/smoother_base.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::SmootherBase::setParam 1 1 15 1
motion_velocity_smoother::SmootherBase::getMaxAccel 1 1 13 0
motion_velocity_smoother::SmootherBase::getMinDecel 1 1 13 0
motion_velocity_smoother::SmootherBase::getMaxJerk 1 1 13 0
motion_velocity_smoother::SmootherBase::getMinJerk 1 1 13 0
motion_velocity_smoother::SmootherBase::applyLateralAccelerationFilter 10 50 479 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_smoother/src/smoother/l2_pseudo_jerk_smoother.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::L2PseudoJerkSmoother::L2PseudoJerkSmoother 1 9 59 1
motion_velocity_smoother::L2PseudoJerkSmoother::setParam 1 4 15 1
motion_velocity_smoother::L2PseudoJerkSmoother::apply 16 115 1242 5
motion_velocity_smoother::L2PseudoJerkSmoother::resampleTrajectory 1 5 36 3
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_smoother/src/linear_interpolation.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::linear_interpolation::interpolate 19 67 613 3
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_smoother/src/motion_velocity_smoother_node.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::MotionVelocitySmootherNode::MotionVelocitySmootherNode 5 79 566 1
motion_velocity_smoother::MotionVelocitySmootherNode::onParameter 6 105 824 1
motion_velocity_smoother::MotionVelocitySmootherNode::initCommonParam 1 30 321 0
motion_velocity_smoother::MotionVelocitySmootherNode::initSmootherBaseParam 1 22 237 0
motion_velocity_smoother::MotionVelocitySmootherNode::initJerkFilteredSmootherParam 1 9 78 0
motion_velocity_smoother::MotionVelocitySmootherNode::initL2PseudoJerkSmootherParam 1 7 52 0
motion_velocity_smoother::MotionVelocitySmootherNode::initLinfPseudoJerkSmootherParam 1 7 52 0
motion_velocity_smoother::MotionVelocitySmootherNode::initAnalyticalJerkConstrainedSmootherParam 1 22 257 0
motion_velocity_smoother::MotionVelocitySmootherNode::publishTrajectory 1 4 19 1
motion_velocity_smoother::MotionVelocitySmootherNode::onCurrentVelocity 1 4 16 1
motion_velocity_smoother::MotionVelocitySmootherNode::onExternalVelocityLimit 12 44 311 1
motion_velocity_smoother::MotionVelocitySmootherNode::checkData 5 14 77 0
motion_velocity_smoother::MotionVelocitySmootherNode::onCurrentTrajectory 7 55 368 1
motion_velocity_smoother::MotionVelocitySmootherNode::calcTrajectoryVelocity 11 51 343 1
motion_velocity_smoother::MotionVelocitySmootherNode::smoothVelocity 11 71 578 2
motion_velocity_smoother::MotionVelocitySmootherNode::insertBehindVelocity 5 18 209 3
motion_velocity_smoother::MotionVelocitySmootherNode::publishStopDistance 4 17 134 2
motion_velocity_smoother::MotionVelocitySmootherNode::calcInitialMotion 9 68 487 3
motion_velocity_smoother::MotionVelocitySmootherNode::overwriteStopPoint 3 39 265 2
motion_velocity_smoother::MotionVelocitySmootherNode::applyExternalVelocityLimit 5 26 223 1
motion_velocity_smoother::MotionVelocitySmootherNode::applyStopApproachingVelocity 5 17 146 1
motion_velocity_smoother::MotionVelocitySmootherNode::publishDebugTrajectories 3 15 96 1
motion_velocity_smoother::MotionVelocitySmootherNode::publishClosestVelocity 1 11 84 3
motion_velocity_smoother::MotionVelocitySmootherNode::publishClosestState 2 26 190 1
motion_velocity_smoother::MotionVelocitySmootherNode::getAlgorithmType 5 18 79 1
motion_velocity_smoother::MotionVelocitySmootherNode::calcTravelDistance 2 10 51 0
motion_velocity_smoother::MotionVelocitySmootherNode::isEngageStatus 2 6 51 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_smoother/src/trajectory_utils.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::trajectory_utils::convertEulerAngleToMonotonic 2 7 69 1
motion_velocity_smoother::trajectory_utils::getTransVector3 1 7 71 2
motion_velocity_smoother::trajectory_utils::integ_x 1 4 54 5
motion_velocity_smoother::trajectory_utils::integ_v 1 4 33 4
motion_velocity_smoother::trajectory_utils::integ_a 1 1 20 3
motion_velocity_smoother::trajectory_utils::calcInterpolatedTrajectoryPoint 3 33 431 2
motion_velocity_smoother::trajectory_utils::extractPathAroundIndex 8 37 274 4
motion_velocity_smoother::trajectory_utils::calcArcLength 7 21 179 3
motion_velocity_smoother::trajectory_utils::calcArclengthArray 2 14 113 1
motion_velocity_smoother::trajectory_utils::calcTrajectoryIntervalDistance 2 11 95 1
motion_velocity_smoother::trajectory_utils::calcTrajectoryCurvatureFrom3Points 5 40 420 2
motion_velocity_smoother::trajectory_utils::setZeroVelocity 2 6 32 1
motion_velocity_smoother::trajectory_utils::getMaxVelocity 3 10 55 1
motion_velocity_smoother::trajectory_utils::getMaxAbsVelocity 3 11 59 1
motion_velocity_smoother::trajectory_utils::applyMaximumVelocityLimit 3 9 74 4
motion_velocity_smoother::trajectory_utils::applyLinearInterpolation 12 54 599 4
motion_velocity_smoother::trajectory_utils::calcStopDistWithJerkConstraints 18 111 882 8
motion_velocity_smoother::trajectory_utils::isValidStopDist 5 22 165 6
motion_velocity_smoother::trajectory_utils::applyDecelFilterWithJerkConstraint 16 88 833 7
motion_velocity_smoother::trajectory_utils::updateStateWithJerkConstraint 3 29 255 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_smoother/src/resample.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
motion_velocity_smoother::resampling::resampleTrajectory 19 92 686 4
motion_velocity_smoother::resampling::resampleTrajectory 21 91 635 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_smoother/scripts/closest_velocity_checker.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 74 411 1
printInfo 6 55 270 1
timerCallback 1 4 33 1
CallBackAwEngage 1 2 14 2
CallBackVehicleEngage 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_smoother/scripts/trajectory_visualizer.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 2 85 577 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_smoother/include/motion_velocity_smoother/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.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_smoother/include/motion_velocity_smoother/smoother/analytical_jerk_constrained_smoother/analytical_jerk_constrained_smoother.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_smoother/include/motion_velocity_smoother/smoother/l2_pseudo_jerk_smoother.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_smoother/include/motion_velocity_smoother/smoother/linf_pseudo_jerk_smoother.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_smoother/include/motion_velocity_smoother/smoother/smoother_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_smoother/include/motion_velocity_smoother/smoother/jerk_filtered_smoother.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_smoother/include/motion_velocity_smoother/linear_interpolation.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_smoother/include/motion_velocity_smoother/resample.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_smoother/include/motion_velocity_smoother/trajectory_utils.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_smoother/include/motion_velocity_smoother/motion_velocity_smoother_node.hpp