Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Functionality: Remove collision avoidance interface on PX4 side #24172

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Jan 6, 2025

Solved Problem

We have archived the ROS side of the avoidance some time ago, and the interface on the PX4 side is not actively maintained (most of the initial contributors have left or have a changed focus). With the introduction of external flight modes we have arguably a better way of implementing it, and thus I propose to remove the interface on the PX4 side completely. This saves us quite some flash (5.5k), removes code complexity and prevents new developers to be sent on the wrong (old) track.

Solution

Remove CollisionAvoidance library (which was used in FlightTask), remove health check for avoidance, remove COM_OBS_AVOID, remove from message PositionControllerStatus.msg the fields yaw_acceptance and altitude_acceptance that were exclusively used for avoidance and with that also remove some acceptance logic from Navigator.

Changelog Entry

For release notes:

Removed Functionality: Remove collision avoidance interface on PX4 side

Alternatives

We could for a start only not build it but leave in code base (as it's already done for constrained builds). If somebody would complain we could revert more easily. Wouldn't resolve the lingering of a not-maintained PX4 code then though.

Remove yaw_acceptance and altitude_acceptance_radius fields as they were only
filled by now removed avoidance controller.

Signed-off-by: Silvan <[email protected]>
Copy link

github-actions bot commented Jan 6, 2025

🔎 FLASH Analysis

px4_fmu-v5x [Total VM Diff: -5520 byte (-0.27 %)]
    FILE SIZE        VM SIZE    
--------------  -------------- 
-0.3% -5.28Ki  [ = ]       0    .debug_abbrev
  [DEL] -2.88Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -2.26Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
   +11%     +56  [ = ]       0    ../../src/lib/version/version.c
  -1.3%     -50  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -1.0%     -36  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -1.3%     -50  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/AutoFollowTarget/FlightTaskAutoFollowTarget.cpp
  -1.8%     -56  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
-0.3%    -512  [ = ]       0    .debug_aranges
  [DEL]    -224  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL]    -248  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -5.0%      -8  [ = ]       0    ../../src/lib/version/version.c
  -0.9%      -8  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -3.7%     -24  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
-0.4% -1.85Ki  [ = ]       0    .debug_frame
-0.5%  -127Ki  [ = ]       0    .debug_info
  -0.0%      -8  [ = ]       0    ../../src/drivers/batt_smbus/batt_smbus.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
  -0.1%     -50  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/dshot/DShot.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/heater/heater.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled/rgbled.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled_is31fl3195/rgbled_is31fl3195.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled_lp5562/rgbled_lp5562.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp
  -0.1%     -34  [ = ]       0    ../../src/drivers/osd/msp_osd/msp_osd.cpp
  -0.1%     -26  [ = ]       0    ../../src/drivers/osd/msp_osd/uorb_to_msp.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina226/ina226.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina226/ina226_main.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina228/ina228.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina228/ina228_main.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina238/ina238.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina238/ina238_main.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/pm_selector_auterion/PowerMonitorSelectorAuterion.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/pwm_out/PWMOut.cpp
  -0.1%     -50  [ = ]       0    ../../src/drivers/px4io/px4io.cpp
 -100.9%  -127Ki  [ = ]       0    [183 Others]
-0.3% -15.8Ki  [ = ]       0    .debug_line
  [DEL] -7.13Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -6.46Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +0.3%     +66  [ = ]       0    ../../src/lib/parameters/parameters.cpp
  -1.3%     -25  [ = ]       0    ../../src/lib/version/version.c
  -0.9%    -277  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -4.3%    -182  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  -3.9%    -435  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -3.3%    -705  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -1.5%    -234  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/AutoFollowTarget/FlightTaskAutoFollowTarget.cpp
  +0.0%      +1  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Orbit/FlightTaskOrbit.cpp
  -0.0%     -11  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.4%     -83  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -0.1%     -62  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -3.3%    -335  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
