Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/viam/gen/app/v1/robot_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from ... import common
import google.protobuf.duration_pb2
import google.protobuf.struct_pb2
from ... import robot
from ... import tagger
from ... import app

Expand Down
209 changes: 106 additions & 103 deletions src/viam/gen/app/v1/robot_pb2.py

Large diffs are not rendered by default.

63 changes: 60 additions & 3 deletions src/viam/gen/app/v1/robot_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ from google.protobuf import message as _message
from google.protobuf import struct_pb2 as _struct_pb2
from google.protobuf.internal import containers as _containers
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
from robot.v1 import robot_pb2 as _robot_pb2
import builtins as _builtins
import sys
import typing as _typing
Expand Down Expand Up @@ -1171,6 +1172,9 @@ class AgentInfo(_message.Message):
GIT_REVISION_FIELD_NUMBER: _builtins.int
PLATFORM_FIELD_NUMBER: _builtins.int
PLATFORM_TAGS_FIELD_NUMBER: _builtins.int
MODULE_VERSIONS_FIELD_NUMBER: _builtins.int
VIAM_SERVER_UPTIME_FIELD_NUMBER: _builtins.int
RECONFIGURE_BLOCKED_FIELD_NUMBER: _builtins.int
host: _builtins.str
os: _builtins.str
'Will soon be deprecated, use platform instead'
Expand All @@ -1179,6 +1183,8 @@ class AgentInfo(_message.Message):
git_revision: _builtins.str
platform: _builtins.str
'The platform the RDK is running on. For example linux/amd64'
reconfigure_blocked: _builtins.bool
'true while a pending reconfigure is being held back by the maintenance sensor;\n false once that reconfigure is applied (or when nothing is pending)\n '

