We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c7373 commit cf115f6Copy full SHA for cf115f6
1 file changed
spatialmath/pose3d.py
@@ -1041,6 +1041,13 @@ def shape(self) -> Tuple[int, int]:
1041
"""
1042
return (4, 4)
1043
1044
+ @SO3.R.setter
1045
+ def R(self, r: SO3Array) -> None:
1046
+ if len(self) > 1:
1047
+ raise ValueError("can only assign rotation to length 1 object")
1048
+ so3 = SO3(r)
1049
+ self.A[:3, :3] = so3.R
1050
+
1051
@property
1052
def t(self) -> R3:
1053
0 commit comments