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

Port: 7 to 8 #2224

Merged
merged 8 commits into from
Nov 3, 2023
Merged

Port: 7 to 8 #2224

merged 8 commits into from
Nov 3, 2023

Conversation

mjcarroll
Copy link
Contributor

➡️ Forward port

Port gz-sim7 to gz-sim8

Branch comparison: gz-sim8...gz-sim7

Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

arjo129 and others added 8 commits October 3, 2023 08:54
* Fix enviroment system loading mechanism

Currently, there is an issue with the way the Environment loader plugin loads data. In particular it directly writes to the ECM. While this makes sense intuitively, it does not work in practice as the GUI runs on a client process while systems that use it run on the server. This PR fixes this issue by introducing a topic through which the GUI may load Environment Data on the server.

Signed-off-by: Arjo Chakravarty <[email protected]>

* small changes

Signed-off-by: Arjo Chakravarty <[email protected]>

* Working on porting the visuals

Signed-off-by: Arjo Chakravarty <[email protected]>

* Actually send message for loading from ui to environment preload plugin.

Visuallization still goes 💥

Signed-off-by: Arjo Chakravarty <[email protected]>

* Rewrite EnvironmentVisualization Widget to be simpler.

Signed-off-by: Arjo Chakravarty <[email protected]>

* fix crashes.

Vis still not working

Signed-off-by: Arjo Chakravarty <[email protected]>

* Get a different 💥

Signed-off-by: Arjo Chakravarty <[email protected]>

* Works some times.

Signed-off-by: Arjo Chakravarty <[email protected]>

* Fixed synchronization issues.

Now left with one more crash that needs debugging when "play" is hit.

Signed-off-by: Arjo Chakravarty <[email protected]>

* No more 💥s 🎉

Signed-off-by: Arjo Chakravarty <[email protected]>

* style

Signed-off-by: Arjo Chakravarty <[email protected]>

* Sprinkled with healthy dose of Doxygen

Also refactored the visualization tool out.

Signed-off-by: Arjo Chakravarty <[email protected]>

* Style

Signed-off-by: Arjo Chakravarty <[email protected]>

* More style fixes

Signed-off-by: Arjo Chakravarty <[email protected]>

* Fix Typo with unit map

Signed-off-by: Arjo Chakravarty <[email protected]>

* Address PR feedback

Signed-off-by: Arjo Chakravarty <[email protected]>

* Style fixes

Signed-off-by: Arjo Chakravarty <[email protected]>

* Fix incorrect use of path.

Signed-off-by: Arjo Chakravarty <[email protected]>

* Fix example loading issues.

Signed-off-by: Arjo Chakravarty <[email protected]>

* style

Signed-off-by: Arjo Chakravarty <[email protected]>

* Update src/systems/environment_preload/VisualizationTool.cc

Co-authored-by: Mabel Zhang <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>

* Adds a warning regarding loading plugins.

Signed-off-by: Arjo Chakravarty <[email protected]>

* Automatically loads plugin if missing

This commit automatically loads the environment preload plugin if it is
missing.

Signed-off-by: Arjo Chakravarty <[email protected]>

* Address some feedback I missed

Signed-off-by: Arjo Chakravarty <[email protected]>

* Address some feedback

Signed-off-by: Arjo Chakravarty <[email protected]>

* Fixes issue  described by @iche033.

However fix depends on gazebosim/gz-math#551

Signed-off-by: Arjo Chakravarty <[email protected]>

* style

Signed-off-by: Arjo Chakravarty <[email protected]>

* Fixed failing tests

Signed-off-by: Arjo Chakravarty <[email protected]>

---------

Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
Co-authored-by: Mabel Zhang <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
# Summary
This is a plugin that ports the behaviour of the advanced lift drag plugin that was present in Gazebo Classic to Gazebo. The physics implementation have not changed, but the plugin has been adapted to work with the entity component system. Primary modeling differences in the advanced_lift_drag plugin from the original liftdrag_plugin include:

- quadratic formulation for drag 
- side force
- flat-plate post-stall model
- aerodynamic moments about all three axes
- body rate stability derivatives
- actuator control derivatives

The objective is to provide a more accurate model of a wing than what is provided in the basic lift drag plugin.

Signed-off-by: frederik <[email protected]>
Signed-off-by: Frederik Markus <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Co-authored-by: frederik <[email protected]>
Co-authored-by: Arjo Chakravarty <[email protected]>
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Nov 2, 2023
@mjcarroll
Copy link
Contributor Author

@iche033 can you verify that I did the merge in Sensors.cc correctly?

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

looks good to me

@mjcarroll mjcarroll merged commit ac26d9c into gz-sim8 Nov 3, 2023
7 of 9 checks passed
@mjcarroll mjcarroll deleted the ports/7_to_8 branch November 3, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants