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

ADD: publish the wind information to gz and ros topic #2767

Open
wants to merge 3 commits into
base: gz-sim9
Choose a base branch
from

Conversation

TigerWuu
Copy link

Signed-off-by: TigerWuu [email protected]

🎉 New feature

Summary

Create a wind plugin : windEffectPub to publish the wind information from gazebo to

  1. gz topic : /world/$myworld$/wind_info
  2. ros2 topic : /data/wind_true

Test it

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

@github-actions github-actions bot added the 🏛️ ionic Gazebo Ionic label Feb 12, 2025
@TigerWuu TigerWuu marked this pull request as ready for review February 12, 2025 10:55
@TigerWuu TigerWuu requested a review from mjcarroll as a code owner February 12, 2025 10:55
Copy link
Contributor

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

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

This is getting really close to ☑️ ... Just one more small ask from me. Also update the docstring in the header file with info about how to access this topic.

@@ -482,6 +485,10 @@ void WindEffectsPrivate::SetupTransport(const std::string &_worldName)
// Wind info service
this->node.Advertise("/world/" + validWorldName + "/wind_info",
&WindEffectsPrivate::WindInfoService, this);

// Wind info topic
Copy link
Contributor

Choose a reason for hiding this comment

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

Great improvement! It'd be nice if we could toggle this on and off. Do you mind adding an optional SDFormat parameter to the Configure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

2 participants