Skip to content

Commit 2e45055

Browse files
committed
Fix row/column major buffer of numpy vs robot_dart
1 parent 0e1580b commit 2e45055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/gui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ size_t pointcloud_wrapper(const robot_dart::gui::DepthImage& depth_image, const
1717
size_t N = in_results.shape()[0];
1818
size_t M = in_results.shape()[1];
1919

20-
if (N != 3 || (depth_image.width * depth_image.height) != M)
20+
if (M != 3 || (depth_image.width * depth_image.height) != N)
2121
throw std::runtime_error("Wrong size of Numpy array!");
2222

2323
std::vector<double> v_p = robot_dart::gui::point_cloud_from_depth_array_vector(depth_image, intrinsic_matrix, tf, far_plane);

0 commit comments

Comments
 (0)