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 11 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.

Copy link

github-actions bot commented Jan 6, 2025

🔎 FLASH Analysis

px4_fmu-v5x [Total VM Diff: -10248 byte (-0.5 %)]
    FILE SIZE        VM SIZE    
--------------  -------------- 
-0.5% -8.92Ki  [ = ]       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
  [DEL]    -900  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]    -900  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]    -923  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]    -940  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -1.8%     -56  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -0.8%     -67  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
-0.5%    -752  [ = ]       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
  -6.2%     -40  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -4.0%     -24  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -0.9%     -72  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
-0.5% -2.46Ki  [ = ]       0    .debug_frame
-0.7%  -194Ki  [ = ]       0    .debug_info
  -0.3%     -35  [ = ]       0    ../../platforms/common/uORB/Subscription.cpp
  -0.3%     -35  [ = ]       0    ../../platforms/common/uORB/SubscriptionInterval.cpp
  -0.1%     -35  [ = ]       0    ../../platforms/common/uORB/uORB.cpp
  -0.2%     -35  [ = ]       0    ../../platforms/common/uORB/uORBDeviceMaster.cpp
  -0.1%     -35  [ = ]       0    ../../platforms/common/uORB/uORBDeviceNode.cpp
  -0.2%     -35  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  -0.2%     -35  [ = ]       0    ../../platforms/nuttx/src/px4/common/gpio/mcp23009/mcp23009.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/adc/ads1115/ads1115_main.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/adc/board_adc/ADC.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/barometer/bmp388/bmp388.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/barometer/ms5611/ms5611.cpp
  -0.0%      -8  [ = ]       0    ../../src/drivers/batt_smbus/batt_smbus.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/camera_capture/camera_capture.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/camera_trigger/camera_trigger.cpp
  -0.1%     -43  [ = ]       0    ../../src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/differential_pressure/ms4525do/MS4525DO.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/differential_pressure/ms5525dso/MS5525DSO.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/differential_pressure/sdp3x/SDP3X.cpp
  -0.2%     -35  [ = ]       0    ../../src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp
  -0.2%     -85  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
 -100.9%  -193Ki  [ = ]       0    [524 Others]
-0.6% -27.6Ki  [ = ]       0    .debug_line
  -0.5%      -8  [ = ]       0    ../../platforms/common/uORB/Subscription.cpp
  -0.5%     -19  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  [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%    -280  [ = ]       0    ../../src/modules/commander/Commander.cpp
  +0.1%      +3  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/externalChecks.cpp
  -4.3%    -182  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  -3.9%    -435  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -5.4% -1.11Ki  [ = ]       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.2%     -16  [ = ]       0    ../../src/modules/logger/logged_topics.cpp
  +0.3%     +64  [ = ]       0    ../../src/modules/logger/logger.cpp
  -0.4%     -83  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -7.6% -4.10Ki  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
 -102.7% -4.98Ki  [ = ]       0    [5 Others]
  [DEL] -1.29Ki  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL] -1.30Ki  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  -1.9%    -112  [ = ]       0    msg/topics_sources/uORBTopics.cpp
-0.7% -38.9Ki  [ = ]       0    .debug_loc
  +1.5%     +87  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  -0.5%     -15  [ = ]       0    ../../src/drivers/camera_capture/camera_capture.cpp
  +0.2%     +15  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  +0.2%     +15  [ = ]       0    ../../src/drivers/osd/msp_osd/msp_osd.cpp
  +0.2%     +15  [ = ]       0    ../../src/drivers/rc/crsf_rc/CrsfRc.cpp
  +1.2%     +15  [ = ]       0    ../../src/drivers/rc/ghst_rc/ghst_telemetry.cpp
  -0.4%     -15  [ = ]       0    ../../src/drivers/telemetry/frsky_telemetry/frsky_data.cpp
  +0.7%     +30  [ = ]       0    ../../src/drivers/telemetry/frsky_telemetry/sPort_data.cpp
  -0.0%     -14  [ = ]       0    ../../src/drivers/uavcan/uavcan_main.cpp
  -0.0%     -15  [ = ]       0    ../../src/drivers/uavcan/uavcan_servers.cpp
  +0.3%     +15  [ = ]       0    ../../src/lib/adsb/AdsbConflict.cpp
  [DEL] -13.8Ki  [ = ]       0    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  [DEL] -12.2Ki  [ = ]       0    ../../src/lib/bezier/BezierN.cpp
  +0.1%     +15  [ = ]       0    ../../src/lib/collision_prevention/CollisionPrevention.cpp
  -0.2%     -52  [ = ]       0    ../../src/lib/parameters/parameters.cpp
  -0.3%     -17  [ = ]       0    ../../src/lib/weather_vane/WeatherVane.cpp
  -0.1%     -15  [ = ]       0    ../../src/modules/airspeed_selector/airspeed_selector_main.cpp
  -1.4%    -589  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -0.4%     -15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/accelerometerCheck.cpp
  -0.6%     -15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/baroCheck.cpp
 -100.6% -12.3Ki  [ = ]       0    [37 Others]
