Code Complexity Report

Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/launch/simple_planning_simulator.launch.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
find_pack 1 2 30 1
generate_launch_description 1 33 147 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/vehicle_model/sim_model_ideal.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
SimModelIdealTwist::SimModelIdealTwist 1 1 14 0
SimModelIdealTwist::getX 1 1 15 0
SimModelIdealTwist::getY 1 1 15 0
SimModelIdealTwist::getYaw 1 1 15 0
SimModelIdealTwist::getVx 1 1 15 0
SimModelIdealTwist::getWz 1 1 15 0
SimModelIdealTwist::getSteer 1 1 12 0
SimModelIdealTwist::update 1 1 18 1
SimModelIdealTwist::calcModel 1 12 107 2
SimModelIdealSteer::SimModelIdealSteer 1 4 21 1
SimModelIdealSteer::getX 1 1 15 0
SimModelIdealSteer::getY 1 1 15 0
SimModelIdealSteer::getYaw 1 1 15 0
SimModelIdealSteer::getVx 1 1 15 0
SimModelIdealSteer::getWz 1 4 29 0
SimModelIdealSteer::getSteer 1 1 15 0
SimModelIdealSteer::update 1 1 18 1
SimModelIdealSteer::calcModel 1 12 116 2
SimModelIdealAccel::SimModelIdealAccel 1 4 21 1
SimModelIdealAccel::getX 1 1 15 0
SimModelIdealAccel::getY 1 1 15 0
SimModelIdealAccel::getYaw 1 1 15 0
SimModelIdealAccel::getVx 1 1 15 0
SimModelIdealAccel::getWz 1 4 29 0
SimModelIdealAccel::getSteer 1 1 15 0
SimModelIdealAccel::update 2 7 40 1
SimModelIdealAccel::calcModel 1 14 136 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/vehicle_model/sim_model_interface.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
SimModelInterface::SimModelInterface 1 5 44 2
SimModelInterface::updateRungeKutta 1 8 116 2
SimModelInterface::updateEuler 1 4 29 2
SimModelInterface::getState 1 1 16 1
SimModelInterface::getInput 1 1 16 1
SimModelInterface::setState 1 1 17 1
SimModelInterface::setInput 1 1 17 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/vehicle_model/sim_model_util.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
sim_model_util::getDummySteerCommandWithFriction 2 9 43 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/vehicle_model/sim_model_constant_acceleration.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
SimModelConstantAccelTwist::SimModelConstantAccelTwist 1 9 45 4
SimModelConstantAccelTwist::getX 1 1 15 0
SimModelConstantAccelTwist::getY 1 1 15 0
SimModelConstantAccelTwist::getYaw 1 1 15 0
SimModelConstantAccelTwist::getVx 1 1 15 0
SimModelConstantAccelTwist::getWz 1 1 15 0
SimModelConstantAccelTwist::getSteer 1 1 12 0
SimModelConstantAccelTwist::update 1 1 18 1
SimModelConstantAccelTwist::calcModel 5 28 243 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/vehicle_model/sim_model_time_delay.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
SimModelTimeDelayTwist::SimModelTimeDelayTwist 3 25 160 10
SimModelTimeDelayTwist::getX 1 1 15 0
SimModelTimeDelayTwist::getY 1 1 15 0
SimModelTimeDelayTwist::getYaw 1 1 15 0
SimModelTimeDelayTwist::getVx 1 1 15 0
SimModelTimeDelayTwist::getWz 1 1 15 0
SimModelTimeDelayTwist::getSteer 1 1 12 0
SimModelTimeDelayTwist::update 1 11 94 1
SimModelTimeDelayTwist::initializeInputQueue 3 11 93 1
SimModelTimeDelayTwist::calcModel 1 22 251 2
SimModelTimeDelaySteer::SimModelTimeDelaySteer 3 27 168 11
SimModelTimeDelaySteer::getX 1 1 15 0
SimModelTimeDelaySteer::getY 1 1 15 0
SimModelTimeDelaySteer::getYaw 1 1 15 0
SimModelTimeDelaySteer::getVx 1 1 15 0
SimModelTimeDelaySteer::getWz 1 4 29 0
SimModelTimeDelaySteer::getSteer 1 1 15 0
SimModelTimeDelaySteer::update 1 13 111 1
SimModelTimeDelaySteer::initializeInputQueue 3 11 93 1
SimModelTimeDelaySteer::calcModel 1 22 260 2
SimModelTimeDelaySteerAccel::SimModelTimeDelaySteerAccel 3 27 168 11
SimModelTimeDelaySteerAccel::getX 1 1 15 0
SimModelTimeDelaySteerAccel::getY 1 1 15 0
SimModelTimeDelaySteerAccel::getYaw 1 1 15 0
SimModelTimeDelaySteerAccel::getVx 1 1 15 0
SimModelTimeDelaySteerAccel::getWz 1 4 29 0
SimModelTimeDelaySteerAccel::getSteer 1 1 15 0
SimModelTimeDelaySteerAccel::update 6 28 321 1
SimModelTimeDelaySteerAccel::initializeInputQueue 3 11 93 1
SimModelTimeDelaySteerAccel::calcModel 3 33 360 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/simple_planning_simulator_core.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
Simulator::Simulator 7 135 1391 2
Simulator::onParameter 2 15 94 1
Simulator::callbackTrajectory 1 5 20 1
Simulator::callbackInitialPoseWithCov 2 10 47 1
Simulator::callbackInitialPoseStamped 2 10 47 1
Simulator::callbackInitialTwistStamped 3 12 65 1
Simulator::callbackEngage 1 4 22 1
Simulator::serviceSetPose 2 13 90 2
Simulator::timerCallbackSimulation 13 86 721 0
Simulator::callbackVehicleCmd 6 24 192 1
Simulator::callbackTurnSignalCmd 1 5 20 1
Simulator::setInitialStateWithPoseTransform 1 12 134 2
Simulator::setInitialStateWithPoseTransform 1 9 56 2
Simulator::setInitialState 5 31 252 2
Simulator::getTransformFromTF 3 14 99 3
Simulator::publishTwist 1 9 64 1
Simulator::publishPoseWithCov 1 13 94 1
Simulator::publishTF 1 13 116 1
Simulator::getPosZFromTrajectory 5 26 182 2
Simulator::getQuaternionFromRPY 1 7 45 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/src/simple_planning_simulator_node.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
main 1 9 57 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/scripts/fitParamDelayInputModel.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
lowpass_filter 3 6 87 4
rel2abs 1 2 15 1
rosbag_to_csv 2 13 84 2
getActValue 2 8 111 2
getCmdValueWithDelay 1 4 45 2
getLinearInterpolate 1 7 62 4
getFittingTimeConstantParam 5 33 323 5
getFittingParam 5 18 117 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_time_delay.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_ideal.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_constant_acceleration.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_util.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_interface.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/simulator/simple_planning_simulator/include/simple_planning_simulator/simple_planning_simulator_core.hpp