Skip to content

Commit ba7d89c

Browse files
generatedunixname2013818519498903meta-codesync[bot]
authored andcommitted
Migrate projectaria_tools to rerun-sdk 0.33
Reviewed By: PiotrBrzyski Differential Revision: D112778867 fbshipit-source-id: f1be56235304c5c3e4f38180596d58045316d3d8
1 parent c1a3ad6 commit ba7d89c

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

examples/Gen1/python_samples/SAM_eye_gaze_prompt/SAM_eye_prompt_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def main():
172172
# Iterate over the data and LOG data as we see fit
173173
for data in provider.deliver_queued_sensor_data(deliver_option):
174174
device_time_ns = data.get_time_ns(TimeDomain.DEVICE_TIME)
175-
rr.set_time_nanos("device_time", device_time_ns)
176-
rr.set_time_sequence("timestamp", device_time_ns)
175+
rr.set_time("device_time", duration=device_time_ns * 1e-9)
176+
rr.set_time("timestamp", sequence=device_time_ns)
177177
progress_bar.update(1)
178178
iteration += 1
179179

examples/Gen1/python_samples/mps_semidense_point_visibility/mps_semidense_point_visibility_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def display_tracks_and_points(
224224
#
225225
for data in tqdm(vrs_data_provider.deliver_queued_sensor_data(deliver_option)):
226226
device_time_ns = data.get_time_ns(TimeDomain.DEVICE_TIME)
227-
rr.set_time_nanos("device_time", device_time_ns)
227+
rr.set_time("device_time", duration=device_time_ns * 1e-9)
228228

229229
# Display device pose
230230
closed_loop_pose = mps_data_provider.get_closed_loop_pose(device_time_ns)

projectaria_tools/tools/aria_rerun_viewer/aria_data_plotter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,12 @@ def plot_vio_data(self, vio_data):
14361436
"world/device",
14371437
ToTransform3D(
14381438
T_World_Device,
1439-
axis_length=self.PLOT_COLORS_AND_SIZES_3D["vio"]["device_axis_length"],
1439+
),
1440+
)
1441+
rr.log(
1442+
"world/device",
1443+
rr.TransformAxes3D(
1444+
length=self.PLOT_COLORS_AND_SIZES_3D["vio"]["device_axis_length"]
14401445
),
14411446
)
14421447

projectaria_tools/utils/rerun_helpers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@
2525
#
2626
# Rerun helper functions
2727
#
28-
def ToTransform3D(
29-
pose: SE3, from_parent: bool = False, axis_length: float = 1e-2
30-
) -> rr.Transform3D:
28+
def ToTransform3D(pose: SE3, from_parent: bool = False) -> rr.Transform3D:
3129
"""
3230
Helper function to convert Sophus SE3D pose to a Rerun Transform3D
3331
"""
3432
quat_xyzw = np.roll(
3533
pose.rotation().to_quat()[0], -1
3634
) # change from w,x,y,z to x,y,z,w
3735
transform_3d = rr.Transform3D(
38-
axis_length=axis_length,
3936
translation=pose.translation()[0],
4037
rotation=rr.Quaternion(xyzw=quat_xyzw),
4138
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def main():
165165
"plotly",
166166
"requests",
167167
"rerun-notebook==0.26.2",
168-
"rerun-sdk==0.26.2",
168+
"rerun-sdk==0.33.0",
169169
"scipy",
170170
"tqdm",
171171
],

0 commit comments

Comments
 (0)