-0.5% -6.73Ki  [ = ]       0    .debug_ranges
  -1.7%     -16  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  [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
  -6.8%    -592  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +0.7%     +64  [ = ]       0    ../../src/modules/logger/logger.cpp
  -0.1%      -8  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -4.6%    -504  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -1.7%    -832  [ = ]       0    [section .debug_ranges]
  [DEL]     -16  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -16  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -16  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]     -16  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -2.2%     -88  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -1.3%    -584  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
  -3.0%      -2  [ = ]       0    task/task_cancelpt.c
-1.0% -33.8Ki  [ = ]       0    .debug_str
  -0.4%    -263  [ = ]       0    
  -0.7%    -128  [ = ]       0    ../../src/drivers/adc/ads1115/ads1115_main.cpp
  -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.9% -1.06Ki  [ = ]       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
  -8.3%    -251  [ = ]       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.1%     -12  [ = ]       0    ../../src/modules/mc_att_control/mc_att_control_main.cpp
  +0.2%     +18  [ = ]       0    ../../src/modules/mc_hover_thrust_estimator/MulticopterHoverThrustEstimator.cpp
   +27%      +6  [ = ]       0    ../../src/modules/mc_hover_thrust_estimator/zero_order_hover_thrust_ekf.cpp
 -102.1% -5.83Ki  [ = ]       0    [9 Others]
-1.0%      -2  [ = ]       0    .shstrtab
-0.5% -3.23Ki  [ = ]       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
 -13.1%    -241  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +2.9%     +16  [ = ]       0    ../../src/modules/landing_target_estimator/KalmanFilter.cpp
  -7.1%    -247  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -0.2%    -141  [ = ]       0    [section .strtab]
  [DEL]     -24  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -26  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]     -76  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -1.4%    -692  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
-0.4% -2.16Ki  [ = ]       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
  -2.4%     -16  [ = ]       0    ../../src/drivers/magnetometer/st/iis2mdc/iis2mdc.cpp
  +1.3%     +16  [ = ]       0    ../../src/drivers/power_monitor/ina228/ina228.cpp
  +0.4%     +16  [ = ]       0    ../../src/drivers/uavcan/sensors/sensor_bridge.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
 -10.3%    -192  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +0.3%     +16  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  +5.0%     +16  [ = ]       0    ../../src/modules/landing_target_estimator/KalmanFilter.cpp
  +0.7%     +16  [ = ]       0    ../../src/modules/mc_pos_control/MulticopterPositionControl.cpp
  -3.2%     -96  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
 -101.4%    -640  [ = ]       0    [4 Others]
  -0.2%    -112  [ = ]       0    [section .symtab]
   +33%     +16  [ = ]       0    inet/ipv4_setsockopt.c
 -25.0%     -16  [ = ]       0    msg/topics_sources/follow_target_status.cpp
  [DEL]     -48  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
