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

gz: remove model spawn offset #24165

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dakejahl
Copy link
Contributor

@dakejahl dakejahl commented Jan 3, 2025

The spawning of the model in the air is confusing in logs and right now is potentially impacting the EKF during initialization (specifically rangefinder alt source as primary). This was added in #22400 but IMO it would be better to fix the offending models on a case by case basis. In a perfect world the maintainer of a model/world would have the flexibility to spawn their model wherever they want.

@dakejahl dakejahl requested a review from Jaeyoung-Lim January 15, 2025 05:52
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

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

What does spawning at zero actually mean? I think the motivation for this was that some models would be spawned to penetrate the ground which results in the vehicle jumping up extremely high.

Not against the change, but not sure if this is the best way to fix this.

@dakejahl
Copy link
Contributor Author

Well on those models it would be an easy fix to adjust the pose. I think that issue then might be a consequence of the px4-rc.simulator init script spawning all the models at 0,0,0, if unspecified with the env var
https://github.com/PX4/PX4-Autopilot/blob/main/ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator#L117-L124

@dakejahl dakejahl requested a review from dagar January 15, 2025 19:57
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