Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
sot-talos-balance
Commits
37241cd3
Commit
37241cd3
authored
Dec 09, 2019
by
Gabriele Buondonno
Browse files
Revert "[Tests] fix absolute path"
This reverts commit
4aac9726
.
parent
435bd507
Changes
2
Hide whitespace changes
Inline
Side-by-side
unittest/test-paths.h.cmake
View file @
37241cd3
...
...
@@ -10,6 +10,5 @@
#ifndef TEST_PATHS_H
#define PLUGIN_LIB_INSTALL_PATH "${SOT_PLUGIN_OUT_DIR}"
#define TALOS_DATA_MODEL_DIR "${TALOS_DATA_PREFIX}/share/talos_data/"
#endif
unittest/test_distribute.cpp
View file @
37241cd3
...
...
@@ -9,8 +9,6 @@
#include <boost/test/unit_test.hpp>
#include "test-paths.h"
using
namespace
dynamicgraph
::
sot
;
using
namespace
dynamicgraph
::
sot
::
talos_balance
;
...
...
@@ -36,7 +34,12 @@ BOOST_AUTO_TEST_CASE ( test_distribute )
std
::
cout
<<
"q: "
<<
q
.
transpose
()
<<
std
::
endl
;
std
::
string
urdfPath
=
TALOS_DATA_MODEL_DIR
"urdf/talos_reduced.urdf"
;
//from rospkg import RosPack
//rospack = RosPack()
//urdfPath = rospack.get_path('talos_data')+"/urdf/talos_reduced.urdf"
//urdfDir = [rospack.get_path('talos_data')+"/../"]
std
::
string
urdfPath
=
"/opt/openrobots/share/talos_data/urdf/talos_reduced.urdf"
;
pinocchio
::
Model
model
;
pinocchio
::
urdf
::
buildModel
(
urdfPath
,
pinocchio
::
JointModelFreeFlyer
(),
model
);
...
...
@@ -314,3 +317,4 @@ BOOST_AUTO_TEST_CASE ( test_distribute )
}
BOOST_AUTO_TEST_SUITE_END
()
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