+106% +10.0Ki  [ = ]       0    [Unmapped]
-0.5% -10.0Ki  -0.5% -10.0Ki    .text
  +0.3%     +80  +0.3%     +80    ../../src/lib/parameters/parameters.cpp
   +33%     +16   +33%     +16    msg/topics_sources/vehicle_torque_setpoint.cpp
  -0.1%     -16  -0.1%     -16    ../../src/modules/logger/logger.cpp
  [DEL]     -16  [DEL]     -16    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -16  [DEL]     -16    msg/topics_sources/trajectory_waypoint.cpp
  -2.0%     -24  -2.0%     -24    msg/topics_sources/uORBTopics.cpp
  -0.7%     -36  -0.7%     -36    ../../src/modules/logger/logged_topics.cpp
  -1.6%     -44  -1.6%     -44    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  [DEL]     -48  [DEL]     -48    msg/topics_sources/vehicle_trajectory_waypoint.cpp
 -100.1%     -53 -100.1%     -53    [13 Others]
  -0.0%     -70  -0.0%     -70    ROMFS/nsh_romfsimg.c
  -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
  -3.7%    -136  -3.7%    -136    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -1.2%    -244  -1.2%    -244    ../../src/modules/commander/Commander.cpp
  -8.6%    -604  -8.6%    -604    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -0.3%    -883  -0.3%    -883    [section .text]
  -0.9%   -1016  -0.9%   -1016    src/modules/mavlink/modules__mavlink_unity.cpp
  [DEL] -1.56Ki  [DEL] -1.56Ki    ../../src/lib/bezier/BezierN.cpp
  [DEL] -2.52Ki  [DEL] -2.52Ki    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  -8.1% -2.71Ki  -8.1% -2.71Ki    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
-0.7%  -319Ki  -0.5% -10.0Ki    TOTAL

px4_fmu-v6x [Total VM Diff: -10376 byte (-0.53 %)]
    FILE SIZE        VM SIZE    
--------------  -------------- 
-0.5% -8.92Ki  [ = ]       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
  [DEL]    -900  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]    -900  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]    -923  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]    -940  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -1.8%     -56  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -0.8%     -67  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
-0.5%    -752  [ = ]       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
  -6.2%     -40  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -4.0%     -24  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -0.9%     -72  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
-0.5% -2.47Ki  [ = ]       0    .debug_frame
-0.7%  -193Ki  [ = ]       0    .debug_info
  -0.3%     -35  [ = ]       0    ../../platforms/common/uORB/Subscription.cpp
  -0.3%     -35  [ = ]       0    ../../platforms/common/uORB/SubscriptionInterval.cpp
  -0.1%     -35  [ = ]       0    ../../platforms/common/uORB/uORB.cpp
  -0.2%     -35  [ = ]       0    ../../platforms/common/uORB/uORBDeviceMaster.cpp
  -0.1%     -35  [ = ]       0    ../../platforms/common/uORB/uORBDeviceNode.cpp
  -0.2%     -35  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  -0.2%     -35  [ = ]       0    ../../platforms/nuttx/src/px4/common/gpio/mcp23009/mcp23009.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/adc/ads1115/ads1115_main.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/adc/board_adc/ADC.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/barometer/bmp388/bmp388.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/barometer/invensense/icp201xx/ICP201XX.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/barometer/ms5611/ms5611.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/camera_capture/camera_capture.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/camera_trigger/camera_trigger.cpp
  -0.1%     -43  [ = ]       0    ../../src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/differential_pressure/ms4525do/MS4525DO.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/differential_pressure/ms5525dso/MS5525DSO.cpp
  -0.1%     -35  [ = ]       0    ../../src/drivers/differential_pressure/sdp3x/SDP3X.cpp
  -0.2%     -35  [ = ]       0    ../../src/drivers/distance_sensor/cm8jl65/CM8JL65.cpp
  -0.2%     -85  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
 -101.0%  -192Ki  [ = ]       0    [506 Others]
-0.6% -27.7Ki  [ = ]       0    .debug_line
  -0.5%      -8  [ = ]       0    ../../platforms/common/uORB/Subscription.cpp
  -0.5%     -19  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  [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%    -280  [ = ]       0    ../../src/modules/commander/Commander.cpp
  +0.1%      +3  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/externalChecks.cpp
  -4.3%    -182  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/systemCheck.cpp
  -3.9%    -435  [ = ]       0    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -5.4% -1.11Ki  [ = ]       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.2%     -16  [ = ]       0    ../../src/modules/logger/logged_topics.cpp
  +0.3%     +64  [ = ]       0    ../../src/modules/logger/logger.cpp
  -0.4%     -83  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -7.6% -4.10Ki  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
 -102.0% -3.64Ki  [ = ]       0    [4 Others]
  [DEL] -1.29Ki  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL] -1.30Ki  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  -1.9%    -112  [ = ]       0    msg/topics_sources/uORBTopics.cpp
  [DEL] -1.33Ki  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
