Skip to content

Update px4-rc.gzsim. Fix gz_world checking for PX4_GZ_STANDALONE=1#25346

Merged
dakejahl merged 1 commit intoPX4:release/1.16from
drfenixion:release/1.16
Aug 1, 2025
Merged

Update px4-rc.gzsim. Fix gz_world checking for PX4_GZ_STANDALONE=1#25346
dakejahl merged 1 commit intoPX4:release/1.16from
drfenixion:release/1.16

Conversation

@drfenixion
Copy link

Update px4-rc.gzsim. Fix gz_world checking for PX4_GZ_STANDALONE=1 mode. Priority of gz_world (really running) over PX4_GZ_WORLD

Solved Problem

Currently in PX4_GZ_STANDALONE=1 mode script uses PX4_GZ_WORLD as true and does not see what world is really runned. It leads to needing to adding PX4_GZ_WORLD=${PX4_GZ_WORLD:=default} with correct world name you planed to run. It is ok for NOT STANDALONE mode. But in STANDALONE it leads to double place for world configuring (airframe and same world in gazebo launcher). And you cant use any other world in Gazebo launcher (only same as in airframe).

I belive in PX4_GZ_STANDALONE script should attach to any really runned world (as it was in PX4 v1.14 ).

I fix that with using really runned world attach to.

…de. Priority of gz_world (really running) over PX4_GZ_WORLD
Copy link
Contributor

@dakejahl dakejahl left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@dakejahl dakejahl merged commit 7fc5393 into PX4:release/1.16 Aug 1, 2025
60 of 63 checks passed
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.

2 participants