-0.6% -34.6Ki  [ = ]       0    .debug_loc
  +0.0%     +30  [ = ]       0    ../../src/drivers/uavcan/uavcan_main.cpp
  [DEL] -13.8Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -12.2Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +0.1%     +16  [ = ]       0    ../../src/lib/mixer_module/mixer_module.cpp
  -0.2%     -52  [ = ]       0    ../../src/lib/parameters/parameters.cpp
  -0.1%      -4  [ = ]       0    ../../src/lib/weather_vane/WeatherVane.cpp
  -0.7%    -298  [ = ]       0    ../../src/modules/commander/Commander.cpp
  +0.6%     +15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/baroCheck.cpp
  -3.8%     -99  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  +1.2%     +15  [ = ]       0    ../../src/modules/commander/airspeed_calibration.cpp
  -0.7%     -15  [ = ]       0    ../../src/modules/commander/baro_calibration.cpp
  -0.0%      -2  [ = ]       0    ../../src/modules/commander/failure_detector/FailureDetector.cpp
  -0.1%     -15  [ = ]       0    ../../src/modules/commander/mag_calibration.cpp
  +0.6%     +48  [ = ]       0    ../../src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessTiltrotorVTOL.cpp
  +1.1%     +15  [ = ]       0    ../../src/modules/events/status_display.cpp
  +2.3%    +195  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -0.2%    -107  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +0.0%     +13  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/AutoFollowTarget/FlightTaskAutoFollowTarget.cpp
  +0.7%    +186  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Orbit/FlightTaskOrbit.cpp
  +0.1%     +13  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp
 -100.6% -8.52Ki  [ = ]       0    [16 Others]
-0.4% -5.42Ki  [ = ]       0    .debug_ranges
  [DEL] -2.66Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -1.65Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +0.4%     +56  [ = ]       0    ../../src/lib/parameters/parameters.cpp
  -2.6%      -8  [ = ]       0    ../../src/lib/version/version.c
  -0.7%     -72  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -4.1%     -24  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  +9.2%    +192  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -4.2%    -360  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -0.1%      -8  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -1.7%    -832  [ = ]       0    [section .debug_ranges]
  -2.2%     -88  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -3.0%      -2  [ = ]       0    task/task_cancelpt.c
-0.9% -30.1Ki  [ = ]       0    .debug_str
  -0.1%     -79  [ = ]       0    
  -0.0%     -14  [ = ]       0    ../../src/drivers/batt_smbus/batt_smbus.cpp
  -0.7%     -49  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/uavcan/uavcan_main.cpp
  [DEL]    -503  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -25.1Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +0.4%     +17  [ = ]       0    ../../src/lib/collision_prevention/CollisionPrevention.cpp
  -5.2%     -10  [ = ]       0    ../../src/lib/led/led.cpp
  +4.5%     +13  [ = ]       0    ../../src/lib/motion_planning/VelocitySmoothing.cpp
  -0.8%    -999  [ = ]       0    ../../src/modules/commander/Commander.cpp
  +0.3%     +10  [ = ]       0    ../../src/modules/commander/failsafe/failsafe.cpp
  -1.6% -1.13Ki  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -6.0%    -180  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +1.9%     +20  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp
  +0.4%    +424  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.0%      -1  [ = ]       0    ../../src/modules/manual_control/ManualControl.cpp
  +0.2%     +18  [ = ]       0    ../../src/modules/mc_hover_thrust_estimator/MulticopterHoverThrustEstimator.cpp
  +0.0%      +1  [ = ]       0    ../../src/modules/navigator/mission_block.cpp
  +0.0%     +22  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
 -99.7%    +616  [ = ]       0    [1 Others]
 -16.1% -3.24Ki  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
-1.4%      -3  [ = ]       0    .shstrtab
-0.3% -1.95Ki  [ = ]       0    .strtab
  [DEL]    -587  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -1.12Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -8.1%     -32  [ = ]       0    ../../src/lib/version/version.c
  -2.1%     -85  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -6.8%    -124  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -0.0%     -26  [ = ]       0    [section .strtab]