-0.7% -38.6Ki  [ = ]       0    .debug_loc
  +1.5%     +87  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  +0.4%     +15  [ = ]       0    ../../src/drivers/adc/board_adc/ADC.cpp
  +0.5%     +15  [ = ]       0    ../../src/drivers/camera_capture/camera_capture.cpp
  -0.2%     -15  [ = ]       0    ../../src/drivers/camera_trigger/camera_trigger.cpp
  +0.2%     +15  [ = ]       0    ../../src/drivers/distance_sensor/lightware_laser_i2c/lightware_laser_i2c.cpp
  +0.2%     +15  [ = ]       0    ../../src/drivers/osd/msp_osd/msp_osd.cpp
  -0.1%     -15  [ = ]       0    ../../src/drivers/uavcan/remoteid.cpp
  +0.0%     +11  [ = ]       0    ../../src/drivers/uavcan/uavcan_main.cpp
  -0.0%     -30  [ = ]       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%     +15  [ = ]       0    ../../src/lib/collision_prevention/CollisionPrevention.cpp
  +0.2%     +31  [ = ]       0    ../../src/lib/mixer_module/mixer_module.cpp
  -0.2%     -15  [ = ]       0    ../../src/lib/rtl/rtl_time_estimator.cpp
  -0.1%      -4  [ = ]       0    ../../src/lib/weather_vane/WeatherVane.cpp
  -1.4%    -589  [ = ]       0    ../../src/modules/commander/Commander.cpp
  -0.4%     -15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/accelerometerCheck.cpp
  -0.6%     -15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/baroCheck.cpp
  -0.0%      -1  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/externalChecks.cpp
  -0.2%     -15  [ = ]       0    ../../src/modules/commander/HealthAndArmingChecks/checks/magnetometerCheck.cpp
 -100.6% -12.1Ki  [ = ]       0    [36 Others]
-0.6% -6.78Ki  [ = ]       0    .debug_ranges
  -1.7%     -16  [ = ]       0    ../../platforms/common/uORB/uORBManager.cpp
  [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
  -6.8%    -592  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +0.7%     +64  [ = ]       0    ../../src/modules/logger/logger.cpp
  -0.1%      -8  [ = ]       0    ../../src/modules/navigator/navigator_main.cpp
  -4.6%    -504  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -1.7%    -832  [ = ]       0    [section .debug_ranges]
  [DEL]     -16  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -16  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -16  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]     -16  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -2.2%     -88  [ = ]       0    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  -1.3%    -584  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
  -3.0%      -2  [ = ]       0    task/task_cancelpt.c
-1.0% -33.8Ki  [ = ]       0    .debug_str
  -0.4%    -263  [ = ]       0    
  -0.7%    -128  [ = ]       0    ../../src/drivers/adc/ads1115/ads1115_main.cpp
  -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.9% -1.06Ki  [ = ]       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
  -8.3%    -251  [ = ]       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
   +27%      +6  [ = ]       0    ../../src/modules/mc_hover_thrust_estimator/zero_order_hover_thrust_ekf.cpp
  +0.0%      +1  [ = ]       0    ../../src/modules/navigator/mission_block.cpp
 -102.1% -5.83Ki  [ = ]       0    [8 Others]
-0.9%      -2  [ = ]       0    .shstrtab
-0.5% -3.23Ki  [ = ]       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
 -13.1%    -241  [ = ]       0    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  +2.9%     +16  [ = ]       0    ../../src/modules/landing_target_estimator/KalmanFilter.cpp
  -7.1%    -247  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -0.2%    -141  [ = ]       0    [section .strtab]
  [DEL]     -24  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -26  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -32  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
  [DEL]     -76  [ = ]       0    msg/topics_sources/vehicle_trajectory_waypoint.cpp
  -1.4%    -692  [ = ]       0    src/modules/mavlink/modules__mavlink_unity.cpp
-0.4% -2.16Ki  [ = ]       0    .symtab
 -14.3%     -16  [ = ]       0    ../../platforms/common/uORB/SubscriptionInterval.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
 -10.3%    -192  [ = ]       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.5%     +32  [ = ]       0    ../../src/modules/fw_pos_control/FixedwingPositionControl.cpp
  +5.0%     +16  [ = ]       0    ../../src/modules/landing_target_estimator/KalmanFilter.cpp
  -3.2%     -96  [ = ]       0    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
  -2.2%     -16  [ = ]       0    ../../src/modules/vtol_att_control/tiltrotor.cpp
 -101.2%    -544  [ = ]       0    [2 Others]
  -0.1%     -80  [ = ]       0    [section .symtab]
   +33%     +16  [ = ]       0    inet/ipv4_setsockopt.c
 -25.0%     -16  [ = ]       0    msg/topics_sources/follow_target_status.cpp
  [DEL]     -48  [ = ]       0    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -48  [ = ]       0    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -48  [ = ]       0    msg/topics_sources/vehicle_trajectory_bezier.cpp
 +15% +10.1Ki  [ = ]       0    [Unmapped]
