Skip to content

Commit

Permalink
Multiprocessing resolution (#117)
Browse files Browse the repository at this point in the history
* Transpose image resolution in MultiprocessRGBReceiver

* Modify CHANGELOG.md
  • Loading branch information
m-decoster authored Jan 26, 2024
1 parent d0a4085 commit ab757dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This project uses a [CalVer](https://calver.org/) versioning scheme with monthly
- Fixed bug requiring unplug-and-plug of USB cable for Realsense: see issue #109.
- Removed camera imports in `airo_camera_toolkit.cameras`: see issue #110.
- Added `__init__.py` to `realsense` and `utils` in `airo_camera_toolkit.cameras`, fixing installs with pip and issue #113.
- Fixed bug that returned a transposed resolution in `MultiprocessRGBReceiver`.

### Removed
- `ColoredPointCloudType`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def get_current_timestamp(self) -> float:
def resolution(self) -> CameraResolutionType:
"""The resolution of the camera, in pixels."""
shape_array = [int(x) for x in self.rgb_shape_shm_array[:2]]
return (shape_array[0], shape_array[1])
return (shape_array[1], shape_array[0])

def _grab_images(self) -> None:
while not self.get_current_timestamp() > self.previous_timestamp:
Expand Down

0 comments on commit ab757dd

Please sign in to comment.