Skip to content

Commit

Permalink
Fix backslashes in arkitscene rigid transformation path (#1938)
Browse files Browse the repository at this point in the history
* Fix backslashes in arkitscene rigid transformation path
Should be fixed properly by #1937

* Use PosixPath instead of .replace("\\", "/")

---------

Co-authored-by: Nikolaus West <niko@rerun.io>
  • Loading branch information
2 people authored and teh-cmc committed Apr 20, 2023
1 parent 45c11bc commit 71a882b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/python/arkitscenes/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import argparse
import json
import os
from pathlib import Path
from pathlib import Path, PosixPath
from typing import Any, Dict, List, Tuple

import cv2
Expand Down Expand Up @@ -251,7 +251,7 @@ def log_camera(

rr.log_rigid3(
# pathlib makes it easy to get the parent, but log_rigid requires a string
str(Path(entity_id).parent),
str(PosixPath(entity_id).parent),
child_from_parent=camera_from_world,
xyz="RDF", # X=Right, Y=Down, Z=Forward
)
Expand Down

0 comments on commit 71a882b

Please sign in to comment.