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
dlib
Commits
7c8ca225
Commit
7c8ca225
authored
Nov 14, 2021
by
Davis King
Browse files
minor cleanup
parent
a77b361f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tools/python/src/other.cpp
tools/python/src/other.cpp
+5
-5
No files found.
tools/python/src/other.cpp
View file @
7c8ca225
...
...
@@ -310,16 +310,16 @@ ensures \n\
up" to the new position. )asdf"
)
.
def
(
py
::
init
<
double
,
double
,
double
>
(),
py
::
arg
(
"measurement_noise"
),
py
::
arg
(
"typical_acceleration"
),
py
::
arg
(
"max_measurement_deviation"
))
.
def
(
"measurement_noise"
,
[](
const
momentum_filter
&
a
){
return
a
.
get_measurement_noise
();}
)
.
def
(
"typical_acceleration"
,
[](
const
momentum_filter
&
a
){
return
a
.
get_typical_acceleration
();}
)
.
def
(
"max_measurement_deviation"
,
[](
const
momentum_filter
&
a
){
return
a
.
get_max_measurement_deviation
();}
)
.
def
(
"__call__"
,
[](
momentum_filter
&
f
,
const
double
r
){
return
f
(
r
);
}
)
.
def
(
"measurement_noise"
,
&
type
::
get_measurement_noise
)
.
def
(
"typical_acceleration"
,
&
type
::
get_typical_acceleration
)
.
def
(
"max_measurement_deviation"
,
&
type
::
get_max_measurement_deviation
)
.
def
(
"__call__"
,
&
type
::
operator
()
)
.
def
(
"__repr__"
,
print_momentum_filter
)
.
def
(
py
::
pickle
(
&
getstate
<
type
>
,
&
setstate
<
type
>
));
}
m
.
def
(
"find_optimal_momentum_filter"
,
[](
const
py
::
object
sequence
,
const
double
smoothness
)
{
[](
const
py
::
object
sequence
,
const
double
smoothness
)
{
return
find_optimal_momentum_filter
(
python_list_to_vector
<
double
>
(
sequence
),
smoothness
);
},
py
::
arg
(
"sequence"
),
...
...
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