RSDK-13120: update protos#1072
Conversation
…cfa103640573882f4ce6fd4f4ab80
|
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
stuqdog
left a comment
There was a problem hiding this comment.
broad strokes look good to me though I think we do need just a little bit of cleanup before this gets merged!
src/viam/components/gantry/gantry.py
Outdated
| KinematicsReturn = Union[ | ||
| Tuple[KinematicsFileFormat.ValueType, bytes], | ||
| Tuple[KinematicsFileFormat.ValueType, bytes, Mapping[str, Mesh]], | ||
| ] |
There was a problem hiding this comment.
A duplicate type is defined in arm.py. Is there any chance of these diverging in the future? If not, might be good to define this type in a common area.
src/viam/components/arm/client.py
Outdated
| async def get_kinematics( | ||
| self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs | ||
| ) -> Tuple[KinematicsFileFormat.ValueType, bytes]: | ||
| ) -> Tuple[KinematicsFileFormat.ValueType, bytes, Mapping[str, Mesh]]: |
There was a problem hiding this comment.
This return type is inconsistent with what we define in arm.py
src/viam/components/gantry/client.py
Outdated
| async def get_kinematics( | ||
| self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs | ||
| ) -> Tuple[KinematicsFileFormat.ValueType, bytes]: | ||
| ) -> Tuple[KinematicsFileFormat.ValueType, bytes, Mapping[str, Mesh]]: |
There was a problem hiding this comment.
this return type is inconsistent with what we define in gantry.py
| KinematicsReturn = Union[ | ||
| Tuple[KinematicsFileFormat.ValueType, bytes], | ||
| Tuple[KinematicsFileFormat.ValueType, bytes, Mapping[str, Mesh]], | ||
| ] | ||
|
|
There was a problem hiding this comment.
see above re: potentially sharing the KinematicsReturn type.
| timeout: Optional[float] = None, | ||
| **kwargs, | ||
| ) -> Tuple[KinematicsFileFormat.ValueType, bytes]: | ||
| ) -> Tuple[KinematicsFileFormat.ValueType, bytes, Mapping[str, Mesh]]: |
There was a problem hiding this comment.
this return type is inconsistent with gripper.py
this pr fixes this PR #1068