-0.2% -1.28Ki  [ = ]       0    .symtab
 +10.0%     +16  [ = ]       0    ../../src/drivers/imu/analog_devices/adis16507/adis16507_main.cpp
  +0.9%     +16  [ = ]       0    ../../src/drivers/imu/invensense/icm42688p/ICM42688P.cpp
  +0.8%     +32  [ = ]       0    ../../src/drivers/uavcan/uavcan_servers.cpp
  [DEL]    -416  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL]    -752  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +1.9%     +16  [ = ]       0    ../../src/lib/perf/perf_counter.cpp
  -7.0%     -64  [ = ]       0    ../../src/lib/version/version.c
  -0.7%     -32  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -6.0%    -112  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +0.3%     +16  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.7%     -16  [ = ]       0    ../../src/modules/mc_pos_control/MulticopterPositionControl.cpp
  -0.0%     -16  [ = ]       0    [section .symtab]
 -25.0%     -16  [ = ]       0    msg/topics_sources/follow_target_status.cpp
  +2.3%     +16  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
 +33% +5.39Ki  [ = ]       0    [Unmapped]
-0.3% -5.39Ki  -0.3% -5.39Ki    .text
  +0.3%     +80  +0.3%     +80    ../../src/lib/parameters/parameters.cpp
  +0.1%      +4  +0.1%      +4    ../../src/modules/navigator/MissionFeasibility/FeasibilityChecker.cpp
  -0.6%      -2  -0.6%      -2    ../../src/modules/fw_pos_control/launchdetection/LaunchDetector.cpp
  -0.1%      -4  -0.1%      -4    ../../src/modules/commander/accelerometer_calibration.cpp
  -0.0%      -4  -0.0%      -4    ../../src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control.cpp
  -0.0%      -8  -0.0%      -8    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.1%     -32  -0.1%     -32    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -1.6%     -44  -1.6%     -44    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -0.7%     -80  -0.7%     -80    ../../src/modules/navigator/navigator_main.cpp
 -10.8%    -104 -10.8%    -104    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  -0.1%    -107  -0.1%    -107    ROMFS/nsh_romfsimg.c
  -3.7%    -136  -3.7%    -136    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -1.1%    -236  -1.1%    -236    ../../src/modules/commander/Commander.cpp
  -0.1%    -277  -0.1%    -277    [section .text]
  -5.6%    -392  -5.6%    -392    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  [DEL] -1.56Ki  [DEL] -1.56Ki    ../../src/lib/bezier/BezierN.cpp
  [DEL] -2.52Ki  [DEL] -2.52Ki    ../../src/lib/avoidance/ObstacleAvoidance.cpp
-0.5%  -224Ki  -0.3% -5.39Ki    TOTAL

px4_fmu-v6x [Total VM Diff: -5576 byte (-0.29 %)]
    FILE SIZE        VM SIZE    
--------------  -------------- 
-0.3% -5.28Ki  [ = ]       0    .debug_abbrev
  [DEL] -2.88Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -2.26Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
   +11%     +56  [ = ]       0    ../../src/lib/version/version.c
  -1.3%     -50  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -1.0%     -36  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -1.3%     -50  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/AutoFollowTarget/FlightTaskAutoFollowTarget.cpp
  -1.8%     -56  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
-0.3%    -512  [ = ]       0    .debug_aranges
  [DEL]    -224  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL]    -248  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -5.0%      -8  [ = ]       0    ../../src/lib/version/version.c
  -0.9%      -8  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -3.7%     -24  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
-0.4% -1.86Ki  [ = ]       0    .debug_frame
-0.5%  -126Ki  [ = ]       0    .debug_info
  -0.0%      -8  [ = ]       0    ../../src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
  -0.1%     -50  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/dshot/DShot.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/heater/heater.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled/rgbled.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled_is31fl3195/rgbled_is31fl3195.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled_lp5562/rgbled_lp5562.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/lights/rgbled_ncp5623c/rgbled_ncp5623c.cpp
  -0.1%     -34  [ = ]       0    ../../src/drivers/osd/msp_osd/msp_osd.cpp
  -0.1%     -26  [ = ]       0    ../../src/drivers/osd/msp_osd/uorb_to_msp.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina226/ina226.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina226/ina226_main.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina228/ina228.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina228/ina228_main.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina238/ina238.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/ina238/ina238_main.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/power_monitor/pm_selector_auterion/PowerMonitorSelectorAuterion.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/pwm_out/PWMOut.cpp
  -0.1%     -50  [ = ]       0    ../../src/drivers/px4io/px4io.cpp
  -0.1%     -50  [ = ]       0    ../../src/drivers/rc_input/RCInput.cpp
 -101.0%  -126Ki  [ = ]       0    [170 Others]
