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 <arjo@openrobotics.org>

* small changes

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>

* Working on porting the visuals

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>

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

Visuallization still goes 💥

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Rewrite EnvironmentVisualization Widget to be simpler.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* fix crashes.

Vis still not working

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Get a different 💥

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Works some times.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Fixed synchronization issues.

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

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* No more 💥s 🎉

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* style

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Sprinkled with healthy dose of Doxygen

Also refactored the visualization tool out.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Style

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* More style fixes

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Fix Typo with unit map

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Address PR feedback

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Style fixes

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Fix incorrect use of path.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Fix example loading issues.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* style

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Update src/systems/environment_preload/VisualizationTool.cc

Co-authored-by: Mabel Zhang <mabel@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo129@gmail.com>

* Adds a warning regarding loading plugins.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Automatically loads plugin if missing

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

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Address some feedback I missed

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Address some feedback

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Fixes issue  described by @iche033.

However fix depends on gazebosim/gz-math#551

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* style

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

* Fixed failing tests

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>

---------

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Signed-off-by: Arjo Chakravarty <arjo129@gmail.com>
Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai>
Co-authored-by: Mabel Zhang <mabel@openrobotics.org>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: frederik <frederik@auterion.com>
…des test (#2197)

Signed-off-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>

---------

Signed-off-by: Ian Chen <ichen@openrobotics.org>
# 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 <frederik@auterion.com>
Signed-off-by: Frederik Markus <80588263+frede791@users.noreply.github.com>
Signed-off-by: Arjo Chakravarty <arjo129@gmail.com>
Co-authored-by: frederik <frederik@auterion.com>
Co-authored-by: Arjo Chakravarty <arjo129@gmail.com>
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll mjcarroll requested a review from iche033 as a code owner November 2, 2023 15:48
@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
3 of 4 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