Skip to content

Conversation

mengchaoheng
Copy link

The force visualization plugin is affected by link's visual effects, leading to incorrect force application points. This submission aims to fix the issue. the test based on px4 v1.15.4 and corresponding gazebo-classic commit ID is da7206e057703cc645770f02437013358b71e1c0.

  • Old version, the force origin is at 0.07 0.0 -0.08 0.00 0 0.0, which is the position of the visual tag, but actually not the position of the force's point of action:

default_gzclient_camera(1)-2025-08-11T16_11_01 068983

  • New version, the point of force is set at the position defined by the cp tag:
    default_gzclient_camera(1)-2025-08-11T16_23_37 538376

default_gzclient_camera(1)-2025-08-11T16_23_40 233937

default_gzclient_camera(1)-2025-08-11T16_23_38 561851

For other models that call this plugin, such as PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/advanced_plane/advanced_plane.sdf.jinja and PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/glider/glider.sdf, I don't have equipment to test them, but I tried using old settings for plane.sdf, and they will display force as "expected", as shown in following green line:

default_gzclient_camera(1)-2025-08-11T16_55_42 899508

by link's visual effects, leading to incorrect force application points.
This submission aims to fix the issue.
@dakejahl dakejahl requested a review from Jaeyoung-Lim October 11, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant