Skip to content

Commit 74da04c

Browse files
nicksanfordnjooma
andauthored
RSDK-5390 - [BREAKING] MoveOnGlobe definition change (#496)
Co-authored-by: njooma <[email protected]> Co-authored-by: Naveed Jooma <[email protected]>
1 parent d8e6f4e commit 74da04c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2039
-810
lines changed

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"[python]": {
3+
"editor.defaultFormatter": "ms-python.black-formatter",
4+
"editor.formatOnSave": true,
5+
},
26
"python.linting.flake8Enabled": true,
37
"editor.formatOnSave": true,
48
"python.analysis.typeCheckingMode": "basic",

docs/examples/_server.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
Location,
101101
LocationAuthRequest,
102102
LocationAuthResponse,
103+
CreateRegistryItemRequest,
104+
CreateRegistryItemResponse,
105+
GetOrganizationsWithAccessToLocationRequest,
106+
GetOrganizationsWithAccessToLocationResponse,
107+
ListRegistryItemsRequest,
108+
ListRegistryItemsResponse,
109+
UpdateRegistryItemRequest,
110+
UpdateRegistryItemResponse,
103111
)
104112
from viam.proto.app import LogEntry as LogEntryPB
105113
from viam.proto.app import (
@@ -182,6 +190,10 @@
182190
TabularDataByFilterResponse,
183191
TagsByFilterRequest,
184192
TagsByFilterResponse,
193+
TabularDataByMQLRequest,
194+
TabularDataByMQLResponse,
195+
TabularDataBySQLRequest,
196+
TabularDataBySQLResponse,
185197
)
186198
from viam.proto.app.datasync import (
187199
DataCaptureUploadRequest,
@@ -303,6 +315,12 @@ async def RemoveBinaryDataFromDatasetByIDs(
303315
) -> None:
304316
pass
305317

318+
async def TabularDataBySQL(self, stream: Stream[TabularDataBySQLRequest, TabularDataBySQLResponse]) -> None:
319+
pass
320+
321+
async def TabularDataByMQL(self, stream: Stream[TabularDataByMQLRequest, TabularDataByMQLResponse]) -> None:
322+
pass
323+
306324

307325
class MockDataSync(DataSyncServiceBase):
308326
async def DataCaptureUpload(self, stream: Stream[DataCaptureUploadRequest, DataCaptureUploadResponse]) -> None:
@@ -554,6 +572,20 @@ async def CreateKeyFromExistingKeyAuthorizations(
554572
) -> None:
555573
pass
556574

575+
async def CreateRegistryItem(self, stream: Stream[CreateRegistryItemRequest, CreateRegistryItemResponse]) -> None:
576+
raise NotImplementedError()
577+
578+
async def GetOrganizationsWithAccessToLocation(
579+
self, stream: Stream[GetOrganizationsWithAccessToLocationRequest, GetOrganizationsWithAccessToLocationResponse]
580+
) -> None:
581+
raise NotImplementedError()
582+
583+
async def ListRegistryItems(self, stream: Stream[ListRegistryItemsRequest, ListRegistryItemsResponse]) -> None:
584+
raise NotImplementedError()
585+
586+
async def UpdateRegistryItem(self, stream: Stream[UpdateRegistryItemRequest, UpdateRegistryItemResponse]) -> None:
587+
raise NotImplementedError()
588+
557589

558590
async def main(*, host: str = "127.0.0.1", port: int = 9092) -> None:
559591
server = Server([MockData(), MockDataSync(), MockApp()])

src/viam/components/camera/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import abc
2-
from typing import Any, Dict, Final, List, Optional, Tuple, TYPE_CHECKING
2+
from typing import TYPE_CHECKING, Any, Dict, Final, List, Optional, Tuple
33

44
from viam.media.video import NamedImage, ViamImage
55
from viam.proto.common import ResponseMetadata

src/viam/gen/app/agent/__init__.py

Whitespace-only changes.

src/viam/gen/app/agent/v1/__init__.py

Whitespace-only changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import abc
2+
import typing
3+
import grpclib.const
4+
import grpclib.client
5+
if typing.TYPE_CHECKING:
6+
import grpclib.server
7+
import google.protobuf.duration_pb2
8+
from .... import tagger
9+
from .... import app
10+
11+
class AgentAppServiceBase(abc.ABC):
12+
13+
@abc.abstractmethod
14+
async def GetAgentConfig(self, stream: 'grpclib.server.Stream[app.agent.v1.agent_pb2.GetAgentConfigRequest, app.agent.v1.agent_pb2.GetAgentConfigResponse]') -> None:
15+
pass
16+
17+
@abc.abstractmethod
18+
async def UpdateAgentConfig(self, stream: 'grpclib.server.Stream[app.agent.v1.agent_pb2.UpdateAgentConfigRequest, app.agent.v1.agent_pb2.UpdateAgentConfigResponse]') -> None:
19+
pass
20+
21+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
22+
return {'/viam.app.agent.v1.AgentAppService/GetAgentConfig': grpclib.const.Handler(self.GetAgentConfig, grpclib.const.Cardinality.UNARY_UNARY, app.agent.v1.agent_pb2.GetAgentConfigRequest, app.agent.v1.agent_pb2.GetAgentConfigResponse), '/viam.app.agent.v1.AgentAppService/UpdateAgentConfig': grpclib.const.Handler(self.UpdateAgentConfig, grpclib.const.Cardinality.UNARY_UNARY, app.agent.v1.agent_pb2.UpdateAgentConfigRequest, app.agent.v1.agent_pb2.UpdateAgentConfigResponse)}
23+
24+
class AgentAppServiceStub:
25+
26+
def __init__(self, channel: grpclib.client.Channel) -> None:
27+
self.GetAgentConfig = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.agent.v1.AgentAppService/GetAgentConfig', app.agent.v1.agent_pb2.GetAgentConfigRequest, app.agent.v1.agent_pb2.GetAgentConfigResponse)
28+
self.UpdateAgentConfig = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.agent.v1.AgentAppService/UpdateAgentConfig', app.agent.v1.agent_pb2.UpdateAgentConfigRequest, app.agent.v1.agent_pb2.UpdateAgentConfigResponse)
29+
30+
class AgentDeviceServiceBase(abc.ABC):
31+
32+
@abc.abstractmethod
33+
async def DeviceAgentConfig(self, stream: 'grpclib.server.Stream[app.agent.v1.agent_pb2.DeviceAgentConfigRequest, app.agent.v1.agent_pb2.DeviceAgentConfigResponse]') -> None:
34+
pass
35+
36+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
37+
return {'/viam.app.agent.v1.AgentDeviceService/DeviceAgentConfig': grpclib.const.Handler(self.DeviceAgentConfig, grpclib.const.Cardinality.UNARY_UNARY, app.agent.v1.agent_pb2.DeviceAgentConfigRequest, app.agent.v1.agent_pb2.DeviceAgentConfigResponse)}
38+
39+
class AgentDeviceServiceStub:
40+
41+
def __init__(self, channel: grpclib.client.Channel) -> None:
42+
self.DeviceAgentConfig = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.agent.v1.AgentDeviceService/DeviceAgentConfig', app.agent.v1.agent_pb2.DeviceAgentConfigRequest, app.agent.v1.agent_pb2.DeviceAgentConfigResponse)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
"""Generated protocol buffer code."""
2+
from google.protobuf.internal import builder as _builder
3+
from google.protobuf import descriptor as _descriptor
4+
from google.protobuf import descriptor_pool as _descriptor_pool
5+
from google.protobuf import symbol_database as _symbol_database
6+
_sym_db = _symbol_database.Default()
7+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
8+
from ....tagger.v1 import tagger_pb2 as tagger_dot_v1_dot_tagger__pb2
9+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18app/agent/v1/agent.proto\x12\x11viam.app.agent.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x16tagger/v1/tagger.proto"\'\n\x15GetAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"^\n\x16GetAgentConfigResponse\x12D\n\x0cagent_config\x18\x01 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"p\n\x18UpdateAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12D\n\x0cagent_config\x18\x02 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"a\n\x19UpdateAgentConfigResponse\x12D\n\x0cagent_config\x18\x01 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"\x9b\x02\n\x0eAppAgentConfig\x12\x9c\x01\n\x11subsystem_configs\x18\x01 \x03(\x0b27.viam.app.agent.v1.AppAgentConfig.SubsystemConfigsEntryB6\x9a\x84\x9e\x031bson:"subsystem_configs" json:"subsystem_configs"R\x10subsystemConfigs\x1aj\n\x15SubsystemConfigsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b2%.viam.app.agent.v1.AppSubsystemConfigR\x05value:\x028\x01"\xe0\x02\n\x12AppSubsystemConfig\x12[\n\x0frelease_channel\x18\x01 \x01(\tB2\x9a\x84\x9e\x03-bson:"release_channel" json:"release_channel"R\x0ereleaseChannel\x12K\n\x0bpin_version\x18\x02 \x01(\tB*\x9a\x84\x9e\x03%bson:"pin_version" json:"pin_version"R\npinVersion\x12;\n\x07pin_url\x18\x03 \x01(\tB"\x9a\x84\x9e\x03\x1dbson:"pin_url" json:"pin_url"R\x06pinUrl\x12c\n\x11disable_subsystem\x18\x04 \x01(\x08B6\x9a\x84\x9e\x031bson:"disable_subsystem" json:"disable_subsystem"R\x10disableSubsystem"\x9d\x02\n\x18DeviceAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x128\n\thost_info\x18\x02 \x01(\x0b2\x1b.viam.app.agent.v1.HostInfoR\x08hostInfo\x12q\n\x12subsystem_versions\x18\x03 \x03(\x0b2B.viam.app.agent.v1.DeviceAgentConfigRequest.SubsystemVersionsEntryR\x11subsystemVersions\x1aD\n\x16SubsystemVersionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x028\x01"\xbd\x02\n\x19DeviceAgentConfigResponse\x12o\n\x11subsystem_configs\x18\x01 \x03(\x0b2B.viam.app.agent.v1.DeviceAgentConfigResponse.SubsystemConfigsEntryR\x10subsystemConfigs\x12@\n\x0echeck_interval\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\rcheckInterval\x1am\n\x15SubsystemConfigsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12>\n\x05value\x18\x02 \x01(\x0b2(.viam.app.agent.v1.DeviceSubsystemConfigR\x05value:\x028\x01"\x9f\x01\n\x15DeviceSubsystemConfig\x12G\n\x0bupdate_info\x18\x01 \x01(\x0b2&.viam.app.agent.v1.SubsystemUpdateInfoR\nupdateInfo\x12\x18\n\x07disable\x18\x02 \x01(\x08R\x07disable\x12#\n\rforce_restart\x18\x03 \x01(\x08R\x0cforceRestart"R\n\x08HostInfo\x12\x1a\n\x08platform\x18\x01 \x01(\tR\x08platform\x12\x16\n\x06distro\x18\x02 \x01(\tR\x06distro\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags"\xaf\x01\n\x13SubsystemUpdateInfo\x12\x1a\n\x08filename\x18\x01 \x01(\tR\x08filename\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x16\n\x06sha256\x18\x04 \x01(\x0cR\x06sha256\x128\n\x06format\x18\x05 \x01(\x0e2 .viam.app.agent.v1.PackageFormatR\x06format*\x9f\x01\n\rPackageFormat\x12\x1e\n\x1aPACKAGE_FORMAT_UNSPECIFIED\x10\x00\x12\x16\n\x12PACKAGE_FORMAT_RAW\x10\x01\x12\x15\n\x11PACKAGE_FORMAT_XZ\x10\x02\x12\x1d\n\x19PACKAGE_FORMAT_EXECUTABLE\x10\x03\x12 \n\x1cPACKAGE_FORMAT_XZ_EXECUTABLE\x10\x042\xe8\x01\n\x0fAgentAppService\x12e\n\x0eGetAgentConfig\x12(.viam.app.agent.v1.GetAgentConfigRequest\x1a).viam.app.agent.v1.GetAgentConfigResponse\x12n\n\x11UpdateAgentConfig\x12+.viam.app.agent.v1.UpdateAgentConfigRequest\x1a,.viam.app.agent.v1.UpdateAgentConfigResponse2\x84\x01\n\x12AgentDeviceService\x12n\n\x11DeviceAgentConfig\x12+.viam.app.agent.v1.DeviceAgentConfigRequest\x1a,.viam.app.agent.v1.DeviceAgentConfigResponseB\x1eZ\x1cgo.viam.com/api/app/agent/v1b\x06proto3')
10+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
11+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.agent.v1.agent_pb2', globals())
12+
if _descriptor._USE_C_DESCRIPTORS == False:
13+
DESCRIPTOR._options = None
14+
DESCRIPTOR._serialized_options = b'Z\x1cgo.viam.com/api/app/agent/v1'
15+
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._options = None
16+
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_options = b'8\x01'
17+
_APPAGENTCONFIG.fields_by_name['subsystem_configs']._options = None
18+
_APPAGENTCONFIG.fields_by_name['subsystem_configs']._serialized_options = b'\x9a\x84\x9e\x031bson:"subsystem_configs" json:"subsystem_configs"'
19+
_APPSUBSYSTEMCONFIG.fields_by_name['release_channel']._options = None
20+
_APPSUBSYSTEMCONFIG.fields_by_name['release_channel']._serialized_options = b'\x9a\x84\x9e\x03-bson:"release_channel" json:"release_channel"'
21+
_APPSUBSYSTEMCONFIG.fields_by_name['pin_version']._options = None
22+
_APPSUBSYSTEMCONFIG.fields_by_name['pin_version']._serialized_options = b'\x9a\x84\x9e\x03%bson:"pin_version" json:"pin_version"'
23+
_APPSUBSYSTEMCONFIG.fields_by_name['pin_url']._options = None
24+
_APPSUBSYSTEMCONFIG.fields_by_name['pin_url']._serialized_options = b'\x9a\x84\x9e\x03\x1dbson:"pin_url" json:"pin_url"'
25+
_APPSUBSYSTEMCONFIG.fields_by_name['disable_subsystem']._options = None
26+
_APPSUBSYSTEMCONFIG.fields_by_name['disable_subsystem']._serialized_options = b'\x9a\x84\x9e\x031bson:"disable_subsystem" json:"disable_subsystem"'
27+
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._options = None
28+
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_options = b'8\x01'
29+
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._options = None
30+
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_options = b'8\x01'
31+
_PACKAGEFORMAT._serialized_start = 2127
32+
_PACKAGEFORMAT._serialized_end = 2286
33+
_GETAGENTCONFIGREQUEST._serialized_start = 103
34+
_GETAGENTCONFIGREQUEST._serialized_end = 142
35+
_GETAGENTCONFIGRESPONSE._serialized_start = 144
36+
_GETAGENTCONFIGRESPONSE._serialized_end = 238
37+
_UPDATEAGENTCONFIGREQUEST._serialized_start = 240
38+
_UPDATEAGENTCONFIGREQUEST._serialized_end = 352
39+
_UPDATEAGENTCONFIGRESPONSE._serialized_start = 354
40+
_UPDATEAGENTCONFIGRESPONSE._serialized_end = 451
41+
_APPAGENTCONFIG._serialized_start = 454
42+
_APPAGENTCONFIG._serialized_end = 737
43+
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_start = 631
44+
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_end = 737
45+
_APPSUBSYSTEMCONFIG._serialized_start = 740
46+
_APPSUBSYSTEMCONFIG._serialized_end = 1092
47+
_DEVICEAGENTCONFIGREQUEST._serialized_start = 1095
48+
_DEVICEAGENTCONFIGREQUEST._serialized_end = 1380
49+
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_start = 1312
50+
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_end = 1380
51+
_DEVICEAGENTCONFIGRESPONSE._serialized_start = 1383
52+
_DEVICEAGENTCONFIGRESPONSE._serialized_end = 1700
53+
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_start = 1591
54+
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_end = 1700
55+
_DEVICESUBSYSTEMCONFIG._serialized_start = 1703
56+
_DEVICESUBSYSTEMCONFIG._serialized_end = 1862
57+
_HOSTINFO._serialized_start = 1864
58+
_HOSTINFO._serialized_end = 1946
59+
_SUBSYSTEMUPDATEINFO._serialized_start = 1949
60+
_SUBSYSTEMUPDATEINFO._serialized_end = 2124
61+
_AGENTAPPSERVICE._serialized_start = 2289
62+
_AGENTAPPSERVICE._serialized_end = 2521
63+
_AGENTDEVICESERVICE._serialized_start = 2524
64+
_AGENTDEVICESERVICE._serialized_end = 2656

0 commit comments

Comments
 (0)