Skip to content

前回と同じOperationは送らない という仕様のせいで、ロボットがフィールドに再登場した際に動かないことが多い #298

@ShotaAk

Description

@ShotaAk

実装を変えましょう。

def operate(self, robot_id: int, operation: Operation) -> None:
# 前回と違うOperationが来たときのみ、Goalを設定する
hash_goal = operation.get_hash()
if self._prev_operation_hash[robot_id] == hash_goal:
return
self.get_logger().debug(
'New operation for Robot {}'.format(robot_id))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions