Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
lietorch
Commits
d92aa0a1
Commit
d92aa0a1
authored
Mar 22, 2021
by
zachteed
Browse files
pgo fix
parent
a1580fe0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pgo/main.py
examples/pgo/main.py
+1
-1
No files found.
examples/pgo/main.py
View file @
d92aa0a1
...
@@ -66,7 +66,7 @@ def write_g2o(pose_graph, fn):
...
@@ -66,7 +66,7 @@ def write_g2o(pose_graph, fn):
def
reshaping_fn
(
dE
,
b
=
1.5
):
def
reshaping_fn
(
dE
,
b
=
1.5
):
""" Reshaping function from "Intrinsic consensus on SO(3), Tron et al."""
""" Reshaping function from "Intrinsic consensus on SO(3), Tron et al."""
ang
=
dE
.
log
.
norm
(
dim
=-
1
)
ang
=
dE
.
log
()
.
norm
(
dim
=-
1
)
err
=
1
/
b
-
(
1
/
b
+
ang
)
*
torch
.
exp
(
-
b
*
ang
)
err
=
1
/
b
-
(
1
/
b
+
ang
)
*
torch
.
exp
(
-
b
*
ang
)
return
err
.
sum
()
return
err
.
sum
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment