23 namespace perception {
28 int element_size, T *dim_min_x,
29 T *dim_max_x, T *dim_min_y, T *dim_max_y,
30 T *dim_min_z, T *dim_max_z, T bound_min_x,
31 T bound_max_x, T bound_min_y,
32 T bound_max_y, T bound_min_z,
37 *dim_min_x = *dim_min_y = *dim_min_z = std::numeric_limits<T>::max() / 2;
38 *dim_max_x = *dim_max_y = *dim_max_z = -(std::numeric_limits<T>::max() / 2);
39 const T *cptr = threeds + start_offset;
40 for (i = 0; i < n; i++) {
46 if (x < bound_min_x || x > bound_max_x || y < bound_min_y ||
47 y > bound_max_y || z < bound_min_z || z > bound_max_z) {
50 *dim_min_x =
IMin(dim_min_x, x);
51 *dim_max_x =
IMax(dim_max_x, x);
52 *dim_min_y =
IMin(dim_min_y, y);
53 *dim_max_y =
IMax(dim_max_y, y);
54 *dim_min_z =
IMin(dim_min_z, z);
55 *dim_max_z =
IMax(dim_max_z, z);
void IGetPointcloudsDimWBound(const T *threeds, int n, int start_offset, int element_size, T *dim_min_x, T *dim_max_x, T *dim_min_y, T *dim_max_y, T *dim_min_z, T *dim_max_z, T bound_min_x, T bound_max_x, T bound_min_y, T bound_max_y, T bound_min_z, T bound_max_z)
Definition: i_util.h:27
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
T IMax(T a, T b)
Definition: i_basic.h:161
T IMin(T a, T b)
Definition: i_basic.h:155