-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Enable FlightGear view in sim_vehicle.py (#26540) #26541
Conversation
Tools/autotest/sim_vehicle.py
Outdated
@@ -833,6 +833,7 @@ def start_vehicle(binary, opts, stuff, spawns=None): | |||
cmd.append("--start-time=%d" % start_time_UTC) | |||
|
|||
cmd.append("--sim-address=%s" % cmd_opts.sim_address) | |||
cmd.append("--enable-fgview") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this a command-line option to avoid unnecessary overhead in 99.99% of sim_vehicle.py invocations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we should
Tools/autotest/sim_vehicle.py
Outdated
@@ -833,6 +833,7 @@ def start_vehicle(binary, opts, stuff, spawns=None): | |||
cmd.append("--start-time=%d" % start_time_UTC) | |||
|
|||
cmd.append("--sim-address=%s" % cmd_opts.sim_address) | |||
cmd.append("--enable-fgview") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we should
we will need a new sim_vehicle.py command line option, and update the wiki docs |
Was this ever completed? In short, can we, or can we not integrate FlightGear with ArduPilot and Mission Planner? The documentation found here: https://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html#start-sitl-simulator does not mention FlightGear is no longer an option. Any help on this would be greatly appreciated, and I appreciate all of your hard work on the repo. |
@ugol-1 are you going to implement that command-line option? Looks like there's interest in fixing the fgview stuff. |
I can do this, yes. |
I would be immensely grateful for this, so please and thank you if you can do this! My team and I are working on the ArduPilot suite, and we would greatly benefit from having the FG visualization alongside Mission Planner. |
Hi all. Just checking back in to see if there is or can be a projected timeline for this commit? As mentioned, my team and I are actively working on development in this space and would greatly benefit from having the FG visualization available again. I have attempted to adjust the code locally but created more issues than I solved, so I was hoping this could be pushed through soon. Alternatively, if there is a local side 'fix' that someone could walk me through, I would be more than happy to implement that while the commit is being processed/accepted. As before, we greatly appreciate all of your hard work on ArduPilot, and I appreciate the continued responsiveness of those here. Thanks! |
Hello @justin-slattery , I am not an ArduPilot developer/maintainer, I am just an ordinary guy like probably you are ) If you just want a quick fix then simply apply this PR. @tridge believes that to properly fix the issue an extra option needs to be added to But again, if you just want to make FG work again -- this is a matter of adding 1 line, which is this PR. It is just adding one extra option |
Hi all, Updating here. First off, thanks very much for the continued conversation here. I managed to implement the fix for anyone who wants to do this locally: in sim_vehicle.py, add the following at line 837:
Then, at line 1346, which is within the parse options for simulation, add the following:
This will allow you to add --enable-fgview in your sim_vehicle.py command line call, and with fg running, it will visualize your vehicle's simulation properly. |
0be69a4
to
8596ddd
Compare
e40b680
to
8113348
Compare
8113348
to
b1fb4f3
Compare
Thank you for your fix @justin-slattery ! I have added it in this commit: b1fb4f3 @tridge the option to enable FlightGear view has been added to |
Thank you all very much for your continued conversation and development efforts! All the best, Justin |
Closing this one now as I've merged the combined-fix PR. Thanks for everybody's efforts here - esp. @ugol-1 for the patches :-) |
Fixes #26540