@_builtins.property
def ips(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
Expand All @@ -1188,13 +1194,23 @@ class AgentInfo(_message.Message):
def platform_tags(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
"""Optional tags to further constrain which artifact is returned for modules."""

def __init__(self, *, host: _builtins.str=..., os: _builtins.str=..., ips: _abc.Iterable[_builtins.str] | None=..., version: _builtins.str=..., git_revision: _builtins.str=..., platform: _builtins.str | None=..., platform_tags: _abc.Iterable[_builtins.str] | None=...) -> None:
@_builtins.property
def module_versions(self) -> _containers.RepeatedCompositeFieldContainer[Global___ModuleVersionInfo]:
"""modules in the applied config (registry and local) with their running version and status"""

@_builtins.property
def viam_server_uptime(self) -> _duration_pb2.Duration:
"""how long this viam-server process has been running, measured with a monotonic clock;
app anchors it to the time the request is received
"""

def __init__(self, *, host: _builtins.str=..., os: _builtins.str=..., ips: _abc.Iterable[_builtins.str] | None=..., version: _builtins.str=..., git_revision: _builtins.str=..., platform: _builtins.str | None=..., platform_tags: _abc.Iterable[_builtins.str] | None=..., module_versions: _abc.Iterable[Global___ModuleVersionInfo] | None=..., viam_server_uptime: _duration_pb2.Duration | None=..., reconfigure_blocked: _builtins.bool=...) -> None:
...
_HasFieldArgType: _TypeAlias = _typing.Literal['_platform', b'_platform', 'platform', b'platform']
_HasFieldArgType: _TypeAlias = _typing.Literal['_platform', b'_platform', 'platform', b'platform', 'viam_server_uptime', b'viam_server_uptime']

def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool:
...
_ClearFieldArgType: _TypeAlias = _typing.Literal['_platform', b'_platform', 'git_revision', b'git_revision', 'host', b'host', 'ips', b'ips', 'os', b'os', 'platform', b'platform', 'platform_tags', b'platform_tags', 'version', b'version']
_ClearFieldArgType: _TypeAlias = _typing.Literal['_platform', b'_platform', 'git_revision', b'git_revision', 'host', b'host', 'ips', b'ips', 'module_versions', b'module_versions', 'os', b'os', 'platform', b'platform', 'platform_tags', b'platform_tags', 'reconfigure_blocked', b'reconfigure_blocked', 'version', b'version', 'viam_server_uptime', b'viam_server_uptime']

def ClearField(self, field_name: _ClearFieldArgType) -> None:
...
Expand All @@ -1205,6 +1221,47 @@ class AgentInfo(_message.Message):
...
Global___AgentInfo: _TypeAlias = AgentInfo

@_typing.final
class ModuleVersionInfo(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
MODULE_ID_FIELD_NUMBER: _builtins.int
MODULE_NAME_FIELD_NUMBER: _builtins.int
RUNNING_VERSION_FIELD_NUMBER: _builtins.int
RUNNING_FOR_FIELD_NUMBER: _builtins.int
STATE_FIELD_NUMBER: _builtins.int
CONSECUTIVE_FAILURES_FIELD_NUMBER: _builtins.int
READY_COUNT_FIELD_NUMBER: _builtins.int
module_id: _builtins.str
'registry module ID, e.g. "viam:realsense" (empty for local modules)'
module_name: _builtins.str
'module name from the machine config; unique within the part'
running_version: _builtins.str
'version currently running ("local" for local modules; empty if not running or unknown)'
state: _robot_pb2.ModuleStatus.State.ValueType
'current lifecycle state of the module process'
consecutive_failures: _builtins.int
'failures since the module was last ready'
ready_count: _builtins.int
'times the module has become ready since viam-server started, including the first start;\n only goes up, and resets when viam-server restarts\n '

@_builtins.property
def running_for(self) -> _duration_pb2.Duration:
"""how long the running version has been ready, measured with a monotonic clock; app anchors it
to the time the request is received (unset if not running)
"""

def __init__(self, *, module_id: _builtins.str=..., module_name: _builtins.str=..., running_version: _builtins.str=..., running_for: _duration_pb2.Duration | None=..., state: _robot_pb2.ModuleStatus.State.ValueType=..., consecutive_failures: _builtins.int=..., ready_count: _builtins.int=...) -> None:
...
_HasFieldArgType: _TypeAlias = _typing.Literal['running_for', b'running_for']

def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool:
...
_ClearFieldArgType: _TypeAlias = _typing.Literal['consecutive_failures', b'consecutive_failures', 'module_id', b'module_id', 'module_name', b'module_name', 'ready_count', b'ready_count', 'running_for', b'running_for', 'running_version', b'running_version', 'state', b'state']

def ClearField(self, field_name: _ClearFieldArgType) -> None:
...
Global___ModuleVersionInfo: _TypeAlias = ModuleVersionInfo

@_typing.final
class ConfigRequest(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
Expand Down
184 changes: 93 additions & 91 deletions src/viam/gen/common/v1/common_pb2.py

Large diffs are not rendered by default.

33 changes: 29 additions & 4 deletions src/viam/gen/common/v1/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,26 @@ class Capsule(_message.Message):
...
Global___Capsule: _TypeAlias = Capsule

@_typing.final
class Cylinder(_message.Message):
"""Cylinder is a solid right circular cylinder, flat end caps included, whose axis is the local Z
axis of the geometry's center pose.
"""
DESCRIPTOR: _descriptor.Descriptor
RADIUS_MM_FIELD_NUMBER: _builtins.int
LENGTH_MM_FIELD_NUMBER: _builtins.int
radius_mm: _builtins.float
length_mm: _builtins.float
"Full end-to-end length along the cylinder's axis."

def __init__(self, *, radius_mm: _builtins.float=..., length_mm: _builtins.float=...) -> None:
...
_ClearFieldArgType: _TypeAlias = _typing.Literal['length_mm', b'length_mm', 'radius_mm', b'radius_mm']

def ClearField(self, field_name: _ClearFieldArgType) -> None:
...
Global___Cylinder: _TypeAlias = Cylinder

@_typing.final
class RectangularPrism(_message.Message):
"""RectangularPrism contains a Vector3 field corresponding to the X, Y, Z dimensions of the prism in mms
Expand Down Expand Up @@ -334,6 +354,7 @@ class Geometry(_message.Message):
CAPSULE_FIELD_NUMBER: _builtins.int
MESH_FIELD_NUMBER: _builtins.int
POINTCLOUD_FIELD_NUMBER: _builtins.int
CYLINDER_FIELD_NUMBER: _builtins.int
LABEL_FIELD_NUMBER: _builtins.int
label: _builtins.str
'Label of the geometry. If none supplied, will be an empty string.'
Expand Down Expand Up @@ -362,17 +383,21 @@ class Geometry(_message.Message):
def pointcloud(self) -> Global___PointCloud:
...

def __init__(self, *, center: Global___Pose | None=..., sphere: Global___Sphere | None=..., box: Global___RectangularPrism | None=..., capsule: Global___Capsule | None=..., mesh: Global___Mesh | None=..., pointcloud: Global___PointCloud | None=..., label: _builtins.str=...) -> None:
@_builtins.property
def cylinder(self) -> Global___Cylinder:
...

def __init__(self, *, center: Global___Pose | None=..., sphere: Global___Sphere | None=..., box: Global___RectangularPrism | None=..., capsule: Global___Capsule | None=..., mesh: Global___Mesh | None=..., pointcloud: Global___PointCloud | None=..., cylinder: Global___Cylinder | None=..., label: _builtins.str=...) -> None:
...
_HasFieldArgType: _TypeAlias = _typing.Literal['box', b'box', 'capsule', b'capsule', 'center', b'center', 'geometry_type', b'geometry_type', 'mesh', b'mesh', 'pointcloud', b'pointcloud', 'sphere', b'sphere']
_HasFieldArgType: _TypeAlias = _typing.Literal['box', b'box', 'capsule', b'capsule', 'center', b'center', 'cylinder', b'cylinder', 'geometry_type', b'geometry_type', 'mesh', b'mesh', 'pointcloud', b'pointcloud', 'sphere', b'sphere']

def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool:
...
_ClearFieldArgType: _TypeAlias = _typing.Literal['box', b'box', 'capsule', b'capsule', 'center', b'center', 'geometry_type', b'geometry_type', 'label', b'label', 'mesh', b'mesh', 'pointcloud', b'pointcloud', 'sphere', b'sphere']
_ClearFieldArgType: _TypeAlias = _typing.Literal['box', b'box', 'capsule', b'capsule', 'center', b'center', 'cylinder', b'cylinder', 'geometry_type', b'geometry_type', 'label', b'label', 'mesh', b'mesh', 'pointcloud', b'pointcloud', 'sphere', b'sphere']

def ClearField(self, field_name: _ClearFieldArgType) -> None:
...
_WhichOneofReturnType_geometry_type: _TypeAlias = _typing.Literal['sphere', 'box', 'capsule', 'mesh', 'pointcloud']
_WhichOneofReturnType_geometry_type: _TypeAlias = _typing.Literal['sphere', 'box', 'capsule', 'mesh', 'pointcloud', 'cylinder']
_WhichOneofArgType_geometry_type: _TypeAlias = _typing.Literal['geometry_type', b'geometry_type']

def WhichOneof(self, oneof_group: _WhichOneofArgType_geometry_type) -> _WhichOneofReturnType_geometry_type | None:
Expand Down
2 changes: 2 additions & 0 deletions src/viam/proto/app/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
LogResponse,
MaintenanceConfig,
ModuleConfig,
ModuleVersionInfo,
NeedsRestartRequest,
NeedsRestartResponse,
NetworkConfig,
Expand Down Expand Up @@ -75,6 +76,7 @@
"LogResponse",
"MaintenanceConfig",
"ModuleConfig",
"ModuleVersionInfo",
"NeedsRestartRequest",
"NeedsRestartResponse",
"NetworkConfig",
Expand Down
2 changes: 2 additions & 0 deletions src/viam/proto/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
AudioInfo,
AxisAngles,
Capsule,
Cylinder,
DoCommandRequest,
DoCommandResponse,
EulerAngles,
Expand Down Expand Up @@ -61,6 +62,7 @@
"AudioInfo",
"AxisAngles",
"Capsule",
"Cylinder",
"DoCommandRequest",
"DoCommandResponse",
"EulerAngles",
Expand Down
2 changes: 1 addition & 1 deletion src/viam/version_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.85.2"

API_VERSION = "v0.1.607"
API_VERSION = "v0.1.609"
SDK_VERSION = __version__