Skip to content

Commit 588754f

Browse files
authored
Merge pull request #522 from pollen-robotics/521-update-mobile_base-with-fake-mode
521 update mobile base with fake mode
2 parents be019cd + 4089cbc commit 588754f

File tree

3 files changed

+244
-199
lines changed

3 files changed

+244
-199
lines changed

src/reachy2_sdk/parts/arm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,6 @@ def send_goal_positions(self, check_positions: bool = False) -> None:
10391039
"""
10401040
super().send_goal_positions(check_positions)
10411041
if self.gripper is not None:
1042-
print(f"gripper: {self.gripper._get_goal_positions_message()}")
10431042
self.gripper.send_goal_positions(check_positions)
10441043

10451044
def _update_with(self, new_state: ArmState) -> None:

src/reachy2_sdk/sensors/lidar.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from google.protobuf.wrappers_pb2 import BoolValue, FloatValue
1414
from reachy2_sdk_api.mobile_base_lidar_pb2 import (
1515
LidarObstacleDetectionEnum,
16-
LidarObstacleDetectionStatus,
1716
LidarSafety,
1817
)
1918
from reachy2_sdk_api.mobile_base_lidar_pb2_grpc import MobileBaseLidarServiceStub
@@ -49,7 +48,7 @@ def get_map(self) -> Optional[npt.NDArray[np.uint8]]:
4948
"""
5049
compressed_map = self._stub.GetLidarMap(self._part._part_id)
5150
if compressed_map.data == b"":
52-
self._logger.error("No lidar map retrieved")
51+
self._logger.error("No lidar map retrieved. (Note that the lidar map is not available in FAKE mode)")
5352
return None
5453
np_data = np.frombuffer(compressed_map.data, np.uint8)
5554
img = cv2.imdecode(np_data, cv2.IMREAD_COLOR)
@@ -135,7 +134,7 @@ def safety_enabled(self, value: bool) -> None:
135134
)
136135

137136
@property
138-
def obstacle_detection_status(self) -> LidarObstacleDetectionStatus:
137+
def obstacle_detection_status(self) -> str:
139138
"""Get the status of the lidar obstacle detection.
140139
141140
Returns:

0 commit comments

Comments
 (0)