Skip to content

Commit

Permalink
Fix row/column major buffer of numpy vs robot_dart
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Sep 8, 2023
1 parent 0e1580b commit 2e45055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ size_t pointcloud_wrapper(const robot_dart::gui::DepthImage& depth_image, const
size_t N = in_results.shape()[0];
size_t M = in_results.shape()[1];

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

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

0 comments on commit 2e45055

Please sign in to comment.