Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ShotaAk opened this issue Apr 28, 2024 · 0 comments
Labels
bug Something isn't working 優先度:高

Comments

@ShotaAk
Copy link
Contributor

ShotaAk commented Apr 28, 2024

実装を変えましょう。

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))

@ShotaAk ShotaAk added bug Something isn't working 優先度:高 labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 優先度:高
Projects
None yet
Development

No branches or pull requests

1 participant