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

[rc.simulator] fix PX4_HOME_ALT and cleanup #22562

Merged
merged 4 commits into from
Dec 18, 2023
Merged

[rc.simulator] fix PX4_HOME_ALT and cleanup #22562

merged 4 commits into from
Dec 18, 2023

Conversation

beniaminopozzan
Copy link
Member

Solved Problem

SIM_GZ_HOME_ALT was uncorrectly set.

Additional feature

Increase documentation of Gazebo simulation startup

fi

else
if ! gz_bridge start -p "${model_pose}" -m "${PX4_SIM_MODEL#*gz_}" -w "${PX4_GZ_WORLD}" -i "${px4_instance}"; then
echo "ERROR [init] gz_bridge failed to start"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we maybe make these errors a bit more verbose by providing a reason why gz-bridge failed to start? Otherwise there is the same error message in two different if-statements.

Copy link
Member Author

Choose a reason for hiding this comment

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

@frede791 , at the rc.simulator scope, there is no way to know what caused the bridge to fail to start. Nevertheless I distiguished the two cases: starting and spawning VS starting and attaching to existing vehicle

Copy link
Contributor

@frede791 frede791 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Co-authored-by: Daniel Agar <daniel@agar.ca>
Co-authored-by: Daniel Agar <daniel@agar.ca>
@dagar dagar merged commit 613564f into main Dec 18, 2023
88 of 90 checks passed
@dagar dagar deleted the pr-fix-rc.simulator branch December 18, 2023 21:08
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.

None yet

3 participants