-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Log different transforms.""" | ||
|
||
import rerun as rr | ||
|
||
rr.init("rerun_example_transform3d_axes", spawn=True) | ||
|
||
# Make the base axes longer | ||
# Log all axes markers as static first | ||
rr.log("base", rr.Axes3D(length=1), static=True) | ||
rr.log("base/rotated", rr.Axes3D(length=0.5), static=True) | ||
rr.log("base/rotated/translated", rr.Axes3D(length=0.5), static=True) | ||
|
||
# Now sweep out a rotation relative to the base | ||
for deg in range(360): | ||
rr.set_time_sequence("step", deg) | ||
rr.log( | ||
"base/rotated", | ||
rr.Transform3D( | ||
rotation=rr.RotationAxisAngle( | ||
axis=[1.0, 1.0, 1.0], | ||
degrees=deg, | ||
) | ||
), | ||
) | ||
rr.log( | ||
"base/rotated/translated", | ||
rr.Transform3D( | ||
translation=[2.0, 0, 0], | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.