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

gz world: use gz-transport to fix unclosed sockets #3374

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

scpeters
Copy link
Member

🦟 Bug fix

Fixes #3341.

Summary

Checklist

  • Signed all commits for DCO
  • Added tests
  • 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

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Subscribe to WorldControl messages over gz-transport
(ZeroMQ) in addition to gazebo_transport (boost asio),
since gz-transport does a better job closing sockets.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Publish to the new /world_control gz-transport topic
to avoid the issue with too many open files after
running `gz world` repeatedly.
Fixes #3341.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Two other classes currently subscribe to ~/world_control,
so add parallel /world_control subscribers.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters merged commit fa2e5e2 into gazebo11 Feb 23, 2024
8 of 10 checks passed
@scpeters scpeters deleted the scpeters/world_control_gz_transport branch February 23, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repeated instances of gz cause gazebo to throw an instance of 'gazebo::common::Exception'
3 participants