Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
ndcurves
Commits
9485a479
Commit
9485a479
authored
Oct 19, 2020
by
Pierre Fernbach
Browse files
[Python] add default constructor to curve_constraints API
parent
20c3cfb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/curves/curves_python.cpp
View file @
9485a479
...
...
@@ -998,7 +998,8 @@ BOOST_PYTHON_MODULE(curves) {
/** END cubic_hermite_spline **/
/** BEGIN curve constraints**/
class_
<
curve_constraints_t
>
(
"curve_constraints"
,
init
<
int
>
())
class_
<
curve_constraints_t
>
(
"curve_constraints"
,
init
<>
())
.
def
(
bp
::
init
<
int
>
(
bp
::
arg
(
"dimension"
),
"Init with a given dimension."
))
.
add_property
(
"init_vel"
,
&
get_init_vel
,
&
set_init_vel
)
.
add_property
(
"init_acc"
,
&
get_init_acc
,
&
set_init_acc
)
.
add_property
(
"init_jerk"
,
&
get_init_jerk
,
&
set_init_jerk
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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