-0.4% -15.9Ki  [ = ]       0    .debug_line
  [DEL] -7.13Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -6.46Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -1.3%     -25  [ = ]       0    ../../src/lib/version/version.c
  -0.9%    -277  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -4.3%    -182  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  -3.9%    -435  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -3.3%    -705  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -1.5%    -234  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/AutoFollowTarget/FlightTaskAutoFollowTarget.cpp
  -0.0%     -11  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.4%     -83  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -0.1%     -62  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -3.3%    -335  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  +0.2%      +2  [ = ]       0    task/task_cancelpt.c
-0.7% -34.8Ki  [ = ]       0    .debug_loc
  -0.2%     -15  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  +0.1%     +15  [ = ]       0    ../../src/drivers/uavcan/remoteid.cpp
  +0.0%     +33  [ = ]       0    ../../src/drivers/uavcan/uavcan_main.cpp
  +0.0%     +31  [ = ]       0    ../../src/drivers/uavcan/uavcan_servers.cpp
  [DEL] -13.8Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -12.2Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -0.1%      -4  [ = ]       0    ../../src/lib/weather_vane/WeatherVane.cpp
  -0.1%     -15  [ = ]       0    ../../src/modules/airspeed_selector/airspeed_selector_main.cpp
  -0.7%    -298  [ = ]       0    ../../src/modules/commander/Commander.cpp
  +0.6%     +15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/baroCheck.cpp
  -3.8%     -99  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  +0.0%     +15  [ = ]       0    ../../src/modules/commander/accelerometer_calibration.cpp
  -1.2%     -15  [ = ]       0    ../../src/modules/commander/airspeed_calibration.cpp
  +0.6%     +48  [ = ]       0    ../../src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessTiltrotorVTOL.cpp
  +2.3%    +195  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -0.2%    -107  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +0.1%     +13  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp
  -0.1%     -30  [ = ]       0    ../../src/modules/fw_att_control/FixedwingAttitudeControl.cpp
  +0.0%     +15  [ = ]       0    ../../src/modules/fw_rate_control/FixedwingRateControl.cpp
  -0.2%     -15  [ = ]       0    ../../src/modules/land_detector/MulticopterLandDetector.cpp
 -100.7% -8.58Ki  [ = ]       0    [12 Others]
-0.4% -5.48Ki  [ = ]       0    .debug_ranges
  [DEL] -2.66Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -1.65Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -2.6%      -8  [ = ]       0    ../../src/lib/version/version.c
  -0.7%     -72  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -4.1%     -24  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  +9.2%    +192  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -4.2%    -360  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -0.1%      -8  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -1.7%    -832  [ = ]       0    [section .debug_ranges]
  -2.2%     -88  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
-0.9% -30.1Ki  [ = ]       0    .debug_str
  -0.1%     -79  [ = ]       0    
  -0.0%     -14  [ = ]       0    ../../src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
  -0.7%     -49  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/uavcan/uavcan_main.cpp
  [DEL]    -503  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -25.1Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +0.4%     +17  [ = ]       0    ../../src/lib/collision_prevention/CollisionPrevention.cpp
  -5.2%     -10  [ = ]       0    ../../src/lib/led/led.cpp
  +4.5%     +13  [ = ]       0    ../../src/lib/motion_planning/VelocitySmoothing.cpp
  -0.8%    -999  [ = ]       0    ../../src/modules/commander/Commander.cpp
  +0.3%     +10  [ = ]       0    ../../src/modules/commander/failsafe/failsafe.cpp
  -1.6% -1.12Ki  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -6.0%    -180  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +1.9%     +20  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Transition/FlightTaskTransition.cpp
  +0.4%    +424  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.0%      -1  [ = ]       0    ../../src/modules/manual_control/ManualControl.cpp
  +0.2%     +18  [ = ]       0    ../../src/modules/mc_hover_thrust_estimator/MulticopterHoverThrustEstimator.cpp
  +0.0%      +1  [ = ]       0    ../../src/modules/navigator/mission_block.cpp
  +0.0%     +22  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
 -99.7%    +616  [ = ]       0    [1 Others]
 -16.1% -3.24Ki  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
