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

remove code duplicate in ROSCvMatContainer #541

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

ijnek
Copy link
Member

@ijnek ijnek commented Nov 16, 2024

Resolves: #506

@Yadunund could you please do a review on this?

Copy link
Contributor

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

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

LGTM with minor suggestion!

const ros_message_type & source,
custom_type & destination)
image.step = static_cast<sensor_msgs::msg::Image::_step_type>(cv_mat.step);
size_t size = cv_mat.step * cv_mat.rows;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit

Suggested change
size_t size = cv_mat.step * cv_mat.rows;
const size_t size = cv_mat.step * cv_mat.rows;

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.

Potential code duplication in ROSCvMatContainer
2 participants