Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visible time range doesn't work properly when a object is shown in different coordinate frames #6294

Closed
nnop opened this issue May 13, 2024 · 1 comment
Labels
🪳 bug Something isn't working 🐑🐑 duplicate This issue or pull request already exists

Comments

@nnop
Copy link

nnop commented May 13, 2024

Describe the bug
I want to see a object position history in the world frame. I'm showing it at each step in its local frame.
When I turn on the visible time range to show the whole history, only the last one is shown.

To Reproduce
Steps to reproduce the behavior:

  1. run the following test code
import numpy as np
from scipy.spatial.transform import Rotation
import rerun as rr


def random_pose():
    angle = np.random.random() * np.pi
    T = np.eye(4)
    T[:3, :3] = Rotation.from_euler('z', angle).as_matrix()
    T[:3, 3] = np.random.random(3)
    return T

def main():
    rr.init('test', spawn=True)

    center = np.ones(3)
    half_size = np.ones(3)
    step = 0

    # step = 0
    rr.set_time_sequence('step', 0)
    T = random_pose()
    rr.log('bbox', rr.Transform3D(mat3x3=T[:3, :3], translation=T[:3, 3]))  # change local coordinate frame
    rr.log('bbox', rr.Boxes3D(centers=center, half_sizes=half_size))

    # step = 1
    rr.set_time_sequence('step', 1)
    T = random_pose()
    rr.log('bbox', rr.Transform3D(mat3x3=T[:3, :3], translation=T[:3, 3]))   # change local coordinate frame
    rr.log('bbox', rr.Boxes3D(centers=center, half_sizes=half_size))

if __name__ == "__main__":
    main()
  1. change visible time range to show all history
    image

Expected behavior
I thought there should be 2 bboxes shown in the world frame at step 1. But only the last one is shown.
Is this what ReRun intendted?

Screenshots
step 0
image
step 1
image

Desktop (please complete the following information):

Ubuntu 20.04 x86_64

Rerun version

rerun_py 0.15.0 [rustc 1.74.0 (79e9716c9 2023-11-13), LLVM 17.0.4] x86_64-unknown-linux-gnu release-0.15.0 bc8bcd0, built 2024-04-09T14:34:04Z

@nnop nnop added 👀 needs triage This issue needs to be triaged by the Rerun team 🪳 bug Something isn't working labels May 13, 2024
@Wumpf
Copy link
Member

Wumpf commented May 13, 2024

Thanks for the detailed bug report & repro case, but unfortunately this is a duplicate:

Btw. you don't have to log the box a second time with the same sizes & coordinates

@Wumpf Wumpf closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@Wumpf Wumpf added 🐑🐑 duplicate This issue or pull request already exists and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🐑🐑 duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants