ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

robojoe's profile - activity

2014-08-07 01:46:07 -0500 received badge  Notable Question (source)
2014-07-14 02:31:20 -0500 received badge  Popular Question (source)
2014-04-30 08:38:07 -0500 asked a question openni2_camera published encoding wrong?

I noticed a potential bug (minor) in the indigo shadow build of the openni2_camera. The encoding published in the topic appears to be "rgb8" but I think in reality the encoding is "bgr8". I would submit a bug report but can someone verify this first? Note: image_view still shows the correct encoding (but I think that is because it falls back to the opencv default "bgr8" and isn't using the encoding published in the topic message).

The piece of code I'm using to get the error is:

cv_bridge::CvImageConstPtr cv_ptr_rgb;<p>
cv_ptr_rgb = cv_bridge::toCvShare(rgb_msg_in, rgb_msg_in->encoding);

If I replace the second line with the following it works properly:

cv_ptr_rgb = cv_bridge::toCvShare(rgb_msg_in, "bgr8");
2014-03-25 07:03:18 -0500 received badge  Taxonomist
2013-07-16 04:34:18 -0500 received badge  Student (source)
2013-01-14 18:17:19 -0500 received badge  Famous Question (source)
2013-01-14 18:17:19 -0500 received badge  Popular Question (source)
2013-01-14 18:17:19 -0500 received badge  Notable Question (source)
2011-09-02 11:52:55 -0500 marked best answer narf and kdtree flann search

The comments above are correct; this is best asked on pcl-users.

2011-07-26 02:57:25 -0500 received badge  Editor (source)
2011-07-26 02:56:53 -0500 asked a question narf and kdtree flann search

Hi,

I'm not sure if I should ask this here or in the PCL mailing list but I'll ask here anyways.

I am trying to use kdtree_flann to match narf descriptors. I am extracting the descriptors in a similar way to the NARF PCL tutorial. The problem is when I try perform the NN search between two pointclouds (pointcloud A added as the input and point cloud B used as the query), all the features in B match to the same feature in A. The distances reported by kdtree are all 0 (zero).

  • I noticed that narf36 has a {x,y,z,roll,pitch,yaw} value which are all 0 (zero) for my features, is this why all my distances are zero when kdtree performs its search?

The .descriptor values themselves are different for each feature in A and B. I would have expected that kdtree would use the Narf::getDescriptorDistance function or something similar to compute the distances.

  • Does anyone know what distance metric it uses when you provide the PointCloud< Narf36 > as the data type to kdtree?
  • And is there a way to change this (to maybe even a custom distance function)?

Thanks in advance, - Joe