rosys
rosys copied to clipboard
Unexpected behavior in `project_to_image`
When trying to project points behind a camera to the camera plane, this raises a rather cryptic error:
boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 3
...
/rosys/vision/calibration.py", line 233, in project_to_image
image_array[local_coordinates[:, 2] < 0, :] = np.nan
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@NiklasNeugebauer said he knows how to fix it :)
I have added tests in hope of reproducing the issue but was unable to do so, yet (see #309). Can you add the input you used to call the function that caused the issue?