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

Enabling RGB8 Infrared stream #2806

Merged
merged 3 commits into from
Jul 18, 2023

Conversation

Arun-Prasad-V
Copy link
Contributor

Updated the default supported format of Infra0 stream to "RS2_FORMAT_RGB8".

If this Infra0 stream is enabled, we can't open infra1 and infra2. But, by default all the streams are enabled in ROS2 wrapper.

So, had to set the default value of 'enable_infra' param to 'false' which will disable infra0 stream during init.

@@ -126,9 +126,6 @@ BaseRealSenseNode::BaseRealSenseNode(rclcpp::Node& node,
_encoding[1] = sensor_msgs::image_encodings::MONO8; // ROS message type
_encoding[2] = sensor_msgs::image_encodings::TYPE_16UC1; // ROS message type
_encoding[3] = sensor_msgs::image_encodings::RGB8; // ROS message type

// Infrared stream
_format[RS2_STREAM_INFRARED] = RS2_FORMAT_Y8;
Copy link
Contributor Author

@Arun-Prasad-V Arun-Prasad-V Jul 6, 2023

Choose a reason for hiding this comment

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

This variable is not used anywhere.

@Arun-Prasad-V Arun-Prasad-V marked this pull request as ready for review July 7, 2023 12:19
@Arun-Prasad-V Arun-Prasad-V requested a review from Nir-Az July 10, 2023 06:16
@SamerKhshiboun SamerKhshiboun self-requested a review July 17, 2023 10:34
@SamerKhshiboun
Copy link
Contributor

Tested with D455

@Nir-Az Nir-Az merged commit 9203640 into IntelRealSense:ros2-development Jul 18, 2023
@Arun-Prasad-V Arun-Prasad-V deleted the enable_infra branch August 10, 2023 05:33
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.

3 participants