-0.5% -10.1Ki  -0.5% -10.1Ki    .text
   +33%     +16   +33%     +16    msg/topics_sources/vehicle_torque_setpoint.cpp
  -0.1%     -16  -0.1%     -16    ../../src/modules/logger/logger.cpp
  [DEL]     -16  [DEL]     -16    msg/topics_sources/trajectory_bezier.cpp
  [DEL]     -16  [DEL]     -16    msg/topics_sources/trajectory_waypoint.cpp
  [DEL]     -16  [DEL]     -16    msg/topics_sources/vehicle_trajectory_bezier.cpp
  -2.0%     -24  -2.0%     -24    msg/topics_sources/uORBTopics.cpp
  -0.7%     -36  -0.7%     -36    ../../src/modules/logger/logged_topics.cpp
 -100.0%     -41 -100.0%     -41    [12 Others]
  -1.6%     -44  -1.6%     -44    src/modules/flight_mode_manager/FlightTasks_generated.cpp
  [DEL]     -48  [DEL]     -48    msg/topics_sources/vehicle_trajectory_waypoint.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%    -105  -0.1%    -105    ROMFS/nsh_romfsimg.c
  -3.7%    -136  -3.7%    -136    ../../src/modules/flight_mode_manager/FlightModeManager.cpp
  -1.2%    -244  -1.2%    -244    ../../src/modules/commander/Commander.cpp
  -8.6%    -604  -8.6%    -604    ../../src/modules/flight_mode_manager/tasks/Auto/FlightTaskAuto.cpp
  -0.3%    -892  -0.3%    -892    [section .text]
  -0.9%   -1016  -0.9%   -1016    src/modules/mavlink/modules__mavlink_unity.cpp
  [DEL] -1.56Ki  [DEL] -1.56Ki    ../../src/lib/bezier/BezierN.cpp
  [DEL] -2.52Ki  [DEL] -2.52Ki    ../../src/lib/avoidance/ObstacleAvoidance.cpp
  -8.1% -2.71Ki  -8.1% -2.71Ki    ../../src/modules/uxrce_dds_client/uxrce_dds_client.cpp
-0.7%  -317Ki  -0.5% -10.1Ki    TOTAL

Updated: 2025-01-15T09:25:46

bresch
bresch previously approved these changes Jan 6, 2025
@dagar
Copy link
Member

dagar commented Jan 9, 2025

Plus the corresponding mavlink pieces once these are gone. #24172 (comment)

sfuhrer and others added 8 commits January 13, 2025 19:12
Remove yaw_acceptance and altitude_acceptance_radius fields as they were only
filled by now removed avoidance controller.

Signed-off-by: Silvan <[email protected]>
Signed-off-by: Silvan <[email protected]>
- TrajectoryBezier.msg
- TrajectoryWaypoint.msg
- VehicleTrajectoryBezier.msg
- VehicleTrajectoryWaypoint.msg

Additionally remove TRAJECTORY_REPRESENTATION_WAYPOINTS mavlink stream.

Signed-off-by: Silvan <[email protected]>
As it is no longer needed w/o avoidance.

Signed-off-by: Silvan <[email protected]>
@MaEtUgR MaEtUgR force-pushed the pr-remove-avoidance-main branch from 6bdddd4 to 8b09e7c Compare January 13, 2025 18:58
MaEtUgR
MaEtUgR previously approved these changes Jan 13, 2025
Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

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

I rebased and removed some more:

  • Heartbeat processing for the obstacle avoidance MAVLink component since you already removed the handling for it
  • ROS1 Gazebo classic test which you had already removed the target for in the Makefile

Please double-check. Also we should probably mark the MAVLink messages that are no longer supported as deprecated to avoid confusion.

@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-jan-15-2025/43274/1

@sfuhrer
Copy link
Contributor Author

sfuhrer commented Jan 17, 2025

Waiting with merging due to the topic version bump it includes (68be795) for which, after my understanding, we need the translation mechanism in first.

@dagar @MaEtUgR @DanMesh beside the missing translation layer - good to go from your side?

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.

8 participants