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
talos_integration_tests
Commits
e22d197d
Commit
e22d197d
authored
May 11, 2020
by
Guilhem Saurel
Committed by
olivier stasse
May 11, 2020
Browse files
[Python] fix paths for applis
I don't even understand this `/lib/`
parent
bbfcef5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/test_kine.py
View file @
e22d197d
...
...
@@ -3,6 +3,7 @@ import sys
import
rospy
import
rospkg
import
time
from
os.path
import
abspath
,
dirname
,
join
from
std_srvs.srv
import
*
...
...
@@ -47,8 +48,7 @@ def runTest():
# get the file path for rospy_tutorials
lpath
=
rospack
.
get_path
(
PKG_NAME
)
print
(
lpath
)
initCode
=
open
(
lpath
+
'/../../lib/'
+
PKG_NAME
+
'/appli.py'
,
\
"r"
).
read
().
split
(
"
\n
"
)
initCode
=
open
(
join
(
dirname
(
abspath
(
__file__
)),
'appli.py'
),
"r"
).
read
().
split
(
"
\n
"
)
rospy
.
loginfo
(
"Stack of Tasks launched"
)
...
...
scripts/test_sot_talos_balance.py
View file @
e22d197d
...
...
@@ -5,6 +5,7 @@ import rospkg
import
time
import
unittest
import
math
from
os.path
import
abspath
,
dirname
,
join
from
std_srvs.srv
import
*
from
dynamic_graph_bridge_msgs.srv
import
*
...
...
@@ -23,8 +24,7 @@ rospack = rospkg.RosPack()
# get the file path for rospy_tutorials
lpath
=
rospack
.
get_path
(
PKG_NAME
)
print
(
lpath
)
appli_file_name
=
lpath
+
'/../../lib/'
+
PKG_NAME
+
\
'/appli_dcmZmpControl_file.py'
appli_file_name
=
join
(
dirname
(
abspath
(
__file__
)),
'appli_dcmZmpControl_file.py'
)
time
.
sleep
(
2
)
rospy
.
loginfo
(
"Stack of Tasks launched"
)
...
...
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