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

Tools: abort SITL start if gzserver fails #15399

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Conversation

julianoes
Copy link
Contributor

Sometimes gzserver seems to not start or not start fast enough. In this case, instead of stalling forever, it would be nice to abort.

Closes #15398.

Sometimes gzserver seems to not start or not start fast enough. In this
case, instead of stalling forever, it would be nice to abort.
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.

Nice!


if gz model --spawn-file="${src_path}/Tools/sitl_gazebo/models/${model}/${model}.sdf" --model-name=${model} -x 1.01 -y 0.98 -z 0.83 2>&1 | grep "An instance of Gazebo is not running."; then
Copy link
Member

Choose a reason for hiding this comment

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

What's up with the magic coordinates? -x 1.01 -y 0.98 -z 0.83?

Copy link
Member

Choose a reason for hiding this comment

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

@dagar That was something I added a while ago to spawn the vehicle somewhere that is not zero, and was specified in the world file previously.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Jaeyoung-Lim Remember I asked the same question (see note below)? Perhaps worth an in-source comment.

image

@julianoes julianoes merged commit 26021b0 into master Jul 23, 2020
@julianoes julianoes deleted the pr-fix-gzserver-not-there branch July 23, 2020 05:42
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.

Sometimes SITL fails to start with "An instance of Gazebo is not running."
4 participants