Skip to content

Commit 49f421d

Browse files
authored
DOCS-3516: Add to get_models_from_modules description (#850)
1 parent c7098d2 commit 49f421d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/viam/robot/client.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -782,18 +782,18 @@ async def get_models_from_modules(
782782
self,
783783
) -> List[ModuleModel]:
784784
"""
785-
786-
Get a list of module models.
785+
Get a list of all models provided by local and registry modules on the machine.
786+
This includes models that are not currently configured on the machine.
787787
788788
::
789+
789790
# Get module models
790-
module_modles = await machine.get_models_from_modules(qs)
791+
module_models = await machine.get_models_from_modules(qs)
791792
792793
Args:
793794
794795
Returns:
795796
List[ModuleModel]: A list of discovered models.
796-
797797
"""
798798
request = GetModelsFromModulesRequest()
799799
response: GetModelsFromModulesResponse = await self._client.GetModelsFromModules(request)
@@ -812,10 +812,6 @@ async def stop_all(self, extra: Dict[ResourceName, Dict[str, Any]] = {}):
812812
# Cancel all current and outstanding operations for the machine and stop all actuators and movement.
813813
await machine.stop_all()
814814
815-
::
816-
817-
await machine.stop_all()
818-
819815
Args:
820816
extra (Dict[viam.proto.common.ResourceName, Dict[str, Any]]): Any extra parameters to pass to the resources' ``stop`` methods,
821817
keyed on the resource's ``ResourceName``.

0 commit comments

Comments
 (0)