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
Stack Of Tasks
pinocchio
Commits
1dc540a3
Verified
Commit
1dc540a3
authored
Nov 20, 2020
by
Justin Carpentier
Browse files
test: use non deprecated function
parent
d8cc8f0b
Pipeline
#12362
passed with stage
in 246 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python_parser.cpp
View file @
1dc540a3
//
// Copyright (c) 2016-20
18
CNRS
// Copyright (c) 2016-20
20
CNRS
INRIA
//
#include
<iostream>
...
...
@@ -10,16 +10,16 @@
#include
<boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE
(
BOOST_TEST_MODULE
)
BOOST_AUTO_TEST_SUITE
(
BOOST_TEST_MODULE
)
BOOST_AUTO_TEST_CASE
(
buildModel
)
BOOST_AUTO_TEST_CASE
(
buildModel
)
{
std
::
string
filename
=
PINOCCHIO_MODEL_DIR
+
std
::
string
(
"/simple_model.py"
);
#ifndef NDEBUG
std
::
cout
<<
"Parse filename
\"
"
<<
filename
<<
"
\"
"
<<
std
::
endl
;
#endif
pinocchio
::
Model
model
=
pinocchio
::
python
::
buildModel
(
filename
,
"model"
,
false
);
pinocchio
::
Model
model
=
pinocchio
::
python
::
buildModel
(
filename
,
"model"
);
#ifndef NDEBUG
std
::
cout
<<
"This model has
\"
"
<<
model
.
nq
<<
"
\"
DoF"
<<
std
::
endl
;
#endif
...
...
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