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

PGO: Rotation/translation swapped in relative pose noise #482

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
PGO: Rotation/translation swapped in relative pose noise
  • Loading branch information
suddhu committed Mar 14, 2023
commit ffcabb42bd50791d4c1c02a5f9730f822367e386
12 changes: 6 additions & 6 deletions theseus/utils/examples/pose_graph/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def generate_synthetic_3D(
noise_relative_pose = th.SE3.exp_map(
torch.cat(
[
rotation_noise
* (2 * torch.rand(dataset_size, 3, dtype=dtype) - 1),
translation_noise
* (2.0 * torch.rand(dataset_size, 3, dtype=dtype) - 1),
rotation_noise
* (2.0 * torch.rand(dataset_size, 3, dtype=dtype) - 1),
],
dim=1,
)
Expand Down Expand Up @@ -322,9 +322,9 @@ def generate_synthetic_3D(
noise_relative_pose = th.SE3.exp_map(
torch.cat(
[
rotation_noise
* (2 * torch.rand(1, 3, dtype=dtype) - 1),
translation_noise
* (2 * torch.rand(1, 3, dtype=dtype) - 1),
rotation_noise
* (2.0 * torch.rand(1, 3, dtype=dtype) - 1),
],
dim=1,
Expand Down Expand Up @@ -354,8 +354,8 @@ def generate_synthetic_3D(
noise_pose = th.SE3.exp_map(
torch.cat(
[
rotation_noise * (2 * torch.rand(1, 3, dtype=dtype) - 1),
translation_noise * (2.0 * torch.rand(1, 3, dtype=dtype) - 1),
translation_noise * (2 * torch.rand(1, 3, dtype=dtype) - 1),
rotation_noise * (2.0 * torch.rand(1, 3, dtype=dtype) - 1),
],
dim=1,
)
Expand Down