diff --git a/README.md b/README.md index 518afc9..45edec8 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ animation.rerun() ``` ## From source -```conda install -c conda-forge ezc3d rerun-sdk=0.27.2 trimesh numpy biorbd pyomeca tk imageio imageio-ffmpeg trc-data-reader``` +```conda install -c conda-forge ezc3d rerun-sdk=0.30.2 trimesh numpy biorbd pyomeca tk imageio imageio-ffmpeg trc-data-reader``` if you want to use the OpenSim, you also need to install separately: diff --git a/environment.yml b/environment.yml index 7c66311..fede5cd 100644 --- a/environment.yml +++ b/environment.yml @@ -6,7 +6,7 @@ channels: dependencies: - ezc3d - trc-data-reader>=0.4.0 -- rerun-sdk=0.27.2 +- rerun-sdk=0.30.2 - numpy - matplotlib - biorbd>=1.10.5 diff --git a/pyorerun/model_components/ligaments.py b/pyorerun/model_components/ligaments.py index 41dce88..c0b00fe 100644 --- a/pyorerun/model_components/ligaments.py +++ b/pyorerun/model_components/ligaments.py @@ -168,8 +168,8 @@ def to_rerun(self, q: np.ndarray) -> None: rr.Transform3D( translation=homogenous_matrices[:3, 3], mat3x3=homogenous_matrices[:3, :3], - # axis_length=1, ), + rr.TransformAxes3D(1), ) rr.log( self.name, diff --git a/pyorerun/model_components/local_frame.py b/pyorerun/model_components/local_frame.py index ee5f38c..71d78c2 100644 --- a/pyorerun/model_components/local_frame.py +++ b/pyorerun/model_components/local_frame.py @@ -25,17 +25,18 @@ def nb_components(self): def initialize(self): rr.log( self.name, - rr.Transform3D( + rr.Transform3D.from_fields( translation=np.zeros(3), mat3x3=np.eye(3), - axis_length=1, ), + rr.TransformAxes3D(1), ) def to_rerun(self, q: np.ndarray) -> None: rr.log( self.name, self.to_component(q), + rr.TransformAxes3D(self.scale), ) def to_component(self, q: np.ndarray) -> rr.Transform3D: @@ -43,7 +44,6 @@ def to_component(self, q: np.ndarray) -> rr.Transform3D: return rr.Transform3D( translation=homogenous_matrices[:3, 3], mat3x3=homogenous_matrices[:3, :3], - axis_length=self.scale, ) def compute_all_transforms(self, q: np.ndarray) -> np.ndarray: diff --git a/pyorerun/model_components/mesh.py b/pyorerun/model_components/mesh.py index 84d4365..02d91ee 100644 --- a/pyorerun/model_components/mesh.py +++ b/pyorerun/model_components/mesh.py @@ -175,7 +175,7 @@ def to_chunk(self, q: np.ndarray) -> dict[str, list]: *rr.Transform3D.columns( translation=homogenous_matrices[:3, 3, :].T.tolist(), mat3x3=[homogenous_matrices[:3, :3, f] for f in range(homogenous_matrices.shape[2])], - axis_length=[LOCAL_FRAME_SCALE] * homogenous_matrices.shape[2], - ) + # axis_length=[LOCAL_FRAME_SCALE] * homogenous_matrices.shape[2], + ), ] } diff --git a/pyproject.toml b/pyproject.toml index 44452da..42d5e21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ dependencies = [ "ezc3d", # Now needed, but imported for our custom PyoMarkers.from_c3d() "numpy", - "rerun-sdk==0.27.2", + "rerun-sdk==0.30.2", "trimesh", "tk", "imageio", diff --git a/setup.py b/setup.py index 0b8bff0..8c194e5 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ install_requires=[ "ezc3d", # Not yet available on pypi, use `conda install -c conda-forge ezc3d` "numpy", - "rerun-sdk==0.27.2", + "rerun-sdk==0.30.2", "trimesh", "tk", "imageio",