-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98a02e5
commit 7e63450
Showing
12 changed files
with
251 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modular_robot_physical/revolve2/modular_robot_physical/_protocol_version.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
PROTOCOL_VERSION = "1.0.0" | ||
PROTOCOL_VERSION = "1.0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
modular_robot_physical/revolve2/modular_robot_physical/remote/_camera_sensor_state_impl.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import numpy as np | ||
from numpy.typing import NDArray | ||
|
||
from revolve2.modular_robot.sensor_state import CameraSensorState | ||
|
||
|
||
class CameraSensorStateImpl(CameraSensorState): | ||
"""CameraSensorState implementation for physical robots.""" | ||
|
||
_image: NDArray[np.uint8] | ||
|
||
def __init__(self, image: NDArray[np.uint8]) -> None: | ||
""" | ||
Initialize this object. | ||
:param image: The current image. | ||
""" | ||
self._image = image | ||
|
||
@property | ||
def image(self) -> NDArray[np.uint8]: | ||
""" | ||
Get the current image. | ||
:returns: The image. | ||
""" | ||
return self._image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.