Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Use mono8 encoding when publishing infra camera images #106

Open
wants to merge 1 commit into
base: eloquent
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions realsense_ros/include/realsense/rs_constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ namespace realsense

const std::map<rs2_stream, std::string> MSG_ENCODING = {{RS2_STREAM_COLOR, sensor_msgs::image_encodings::RGB8},
{RS2_STREAM_DEPTH, sensor_msgs::image_encodings::TYPE_16UC1},
{RS2_STREAM_INFRARED, sensor_msgs::image_encodings::TYPE_8UC1},
{RS2_STREAM_FISHEYE, sensor_msgs::image_encodings::TYPE_8UC1}};
{RS2_STREAM_INFRARED, sensor_msgs::image_encodings::MONO8},
{RS2_STREAM_FISHEYE, sensor_msgs::image_encodings::MONO8}};

const std::map<rs2_stream, rs2_format> STREAM_FORMAT = {{RS2_STREAM_COLOR, RS2_FORMAT_RGB8},
{RS2_STREAM_DEPTH, RS2_FORMAT_Z16},
Expand Down