Skip to content

Conversation

@vavanade
Copy link

In ArenaCameraNode::setupRectification method cv_bridge_img_rect_->encoding is given the value of img_raw_msg_.encoding but at that time the raw msg encoding value is empty since in ArenaCameraNode::startGrabbing it is given value ( img_raw_msg_.encoding = currentROSEncoding(); ) after ArenaCameraNode::setupRectification runs so the resulting encoding in cv_bridge_img_rect_ is empty and the /arena_camera_node/image_rect topic is broadcasted with empty encoding in the messages.

Getting the encoding of the rectified images by calling currentROSEncoding fixes the problem.

In `ArenaCameraNode::setupRectification` method `cv_bridge_img_rect_->encoding` is given the value of `img_raw_msg_.encoding` but at that time the raw msg encoding value is empty since in `ArenaCameraNode::startGrabbing` it is given value ( `img_raw_msg_.encoding = currentROSEncoding();` ) after `ArenaCameraNode::setupRectification` runs so the resulting encoding in `cv_bridge_img_rect_` is empty and the `/arena_camera_node/image_rect` topic is broadcasted with empty `encoding` in the messages.

Getting the encoding of the rectified images by calling `currentROSEncoding` fixes the problem.
@cyhunblr
Copy link

LGTM

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