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/lane_driving/motion_planning/obstacle_avoidance_planner/src/vehicle_model/vehicle_model_bicycle_kinematics_no_delay.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
KinematicsBicycleModelNoDelay::KinematicsBicycleModelNoDelay 1 7 33 2
KinematicsBicycleModelNoDelay::calculateDiscreteMatrix 2 15 189 5
KinematicsBicycleModelNoDelay::calculateReferenceInput 1 4 31 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/vehicle_model/vehicle_model_bicycle_kinematics.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
KinematicsBicycleModel::KinematicsBicycleModel 1 8 39 3
KinematicsBicycleModel::calculateDiscreteMatrix 2 18 238 5
KinematicsBicycleModel::calculateReferenceInput 1 4 31 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/vehicle_model/vehicle_model_interface.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
VehicleModelInterface::VehicleModelInterface 1 4 30 3
VehicleModelInterface::getDimX 1 1 10 0
VehicleModelInterface::getDimU 1 1 10 0
VehicleModelInterface::getDimY 1 1 10 0
VehicleModelInterface::setCurvature 1 1 14 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/util.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
util::transformToRelativeCoordinate2D 1 14 128 2
util::transformToAbsoluteCoordinate2D 1 12 123 2
util::calculate2DDistance 1 6 60 2
util::calculateSquaredDistance 1 7 55 2
util::getYawFromPoints 1 7 56 2
util::getQuaternionFromYaw 1 6 32 1
util::normalizeRadian 3 6 50 1
util::getQuaternionFromPoints 1 10 71 2
util::transformMapToImage 1 15 99 2
util::transformMapToOptionalImage 5 24 153 2
util::transformMapToImage 5 23 161 3
util::interpolate2DPoints 10 30 280 4
util::getInterpolatedPoints 7 28 241 3
util::getInterpolatedPoints 5 20 176 2
util::getInterpolatedPoints 5 20 188 2
util::getInterpolatedPoints 5 20 184 2
util::getInterpolatedPoints 5 20 191 2
util::getNearestIdx 4 19 163 4
util::getNearestIdx 8 30 290 5
util::getNearestIdxOverPoint 6 28 276 4
util::getNearestIdx 5 21 177 4
util::getNearestIdx 6 23 237 3
util::getNearestIdx 3 14 101 2
util::getNearestIdx 3 13 96 2
util::getNearestIdx 3 14 99 3
util::getNearestPointIdx 3 13 94 2
util::convertPathToTrajectory 2 12 74 1
util::convertPointsToTrajectoryPointsWithYaw 5 26 251 1
util::fillTrajectoryWithVelocity 2 12 70 2
util::alignVelocityWithPoints 6 44 466 4
util::getHistogramTable 5 14 137 1
util::getLargestRectangleInRow 8 39 291 3
util::getLargestRectangle 3 12 100 1
util::getLastExtendedPoint 4 14 118 4
util::getLastExtendedTrajPoint 4 19 162 4
util::getVehicleFootprints 3 28 253 2
util::calcEuclidDist 3 14 156 2
util::hasValidNearestPointFromEgo 2 16 91 3
util::concatTraj 1 10 78 1
util::getZeroVelocityIdx 5 34 249 5
util::getZeroVelocityIdxFromPoints 3 18 132 4
util::getArcLength 3 12 82 2
util::getArcLength 3 11 87 2
util::logOSQPSolutionStatus 9 41 243 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/eb_path_optimizer.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
EBPathOptimizer::EBPathOptimizer 1 20 134 6
EBPathOptimizer::~EBPathOptimizer 1 1 7 0
EBPathOptimizer::initializeSolver 1 20 211 0
EBPathOptimizer::makePMatrix 6 19 154 0
EBPathOptimizer::makeAMatrix 3 13 93 0
EBPathOptimizer::generateOptimizedTrajectory 5 54 462 6
EBPathOptimizer::getOptimizedTrajectory 3 38 315 6
EBPathOptimizer::getExtendedOptimizedTrajectory 9 84 718 3
EBPathOptimizer::calculateTrajectory 1 17 143 4
EBPathOptimizer::solveQP 4 24 216 1
EBPathOptimizer::getFixedPoints 4 35 262 5
EBPathOptimizer::getCandidatePoints 4 38 298 6
EBPathOptimizer::getPaddedInterpolatedPoints 3 13 88 2
EBPathOptimizer::getDefaultCandidatePoints 4 25 153 1
EBPathOptimizer::isPointInsideDrivableArea 4 16 129 3
EBPathOptimizer::getEndPathIdx 4 19 124 3
EBPathOptimizer::getEndPathIdxInsideArea 9 52 448 5
EBPathOptimizer::getNumFixedPoints 3 13 106 3
EBPathOptimizer::convertOptimizedPointsToTrajectory 6 23 232 3
EBPathOptimizer::getConstrainRectangleVec 9 37 336 7
EBPathOptimizer::getConstrainRectangleVec 9 57 456 9
EBPathOptimizer::getConstrainRectangleVec 6 27 180 4
EBPathOptimizer::getPostProcessedConstrainRectangles 4 28 172 10
EBPathOptimizer::getConstrainRectanglesClose2PathPoints 3 15 87 6
EBPathOptimizer::getValidConstrainRectangles 5 30 146 3
EBPathOptimizer::getConstrainRectanglesWithinArea 12 59 377 11
EBPathOptimizer::isPreFixIdx 8 15 78 4
EBPathOptimizer::isClose2Object 3 16 118 4
EBPathOptimizer::updateConstrain 5 31 314 3
EBPathOptimizer::getAbsShapeRectangle 1 25 232 3
EBPathOptimizer::getOriginPose 4 22 188 3
EBPathOptimizer::getAnchor 4 23 204 3
EBPathOptimizer::getOccupancyPoints 12 54 430 3
EBPathOptimizer::getRelShapeRectangle 1 28 224 2
EBPathOptimizer::getConstrainRectangles 3 29 211 4
EBPathOptimizer::getOccupancyMaps 23 113 1030 6
EBPathOptimizer::getStraightLineIdx 9 36 304 5
EBPathOptimizer::getConstrainFromConstrainRectangle 9 55 536 2
EBPathOptimizer::getConstrainLines 2 19 124 4
EBPathOptimizer::getConstrainRectangle 1 23 178 2
EBPathOptimizer::getUpdatedConstrainRectangle 3 17 102 4
EBPathOptimizer::getConstrainRectangle 4 28 226 4
EBPathOptimizer::getConstrainRectangle 4 44 360 5
EBPathOptimizer::getConstrainRectangle 1 35 304 3
EBPathOptimizer::getConstrainRectangle 5 30 243 5
EBPathOptimizer::isFixingPathPoint 3 10 50 1
EBPathOptimizer::getFOAData 4 20 111 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/process_cv.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
process_cv::getOccupancyGridValue 2 11 84 4
process_cv::putOccupancyGridValue 1 7 68 4
process_cv::drawObstaclesOnImage 8 41 331 7
process_cv::isAvoidingObject 10 49 388 6
process_cv::isAvoidingObjectType 17 16 172 2
process_cv::getPolygonPoints 4 16 129 2
process_cv::getPolygonPointsFromBB 3 27 273 2
process_cv::getPolygonPointsFromCircle 4 36 300 2
process_cv::getPolygonPointsFromPolygon 3 23 163 2
process_cv::getCVPolygon 2 15 118 5
process_cv::getDefaultCVPolygon 2 10 67 1
process_cv::getExtendedCVPolygon 23 67 813 6
process_cv::getEdges 8 84 911 6
process_cv::arePointsInsideDriveableArea 3 13 89 2
process_cv::getDrivableAreaInCV 1 8 85 1
process_cv::getClearanceMap 1 6 34 1
process_cv::getAreaWithObjects 1 5 35 2
process_cv::getStopIdx 10 21 236 4
process_cv::getDistance 2 13 102 3
process_cv::getMaps 1 21 173 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/debug.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
getDebugVisualizationMarker 3 90 635 3
getVirtualWallPose 1 13 114 2
getDebugPointsMarkers 13 141 1377 5
getDebugConstrainMarkers 4 92 948 2
getObjectsMarkerArray 2 23 211 5
getRectanglesMarkerArray 2 27 249 5
getRectanglesNumMarkerArray 2 31 265 5
getPointsMarkerArray 3 27 239 5
getPointsMarkerArray 3 27 237 5
getPointsTextMarkerArray 3 28 259 5
getPointsTextMarkerArray 2 25 242 5
getBaseBoundsLineMarkerArray 2 36 350 6
getTopBoundsLineMarkerArray 2 36 342 6
getMidBoundsLineMarkerArray 2 36 342 6
getVirtualWallMarkerArray 1 20 181 5
getVirtualWallTextMarkerArray 1 21 187 5
getDebugCostmap 1 12 111 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/mpt_optimizer.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
MPTOptimizer::MPTOptimizer 1 15 122 6
MPTOptimizer::getModelPredictiveTrajectory 6 54 402 7
MPTOptimizer::getReferencePoints 1 18 183 7
MPTOptimizer::convertToReferencePoints 2 20 160 6
MPTOptimizer::calcOrientation 7 19 178 1
MPTOptimizer::calcVelocity 3 11 95 2
MPTOptimizer::calcCurvature 7 32 375 1
MPTOptimizer::calcArcLength 4 14 117 1
MPTOptimizer::calcExtraPoints 6 28 369 1
MPTOptimizer::calcInitialState 10 34 288 2
MPTOptimizer::generateMPTMatrix 20 104 1190 3
MPTOptimizer::addSteerWeightR 5 40 576 2
MPTOptimizer::addSteerWeightF 2 18 229 1
MPTOptimizer::executeOptimization 2 30 298 6
MPTOptimizer::calcLateralError 1 9 88 2
MPTOptimizer::getState 1 10 93 2
MPTOptimizer::getMPTPoints 6 41 505 4
MPTOptimizer::setOptimizedState 1 5 24 2
MPTOptimizer::getReferenceBounds 8 70 543 4
MPTOptimizer::getBound 8 42 301 3
MPTOptimizer::getBoundCandidate 4 26 191 7
MPTOptimizer::getRoughBound 8 58 399 3
MPTOptimizer::getClearance 2 13 105 3
MPTOptimizer::getObjectiveMatrix 1 31 380 2
MPTOptimizer::getConstraintMatrix 23 147 2007 7
MPTOptimizer::getBaseReferencePoints 16 84 638 3
MPTOptimizer::getTraversedDistance 10 35 275 8
MPTOptimizer::getValidLatError 12 40 304 8
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/src/node.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
ObstacleAvoidancePlanner::ObstacleAvoidancePlanner 2 175 1609 1
ObstacleAvoidancePlanner::~ObstacleAvoidancePlanner 1 1 7 0
ObstacleAvoidancePlanner::paramCallback 2 45 338 1
ObstacleAvoidancePlanner::pathCallback 5 12 85 1
ObstacleAvoidancePlanner::twistCallback 1 4 33 1
ObstacleAvoidancePlanner::objectsCallback 1 5 33 1
ObstacleAvoidancePlanner::enableAvoidanceCallback 1 5 22 1
ObstacleAvoidancePlanner::generateTrajectory 1 19 154 1
ObstacleAvoidancePlanner::generateOptimizedTrajectory 3 37 322 2
ObstacleAvoidancePlanner::initialize 1 9 51 0
ObstacleAvoidancePlanner::getCurrentEgoPose 2 18 162 0
ObstacleAvoidancePlanner::generatePostProcessedTrajectory 3 25 197 3
ObstacleAvoidancePlanner::needReplan 9 34 232 6
ObstacleAvoidancePlanner::isPathShapeChanged 6 36 270 3
ObstacleAvoidancePlanner::convertPointsToTrajectory 4 38 313 2
ObstacleAvoidancePlanner::publishingDebugData 4 35 282 4
ObstacleAvoidancePlanner::calculateNonDecelerationRange 5 23 173 3
ObstacleAvoidancePlanner::getTrajectoryInsideArea 2 23 143 5
ObstacleAvoidancePlanner::calcTrajectoryInsideArea 9 38 289 6
ObstacleAvoidancePlanner::getPrevTrajs 2 13 64 1
ObstacleAvoidancePlanner::getPrevTrajectory 1 10 100 1
ObstacleAvoidancePlanner::makePrevTrajectories 1 14 86 3
ObstacleAvoidancePlanner::getBaseTrajectory 9 39 272 2
ObstacleAvoidancePlanner::getStopIdx 3 30 258 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/vehicle_model/vehicle_model_bicycle_kinematics_no_delay.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/vehicle_model/vehicle_model_bicycle_kinematics.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/vehicle_model/vehicle_model_interface.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/node.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/mpt_optimizer.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
Bounds::SingleBounds::operator = 1 6 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/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/util.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/marker_helper.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
createMarkerScale 1 8 41 3
createMarkerColor 1 9 50 4
appendMarkerArray 2 8 43 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/debug.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/process_cv.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/include/obstacle_avoidance_planner/eb_path_optimizer.hpp