We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a85cd4 commit c777793Copy full SHA for c777793
doggo.py
@@ -60,11 +60,15 @@ async def act(self, params):
60
async def call_robot(self, api_id, params=None):
61
args = {'api_id': api_id}
62
if params:
63
- args['parameter'] = params
64
- await self.dog.maybe_reconnect()
65
- await self.dog.robot.datachannel.pub_sub.publish_request_new(
66
- RTC_TOPIC["SPORT_MOD"], args
67
- )
+ args["parameter"] = params
+
+ async def _call():
+ await self.dog.maybe_reconnect()
+ await self.dog.robot.datachannel.pub_sub.publish_request_new(
68
+ RTC_TOPIC["SPORT_MOD"], args
69
+ )
70
71
+ asyncio.create_task(_call())
72
73
def tool(self):
74
return Tool(
0 commit comments