Hi Wajih, thank you for sharing the additional requested details. Could you please confirm if this is the GitHub repository your application is based on -- Fast point Cloud I don't see any loop in the code which lets it track the changes dynamically from the Azure Kinect device. Line 201 in the code is responsible for invoking the function to generate point cloud and it has a few parameters which are generated using the k4a commands. Please refer the line below
depth_image = k4a_capture_get_depth_image(capture);
if (depth_image == 0)
{
printf("Failed to get depth image from capture\n");
goto Exit;
}
generate_point_cloud(depth_image, xy_table, point_cloud, &point_count);
I would recommend putting a break point on the lines of code where the parameters for the function generate_point_cloud are measured and change the direction of the camera before the parameters are calculated to see if the code detects the change. Please note that the above code is not designed to respond to changes on Azure Kinect and the code exits after calculating the point cloud. For testing and debug purposes you can put a goto statement at Line 151 and call it after calibrating cloud point from Line 204 to validate if the code is responding to the changed Azure Kinect coordinates.
Please let me know if the above information is helpful.