IR kinect subscribtion
Hi there.
I'm working with the Kinect in ROS. Had anyone subscribed to /camera/ir/image_raw ? because I get black screen when I launch this command in the shell:
$> rosrun image_view image_view image:=/camera/ir/image_raw
and how to subscribe to it using c++ program like that : what should I put instead of mono8 ? (Raw uint16 IR image data is given by the topic)
void imageCallbackir(const sensor_msgs::ImageConstPtr& msg)
{
cv_bridge::CvImagePtr cv_ptr;
try
{
cv_ptr = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::MONO8);
}
catch (cv_bridge::Exception& e)
{
ROS_ERROR("cv_bridge exception: %s", e.what());
return;
}
cv::imshow("OpenCV viewer Kinect ir", cv_ptr->image);
cvWaitKey(3);
}
Thank you.
Info? What sensor? What software? What OS? What are you launching?
Now it's clear
which pkg do you use for getting data from kinect?
I had mention that in my question, I'm using /camera/ir/image_raw And it's the only topic for that
why you didn't use openni pkg?
I use the package :roslaunch openni_launch openni.launch and then I launch the topic
try to subscribe another topic . is that show correctly? for example "$rosrun image_view image_view image:=/camera/rgb/image_color"
I want IR camera only as I mention that in the title and not the rbg camera