diff --git a/README.md b/README.md index 59054baefd..f7510dadc5 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ If you intend to use the [`MLModel` service](https://python.viam.dev/autoapi/via `pip install 'viam-sdk[mlmodel]'` You can also run this command on an existing Python SDK install to add support for the ML model service. -See the [ML (machine learning) model service](https://docs.viam.com/data-ai/ai/deploy/) documentation for more information. +See the [ML (machine learning) model service](https://docs.viam.com/vision/deploy-and-maintain/deploy-from-registry/) documentation for more information. ### Upgrading diff --git a/examples/complex_module/README.md b/examples/complex_module/README.md index f62141170c..20a04e8a1b 100644 --- a/examples/complex_module/README.md +++ b/examples/complex_module/README.md @@ -2,13 +2,13 @@ This example goes through how to create custom modular resources using Viam's python SDK, and how to connect it to a Robot. -This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/operate/get-started/other-hardware/). +This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/build-modules/write-a-driver-module/). ## Purpose Modular resources allow you to define custom components and services, and add them to your robot. Viam ships with many component types, but you're not limited to only using those types -- you can create your own using modules. -For more information, see the [documentation](https://docs.viam.com/operate/get-started/other-hardware/). For a simpler example, take a look at the [simple module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/simple_module), which only contains one custom resource model in one file. +For more information, see the [documentation](https://docs.viam.com/build-modules/write-a-driver-module/). For a simpler example, take a look at the [simple module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/simple_module), which only contains one custom resource model in one file. For a fully fleshed-out example of a Python module that uses Github CI to upload to the Viam Registry, take a look at [python-example-module](https://github.com/viam-labs/python-example-module). For an example that uses Docker to manage dependencies, take a look at [python-container-module](https://github.com/viamrobotics/python-container-module). For a list of example modules in different Viam SDKs, take a look [here](https://github.com/viamrobotics/upload-module/#example-repos). @@ -18,7 +18,7 @@ The definition of the new resources are in the `src` directory. Within this dire The `proto` directory contains the `gizmo.proto` and `summation.proto` definitions of all the message types and calls that can be made to the Gizmo component and Summation service. It also has the compiled python output of the protobuf definition. -The `gizmo` directory contains all the necessary definitions for creating a custom `Gizmo` component type. The `api.py` file defines what a `Gizmo` can do (mirroring the `proto` definition), implements the gRPC `GizmoService` for receiving calls, and the gRPC `GizmoClient` for making calls. See [Design your module](https://docs.viam.com/operate/get-started/other-hardware/#design-your-module) for more info on how to choose an API. The `my_gizmo.py` file in contains the unique implementation of a `Gizmo`. This is defined as a specific `Model`. This implementation uses the `validate_config` function to specify an implicit dependency on a `motor` by default and throw an error if there is an `invalid` attribute. +The `gizmo` directory contains all the necessary definitions for creating a custom `Gizmo` component type. The `api.py` file defines what a `Gizmo` can do (mirroring the `proto` definition), implements the gRPC `GizmoService` for receiving calls, and the gRPC `GizmoClient` for making calls. See [Design your module](https://docs.viam.com/build-modules/write-a-driver-module/) for more info on how to choose an API. The `my_gizmo.py` file in contains the unique implementation of a `Gizmo`. This is defined as a specific `Model`. This implementation uses the `validate_config` function to specify an implicit dependency on a `motor` by default and throw an error if there is an `invalid` attribute. Similarly, the `summation` directory contains the analogous definitions for the `Summation` service type. The files in this directory mirror the files in the `gizmo` directory. @@ -34,11 +34,11 @@ Outside the `src` directory, there is a `client.py` file. You can use this file These steps assume that you have a robot available at [app.viam.com](app.viam.com). -The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/complex_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/) for more details. +The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/complex_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details. -Once the module has been added to your robot, add a `Gizmo` component that uses the `MyGizmo` model. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/#add-your-new-modular-resource-to-your-machines) for more details. You can also add an `Arm` component that uses the `MyArm` model and a `Summation` service that uses the `MySum` model in a similar manner. +Once the module has been added to your robot, add a `Gizmo` component that uses the `MyGizmo` model. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details. You can also add an `Arm` component that uses the `MyArm` model and a `Summation` service that uses the `MySum` model in a similar manner. -Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/operate/reference/naming-modules/#create-a-namespace-for-your-organization). +Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/build-modules/module-reference/#organization-namespace). An example configuration for an Arm component, a Gizmo component, and a Summation service could look like this: diff --git a/examples/simple_module/README.md b/examples/simple_module/README.md index 48d99daa7d..f4beaaaa02 100644 --- a/examples/simple_module/README.md +++ b/examples/simple_module/README.md @@ -1,16 +1,16 @@ # Viam Simple Module Example This example goes through how to create custom modular resources using Viam's Python SDK, and how to connect it to a machine. -This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/operate/get-started/other-hardware/). +This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/build-modules/write-a-driver-module/). > [!NOTE] > You can auto-generate the stub files for your module using the Viam CLI. -> [Install the CLI and authenticate](https://docs.viam.com/dev/tools/cli/#install), then run `viam module generate` and follow the prompts. +> [Install the CLI and authenticate](https://docs.viam.com/cli/overview/#install), then run `viam module generate` and follow the prompts. ## Purpose Modular resources allow you to define custom components and services, and add them to your robot. Viam ships with many component models, but you're not limited to only using those models -- you can add support for other models of hardware and software using modules. -For more information, see the [documentation](hhttps://docs.viam.com/operate/get-started/other-hardware/). For a more complex example, take a look at the [complex module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/complex_module), which contains multiple new APIs and custom resource models. +For more information, see the [documentation](hhttps://docs.viam.com/build-modules/write-a-driver-module/). For a more complex example, take a look at the [complex module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/complex_module), which contains multiple new APIs and custom resource models. For a fully fleshed-out example of a Python module that uses Github CI to upload to the Viam Registry, take a look at [python-example-module](https://github.com/viam-labs/python-example-module). For an example that uses Docker to manage dependencies, take a look at [python-container-module](https://github.com/viamrobotics/python-container-module). For a list of example modules in different Viam SDKs, take a look [here](https://github.com/viamrobotics/upload-module/#example-repos). @@ -28,11 +28,11 @@ Outside the `src` directory, there is a `client.py` file. You can use this file ## Configuring and using the module These steps assume that you have a robot available at [app.viam.com](app.viam.com). -The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/simple_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/#upload-your-module) for more details. +The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/simple_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details. -Once the module has been added to your robot, add a new component that uses the `MySensor` model. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/#add-your-new-modular-resource-to-your-machines) for more details. +Once the module has been added to your robot, add a new component that uses the `MySensor` model. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details. -Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/operate/reference/naming-modules/#create-a-namespace-for-your-organization). +Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/build-modules/module-reference/#organization-namespace). An example configuration for a Sensor component could look like this: ```json diff --git a/src/viam/app/app_client.py b/src/viam/app/app_client.py index ce6ba588dd..abd59c26b2 100644 --- a/src/viam/app/app_client.py +++ b/src/viam/app/app_client.py @@ -597,7 +597,7 @@ async def main(): if __name__ == '__main__': asyncio.run(main()) - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ def __init__(self, channel: Channel, metadata: Mapping[str, str]): @@ -659,7 +659,7 @@ async def get_user_id_by_email(self, email: str) -> str: Returns: str: The ID of the user. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetUserIDByEmailRequest(email=email) response: GetUserIDByEmailResponse = await self._app_client.GetUserIDByEmail(request, metadata=self._metadata) @@ -678,7 +678,7 @@ async def create_organization(self, name: str) -> Organization: Returns: Organization: The created organization. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateOrganizationRequest(name=name) response: CreateOrganizationResponse = await self._app_client.CreateOrganization(request, metadata=self._metadata) @@ -694,7 +694,7 @@ async def list_organizations(self) -> list[Organization]: Returns: list[viam.proto.app.Organization]: The list of organizations. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListOrganizationsRequest() response: ListOrganizationsResponse = await self._app_client.ListOrganizations(request, metadata=self._metadata) @@ -713,7 +713,7 @@ async def get_organizations_with_access_to_location(self, location_id: str) -> l Returns: list[viam.proto.app.OrganizationIdentity]: The list of organizations. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetOrganizationsWithAccessToLocationRequest(location_id=location_id) response: GetOrganizationsWithAccessToLocationResponse = await self._app_client.GetOrganizationsWithAccessToLocation( @@ -734,7 +734,7 @@ async def list_organizations_by_user(self, user_id: str) -> list[OrgDetails]: Returns: list[OrgDetails]: The list of organizations. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListOrganizationsByUserRequest(user_id=user_id) response: ListOrganizationsByUserResponse = await self._app_client.ListOrganizationsByUser(request, metadata=self._metadata) @@ -757,7 +757,7 @@ async def get_organization(self, org_id: str) -> Organization: Returns: viam.proto.app.Organization: The requested organization. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetOrganizationRequest(organization_id=org_id) response: GetOrganizationResponse = await self._app_client.GetOrganization(request, metadata=self._metadata) @@ -781,7 +781,7 @@ async def get_organization_namespace_availability(self, public_namespace: str) - Returns: bool: True if the provided namespace is available. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetOrganizationNamespaceAvailabilityRequest(public_namespace=public_namespace) response: GetOrganizationNamespaceAvailabilityResponse = await self._app_client.GetOrganizationNamespaceAvailability( @@ -821,7 +821,7 @@ async def update_organization( Returns: viam.proto.app.Organization: The updated organization. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateOrganizationRequest( organization_id=org_id, @@ -845,7 +845,7 @@ async def delete_organization(self, org_id: str) -> None: org_id (str): The ID of the organization. You can obtain your organization ID from the organization settings page. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteOrganizationRequest(organization_id=org_id) await self._app_client.DeleteOrganization(request, metadata=self._metadata) @@ -865,7 +865,7 @@ async def list_organization_members(self, org_id: str) -> tuple[list[Organizatio tuple[list[viam.proto.app.OrganizationMember], list[viam.proto.app.OrganizationInvite]]: A tuple containing two lists; the first [0] of organization members, and the second [1] of organization invites. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListOrganizationMembersRequest(organization_id=org_id) response: ListOrganizationMembersResponse = await self._app_client.ListOrganizationMembers(request, metadata=self._metadata) @@ -902,7 +902,7 @@ async def create_organization_invite( Returns: OrganizationInvite: The organization invite. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateOrganizationInviteRequest( organization_id=org_id, email=email, authorizations=authorizations, send_email_invite=send_email_invite @@ -956,7 +956,7 @@ async def update_organization_invite_authorizations( Returns: viam.proto.app.OrganizationInvite: The updated invite. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateOrganizationInviteAuthorizationsRequest( organization_id=org_id, email=email, add_authorizations=add_authorizations, remove_authorizations=remove_authorizations @@ -981,7 +981,7 @@ async def delete_organization_member(self, org_id: str, user_id: str) -> None: You can obtain your organization ID from the organization settings page. user_id (str): The ID of the user to remove. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteOrganizationMemberRequest(organization_id=org_id, user_id=user_id) await self._app_client.DeleteOrganizationMember(request, metadata=self._metadata) @@ -1001,7 +1001,7 @@ async def delete_organization_invite(self, org_id: str, email: str) -> None: Raises: GRPCError: If no pending invite is associated with the provided email address. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteOrganizationInviteRequest(organization_id=org_id, email=email) await self._app_client.DeleteOrganizationInvite(request, metadata=self._metadata) @@ -1024,7 +1024,7 @@ async def resend_organization_invite(self, org_id: str, email: str) -> Organizat Returns: viam.proto.app.OrganizationInvite: The organization invite sent. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ResendOrganizationInviteRequest(organization_id=org_id, email=email) response: ResendOrganizationInviteResponse = await self._app_client.ResendOrganizationInvite(request, metadata=self._metadata) @@ -1065,7 +1065,7 @@ async def create_oauth_app_user( Returns: CreateOAuthAppUserResponse: The response containing auth_token, registration_id, user_id, and refresh_token. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateOAuthAppUserRequest( org_id=org_id, @@ -1097,7 +1097,7 @@ async def create_location(self, org_id: str, name: str, parent_location_id: str Returns: viam.proto.app.Location: The newly created location. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateLocationRequest(organization_id=org_id, name=name, parent_location_id=parent_location_id) response: CreateLocationResponse = await self._app_client.CreateLocation(request, metadata=self._metadata) @@ -1120,7 +1120,7 @@ async def get_location(self, location_id: str | None = None) -> Location: Returns: viam.proto.app.Location: The location. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetLocationRequest(location_id=location_id if location_id else "") response: GetLocationResponse = await self._app_client.GetLocation(request, metadata=self._metadata) @@ -1165,7 +1165,7 @@ async def update_location(self, location_id: str, name: str | None = None, paren Returns: viam.proto.app.Location: The newly updated location. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateLocationRequest(location_id=location_id, name=name, parent_location_id=parent_location_id) response: UpdateLocationResponse = await self._app_client.UpdateLocation(request, metadata=self._metadata) @@ -1184,7 +1184,7 @@ async def delete_location(self, location_id: str) -> None: Raises: GRPCError: If an invalid location ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteLocationRequest(location_id=location_id) await self._app_client.DeleteLocation(request, metadata=self._metadata) @@ -1203,7 +1203,7 @@ async def list_locations(self, org_id: str) -> list[Location]: Returns: list[viam.proto.app.Location]: The list of locations. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListLocationsRequest(organization_id=org_id) response: ListLocationsResponse = await self._app_client.ListLocations(request, metadata=self._metadata) @@ -1220,7 +1220,7 @@ async def share_location(self, organization_id: str, location_id: str) -> None: organization_id (str): The ID of the organization. location_id (str): The ID of the location. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ShareLocationRequest(location_id=location_id, organization_id=organization_id) await self._app_client.ShareLocation(request, metadata=self._metadata) @@ -1236,7 +1236,7 @@ async def unshare_location(self, organization_id: str, location_id: str) -> None organization_id (str): The ID of the organization. location_id (str): The ID of the location. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UnshareLocationRequest(location_id=location_id, organization_id=organization_id) await self._app_client.UnshareLocation(request, metadata=self._metadata) @@ -1259,7 +1259,7 @@ async def location_auth(self, location_id: str | None = None) -> LocationAuth: Returns: viam.proto.app.LocationAuth: The `LocationAuth` containing location secrets. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = LocationAuthRequest(location_id=location_id if location_id else "") response: LocationAuthResponse = await self._app_client.LocationAuth(request, metadata=self._metadata) @@ -1283,7 +1283,7 @@ async def create_location_secret(self, location_id: str | None = None) -> Locati Returns: viam.proto.app.LocationAuth: The specified location's `LocationAuth` containing the newly created secret. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateLocationSecretRequest(location_id=location_id if location_id else "") response: CreateLocationSecretResponse = await self._app_client.CreateLocationSecret(request, metadata=self._metadata) @@ -1307,7 +1307,7 @@ async def delete_location_secret(self, secret_id: str, location_id: str | None = GRPCError: If either an invalid location ID or secret ID is passed or a location ID isn't passed and there was no location ID provided at `AppClient` instantiation. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteLocationSecretRequest(location_id=location_id if location_id else "", secret_id=secret_id) await self._app_client.DeleteLocationSecret(request, metadata=self._metadata) @@ -1328,7 +1328,7 @@ async def get_robot(self, robot_id: str) -> Robot: Returns: viam.proto.app.Robot: The machine. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRobotRequest(id=robot_id) response: GetRobotResponse = await self._app_client.GetRobot(request, metadata=self._metadata) @@ -1348,7 +1348,7 @@ async def get_rover_rental_robots(self, org_id: str) -> list[RoverRentalRobot]: Returns: list[viam.proto.app.RoverRentalRobot]: The list of rover rental robots. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRoverRentalRobotsRequest(org_id=org_id) response: GetRoverRentalRobotsResponse = await self._app_client.GetRoverRentalRobots(request, metadata=self._metadata) @@ -1372,7 +1372,7 @@ async def get_robot_parts(self, robot_id: str) -> list[RobotPart]: Returns: list[viam.app.app_client.RobotPart]: The list of machine parts. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRobotPartsRequest(robot_id=robot_id) response: GetRobotPartsResponse = await self._app_client.GetRobotParts(request, metadata=self._metadata) @@ -1406,7 +1406,7 @@ async def get_robot_part(self, robot_part_id: str, dest: str | None = None, inde Returns: viam.app.app_client.RobotPart: The machine part. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRobotPartRequest(id=robot_part_id) response: GetRobotPartResponse = await self._app_client.GetRobotPart(request, metadata=self._metadata) @@ -1462,7 +1462,7 @@ async def get_robot_part_logs( Returns: list[viam.app.app_client.LogEntry]: The list of log entries. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ if num_log_entries < 0: raise ValueError("'num_log_entries must be at least 0.") @@ -1595,7 +1595,7 @@ async def get_robot_part_history( Returns: list[viam.app.app_client.RobotPartHistoryEntry]: The list of the machine part's history. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRobotPartHistoryRequest( id=robot_part_id, @@ -1638,7 +1638,7 @@ async def update_robot_part( Returns: viam.app.app_client.RobotPart: The newly updated robot part. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateRobotPartRequest( id=robot_part_id, @@ -1669,7 +1669,7 @@ async def new_robot_part(self, robot_id: str, part_name: str) -> str: Returns: str: The new machine part's ID. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = NewRobotPartRequest(robot_id=robot_id, part_name=part_name) response: NewRobotPartResponse = await self._app_client.NewRobotPart(request, metadata=self._metadata) @@ -1711,7 +1711,7 @@ async def delete_robot_part(self, robot_part_id: str) -> None: Raises: GRPCError: If an invalid machine part ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteRobotPartRequest(part_id=robot_part_id) await self._app_client.DeleteRobotPart(request, metadata=self._metadata) @@ -1729,7 +1729,7 @@ async def get_robot_api_keys(self, robot_id: str) -> list[APIKeyWithAuthorizatio Returns: list[APIKeyWithAuthorizations]: The list of API keys. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRobotAPIKeysRequest(robot_id=robot_id) response: GetRobotAPIKeysResponse = await self._app_client.GetRobotAPIKeys(request, metadata=self._metadata) @@ -1749,7 +1749,7 @@ async def mark_part_as_main(self, robot_part_id: str) -> None: Raises: GRPCError: If an invalid machine part ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = MarkPartAsMainRequest(part_id=robot_part_id) await self._app_client.MarkPartAsMain(request, metadata=self._metadata) @@ -1768,7 +1768,7 @@ async def mark_part_for_restart(self, robot_part_id: str) -> None: Raises: GRPCError: If an invalid machine part ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = MarkPartForRestartRequest(part_id=robot_part_id) await self._app_client.MarkPartForRestart(request, metadata=self._metadata) @@ -1790,7 +1790,7 @@ async def create_robot_part_secret(self, robot_part_id: str) -> RobotPart: Returns: viam.app.app_client.RobotPart: The machine part the new secret was generated for. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateRobotPartSecretRequest(part_id=robot_part_id) response: CreateRobotPartSecretResponse = await self._app_client.CreateRobotPartSecret(request, metadata=self._metadata) @@ -1812,7 +1812,7 @@ async def delete_robot_part_secret(self, robot_part_id: str, secret_id: str) -> Raises: GRPCError: If an invalid machine part ID or secret ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteRobotPartSecretRequest(part_id=robot_part_id, secret_id=secret_id) await self._app_client.DeleteRobotPartSecret(request, metadata=self._metadata) @@ -1835,7 +1835,7 @@ async def list_robots(self, location_id: str | None = None) -> list[Robot]: Returns: list[viam.proto.app.Robot]: The list of robots. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListRobotsRequest(location_id=location_id if location_id else "") response: ListRobotsResponse = await self._app_client.ListRobots(request, metadata=self._metadata) @@ -1880,7 +1880,7 @@ async def new_robot(self, name: str, location_id: str | None = None) -> str: Returns: str: The new robot's ID. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = NewRobotRequest(location=location_id if location_id else "", name=name) response: NewRobotResponse = await self._app_client.NewRobot(request, metadata=self._metadata) @@ -1910,7 +1910,7 @@ async def update_robot(self, robot_id: str, name: str, location_id: str | None = Returns: viam.proto.app.Robot: The newly updated machine. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateRobotRequest(id=robot_id, name=name, location=location_id if location_id else "") response: UpdateRobotResponse = await self._app_client.UpdateRobot(request, metadata=self._metadata) @@ -1929,7 +1929,7 @@ async def delete_robot(self, robot_id: str) -> None: Raises: GRPCError: If an invalid machine ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteRobotRequest(id=robot_id) await self._app_client.DeleteRobot(request, metadata=self._metadata) @@ -1992,7 +1992,7 @@ async def list_fragments( Returns: list[viam.app.app_client.Fragment]: The list of fragments. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListFragmentsRequest( organization_id=org_id, @@ -2022,7 +2022,7 @@ async def get_fragment(self, fragment_id: str, version: str | None = None) -> Fr Returns: viam.app.app_client.Fragment: The fragment. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetFragmentRequest(id=fragment_id, version=version) response: GetFragmentResponse = await self._app_client.GetFragment(request, metadata=self._metadata) @@ -2048,7 +2048,7 @@ async def create_fragment(self, org_id: str, name: str, config: Mapping[str, Val Returns: viam.app.app_client.Fragment: The newly created fragment. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateFragmentRequest(name=name, config=dict_to_struct(config) if config else None, organization_id=org_id) response: CreateFragmentResponse = await self._app_client.CreateFragment(request, metadata=self._metadata) @@ -2093,7 +2093,7 @@ async def update_fragment( Returns: viam.app.app_client.Fragment: The newly updated fragment. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateFragmentRequest( id=fragment_id, @@ -2120,7 +2120,7 @@ async def delete_fragment(self, fragment_id: str) -> None: Raises: GRPCError: If an invalid fragment ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteFragmentRequest(id=fragment_id) await self._app_client.DeleteFragment(request, metadata=self._metadata) @@ -2148,7 +2148,7 @@ async def get_fragment_history(self, id: str, page_token: str | None = "", page_ Returns: viam.app.app_client.FragmentHistoryResponse: A list of documents with the fragment history. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetFragmentHistoryRequest(id=id, page_token=page_token, page_limit=page_limit) @@ -2187,7 +2187,7 @@ async def add_role( Raises: GRPCError: If either an invalid identity ID, role ID, resource type, or resource ID is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ authorization = await self._create_authorization( organization_id=org_id, @@ -2232,7 +2232,7 @@ async def remove_role( Raises: GRPCError: If either an invalid identity ID, role ID, resource type, or resource ID or is passed. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ authorization = await self._create_authorization( organization_id=org_id, @@ -2287,7 +2287,7 @@ async def change_role( Must match `new_resource_id`. new_resource_id (str): New ID of the resource the role applies to (that is, either an organization, location, or robot ID). - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ old_authorization = await self._create_authorization( organization_id=organization_id, @@ -2329,7 +2329,7 @@ async def list_authorizations(self, org_id: str, resource_ids: list[str] | None Returns: list[viam.proto.app.Authorization]: The list of authorizations. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListAuthorizationsRequest(organization_id=org_id, resource_ids=resource_ids) response: ListAuthorizationsResponse = await self._app_client.ListAuthorizations(request, metadata=self._metadata) @@ -2361,7 +2361,7 @@ async def check_permissions(self, permissions: list[AuthorizedPermissions]) -> l Returns: list[viam.proto.app.AuthorizedPermissions]: The permissions argument, with invalid permissions filtered out. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CheckPermissionsRequest(permissions=permissions) response: CheckPermissionsResponse = await self._app_client.CheckPermissions(request, metadata=self._metadata) @@ -2383,7 +2383,7 @@ async def get_registry_item(self, item_id: str, include_markdown_documentation: Returns: RegistryItem: The registry item. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetRegistryItemRequest(item_id=item_id, include_markdown_documentation=include_markdown_documentation) response: GetRegistryItemResponse = await self._app_client.GetRegistryItem(request, metadata=self._metadata) @@ -2403,7 +2403,7 @@ async def create_registry_item(self, organization_id: str, name: str, type: Pack name (str): The name of the registry item, which must be unique within your org. type (PackageType.ValueType): The type of the item in the registry. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateRegistryItemRequest(organization_id=organization_id, name=name, type=type) await self._app_client.CreateRegistryItem(request, metadata=self._metadata) @@ -2432,7 +2432,7 @@ async def update_registry_item( description (str): The description of the registry item. visibility (Visibility.ValueType): The visibility of the registry item. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateRegistryItemRequest(item_id=item_id, type=type, description=description, visibility=visibility) @@ -2485,7 +2485,7 @@ async def list_registry_items( Returns: list[RegistryItem]: The list of registry items. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListRegistryItemsRequest( organization_id=organization_id, @@ -2510,7 +2510,7 @@ async def delete_registry_item(self, item_id: str) -> None: item_id (str): The ID of the deleted registry item, containing either the namespace and module name (for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`). - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteRegistryItemRequest(item_id=item_id) await self._app_client.DeleteRegistryItem(request, metadata=self._metadata) @@ -2527,7 +2527,7 @@ async def deprecate_registry_item(self, item_id: str, message: str) -> None: (for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`). message (str): Message explaining the reason for deprecation. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeprecateRegistryItemRequest(item_id=item_id, message=message) await self._app_client.DeprecateRegistryItem(request, metadata=self._metadata) @@ -2543,7 +2543,7 @@ async def undeprecate_registry_item(self, item_id: str) -> None: item_id (str): The ID of the registry item to undeprecate, containing either the namespace and module name (for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`). - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UndeprecateRegistryItemRequest(item_id=item_id) await self._app_client.UndeprecateRegistryItem(request, metadata=self._metadata) @@ -2561,7 +2561,7 @@ async def deprecate_registry_item_version(self, item_id: str, version: str, mess version (str): The semver string of the version to deprecate. message (str): Message explaining the reason for deprecation. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeprecateRegistryItemVersionRequest(item_id=item_id, version=version, message=message) await self._app_client.DeprecateRegistryItemVersion(request, metadata=self._metadata) @@ -2578,7 +2578,7 @@ async def undeprecate_registry_item_version(self, item_id: str, version: str) -> (for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`). version (str): The semver string of the version to undeprecate. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UndeprecateRegistryItemVersionRequest(item_id=item_id, version=version) await self._app_client.UndeprecateRegistryItemVersion(request, metadata=self._metadata) @@ -2602,7 +2602,7 @@ async def create_module(self, org_id: str, name: str) -> tuple[str, str]: Returns: tuple[str, str]: A tuple containing the ID [0] of the new module and its URL [1]. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateModuleRequest(organization_id=org_id, name=name) response: CreateModuleResponse = await self._app_client.CreateModule(request, metadata=self._metadata) @@ -2651,7 +2651,7 @@ async def update_module( Returns: str: The URL of the newly updated module. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = UpdateModuleRequest( module_id=module_id, @@ -2689,7 +2689,7 @@ async def upload_module_file(self, module_file_info: ModuleFileInfo, file: bytes Returns: str: URL of uploaded file. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request_module_file_info = UploadModuleFileRequest(module_file_info=module_file_info) request_file = UploadModuleFileRequest(file=file) @@ -2719,7 +2719,7 @@ async def get_module(self, module_id: str) -> Module: Returns: viam.proto.app.Module: The module. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = GetModuleRequest(module_id=module_id) response: GetModuleResponse = await self._app_client.GetModule(request, metadata=self._metadata) @@ -2739,7 +2739,7 @@ async def list_modules(self, org_id: str) -> list[Module]: Returns: list[viam.proto.app.Module]: The list of modules. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListModulesRequest(organization_id=org_id) response: ListModulesResponse = await self._app_client.ListModules(request, metadata=self._metadata) @@ -2779,7 +2779,7 @@ async def create_key(self, org_id: str, authorizations: list[APIKeyAuthorization Returns: tuple[str, str]: The api key and api key ID. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ name = name if name is not None else str(datetime.now()) authorizations_pb = [await self._create_authorization_for_new_api_key(org_id, auth) for auth in authorizations] @@ -2797,7 +2797,7 @@ async def delete_key(self, id: str) -> None: Args: id (str): The ID of the API key. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = DeleteKeyRequest(id=id) await self._app_client.DeleteKey(request, metadata=self._metadata) @@ -2816,7 +2816,7 @@ async def create_key_from_existing_key_authorizations(self, id: str) -> tuple[st Returns: tuple[str, str]: The API key and API key id - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = CreateKeyFromExistingKeyAuthorizationsRequest(id=id) response: CreateKeyFromExistingKeyAuthorizationsResponse = await self._app_client.CreateKeyFromExistingKeyAuthorizations( @@ -2839,7 +2839,7 @@ async def list_keys(self, org_id: str) -> list[APIKeyWithAuthorizations]: Returns: list[viam.proto.app.APIKeyWithAuthorizations]: The existing API keys and authorizations. - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = ListKeysRequest(org_id=org_id) response: ListKeysResponse = await self._app_client.ListKeys(request, metadata=self._metadata) @@ -2858,7 +2858,7 @@ async def rotate_key(self, id: str) -> tuple[str, str]: Returns: tuple[str, str]: The API key and API key id - For more information, see `Fleet Management API `_. + For more information, see `Fleet Management API `_. """ request = RotateKeyRequest(id=id) response: RotateKeyResponse = await self._app_client.RotateKey(request, metadata=self._metadata) diff --git a/src/viam/app/billing_client.py b/src/viam/app/billing_client.py index 4328dfbf0f..3234f72495 100644 --- a/src/viam/app/billing_client.py +++ b/src/viam/app/billing_client.py @@ -51,7 +51,7 @@ async def main(): if __name__ == '__main__': asyncio.run(main()) - For more information, see `Billing Client API `_. + For more information, see `Billing Client API `_. """ def __init__(self, channel: Channel, metadata: Mapping[str, str]): @@ -82,7 +82,7 @@ async def get_current_month_usage(self, org_id: str, timeout: Optional[float] = Returns: viam.proto.app.billing.GetCurrentMonthUsageResponse: the current month usage information - For more information, see `Billing Client API `_. + For more information, see `Billing Client API `_. """ request = GetCurrentMonthUsageRequest(org_id=org_id) return await self._billing_client.GetCurrentMonthUsage(request, metadata=self._metadata, timeout=timeout) @@ -99,7 +99,7 @@ async def get_invoice_pdf(self, invoice_id: str, org_id: str, dest: str, timeout org_id (str): the ID of the organization to request data from dest (str): the filepath to save the invoice to - For more information, see `Billing Client API `_. + For more information, see `Billing Client API `_. """ stream: Stream[GetInvoicePdfRequest, GetInvoicePdfResponse] async with self._billing_client.GetInvoicePdf.open(timeout=timeout, metadata=self._metadata) as stream: @@ -121,7 +121,7 @@ async def get_invoices_summary(self, org_id: str, timeout: Optional[float] = Non Returns: viam.proto.app.billing.GetInvoicesSummaryResponse: the summaries of all organization invoices - For more information, see `Billing Client API `_. + For more information, see `Billing Client API `_. """ request = GetInvoicesSummaryRequest(org_id=org_id) return await self._billing_client.GetInvoicesSummary(request, metadata=self._metadata, timeout=timeout) @@ -139,7 +139,7 @@ async def get_org_billing_information(self, org_id: str, timeout: Optional[float Returns: viam.proto.app.billing.GetOrgBillingInformationResponse: the organization billing information - For more information, see `Billing Client API `_. + For more information, see `Billing Client API `_. """ request = GetOrgBillingInformationRequest(org_id=org_id) return await self._billing_client.GetOrgBillingInformation(request, metadata=self._metadata, timeout=timeout) diff --git a/src/viam/app/data_client.py b/src/viam/app/data_client.py index 041405daea..d2c7d202ec 100644 --- a/src/viam/app/data_client.py +++ b/src/viam/app/data_client.py @@ -177,7 +177,7 @@ async def main(): asyncio.run(main()) - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ @dataclass @@ -471,7 +471,7 @@ async def tabular_data_by_filter( - ``count`` (*int*): The count (number of entries). - ``last`` (*str*): The last-returned page ID. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ filter = filter if filter else Filter() @@ -522,7 +522,7 @@ async def tabular_data_by_sql(self, organization_id: str, sql_query: str) -> Lis Returns: List[Dict[str, Union[ValueTypes, datetime]]]: An array of decoded BSON data objects. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = TabularDataBySQLRequest(organization_id=organization_id, sql_query=sql_query) response: TabularDataBySQLResponse = await self._data_client.TabularDataBySQL(request, metadata=self._metadata) @@ -568,7 +568,7 @@ async def tabular_data_by_mql( Returns: List[Dict[str, Union[ValueTypes, datetime]]]: An array of decoded BSON data objects. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ binary: List[bytes] = [bson.encode(query) for query in query] if isinstance(query[0], dict) else query # type: ignore data_source = TabularDataSource(type=tabular_data_source_type, pipeline_id=pipeline_id) @@ -629,7 +629,7 @@ async def get_latest_tabular_data( - ``time_synced`` (*datetime*): The time synced. - ``payload`` (*Dict[str, ValueTypes]*): The latest tabular data captured from the specified data source. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = GetLatestTabularDataRequest( @@ -683,7 +683,7 @@ async def export_tabular_data( Returns: List[TabularDataPoint]: The unified tabular data and metadata. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ interval = CaptureInterval(start=datetime_to_timestamp(start_time), end=datetime_to_timestamp(end_time)) @@ -788,7 +788,7 @@ async def binary_data_by_filter( - ``count`` (*int*): The count (number of entries). - ``last`` (*str*): The last-returned page ID. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ data_request = DataRequest(filter=filter) @@ -852,7 +852,7 @@ async def binary_data_by_ids( Returns: List[~viam.proto.app.data.BinaryData]: The binary data. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = BinaryDataByIDsRequest() if len(binary_ids) > 0 and isinstance(binary_ids[0], str): @@ -906,7 +906,7 @@ async def delete_tabular_data( Returns: int: The number of items deleted. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = DeleteTabularDataRequest(organization_id=organization_id, delete_older_than_days=delete_older_than_days, filter=filter) response: DeleteTabularDataResponse = await self._data_client.DeleteTabularData(request, metadata=self._metadata) @@ -936,7 +936,7 @@ async def delete_binary_data_by_filter(self, filter: Optional[Filter]) -> int: Returns: int: The number of items deleted. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ filter = filter if filter else Filter() request = DeleteBinaryDataByFilterRequest(filter=filter) @@ -979,7 +979,7 @@ async def delete_binary_data_by_ids(self, binary_ids: Union[List[BinaryID], List Returns: int: The number of items deleted. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = DeleteBinaryDataByIDsRequest() if len(binary_ids) > 0 and isinstance(binary_ids[0], str): @@ -1026,7 +1026,7 @@ async def add_tags_to_binary_data_by_ids(self, tags: List[str], binary_ids: Unio Raises: GRPCError: If no binary data ID strings or :class:`BinaryID` objects are provided. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = AddTagsToBinaryDataByIDsRequest() if len(binary_ids) > 0 and isinstance(binary_ids[0], str): @@ -1055,7 +1055,7 @@ async def add_tags_to_binary_data_by_filter(self, tags: List[str], filter: Optio Raises: GRPCError: If no tags are provided. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ filter = filter if filter else Filter() request = AddTagsToBinaryDataByFilterRequest(filter=filter, tags=tags) @@ -1101,7 +1101,7 @@ async def remove_tags_from_binary_data_by_ids(self, tags: List[str], binary_ids: Returns: int: The number of tags removed. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = RemoveTagsFromBinaryDataByIDsRequest(tags=tags) if len(binary_ids) > 0 and isinstance(binary_ids[0], str): @@ -1136,7 +1136,7 @@ async def remove_tags_from_binary_data_by_filter(self, tags: List[str], filter: Returns: int: The number of tags removed. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ filter = filter if filter else Filter() request = RemoveTagsFromBinaryDataByFilterRequest(filter=filter, tags=tags) @@ -1161,7 +1161,7 @@ async def tags_by_filter(self, filter: Optional[Filter] = None) -> List[str]: Returns: List[str]: The list of tags. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ filter = filter if filter else Filter() request = TagsByFilterRequest(filter=filter) @@ -1211,7 +1211,7 @@ async def add_bounding_box_to_image_by_id( Returns: str: The bounding box ID. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = AddBoundingBoxToImageByIDRequest() if isinstance(binary_id, str): @@ -1280,7 +1280,7 @@ async def update_bounding_box( Returns: N/A - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = UpdateBoundingBoxRequest( binary_data_id=binary_id, @@ -1311,7 +1311,7 @@ async def remove_bounding_box_from_image_by_id(self, bbox_id: str, binary_id: Un *DEPRECATED:* :class:`BinaryID` *is deprecated and will be removed in a future release. Instead, pass binary data IDs as a list of strings.* - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = RemoveBoundingBoxFromImageByIDRequest() if isinstance(binary_id, str): @@ -1341,7 +1341,7 @@ async def bounding_box_labels_by_filter(self, filter: Optional[Filter] = None) - Returns: List[str]: The list of bounding box labels. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ filter = filter if filter else Filter() request = BoundingBoxLabelsByFilterRequest(filter=filter) @@ -1362,7 +1362,7 @@ async def get_database_connection(self, organization_id: str) -> str: Returns: str: The hostname of the federated database. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = GetDatabaseConnectionRequest(organization_id=organization_id) response: GetDatabaseConnectionResponse = await self._data_client.GetDatabaseConnection(request, metadata=self._metadata) @@ -1384,7 +1384,7 @@ async def configure_database_user(self, organization_id: str, password: str) -> To find your organization ID, visit the organization settings page. password (str): The password of the user. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = ConfigureDatabaseUserRequest(organization_id=organization_id, password=password) await self._data_client.ConfigureDatabaseUser(request, metadata=self._metadata) @@ -1410,7 +1410,7 @@ async def create_dataset(self, name: str, organization_id: str, type: Optional[D Returns: str: The dataset ID of the created dataset. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = CreateDatasetRequest(name=name, organization_id=organization_id, type=type) response: CreateDatasetResponse = await self._dataset_client.CreateDataset(request, metadata=self._metadata) @@ -1436,7 +1436,7 @@ async def merge_datasets(self, name: str, organization_id: str, dataset_ids: Lis Returns: str: The dataset ID of the created dataset. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = MergeDatasetsRequest(name=name, organization_id=organization_id, dataset_ids=dataset_ids) response: MergeDatasetsResponse = await self._dataset_client.MergeDatasets(request, metadata=self._metadata) @@ -1463,7 +1463,7 @@ async def list_dataset_by_ids(self, ids: List[str]) -> TSequence[Dataset]: Returns: TSequence[Dataset]: The list of datasets. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = ListDatasetsByIDsRequest(ids=ids) response: ListDatasetsByIDsResponse = await self._dataset_client.ListDatasetsByIDs(request, metadata=self._metadata) @@ -1491,7 +1491,7 @@ async def list_datasets_by_organization_id( Returns: TSequence[Dataset]: The list of datasets in the organization. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = ListDatasetsByOrganizationIDRequest(organization_id=organization_id, type=dataset_type) response: ListDatasetsByOrganizationIDResponse = await self._dataset_client.ListDatasetsByOrganizationID( @@ -1519,7 +1519,7 @@ async def rename_dataset(self, id: str, name: str) -> None: - Select **Copy dataset ID**. name (str): The new name of the dataset. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = RenameDatasetRequest(id=id, name=name) await self._dataset_client.RenameDataset(request, metadata=self._metadata) @@ -1541,7 +1541,7 @@ async def delete_dataset(self, id: str) -> None: - Click the **...** menu. - Select **Copy dataset ID**. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = DeleteDatasetRequest(id=id) await self._dataset_client.DeleteDataset(request, metadata=self._metadata) @@ -1560,7 +1560,7 @@ async def start_sequence_dataset_export( Returns: str: The job ID of the export job. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = StartSequenceDatasetExportRequest(dataset_id=dataset_id) response: StartSequenceDatasetExportResponse = await self._dataset_client.StartSequenceDatasetExport( @@ -1589,7 +1589,7 @@ async def get_sequence_dataset_export( - created_at: When the job was created. - completed_at: When the job completed (if applicable). - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = GetSequenceDatasetExportRequest(job_id=job_id) return await self._dataset_client.GetSequenceDatasetExport(request, metadata=self._metadata, timeout=timeout) @@ -1627,7 +1627,7 @@ async def add_binary_data_to_dataset_by_ids(self, binary_ids: Union[List[BinaryI - Click the **...** menu. - Select **Copy dataset ID**. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = AddBinaryDataToDatasetByIDsRequest() if len(binary_ids) > 0 and isinstance(binary_ids[0], str): @@ -1673,7 +1673,7 @@ async def remove_binary_data_from_dataset_by_ids(self, binary_ids: Union[List[Bi - Click the **...** menu. - Select **Copy dataset ID**. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = RemoveBinaryDataFromDatasetByIDsRequest() if len(binary_ids) > 0 and isinstance(binary_ids[0], str): @@ -1743,7 +1743,7 @@ async def binary_data_capture_upload( Returns: str: The binary data ID of the uploaded data. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ sensor_contents = SensorData( metadata=( @@ -1831,7 +1831,7 @@ async def tabular_data_capture_upload( Returns: str: The file ID of the uploaded data. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ sensor_contents = [] if len(data_request_times) != len(tabular_data): @@ -1926,7 +1926,7 @@ async def streaming_data_capture_upload( Returns: str: The binary data ID of the uploaded data. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ upload_metadata = UploadMetadata( @@ -2008,7 +2008,7 @@ async def file_upload( Returns: str: Binary data ID of the new file. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ metadata = UploadMetadata( part_id=part_id, @@ -2071,7 +2071,7 @@ async def file_upload_from_path( Returns: str: Binary data ID of the new file. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ path = Path(filepath) file_name = file_name if file_name is not None else path.stem @@ -2268,7 +2268,7 @@ async def create_index( index_spec (List[Dict[str, Any]]): The MongoDB index specification defined in JSON format. pipeline_name (Optional[str]): The name of the pipeline if the collection type is PIPELINE_SINK. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ index_spec_bytes = [bson.encode(index_spec)] request = CreateIndexRequest( @@ -2296,7 +2296,7 @@ async def list_indexes( Returns: List[Index]: A list of indexes. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = ListIndexesRequest( organization_id=organization_id, @@ -2322,7 +2322,7 @@ async def delete_index( index_name (str): The name of the index to delete. pipeline_name (Optional[str]): The name of the pipeline if the collection type is PIPELINE_SINK. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = DeleteIndexRequest( organization_id=organization_id, @@ -2359,7 +2359,7 @@ async def create_binary_data_signed_url( - ``signed_url`` (*str*): The signed URL for the binary data file. - ``expires_at`` (*datetime*): The expiration time of the signed URL token. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = CreateBinaryDataSignedURLRequest(binary_data_id=binary_data_id) if expiration_minutes is not None: @@ -2380,7 +2380,7 @@ async def add_sequences_to_dataset( sequence_ids (List[str]): The IDs of the sequences to add to the dataset. timeout (Optional[float]): An optional deadline for the call to complete in seconds. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = AddSequencesToDatasetRequest( dataset_id=dataset_id, @@ -2401,7 +2401,7 @@ async def remove_sequences_from_dataset( sequence_ids (List[str]): The IDs of the sequences to remove from the dataset. timeout (Optional[float]): An optional deadline for the call to complete in seconds. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = RemoveSequencesFromDatasetRequest( dataset_id=dataset_id, @@ -2432,7 +2432,7 @@ async def sequences_by_dataset_id( - The next page token (empty string if no more pages). - The total count of sequences. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = SequencesByDatasetIDRequest(dataset_id=dataset_id) if page_token is not None: @@ -2466,7 +2466,7 @@ async def get_sequence_binary_data( - A list of binary data in the sequence. - The next page token (empty string if no more pages). - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = GetSequenceBinaryDataRequest(sequence_id=sequence_id) if page_token is not None: @@ -2500,7 +2500,7 @@ async def create_sequence( Returns: str: The ID of the newly created sequence. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = CreateSequenceRequest(part_id=part_id, resources=resources) request.start_time.FromDatetime(start_time) @@ -2520,7 +2520,7 @@ async def get_sequence(self, id: str, timeout: Optional[float] = None) -> Sequen Returns: Sequence: The requested sequence. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = GetSequenceRequest(id=id) response: GetSequenceResponse = await self._data_client.GetSequence(request, metadata=self._metadata, timeout=timeout) @@ -2551,7 +2551,7 @@ async def update_sequence( Raises: ValueError: If no updatable field is provided. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ paths: List[str] = [] request = UpdateSequenceRequest(id=id) @@ -2579,7 +2579,7 @@ async def delete_sequence(self, id: str, timeout: Optional[float] = None) -> Non id (str): The ID of the sequence to delete. timeout (Optional[float]): An optional deadline for the call to complete in seconds. - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = DeleteSequenceRequest(id=id) await self._data_client.DeleteSequence(request, metadata=self._metadata, timeout=timeout) @@ -2604,7 +2604,7 @@ async def list_sequences( - A list of sequences in the organization. - The next page token (empty string if no more pages). - For more information, see `Data Client API `_. + For more information, see `Data Client API `_. """ request = ListSequencesRequest(organization_id=organization_id) if page_token is not None: diff --git a/src/viam/app/ml_training_client.py b/src/viam/app/ml_training_client.py index cd42f954f6..fa14a24909 100644 --- a/src/viam/app/ml_training_client.py +++ b/src/viam/app/ml_training_client.py @@ -61,7 +61,7 @@ async def main(): if __name__ == '__main__': asyncio.run(main()) - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ def __init__(self, channel: Channel, metadata: Mapping[str, str]): @@ -71,7 +71,7 @@ def __init__(self, channel: Channel, metadata: Mapping[str, str]): channel (grpclib.client.Channel): Connection to app. metadata (Mapping[str, str]): Required authorization token to send requests to app. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ self._metadata = metadata self._ml_training_client = MLTrainingServiceStub(channel) @@ -112,7 +112,7 @@ async def submit_training_job( Returns: str: the ID of the training job. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = SubmitTrainingJobRequest( @@ -162,7 +162,7 @@ async def submit_custom_training_job( Returns: str: the ID of the training job. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = SubmitCustomTrainingJobRequest( @@ -191,7 +191,7 @@ async def get_training_job(self, id: str) -> TrainingJobMetadata: Returns: viam.proto.app.mltraining.TrainingJobMetadata: the training job data. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = GetTrainingJobRequest(id=id) @@ -221,7 +221,7 @@ async def list_training_jobs( Returns: List[viam.proto.app.mltraining.TrainingJobMetadata]: the list of training job data. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ training_status = training_status if training_status else TrainingStatus.TRAINING_STATUS_UNSPECIFIED @@ -244,7 +244,7 @@ async def cancel_training_job(self, id: str) -> None: Raises: GRPCError: if no training job exists with the given ID. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = CancelTrainingJobRequest(id=id) @@ -261,7 +261,7 @@ async def delete_completed_training_job(self, id: str) -> None: Args: id (str): the ID of the training job to delete. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = DeleteCompletedTrainingJobRequest(id=id) await self._ml_training_client.DeleteCompletedTrainingJob(request, metadata=self._metadata) @@ -280,7 +280,7 @@ async def list_containers(self, org_id: str) -> List[Container]: Returns: List[viam.proto.app.mltraining.Container]: the list of available training containers. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = ListContainersRequest(organization_id=org_id) @@ -301,7 +301,7 @@ async def get_container(self, id: str) -> Container: Returns: viam.proto.app.mltraining.Container: the training container. - For more information, see `ML Training Client API `_. + For more information, see `ML Training Client API `_. """ request = GetContainerRequest(id=id) @@ -328,7 +328,7 @@ async def register_custom_training_container(self, org_id: str, image_uri: str, str: the ID of the registered training container. For more information, see - `ML Training Client API `_. + `ML Training Client API `_. """ request = RegisterCustomTrainingContainerRequest(organization_id=org_id, image_uri=image_uri, description=description) @@ -349,7 +349,7 @@ async def delete_custom_training_container(self, id: str) -> None: id (str): the ID of the custom training container to delete. For more information, see - `ML Training Client API `_. + `ML Training Client API `_. """ request = DeleteCustomTrainingContainerRequest(id=id) diff --git a/src/viam/components/arm/arm.py b/src/viam/components/arm/arm.py index 8968d50924..bacf23d113 100644 --- a/src/viam/components/arm/arm.py +++ b/src/viam/components/arm/arm.py @@ -42,7 +42,7 @@ class Arm(ComponentBase): # To use get_3d_models: from viam.components.arm import Mesh - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ Properties: "TypeAlias" = GetPropertiesResponse @@ -166,7 +166,7 @@ async def get_end_position( Location is expressed as distance, which is represented by x, y, and z coordinate values. Orientation is expressed as an orientation vector, which is represented by o_x, o_y, o_z, and theta values. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -198,7 +198,7 @@ async def move_to_position( Location is expressed as distance, which is represented by x, y, and z coordinate values. Orientation is expressed as an orientation vector, which is represented by o_x, o_y, o_z, and theta values. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -231,7 +231,7 @@ async def move_to_joint_positions( Args: positions (JointPositions): The destination ``JointPositions`` for the arm. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -288,7 +288,7 @@ async def move_through_joint_positions( An empty ``positions`` list is passed through to the implementation unchanged; implementations must handle it, typically as a no-op. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -369,7 +369,7 @@ async def get_joint_positions( ``JointPositions`` can have one attribute, ``values``, a list of joint positions with rotational values (degrees) and translational values (mm). - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -391,7 +391,7 @@ async def stop( # Stop all motion of the arm. It is assumed that the arm stops immediately. await my_arm.stop() - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -413,7 +413,7 @@ async def is_moving(self) -> bool: Returns: bool: Whether the arm is moving. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -456,7 +456,7 @@ async def get_kinematics( See ``get_3d_models`` for meshes keyed by model name instead. If available, a fourth [3] value provides the structured ``KinematicModel`` (links, joints, output frames, and properties). - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -484,7 +484,7 @@ async def get_3d_models(self, *, extra: dict[str, Any] | None = None, timeout: f Note: Implementations with no models must return an empty mapping, not ``None``. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -515,7 +515,7 @@ async def set_manual_mode( manual_mode (bool): Whether to enter (``True``) or exit (``False``) manual mode. enabled_for (int): How long to stay in manual mode, in seconds. ``0`` means no time limit. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -540,7 +540,7 @@ async def get_manual_mode( Returns: bool: Whether the arm is in manual mode. - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... @@ -566,6 +566,6 @@ async def get_properties( Properties: The arm's properties; whether it supports software-enabled manual mode and whether it supports direct cartesian commands (``move_to_position``). - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... diff --git a/src/viam/components/base/base.py b/src/viam/components/base/base.py index d867685fd8..0b8cad1029 100644 --- a/src/viam/components/base/base.py +++ b/src/viam/components/base/base.py @@ -20,7 +20,7 @@ class Base(ComponentBase): from viam.components.base import Base - For more information, see `Base component `_. + For more information, see `Base component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -65,7 +65,7 @@ async def move_straight( velocity (float): The velocity (in millimeters per second) to move. Negative implies backwards. - For more information, see `Base component `_. + For more information, see `Base component `_. """ ... @@ -98,7 +98,7 @@ async def spin( to spin. Given a positive angle and a positive velocity, the base will turn to the left. - For more information, see `Base component `_. + For more information, see `Base component `_. """ ... @@ -153,7 +153,7 @@ async def set_power( angular (Vector3): The angular component. Only the Z component is used for wheeled base. Positive turns left; negative turns right. - For more information, see `Base component `_. + For more information, see `Base component `_. """ ... @@ -183,7 +183,7 @@ async def set_velocity( linear (Vector3): Velocity in mm/sec angular (Vector3): Velocity in deg/sec - For more information, see `Base component `_. + For more information, see `Base component `_. """ @abc.abstractmethod @@ -207,7 +207,7 @@ async def stop( # Stop the base. await my_base.stop() - For more information, see `Base component `_. + For more information, see `Base component `_. """ ... @@ -227,7 +227,7 @@ async def is_moving(self) -> bool: Returns: bool: Whether the base is moving. - For more information, see `Base component `_. + For more information, see `Base component `_. """ ... @@ -255,6 +255,6 @@ async def get_properties(self, *, timeout: Optional[float] = None, **kwargs) -> Returns: Properties: The properties of the base - For more information, see `Base component `_. + For more information, see `Base component `_. """ ... diff --git a/src/viam/components/board/board.py b/src/viam/components/board/board.py index 986304b150..d3e1113201 100644 --- a/src/viam/components/board/board.py +++ b/src/viam/components/board/board.py @@ -25,7 +25,7 @@ class Board(ComponentBase): from viam.components.board import Board - For more information, see `Board component `_. + For more information, see `Board component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -46,7 +46,7 @@ class Analog: the reader's minimum and maximum possible values, and its step size (the minimum possible change between values it can read). - For more information, see `analogs `_. + For more information, see `analogs `_. """ def __init__(self, name: str): @@ -72,7 +72,7 @@ async def read(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optiona Returns: Value: The current value, including the min, max, and step_size of the reader. - For more information, see `Board component Analog API `_. + For more information, see `Board component Analog API `_. """ ... @@ -94,7 +94,7 @@ async def write(self, value: int, *, extra: Optional[Dict[str, Any]] = None, tim Args: value (int): Value to write to the analog writer. - For more information, see `Board component Analog API `_. + For more information, see `Board component Analog API `_. """ ... @@ -104,7 +104,7 @@ class DigitalInterrupt: when interrupted, calls the added callbacks. Post processors can be added to modify what Value it ultimately returns. - For more information, see `digital_interrupts `_. + For more information, see `digital_interrupts `_. """ name: str @@ -135,7 +135,7 @@ async def value(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Option int: The current value. For more information, see - `Board component DigitalInterrupt API `_. + `Board component DigitalInterrupt API `_. """ ... @@ -168,7 +168,7 @@ async def set(self, high: bool, *, extra: Optional[Dict[str, Any]] = None, timeo Args: high (bool): When true, sets the pin to high. When false, sets the pin to low. - For more information, see `GPIOPin API `_. + For more information, see `GPIOPin API `_. """ ... @@ -190,7 +190,7 @@ async def get(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional Returns: bool: Indicates if the state of the pin is high. - For more information, see `GPIOPin API `_. + For more information, see `GPIOPin API `_. """ ... @@ -212,7 +212,7 @@ async def get_pwm(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Opti Returns: float: The duty cycle. - For more information, see `GPIOPin API `_. + For more information, see `GPIOPin API `_. """ ... @@ -235,7 +235,7 @@ async def set_pwm(self, duty_cycle: float, *, extra: Optional[Dict[str, Any]] = Args: duty_cycle (float): The duty cycle. - For more information, see `GPIOPin API `_. + For more information, see `GPIOPin API `_. """ ... @@ -257,7 +257,7 @@ async def get_pwm_frequency(self, *, extra: Optional[Dict[str, Any]] = None, tim Returns: int: The PWM frequency. - For more information, see `GPIOPin API `_. + For more information, see `GPIOPin API `_. """ ... @@ -287,7 +287,7 @@ async def set_pwm_frequency( Args: frequency (int): The frequency, in Hz. - For more information, see `GPIOPin API `_. + For more information, see `GPIOPin API `_. """ ... @@ -309,7 +309,7 @@ async def analog_by_name(self, name: str) -> Analog: Returns: Analog: The analog reader or writer. - For more information, see `Board component `_. + For more information, see `Board component `_. """ ... @@ -332,7 +332,7 @@ async def digital_interrupt_by_name(self, name: str) -> DigitalInterrupt: Returns: DigitalInterrupt: The digital interrupt. - For more information, see `Board component `_. + For more information, see `Board component `_. """ ... @@ -354,7 +354,7 @@ async def gpio_pin_by_name(self, name: str) -> GPIOPin: Returns: GPIOPin: The pin. - For more information, see `Board component `_. + For more information, see `Board component `_. """ ... @@ -382,7 +382,7 @@ async def set_power_mode( mode (PowerMode): The desired power mode. duration (Optional[timedelta]): Requested duration to stay in power mode. - For more information, see `Board component `_. + For more information, see `Board component `_. """ ... @@ -409,6 +409,6 @@ async def stream_ticks(self, interrupts: List[DigitalInterrupt], *, timeout: Opt Returns: TickStream: stream of ticks. - For more information, see `Board component `_. + For more information, see `Board component `_. """ ... diff --git a/src/viam/components/button/button.py b/src/viam/components/button/button.py index 42e5ca2a6d..9d1454148d 100644 --- a/src/viam/components/button/button.py +++ b/src/viam/components/button/button.py @@ -17,7 +17,7 @@ class Button(ComponentBase): from viam.components.button import Button - For more information, see `Button component ` _. + For more information, see `Button component ` _. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -36,6 +36,6 @@ async def push(self, *, extra: Optional[Mapping[str, Any]] = None, timeout: Opti # Push the button await my_button.push() - For more information, see `Button component ` _. + For more information, see `Button component ` _. """ ... diff --git a/src/viam/components/camera/camera.py b/src/viam/components/camera/camera.py index b6d7664742..de43e4d23f 100644 --- a/src/viam/components/camera/camera.py +++ b/src/viam/components/camera/camera.py @@ -21,7 +21,7 @@ class Camera(ComponentBase): from viam.components.camera import Camera - For more information, see `Camera component `_. + For more information, see `Camera component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -58,7 +58,7 @@ async def get_images( Tuple[Sequence[NamedImage], ResponseMetadata]: A tuple containing two values; the first [0] a list of images returned from the camera system, and the second [1] the metadata associated with this response. - For more information, see `Camera component `_. + For more information, see `Camera component `_. """ ... @@ -94,7 +94,7 @@ async def get_point_cloud( Tuple[bytes, str]: A tuple containing two values; the first [0] the pointcloud data, and the second [1] the mimetype of the pointcloud (for example, PCD). - For more information, see `Camera component `_. + For more information, see `Camera component `_. """ ... @@ -113,6 +113,6 @@ async def get_properties(self, *, timeout: Optional[float] = None, **kwargs) -> Properties: The properties of the camera, including intrinsic parameters, distortion parameters, supported mime types, and optionally extrinsic parameters (position relative to a reference frame). - For more information, see `Camera component `_. + For more information, see `Camera component `_. """ ... diff --git a/src/viam/components/component_base.py b/src/viam/components/component_base.py index 318e751422..ee0d6859fb 100644 --- a/src/viam/components/component_base.py +++ b/src/viam/components/component_base.py @@ -61,7 +61,7 @@ async def get_status(self, *, timeout: Optional[float] = None, **kwargs) -> Mapp async def get_geometries(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None) -> Sequence[Geometry]: """ Get all geometries associated with the component, in their current configuration, in the - `frame `__ of the component. + `frame `__ of the component. :: diff --git a/src/viam/components/encoder/encoder.py b/src/viam/components/encoder/encoder.py index aa6ea3403d..3166df7744 100644 --- a/src/viam/components/encoder/encoder.py +++ b/src/viam/components/encoder/encoder.py @@ -25,7 +25,7 @@ class Properties: from viam.components.encoder import Encoder - For more information, see `Encoder component `_. + For more information, see `Encoder component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -51,7 +51,7 @@ async def reset_position( await my_encoder.reset_position() - For more information, see `Encoder component `_. + For more information, see `Encoder component `_. """ ... @@ -88,7 +88,7 @@ async def get_position( ticks since last zeroing for a relative encoder or degrees for an absolute encoder, and the second [1] the type of position the encoder returns (ticks or degrees). - For more information, see `Encoder component `_. + For more information, see `Encoder component `_. """ ... @@ -113,6 +113,6 @@ async def get_properties( Returns: Encoder.Properties: Map of position types to supported status. - For more information, see `Encoder component `_. + For more information, see `Encoder component `_. """ ... diff --git a/src/viam/components/gantry/gantry.py b/src/viam/components/gantry/gantry.py index 4b7b6807de..3a615254ab 100644 --- a/src/viam/components/gantry/gantry.py +++ b/src/viam/components/gantry/gantry.py @@ -18,7 +18,7 @@ class Gantry(ComponentBase): from viam.components.gantry import Gantry - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -40,7 +40,7 @@ async def get_position(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Returns: List[float]: A list of the position of the axes of the gantry in millimeters. - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ ... @@ -75,7 +75,7 @@ async def move_to_position( positions (List[float]): A list of positions for the axes of the gantry to move to, in millimeters. speeds (List[float]): A list of speeds in millimeters per second for the gantry to move at respective to each axis. - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ ... @@ -93,7 +93,7 @@ async def home(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optiona Returns: bool: Whether the gantry has run the homing sequence successfully. - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ @abc.abstractmethod @@ -111,7 +111,7 @@ async def get_lengths(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Returns: List[float]: A list of the lengths of the axes of the gantry in millimeters. - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ ... @@ -128,7 +128,7 @@ async def stop(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optiona # immediately. await my_gantry.stop() - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ ... @@ -151,7 +151,7 @@ async def is_moving(self) -> bool: Returns: bool: Whether the gantry is moving. - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ ... @@ -193,6 +193,6 @@ async def get_kinematics( If available, a third [2] value provides meshes keyed by URDF filepath. If available, a fourth [3] value provides the structured ``KinematicModel`` (links, joints, output frames, and properties). - For more information, see `Arm component `_. + For more information, see `Arm component `_. """ ... diff --git a/src/viam/components/generic/generic.py b/src/viam/components/generic/generic.py index 72de64e964..15bb5c3635 100644 --- a/src/viam/components/generic/generic.py +++ b/src/viam/components/generic/generic.py @@ -68,7 +68,7 @@ def complex_command(self, arg1, arg2, arg3): await asyncio.sleep(10) component.power # 0 - For more information, see `Gantry component `_. + For more information, see `Gantry component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] diff --git a/src/viam/components/gripper/gripper.py b/src/viam/components/gripper/gripper.py index b8b40bea7d..a8fc356bb2 100644 --- a/src/viam/components/gripper/gripper.py +++ b/src/viam/components/gripper/gripper.py @@ -19,7 +19,7 @@ class Gripper(ComponentBase): from viam.components.gripper import Gripper - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -55,7 +55,7 @@ async def open( # Open the gripper. await my_gripper.open() - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... @@ -80,7 +80,7 @@ async def grab( Returns: bool: Indicates if the gripper grabbed something. - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... @@ -107,7 +107,7 @@ async def is_holding_something( Returns: HoldingStatus: see documentation on `HoldingStatus` for more information - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ @@ -129,7 +129,7 @@ async def stop( # Stop the gripper. await my_gripper.stop() - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... @@ -149,7 +149,7 @@ async def is_moving(self) -> bool: Returns: bool: Whether the gripper is moving. - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... @@ -191,7 +191,7 @@ async def get_kinematics( If available, a third [2] value provides meshes keyed by URDF filepath. If available, a fourth [3] value provides the structured ``KinematicModel`` (links, joints, output frames, and properties). - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... @@ -216,7 +216,7 @@ async def get_current_inputs( Returns: List[float]: The current input values of the gripper. - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... @@ -242,6 +242,6 @@ async def go_to_inputs( Args: values (List[float]): The input values to move the gripper to. - For more information, see `Gripper component `_. + For more information, see `Gripper component `_. """ ... diff --git a/src/viam/components/input/input.py b/src/viam/components/input/input.py index c9ba2b5a1d..5527b9ebcf 100644 --- a/src/viam/components/input/input.py +++ b/src/viam/components/input/input.py @@ -140,7 +140,7 @@ class Controller(ComponentBase): from viam.components.input import Control, Controller, EventType - For more information, see `Input Controller component `_. + For more information, see `Input Controller component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -167,7 +167,7 @@ async def get_controls(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Returns: List[Control]: List of controls provided by the Controller - For more information, see `Input Controller component `_. + For more information, see `Input Controller component `_. """ ... @@ -194,7 +194,7 @@ async def get_events( Returns: Dict[Control, Event]: The most recent event for each input - For more information, see `Input Controller component `_. + For more information, see `Input Controller component `_. """ ... @@ -261,7 +261,7 @@ async def main(): function (ControlFunction): The function to run on specific triggers - For more information, see `Input Controller component `_. + For more information, see `Input Controller component `_. """ ... @@ -292,6 +292,6 @@ async def trigger_event( Args: event (Event): The event to trigger - For more information, see `Input Controller component `_. + For more information, see `Input Controller component `_. """ raise NotSupportedError(f"Input controller named {self.name} does not support triggering events") diff --git a/src/viam/components/motor/motor.py b/src/viam/components/motor/motor.py index a4693a093b..bf97a59038 100644 --- a/src/viam/components/motor/motor.py +++ b/src/viam/components/motor/motor.py @@ -18,7 +18,7 @@ class Motor(ComponentBase): from viam.components.motor import Motor - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ @dataclass @@ -53,7 +53,7 @@ async def set_power( power (float): Power between -1 and 1 (negative implies backwards). - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -85,7 +85,7 @@ async def go_for( revolutions (float): Number of revolutions the motor should run for (negative implies backwards). - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -116,7 +116,7 @@ async def go_to( rpm (float): Speed at which the motor should rotate (absolute value). position_revolutions (float): Target position relative to home/zero, in revolutions. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -143,7 +143,7 @@ async def set_rpm( Args: rpm (float): Speed at which the motor should rotate. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -169,7 +169,7 @@ async def reset_zero_position( Args: offset (float): The offset from the current position to new home/zero position. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -196,7 +196,7 @@ async def get_position( Returns: float: Number of revolutions the motor is away from zero/home. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -226,7 +226,7 @@ async def get_properties( Returns: Properties: Map of feature names to supported status. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -248,7 +248,7 @@ async def stop( # Stop the motor. await my_motor.stop() - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -276,7 +276,7 @@ async def is_powered( Tuple[bool, float]: A tuple containing two values; the first [0] value indicates whether the motor is currently powered, and the second [1] value indicates the current power percentage of the motor. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... @@ -296,6 +296,6 @@ async def is_moving(self) -> bool: Returns: bool: Whether the motor is moving. - For more information, see `Motor component `_. + For more information, see `Motor component `_. """ ... diff --git a/src/viam/components/movement_sensor/movement_sensor.py b/src/viam/components/movement_sensor/movement_sensor.py index dbbea0a443..8154f33d42 100644 --- a/src/viam/components/movement_sensor/movement_sensor.py +++ b/src/viam/components/movement_sensor/movement_sensor.py @@ -22,7 +22,7 @@ class MovementSensor(ComponentBase): from viam.components.movement_sensor import MovementSensor - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -80,7 +80,7 @@ async def get_position( Returns: Tuple[GeoPoint, float]: The current lat/long, along with the altitude in m - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -99,7 +99,7 @@ async def get_linear_velocity(self, *, extra: Optional[Dict[str, Any]] = None, t Returns: Vector3: The linear velocity in m/sec - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -121,7 +121,7 @@ async def get_angular_velocity(self, *, extra: Optional[Dict[str, Any]] = None, Returns: Vector3: The angular velocity in degrees/sec - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -145,7 +145,7 @@ async def get_linear_acceleration( Returns: Vector3: The linear acceleration in m/sec^2 - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -164,7 +164,7 @@ async def get_compass_heading(self, *, extra: Optional[Dict[str, Any]] = None, t Returns: float: The compass heading in degrees - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -183,7 +183,7 @@ async def get_orientation(self, *, extra: Optional[Dict[str, Any]] = None, timeo Returns: Orientation: The orientation - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -202,7 +202,7 @@ async def get_properties(self, *, extra: Optional[Dict[str, Any]] = None, timeou Returns: MovementSensor.Properties: The properties - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -221,7 +221,7 @@ async def get_accuracy(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Returns: MovementSensor.Accuracy: The accuracies of the movement sensor - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... @@ -242,6 +242,6 @@ async def get_readings( Returns: Mapping[str, Any]: The readings for the MovementSensor. Can be of any type. - For more information, see `Movement Sensor component `_. + For more information, see `Movement Sensor component `_. """ ... diff --git a/src/viam/components/power_sensor/power_sensor.py b/src/viam/components/power_sensor/power_sensor.py index b9767962cc..545a7c8d64 100644 --- a/src/viam/components/power_sensor/power_sensor.py +++ b/src/viam/components/power_sensor/power_sensor.py @@ -16,7 +16,7 @@ class PowerSensor(ComponentBase): from viam.components.power_sensor import PowerSensor - For more information, see `Power Sensor component `_. + For more information, see `Power Sensor component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -39,7 +39,7 @@ async def get_voltage(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Tuple[float, bool]: A float representing the voltage reading in V. A bool indicating whether the voltage is AC (`true`) or DC (`false`). - For more information, see `Power Sensor component `_. + For more information, see `Power Sensor component `_. """ ... @@ -59,7 +59,7 @@ async def get_current(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Tuple[float, bool]: A tuple which includes a float representing the current reading in amps, and a bool indicating whether the current is AC (`true`) or DC (`false`). - For more information, see `Power Sensor component `_. + For more information, see `Power Sensor component `_. """ ... @@ -78,7 +78,7 @@ async def get_power(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Op Returns: float: The power reading in watts. - For more information, see `Power Sensor component `_. + For more information, see `Power Sensor component `_. """ ... @@ -99,6 +99,6 @@ async def get_readings( Mapping[str, Any]: The readings for the PowerSensor. Can be of any type. Includes voltage in volts (float), current in amperes (float), is_ac (bool), and power in watts (float). - For more information, see `Power Sensor component `_. + For more information, see `Power Sensor component `_. """ ... diff --git a/src/viam/components/sensor/sensor.py b/src/viam/components/sensor/sensor.py index 6746626666..e856421ddb 100644 --- a/src/viam/components/sensor/sensor.py +++ b/src/viam/components/sensor/sensor.py @@ -19,7 +19,7 @@ class Sensor(ComponentBase): from viam.components.sensor import Sensor - For more information, see `Sensor component `_. + For more information, see `Sensor component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -43,6 +43,6 @@ async def get_readings( Returns: Mapping[str, Any]: The measurements. Can be of any type. - For more information, see `Sensor component `_. + For more information, see `Sensor component `_. """ ... diff --git a/src/viam/components/servo/servo.py b/src/viam/components/servo/servo.py index c40d4de875..fbc972d1e0 100644 --- a/src/viam/components/servo/servo.py +++ b/src/viam/components/servo/servo.py @@ -18,7 +18,7 @@ class Servo(ComponentBase): from viam.components.servo import Servo - For more information, see `Servo component `_. + For more information, see `Servo component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -43,7 +43,7 @@ async def move(self, angle: int, *, extra: Optional[Mapping[str, Any]] = None, t Args: angle (int): The desired angle of the servo in degrees. - For more information, see `Servo component `_. + For more information, see `Servo component `_. """ ... @@ -71,7 +71,7 @@ async def get_position(self, *, extra: Optional[Mapping[str, Any]] = None, timeo Returns: int: The current angle of the servo in degrees. - For more information, see `Servo component `_. + For more information, see `Servo component `_. """ ... @@ -90,7 +90,7 @@ async def stop(self, *, extra: Optional[Mapping[str, Any]] = None, timeout: Opti # Stop the servo. It is assumed that the servo stops moving immediately. await my_servo.stop() - For more information, see `Servo component `_. + For more information, see `Servo component `_. """ ... @@ -109,6 +109,6 @@ async def is_moving(self) -> bool: Returns: bool: Whether the servo is moving. - For more information, see `Servo component `_. + For more information, see `Servo component `_. """ ... diff --git a/src/viam/components/switch/switch.py b/src/viam/components/switch/switch.py index b052b1fa22..a16447471b 100644 --- a/src/viam/components/switch/switch.py +++ b/src/viam/components/switch/switch.py @@ -17,7 +17,7 @@ class Switch(ComponentBase): from viam.components.switch import Switch - For more information, see `Switch component `_. + For more information, see `Switch component `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -48,7 +48,7 @@ async def get_position(self, *, extra: Optional[Mapping[str, Any]] = None, timeo Returns: int: The current position of the switch within the range of available positions. - For more information, see `Switch component `_. + For more information, see `Switch component `_. """ ... @@ -72,7 +72,7 @@ async def set_position( Args: position (int): The position of the switch within the range of available positions. - For more information, see `Switch component `_. + For more information, see `Switch component `_. """ ... @@ -93,6 +93,6 @@ async def get_number_of_positions( Tuple[int, Sequence[str]]: The number of available positions and their labels - For more information, see `Switch component `_. + For more information, see `Switch component `_. """ ... diff --git a/src/viam/robot/client.py b/src/viam/robot/client.py index f22859fa0e..bcbab1ab50 100644 --- a/src/viam/robot/client.py +++ b/src/viam/robot/client.py @@ -112,7 +112,7 @@ async def main(): if __name__ == '__main__': asyncio.run(main()) - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ @dataclass @@ -174,7 +174,7 @@ def with_api_key(cls, api_key: str, api_key_id: str, **kwargs) -> Self: Returns: Self: the RobotClient.Options - For more information, see `Establish a connection `_. + For more information, see `Establish a connection `_. """ self = cls(**kwargs) dial_opts = DialOptions.with_api_key(api_key, api_key_id) @@ -209,7 +209,7 @@ async def main(): Returns: Self: the RobotClient - For more information, see `Establish a connection `_. + For more information, see `Establish a connection `_. """ logging.setLevel(options.log_level) channel = await dial(address, options.dial_options) @@ -242,7 +242,7 @@ async def connect_with_channel() -> RobotClient: Returns: Self: the RobotClient - For more information, see `Establish a connection `_. + For more information, see `Establish a connection `_. """ logging.setLevel(options.log_level) return await cls._with_channel(channel, options, False) @@ -329,7 +329,7 @@ async def refresh(self): await machine.refresh() - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ response: ResourceNamesResponse = await self._client.ResourceNames(ResourceNamesRequest()) resource_names: List[ResourceName] = list(response.resources) @@ -510,7 +510,7 @@ def get_component(self, name: ResourceName) -> ComponentBase: Returns: ComponentBase: The component - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ if name.type != RESOURCE_TYPE_COMPONENT: raise ValueError(f"ResourceName does not describe a component: {name}") @@ -557,7 +557,7 @@ def get_service(self, name: ResourceName) -> ServiceBase: Returns: ServiceBase: The service - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ if name.type != RESOURCE_TYPE_SERVICE: raise ValueError(f"ResourceName does not describe a service: {name}") @@ -576,7 +576,7 @@ def resource_names(self) -> List[ResourceName]: Returns: List[viam.proto.common.ResourceName]: The list of resource names - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ with self._lock: return [r for r in self._resource_names] @@ -598,7 +598,7 @@ async def close(self): await machine.close() - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ LOGGER.debug("Closing RobotClient") if self._closed: @@ -647,7 +647,7 @@ async def get_operations(self) -> List[Operation]: Returns: List[viam.proto.robot.Operation]: The list of operations currently running on a given machine. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = GetOperationsRequest() response: GetOperationsResponse = await self._client.GetOperations(request) @@ -664,7 +664,7 @@ async def cancel_operation(self, id: str): Args: id (str): ID of operation to cancel. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = CancelOperationRequest(id=id) await self._client.CancelOperation(request) @@ -681,7 +681,7 @@ async def block_for_operation(self, id: str): Args: id (str): ID of operation to block on. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = BlockForOperationRequest(id=id) await self._client.BlockForOperation(request) @@ -703,7 +703,7 @@ async def get_frame_system_config(self, additional_transforms: Optional[List[Tra Returns: List[viam.proto.robot.FrameSystemConfig]: The configuration of a given machine's frame system. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = FrameSystemConfigRequest(supplemental_transforms=additional_transforms) response: FrameSystemConfigResponse = await self._client.FrameSystemConfig(request) @@ -742,7 +742,7 @@ async def get_pose( Returns: PoseInFrame: The pose of the component and the reference frame it is expressed in. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = GetPoseRequest( component_name=component_name, @@ -791,7 +791,7 @@ async def transform_pose( Returns: PoseInFrame: The pose and the reference frame for the new destination. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = TransformPoseRequest( source=query, @@ -821,7 +821,7 @@ async def transform_pcd(self, point_cloud_pcd: bytes, source: str, destination: Returns: bytes: The point cloud data relative to the destination reference frame - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = TransformPCDRequest(point_cloud_pcd=point_cloud_pcd, source=source, destination=destination) response: TransformPCDResponse = await self._client.TransformPCD(request) @@ -869,7 +869,7 @@ async def stop_all(self, extra: Dict[ResourceName, Dict[str, Any]] = {}): extra (Dict[viam.proto.common.ResourceName, Dict[str, Any]]): Any extra parameters to pass to the resources' ``stop`` methods, keyed on the resource's ``ResourceName``. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ ep: List[StopExtraParameters] = [] @@ -894,7 +894,7 @@ async def log(self, name: str, level: str, time: datetime, message: str, stack: message (str): The log message. stack (str): The stack information of the log. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ entry = LogEntry( level=level, @@ -925,7 +925,7 @@ async def get_cloud_metadata(self) -> GetCloudMetadataResponse: Returns: viam.proto.robot.GetCloudMetadataResponse: App-related metadata. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = GetCloudMetadataRequest() @@ -949,7 +949,7 @@ async def shutdown(self): status Unavailable if server is unavailable, or if machine server is in the process of shutting down when response is ready. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = ShutdownRequest() try: @@ -985,7 +985,7 @@ async def get_version(self) -> GetVersionResponse: Returns: viam.proto.robot.GetVersionResponse: Machine version related information. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = GetVersionRequest() @@ -1012,7 +1012,7 @@ async def get_machine_status(self) -> GetMachineStatusResponse: Returns: viam.proto.robot.GetMachineStatusResponse: current status of the machine (initializing or running), current status of the resources (List[ResourceStatus]), the revision of the config of the machine, the status of modules (List[ModuleStatus]), and the status of packages (List[PackageStatus]). - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = GetMachineStatusRequest() @@ -1037,7 +1037,7 @@ async def restart_module(self, id: Optional[str] = None, name: Optional[str] = N Raises: GRPCError: If a module can't be found matching the provided ID or name. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ id = id if id else "" @@ -1076,7 +1076,7 @@ async def upload_data_from_path( Returns: UploadDataFromPathResponse: Response containing files_uploaded, files_failed, bytes_uploaded, bytes_total, and ids. - For more information, see `Machine Management API `_. + For more information, see `Machine Management API `_. """ request = UploadDataFromPathRequest( path=path, diff --git a/src/viam/services/mlmodel/mlmodel.py b/src/viam/services/mlmodel/mlmodel.py index 0416eb4a0b..8b4638dfda 100644 --- a/src/viam/services/mlmodel/mlmodel.py +++ b/src/viam/services/mlmodel/mlmodel.py @@ -18,7 +18,7 @@ class MLModel(ServiceBase): arm implementations. This cannot be used on its own. If the ``__init__()`` function is overridden, it must call the ``super().__init__()`` function. - For more information, see `ML model service `_. + For more information, see `ML model service `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -56,7 +56,7 @@ async def infer( Returns: Dict[str, NDArray]: A dictionary of output flat tensors as specified in the metadata - For more information, see `ML model service `_. + For more information, see `ML model service `_. """ ... @@ -73,6 +73,6 @@ async def metadata(self, *, extra: Optional[Mapping[str, ValueTypes]] = None, ti Returns: Metadata: The metadata - For more information, see `ML model service `_. + For more information, see `ML model service `_. """ ... diff --git a/src/viam/services/motion/motion.py b/src/viam/services/motion/motion.py index 8de9d28fce..07001a36aa 100644 --- a/src/viam/services/motion/motion.py +++ b/src/viam/services/motion/motion.py @@ -15,7 +15,7 @@ class Motion(ServiceBase): The motion planning service calculates a valid path that avoids self collision by default. If additional constraints are supplied in the ``world_state`` message, the motion planning service will also account for those. - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ Plan: "TypeAlias" = GetPlanResponse @@ -81,7 +81,7 @@ async def move( Returns: bool: Whether the move was successful. - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... @@ -155,7 +155,7 @@ async def move_on_globe( Returns: str: ExecutionID of the ``move_on_globe()`` call, which can be used to track execution progress. - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... @@ -222,7 +222,7 @@ async def move_on_map( Returns: str: ExecutionID of the ``move_on_map()`` call, which can be used to track execution progress. - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... @@ -249,7 +249,7 @@ async def stop_plan( Args: component_name (str): The component to stop - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... @@ -295,7 +295,7 @@ async def get_plan( Returns: ``GetPlanResponse`` (GetPlanResponse): The current PlanWithStatus & replan history which matches the request - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... @@ -328,7 +328,7 @@ async def list_plan_statuses( ``ListPlanStatusesResponse`` (ListPlanStatusesResponse): List of last known statuses with the associated IDs of all plans within the TTL ordered by timestamp in ascending order. - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... @@ -369,6 +369,6 @@ async def get_pose( Returns: ``Pose`` (PoseInFrame): Pose of the given component and the frame in which it was observed. - For more information, see `Motion service `_. + For more information, see `Motion service `_. """ ... diff --git a/src/viam/services/navigation/navigation.py b/src/viam/services/navigation/navigation.py index 8435e0d0aa..4baf9464da 100644 --- a/src/viam/services/navigation/navigation.py +++ b/src/viam/services/navigation/navigation.py @@ -25,7 +25,7 @@ class Navigation(ServiceBase): navigation service implementations. This cannot be used on its own. If the ``__init__()`` function is overridden, it must call the ``super().__init__()`` function. - For more information, see `Navigation service `_. + For more information, see `Navigation service `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] diff --git a/src/viam/services/slam/slam.py b/src/viam/services/slam/slam.py index d51b9ece34..a8da9fd7bf 100644 --- a/src/viam/services/slam/slam.py +++ b/src/viam/services/slam/slam.py @@ -16,7 +16,7 @@ class SLAM(ServiceBase): arm implementations. This cannot be used on its own. If the ``__init__()`` function is overridden, it must call the ``super().__init__()`` function. - For more information, see `SLAM service `_. + For more information, see `SLAM service `_. """ API: Final = API(RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_SERVICE, "slam") # pyright: ignore [reportIncompatibleVariableOverride] @@ -38,7 +38,7 @@ async def get_internal_state(self, *, timeout: Optional[float]) -> List[bytes]: Returns: List[GetInternalStateResponse]: Chunks of the internal state of the SLAM algorithm - For more information, see `SLAM service `_. + For more information, see `SLAM service `_. """ ... @@ -62,7 +62,7 @@ async def get_point_cloud_map(self, return_edited_map: bool = False, *, timeout: List[GetPointCloudMapResponse]: Complete pointcloud in standard PCD format. Chunks of the PointCloud, concatenating all GetPointCloudMapResponse.point_cloud_pcd_chunk values. - For more information, see `SLAM service `_. + For more information, see `SLAM service `_. """ ... @@ -81,7 +81,7 @@ async def get_position(self, *, timeout: Optional[float]) -> Pose: Returns: Pose: The current position of the specified component - For more information, see `SLAM service `_. + For more information, see `SLAM service `_. """ ... @@ -100,6 +100,6 @@ async def get_properties(self, *, timeout: Optional[float]) -> Properties: Returns: Properties: The properties of SLAM - For more information, see `SLAM service `_. + For more information, see `SLAM service `_. """ ... diff --git a/src/viam/services/vision/vision.py b/src/viam/services/vision/vision.py index 41cec8b077..8d0aa9df06 100644 --- a/src/viam/services/vision/vision.py +++ b/src/viam/services/vision/vision.py @@ -57,7 +57,7 @@ class Vision(ServiceBase): vision implementations. This cannot be used on its own. If the ``__init__()`` function is overridden, it must call the ``super().__init__()`` function. - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride] @@ -117,7 +117,7 @@ async def capture_all_from_camera( It can return the image from the camera along with its associated detections, classifications, and objects, as well as any extra info the model may provide. - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -149,7 +149,7 @@ async def get_detections_from_camera( confidence score of the labels, around the found objects in the next 2D image from the given camera, with the given detector applied to it. - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -186,7 +186,7 @@ async def get_detections( confidence score of the labels, around the found objects in the next 2D image from the given camera, with the given detector applied to it. - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -216,7 +216,7 @@ async def get_classifications_from_camera( returns: List[viam.proto.service.vision.Classification]: The list of Classifications - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -250,7 +250,7 @@ async def get_classifications( Returns: List[viam.proto.service.vision.Classification]: The list of Classifications - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -278,7 +278,7 @@ async def get_detections_3d( List[viam.proto.service.vision.Detection3D]: A list of 3D detections, each described as a tree of transforms along with the class hypotheses for the detected object. - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -316,7 +316,7 @@ async def get_object_point_clouds( Returns: List[viam.proto.common.PointCloudObject]: The pointcloud objects with metadata - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... @@ -341,6 +341,6 @@ async def get_properties( Returns: Properties: The properties of the vision service - For more information, see `Computer Vision service `_. + For more information, see `Computer Vision service `_. """ ... diff --git a/src/viam/services/worldstatestore/worldstatestore.py b/src/viam/services/worldstatestore/worldstatestore.py index 7be938b138..da2164fe23 100644 --- a/src/viam/services/worldstatestore/worldstatestore.py +++ b/src/viam/services/worldstatestore/worldstatestore.py @@ -17,7 +17,7 @@ class WorldStateStore(ServiceBase): changes to world state transforms, which represent the pose of objects in different reference frames. This functionality can be used to create custom visualizations of the world state. - For more information, see `WorldStateStore service `_. + For more information, see `WorldStateStore service `_. """ API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]