Skip to content

Commit 449bbba

Browse files
committed
tools: planner: fix call to act_intermediate_pose()
This was not updated when is_intermediate attribute has been added to the Pose class and "intermediate_pose_reached" message was sent by the firmware. Signed-off-by: Eric Courtois <[email protected]>
1 parent 6e366d8 commit 449bbba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cogip/tools/planner/event_manager.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ async def new_path_event_loop(self):
8888
if not updated:
8989
continue
9090
self.planner.blocked_counter = 0
91-
if self.planner.pose_order:
92-
await self.planner.pose_order.act_intermediate_pose()
9391
except asyncio.CancelledError:
9492
logger.info("Planner: Task New Path Event Watcher Loop cancelled")
9593
raise

cogip/tools/planner/planner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ async def set_intermediate_pose_reached(self):
473473

474474
# The pose reached is intermediate, just force path recompute.
475475
if self.pose_order:
476+
await self.pose_order.act_intermediate_pose()
476477
self.pose_order.path_pose.to_shared(self.shared_avoidance_pose_order)
477478
self.shared_memory.avoidance_has_new_pose_order = True
478479

0 commit comments

Comments
 (0)