Bumblebee2 camera points are all Nan. [closed]

asked 2014-01-15 19:39:38 -0500

luo gravatar image

updated 2014-01-28 17:19:03 -0500

ngrennan gravatar image

Hello everyone. I want to extract pointclouds from Bumblebee2,but the points and points2 are all Nan.I don't know where I was wrong.Could anyone help me.

I used "camera1394stereo" to driver the Bumblebee, and "stereo_image_proc" to process, I can view the disparity map by "stereo_view".I want to see the value in PointCloud2 using the following callback.

void callback(const sensor_msgs::PointCloud2ConstPtr& cloud)

{

pcl::PointCloud<pcl::pointxyz> PointCloudXYZ;

pcl::fromROSMsg(*cloud,PointCloudXYZ);

std::cout << "width is " << PointCloudXYZ.width << std::endl;

std::cout << "height is " << PointCloudXYZ.height << std::endl;

int cloudsize = (PointCloudXYZ.width) * (PointCloudXYZ.height);

for (int i=0; i< cloudsize; i++)

{

fprintf(stream,"\t(%f, %f, %f)\n",PointCloudXYZ.points[i].x,    PointCloudXYZ.points[i].y, PointCloudXYZ.points[i].z);

}

} but the values are all nan,like

(nan, nan, nan)

(nan, nan, nan)

(nan, nan, nan)

(nan, nan, nan)

(nan, nan, nan)

(nan, nan, nan)

I used this callback to process the kinect points,it's ok.

(-0.003587, -0.004384, 0.459000)

(-0.003587, -0.003587, 0.459000)

(-0.003587, -0.002790, 0.459000)

(-0.003587, -0.001993, 0.459000)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-06-04 11:49:38.987481

Comments

I have the exact same problem. Were you able to resolve this issue with Bumblebee2.

nkallaku gravatar image nkallaku  ( 2014-04-03 11:47:14 -0500 )edit

not yet.still trying.

luo gravatar image luo  ( 2014-04-06 16:09:42 -0500 )edit