Skip to content

Commit 01a9e25

Browse files
authored
Merge pull request #105 from NavAbility/main
release v0.5.1-rc1
2 parents 953d5ae + 13da142 commit 01a9e25

File tree

6 files changed

+43
-4
lines changed

6 files changed

+43
-4
lines changed

docs/blobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ blobId = await addBlob(client, "testimage.png", imgblob)
7777
Remember to add at least one BlobEntry somewhere in your session so that you might find it again in the future, see `addBlobEntry` above.
7878

7979
:::{seealso}
80-
See [Tutorial 5 from ICRA 2022 for a more indepth example of working with data blobs](https://app.navability.io/get-started/tutorials/icra-5-marineexample).
80+
See [Tutorial 5 from ICRA 2022 for a more in-depth example of working with data blobs](sdkpynb:python/navability-sdk/icra-5-marineexample).
8181
:::
8282

8383
<!-- ```@docs

docs/nvatutorials.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ On the notebook pages, use the Rocket icon in the top right menu bar to launch a
1818
- [Tutorial 1: Creating and Solving Factor Graphs](sdkpynb:python/navability-sdk/icra-1-simple)
1919
- [Tutorial 2: Non-Gaussian Measurements](sdkpynb:python/navability-sdk/icra-2-nongaussian)
2020
- [Tutorial 3: Insufficient Data (3D Range-only)](sdkpynb:python/navability-sdk/icra-3-rangeonly)
21-
- [Tutorial 4: Leveraging (Contradictory) Prior Data](sdkpynb:python/navability-sdk/icra-4-contradictorydata)
21+
- [Tutorial 4: Leveraging (Contradictory) Prior Data](sdkpynb:python/navability-sdk/icra-4-contradictorydata)
22+
- [Tutorial 5: Marine Data: Entries and Blobs](sdkpynb:python/navability-sdk/icra-5-marineexample)

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/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
Pose2Point2BearingRange,
1919
Pose2Point2Range,
2020
Pose2Pose2,
21+
Pose3Pose3,
2122
Prior,
2223
PriorPoint2,
2324
PriorPose2,
25+
PriorPose3,
2426
)
2527
from .navabilityclient import (
2628
NavAbilityClient,

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.

src/navability/services/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,12 @@ def GraphVizApp(client, variableStartsWith=None):
5858
def MapVizApp(client, variableStartsWith=None):
5959
geometry_vis_link = f"https://app.navability.io/cloud/map/?userId={client.userId}&robotStartsWith={client.robotId}&sessionStartsWith={client.sessionId}" # noqa: E501, B950
6060
if variableStartsWith is None:
61+
# reset the filter
6162
geometry_vis_link = geometry_vis_link + "&variableStartsWith"
63+
else:
6264
if 0 < len(variableStartsWith):
63-
geometry_vis_link = geometry_vis_link + "=" + variableStartsWith
65+
# this defines a filter
66+
geometry_vis_link = geometry_vis_link + "&variableStartsWith=" + variableStartsWith
6467
print(geometry_vis_link)
6568
try:
6669
return md(

0 commit comments

Comments
 (0)