chore: add extra function description

This commit is contained in:
Björn Otgaar
2025-10-22 10:32:41 +02:00
parent 3d7ef2b874
commit 154719bf84
3 changed files with 12 additions and 2 deletions

View File

@@ -23,6 +23,9 @@ class RICommandAgent(Agent):
class SendCommandsBehaviour(CyclicBehaviour):
async def run(self):
"""
Run the command publishing loop indefinetely.
"""
assert self.agent is not None
# Get a message internally (with topic command)
topic, body = await self.agent.subsocket.recv_multipart()
@@ -39,6 +42,9 @@ class RICommandAgent(Agent):
logger.error("Error processing message: %s", e)
async def setup(self):
"""
Setup the command agent
"""
logger.info("Setting up %s", self.jid)
# To the robot