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

Refactor triggered_camera demo #645

Open
wants to merge 3 commits into
base: ros2
Choose a base branch
from

Conversation

caguero
Copy link
Contributor

@caguero caguero commented Nov 13, 2024

Refactors the triggered_camera demo leveraging the latest improvements in ros_gz.

  • I replaced the previous launch file from Python to XML.

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.

Signed-off-by: Carlos Agüero <[email protected]>
Comment on lines 2 to 3
- ros_topic_name: "/camera"
gz_topic_name: "/camera"
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be simlpified

Suggested change
- ros_topic_name: "/camera"
gz_topic_name: "/camera"
- topic_name: "/camera"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simplified in 3c5d49b.

Comment on lines 6 to 7
subscriber_queue: 5
publisher_queue: 6
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to specify these for sure? Can we not just use the defaults?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in 3c5d49b.

gz_type_name: "gz.msgs.Image"
subscriber_queue: 5
publisher_queue: 6
lazy: false
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think there's harm in making lazy=true.

Suggested change
lazy: false
lazy: true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed in 3c5d49b.

@caguero caguero marked this pull request as ready for review November 22, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Inbox
Development

Successfully merging this pull request may close these issues.

2 participants