tum-vision/tum_ardrone

Can't find pointcloud.txt

batuhan007 opened this issue · 0 comments

Hi , i want to use map points from ptam map in PTAMWrapper.hpp file https://github.com/tum-vision/tum_ardrone/blob/master/src/stateestimation/PTAMWrapper.cpp#L560 , i cant find that pointcloud.txt file , sorry if this is a newbie question but i'm quite new for this. Simply ı just want to obtain map points in PTAM Drone Map View window. `

	// flush map keypoints
	if(flushMapKeypoints)
	{
		std::ofstream* fle = new std::ofstream();
		fle->open("pointcloud.txt");

		for(unsigned int i=0;i<mapPointsTransformed.size();i++)
		{
			(*fle) << mapPointsTransformed[i][0] << " "
				   << mapPointsTransformed[i][1] << " "
				   << mapPointsTransformed[i][2] << std::endl;
		}

		fle->flush();
		fle->close();

		printf("FLUSHED %d KEYPOINTS to file pointcloud.txt\n\n",mapPointsTransformed.size());

		flushMapKeypoints = false;
	}`