@@ -84,7 +84,7 @@ async def connect():
84
84
# Replace "<API-KEY-ID>" (including brackets) with your machine's API key ID
85
85
api_key_id='<API-KEY-ID>'
86
86
)
87
- return await RobotClient.at_address('ADDRESS FROM THE VIAM APP', opts)
87
+ return await RobotClient.at_address('< ADDRESS- FROM- THE- VIAM- APP> ', opts)
88
88
89
89
90
90
async def main():
@@ -145,7 +145,7 @@ def with_api_key(cls, api_key: str, api_key_id: str, **kwargs) -> Self:
145
145
146
146
opts = RobotClient.Options.with_api_key(api_key, api_key_id)
147
147
148
- robot = await RobotClient.at_address('ADDRESS FROM THE VIAM APP', opts)
148
+ robot = await RobotClient.at_address('< ADDRESS- FROM- THE- VIAM- APP> ', opts)
149
149
150
150
Args:
151
151
api_key (str): your API key
@@ -169,6 +169,7 @@ async def at_address(cls, address: str, options: Options) -> Self:
169
169
::
170
170
171
171
async def connect():
172
+
172
173
opts = RobotClient.Options.with_api_key(
173
174
# Replace "<API-KEY>" (including brackets) with your machine's API key
174
175
api_key='<API-KEY>',
@@ -545,7 +546,6 @@ async def close(self):
545
546
546
547
::
547
548
548
- # Cleanly close the underlying connections and stop any periodic tasks.
549
549
await robot.close()
550
550
"""
551
551
LOGGER .debug ("Closing RobotClient" )
@@ -738,6 +738,10 @@ async def stop_all(self, extra: Dict[ResourceName, Dict[str, Any]] = {}):
738
738
# Cancel all current and outstanding operations for the robot and stop all actuators and movement.
739
739
await robot.stop_all()
740
740
741
+ ::
742
+
743
+ await robot.stop_all()
744
+
741
745
Args:
742
746
extra (Dict[viam.proto.common.ResourceName, Dict[str, Any]]): Any extra parameters to pass to the resources' ``stop`` methods,
743
747
keyed on the resource's ``ResourceName``
0 commit comments