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

image_proc: consistent image_transport #884

Merged

Conversation

mikeferguson
Copy link
Member

  • consistent image_transport parameter for crop_decimate, crop_non_zero and debayer nodes
  • consistent remapping support for compressed/etc topics in all three nodes
  • add lazy subscription support to crop_non_zero

Additional minor fixes:

  • put the getTopicQosProfile() for publisher right in front of publisher declaration for clarity

@@ -52,14 +52,34 @@ namespace image_proc
CropNonZeroNode::CropNonZeroNode(const rclcpp::NodeOptions & options)
: Node("CropNonZeroNode", options)
{
// TransportHints does not actually declare the parameter
this->declare_parameter<std::string>("image_transport", "raw");
Copy link
Contributor

Choose a reason for hiding this comment

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

include header <string>

Copy link
Member Author

Choose a reason for hiding this comment

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

string is already in the header file for this class - hence why the linter is asking for it to be added in this file

@@ -52,7 +52,14 @@ namespace image_proc
DebayerNode::DebayerNode(const rclcpp::NodeOptions & options)
: Node("DebayerNode", options)
{
auto qos_profile = getTopicQosProfile(this, "image_raw");
// TransportHints does not actually declare the parameter
this->declare_parameter<std::string>("image_transport", "raw");
Copy link
Contributor

Choose a reason for hiding this comment

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

include header <string>

@mikeferguson mikeferguson merged commit 457b128 into ros-perception:rolling Jan 19, 2024
3 checks passed
@mikeferguson mikeferguson deleted the image_proc_transport branch January 19, 2024 16:28
Kotochleb pushed a commit to Kotochleb/image_pipeline that referenced this pull request May 27, 2024
* consistent image_transport parameter for crop_decimate, crop_non_zero
and debayer nodes
* consistent remapping support for compressed/etc topics in all three
nodes
* add lazy subscription support to crop_non_zero

Additional minor fixes:

* put the getTopicQosProfile() for publisher right in front of publisher
declaration for clarity
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.

2 participants