-
Notifications
You must be signed in to change notification settings - Fork 12
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
Minimal Cpp example using a subclass of rclcpp::Node #3
Comments
This specific issue I was having was that it didn't seem possible to initialize an ImageTransport object within a subclass of a rclcpp::Node. However, according to the ImageTransport documentation here, it's not actually necessary to create an ImageTransport object! You can instead initialize publishers and subscribers in a similar fashion to regular publishers and subscribers. |
IMO, it would be nice to see such an example, though I haven't investigated if it is possible with the current API. I'm happy to review any PRs or thoughts on the matter. |
I have been able to implement this successfully. When I get around to it, I'll be happy to create a minimal example and create a PR. |
@swiz23 Glad to hear it! I look forward to a pull request :) |
Maybe the example from Stereolabs might help you. |
See this PR: #8 |
From here, the readme specifies that the recommended style for ros 2 coding is to subclass a rclcpp::Node. Could you write a minimal example in cpp that shows how this works with image transport?
The text was updated successfully, but these errors were encountered: