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

Bug fix in gazebo_sitl_multiple_run.sh #15392

Closed
wants to merge 4 commits into from
Closed

Bug fix in gazebo_sitl_multiple_run.sh #15392

wants to merge 4 commits into from

Conversation

iwishiwasaneagle
Copy link
Contributor

@iwishiwasaneagle iwishiwasaneagle commented Jul 21, 2020

Describe problem solved by this pull request
Change location of where $PX4_SIM_MODEL is set to avoid mixer issues. Before, the change px4 would start all models as iris whilst gazebo was spawning in the correct meshes. This resulted in both plane and standard_vtol running with the quad_w mixer.

Describe your solution
Define $PX4_SIM_MODEL within spawn_model() based on $MODEL, so that when -s is used the correct targets are used.

Tests

  • -s plane:1,iris:1 - spawns 1 plane, 1 iris
  • -m iris -n 3 - spawns 3 iris
  • -n 3 -> spawns 3 iris
  • none -> spawns 3 iris

Change location of where PX4_SIM_MODEL is set to avoid mixer issues. Before, the change px4 would start all models as `iris` whilst gazebo was spawning in the correct meshes. This resulted in both `plane` and `standard_vtol` running with the `quad_w` mixer.
@bperseghetti
Copy link
Member

@iwishiwasaneagle do you want to include any of the files from our slack convo (one that I found mixer issue in) and then another one showing the correct vehicle rcS/mixer after the fix? Makes it easier for people to understand the issue.

@iwishiwasaneagle
Copy link
Contributor Author

@iwishiwasaneagle do you want to include any of the files from our slack convo (one that I found mixer issue in) and then another one showing the correct vehicle rcS/mixer after the fix? Makes it easier for people to understand the issue.

#15393

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.

Thanks! Seems like this slipped through the testing I did for my previous change

Minor change requested to set defaults more explicitly

Tools/gazebo_sitl_multiple_run.sh Outdated Show resolved Hide resolved
Tools/gazebo_sitl_multiple_run.sh Outdated Show resolved Hide resolved
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.

Thanks!

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.

Thanks!

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants