We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25b50d commit b4ce4bcCopy full SHA for b4ce4bc
sr/robot3/simulator/camera.py
@@ -64,10 +64,7 @@ def read(self, fresh: bool = True) -> NDArray:
64
rgb_frame_raw: NDArray[np.uint8] = np.frombuffer(img_data, np.uint8)
65
66
# Height is first, then width, then channels
67
- return rgb_frame_raw.reshape( # type: ignore[call-overload,unused-ignore]
68
- (self.image_size[1], self.image_size[0], 4),
69
- copy=True,
70
- )
+ return rgb_frame_raw.reshape((self.image_size[1], self.image_size[0], 4)).copy()
71
72
def close(self) -> None:
73
"""Close the underlying socket on exit."""
0 commit comments