Skip to content

Commit b523da5

Browse files
committed
missed Pose3 data class defs
1 parent 548af21 commit b523da5

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212
)
1313

14-
_version = "0.5.0"
14+
_version = "0.5.1"
1515

1616
setup(
1717
name="navabilitysdk",

src/navability/entities/factor/inferencetypes.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,23 @@ def dumps(self):
9696
# TODO: Deserializing this.
9797

9898

99+
@dataclass
100+
class PriorPose3(InferenceType):
101+
Z: Distribution
102+
103+
def __repr__(self):
104+
return f"<{self.__class__.__name__}(Z={str(self.Z)})>"
105+
106+
def dump(self):
107+
return ZSchema().dump(self)
108+
109+
def dumps(self):
110+
return ZSchema().dumps(self)
111+
112+
# TODO: Deserializing this.
113+
114+
115+
99116
"""
100117
Create a prior factor for a Point2 with a distribution Z representing (x,y) prior
101118
information, e.g. `FullNormal([0.0, 0.0.0], diag([0.01, 0.01]))`.
@@ -141,6 +158,22 @@ def dumps(self):
141158
# TODO: Deserializing this.
142159

143160

161+
@dataclass
162+
class Pose3Pose3(InferenceType):
163+
Z: Distribution
164+
165+
def __repr__(self):
166+
return f"<{self.__class__.__name__}(Z={str(self.Z)})>"
167+
168+
def dump(self):
169+
return ZSchema().dump(self)
170+
171+
def dumps(self):
172+
return ZSchema().dumps(self)
173+
174+
# TODO: Deserializing this.
175+
176+
144177
"""
145178
Create a Point2->Point2 range factor with a 1D distribution:
146179
- range: The range from the pose to the point.

0 commit comments

Comments
 (0)