I am trying to use the max_range parameter to define the maximum range to detect objects. Before enabling object detection, I am setting the parameter to a specific value. However, the camera is detecting objects at larger distances than the one specified in max_range.
I found on the SDK documentation that the parameter is initialized to depth_maximum_distance. I am setting max_range < depth_maximum_distance to avoid possible issues on this regard.
Maybe I am missing something in the parameter configuration. Has someone tried to modify this before?
Sorry for the late update. I installed the latest v4.0.4 and I still have the same issue. Among the detected objects, I still get objects farther than the max_range value.
I am checking the depth of all detected objects provided by the retrieve_objects() function. I am assuming the depth of the object centroid as the z component of the object position. Is this correct?
Just as an update:
I just checked the depth of the bounding box centroid from the depth image. I am using the retrieve_measure(depth_map, sl.MEASURE.DEPTH) function to get the depth, depth_map is an image.
I still receive objects with a depth larger than max_range. Besides, I realized that the depth value and the Z component of the object position are not the same. Sometimes both measurements differ considerably (more than 2 m), is this ok?