I used a lambda function in order to store point cloud into each instance of a vector. Even I pass the vector by reference, when I try to access each instance of the vector,