-1.4%      -3  [ = ]       0    .shstrtab
-0.3% -1.95Ki  [ = ]       0    .strtab
  [DEL]    -587  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -1.12Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -8.1%     -32  [ = ]       0    ../../src/lib/version/version.c
  -2.2%     -85  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -6.8%    -124  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -0.0%     -26  [ = ]       0    [section .strtab]
-0.2% -1.28Ki  [ = ]       0    .symtab
  -1.3%     -16  [ = ]       0    ../../src/drivers/distance_sensor/ll40ls/LidarLiteI2C.cpp
  +1.0%     +16  [ = ]       0    ../../src/drivers/imu/invensense/icm42688p/ICM42688P.cpp
  +0.8%     +32  [ = ]       0    ../../src/drivers/uavcan/uavcan_servers.cpp
  [DEL]    -416  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL]    -736  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  -7.0%     -64  [ = ]       0    ../../src/lib/version/version.c
  -0.7%     -32  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -6.0%    -112  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +2.1%     +16  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Orbit/FlightTaskOrbit.cpp
  +5.6%     +16  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Utility/StickTiltXY.cpp
  +0.3%     +16  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  +0.7%     +16  [ = ]       0    ../../src/modules/mc_pos_control/MulticopterPositionControl.cpp
  -0.1%     -48  [ = ]       0    [section .symtab]
  +6.2%     +16  [ = ]       0    arp/arp_notify.c
  -6.2%     -16  [ = ]       0    chip/stm32_irq.c
 -25.0%     -16  [ = ]       0    msg/topics_sources/follow_target_status.cpp
  +2.3%     +16  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
+7.4% +5.45Ki  [ = ]       0    [Unmapped]
-0.3% -5.45Ki  -0.3% -5.45Ki    .text
  +0.1%      +4  +0.1%      +4    ../../src/modules/navigator/MissionFeasibility/FeasibilityChecker.cpp
  +0.2%      +3  +0.2%      +3    ../../src/systemcmds/ver/ver.cpp
  -0.6%      -2  -0.6%      -2    ../../src/modules/fw_pos_control/launchdetection/LaunchDetector.cpp
  -0.1%      -4  -0.1%      -4    ../../src/modules/commander/accelerometer_calibration.cpp
  -0.0%      -4  -0.0%      -4    ../../src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control.cpp
  -0.0%      -8  -0.0%      -8    ../../src/lib/parameters/parameters.cpp
  -0.0%      -8  -0.0%      -8    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  -0.1%     -32  -0.1%     -32    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -1.6%     -44  -1.6%     -44    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -0.7%     -80  -0.7%     -80    ../../src/modules/navigator/navigator_main.cpp
  -0.1%     -99  -0.1%     -99    ROMFS/nsh_romfsimg.c
 -10.8%    -104 -10.8%    -104    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  -3.7%    -136  -3.7%    -136    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -1.1%    -236  -1.1%    -236    ../../src/modules/commander/Commander.cpp
  -0.1%    -256  -0.1%    -256    [section .text]
  -5.6%    -392  -5.6%    -392    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  [DEL] -1.56Ki  [DEL] -1.56Ki    ../../src/lib/bezier/BezierN.cpp
  [DEL] -2.52Ki  [DEL] -2.52Ki    ../../src/lib/avoidance/ObstacleAvoidance.cpp
-0.5%  -223Ki  -0.3% -5.45Ki    TOTAL

Updated: 2025-01-06T08:07:26

Comment on lines -54 to -55
#include <uORB/topics/vehicle_trajectory_bezier.h>
#include <uORB/topics/vehicle_trajectory_waypoint.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking deeper still, we could probably then also remove the entire Bezier library.
https://github.com/PX4/PX4-Autopilot/tree/main/src/lib/bezier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants