Ask Your Question

Alireza's profile - activity

2020-04-17 12:53:46 -0600 received badge  Popular Question (source)
2015-02-04 13:33:26 -0600 asked a question How to avoid pcd files in PCL

In this page a tutorial has been explained to how to extract Euclidean Clusters. To look at the output the pcd files should be used. My question is that if I want to use this library in a real time purpose how I can do this? I mean how I can avoid to use pcd files? To be more clear, I want to use this library to collect the data captured by kinect and then cluster the data but if the pcd files are the only way to use output data it can be concluded that it is not possible to use this library for real-time purposes. Am I right?

2015-02-03 10:44:56 -0600 commented question possibility of using PCL (Euclidean Cluster Extraction) for object detection

I have already asked there but they said I should asked here.

2015-02-03 09:03:54 -0600 commented question possibility of using PCL (Euclidean Cluster Extraction) for object detection

@StevenPuttemans. Thanks. Would you please specify the link or the name of that module in ROS for opencv? I confused with the name of packages in this purpose.

2015-02-02 15:53:49 -0600 received badge  Editor (source)
2015-02-02 08:55:45 -0600 asked a question possibility of using PCL (Euclidean Cluster Extraction) for object detection

Dear All,

I need to detect objects (1-3) using Kinect at the same time. I did some research but I could not find any package for objects detection in ROS. I want to use depth information as input data and finally calculate distance of objects to camera. For objects detection, do I employ clustering methods? for example, Euclidean Cluster Extraction is provided by PCL so could I use these codes in a ROS node?

2015-01-20 13:35:18 -0600 commented question 'Segmentation fault (core dumped)' error for opencv with kinect & ROS

Thanks. but i could not find any ros-node for kinect. I know openni_camera but I do not know how to apply this driver in my node. Is there any example?

2015-01-19 12:57:59 -0600 asked a question 'Segmentation fault (core dumped)' error for opencv with kinect & ROS

Dear All,

I am trying to get depth values and then convert them to millimeter for distance measuring (Although I am not sure if it is a good way or not). Anyway, this is the code I am using as a node in a ROS's catkin package:

int main( int argc, char* argv[] )

{

    VideoCapture capture(CV_CAP_OPENNI); 

   for(;;)

   { Mat depthMap;

     Mat bgrImage;

    capture.grab();

     capture.retrieve( depthMap, CV_CAP_OPENNI_DEPTH_MAP ); // Depth values in mm (CV_16UC1)

    capture.retrieve( bgrImage, CV_CAP_OPENNI_BGR_IMAGE );

    cout << "rows: " << depthMap.rows << " cols: " << depthMap.cols << endl;
    cout << "depth: " << depthMap.at<unsigned short>(0,0) << endl;

   /* imshow("RGB image", bgrImage);*/

    if( waitKey( 30 ) >= 0 )

break;
 }
  return 0;
  }

My problem is that I receive this error when I use rosrun to run this node:

rows: 0 cols: 0
Segmentation fault (core dumped)

I have already checked some topics about this problem here bit I am still confused and I could solve this error. I would appreciet it if you help me out.