Skip to content

Commit de2b9ab

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: bb5de47a307114b792aa7645936afde6bfc40e09
1 parent fba3893 commit de2b9ab

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/viam/components/arm/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import asyncio
22

33
from viam.proto.common import Pose
4-
from viam.proto.component.arm import Status as ArmStatus, JointPositions
4+
from viam.proto.component.arm import JointPositions
5+
from viam.proto.component.arm import Status as ArmStatus
56
from viam.proto.robot import Status
67
from viam.resource.registry import Registry, ResourceRegistration
78
from viam.utils import message_to_struct
@@ -18,7 +19,11 @@
1819

1920

2021
async def create_status(component: Arm) -> Status:
21-
(end_position, joint_positions, is_moving,) = await asyncio.gather(
22+
(
23+
end_position,
24+
joint_positions,
25+
is_moving,
26+
) = await asyncio.gather(
2227
component.get_end_position(),
2328
component.get_joint_positions(),
2429
component.is_moving(),

src/viam/components/arm/arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from viam.resource.types import RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, Subtype
55

66
from ..component_base import ComponentBase
7-
from . import Pose, JointPositions
7+
from . import JointPositions, Pose
88

99

1010
class Arm(ComponentBase):

src/viam/components/movement_sensor/movement_sensor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
import asyncio
33
from dataclasses import dataclass
44
from typing import Any, Dict, Final, List, Mapping, Optional, Tuple
5-
from typing_extensions import Self
65

76
from grpclib import GRPCError
7+
from typing_extensions import Self
88

99
from viam.errors import MethodNotImplementedError, NotSupportedError
10-
1110
from viam.proto.component.movementsensor import GetPropertiesResponse
1211
from viam.resource.types import RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, Subtype
1312

src/viam/gen/service/slam/v1/slam_pb2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class GetPointCloudMapResponse(google.protobuf.message.Message):
7474
DESCRIPTOR: google.protobuf.descriptor.Descriptor
7575
POINT_CLOUD_PCD_CHUNK_FIELD_NUMBER: builtins.int
7676
point_cloud_pcd_chunk: builtins.bytes
77-
'One chunk of the PointCloud.\n For a given GetPointCloudMap request, concatenating all\n GetPointCloudMapResponse.point_cloud_pcd_chunk values in the\n order received result in the complete pointcloud in standard PCD\n format.\n\n Read more about the pointcloud format here:\n https://pointclouds.org/documentation/tutorials/pcd_file_format.html\n\n Viam expects pointcloud data with fields "x y z" or "x y z rgb", and for\n this to be specified in the pointcloud header in the FIELDS entry. If color\n data is included in the pointcloud, Viam\'s services assume that the color\n value encodes a confidence score for that data point. Viam expects the\n confidence score to be encoded in the blue parameter of the RGB value, on a\n scale from 1-100.\n '
77+
'One chunk of the PointCloud.\n For a given GetPointCloudMap request, concatenating all\n GetPointCloudMapResponse.point_cloud_pcd_chunk values in the\n order received result in the complete pointcloud in standard PCD\n format where XY is the ground plane and positive Z is up, following\n the Right Hand Rule.\n\n Read more about the pointcloud format here:\n https://pointclouds.org/documentation/tutorials/pcd_file_format.html\n\n Viam expects pointcloud data with fields "x y z" or "x y z rgb", and for\n this to be specified in the pointcloud header in the FIELDS entry. If color\n data is included in the pointcloud, Viam\'s services assume that the color\n value encodes a confidence score for that data point. Viam expects the\n confidence score to be encoded in the blue parameter of the RGB value, on a\n scale from 1-100.\n '
7878

7979
def __init__(self, *, point_cloud_pcd_chunk: builtins.bytes=...) -> None:
8080
...

0 commit comments

Comments
 (0)