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
loco-3d
sot-talos-balance
Commits
efc71c70
Commit
efc71c70
authored
Mar 30, 2020
by
Olivier Stasse
Browse files
[python] Avoid using np if not needed
parent
39d14be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sot_talos_balance/talos/parameter_server_conf.py
View file @
efc71c70
...
...
@@ -3,7 +3,6 @@
Created on Mon Feb 9 13:55:16 2015
@author: adelpret
"""
import
numpy
as
np
from
rospkg
import
RosPack
rospack
=
RosPack
()
...
...
@@ -83,9 +82,13 @@ mapJointLimits = {
31
:
[
-
1.308996939
,
1.308996939
]
}
vfMax
=
np
.
array
([
100.0
,
100.0
,
300.0
,
80.0
,
80.0
,
30.0
])
vfMin
=
-
vfMax
mapForceIdToForceLimits
=
{
0
:
[
vfMin
,
vfMax
],
1
:
[
vfMin
,
vfMax
],
2
:
[
vfMin
,
vfMax
],
3
:
[
vfMin
,
vfMax
]}
vfMax
=
[
100.0
,
100.0
,
300.0
,
80.0
,
80.0
,
30.0
]
vfMin
=
[
-
100.0
,
-
100.0
,
-
300.0
,
-
80.0
,
-
80.0
,
-
30.0
]
mapForceIdToForceLimits
=
{
0
:
[
vfMin
,
vfMax
],
1
:
[
vfMin
,
vfMax
],
2
:
[
vfMin
,
vfMax
],
3
:
[
vfMin
,
vfMax
]}
mapNameToForceId
=
{
"rf"
:
0
,
"lf"
:
1
,
"rh"
:
2
,
"lh"
:
3
}
...
...
@@ -96,5 +99,5 @@ footFrameNames = {"Right": "leg_right_6_joint", "Left": "leg_left_6_joint"}
rightFootSensorXYZ
=
(
0.0
,
0.0
,
-
0.085
)
rightFootSoleXYZ
=
(
0.0
,
0.0
,
-
0.105
)
urdftosot
=
(
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
)
urdftosot
=
(
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
\
19
,
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
)
Write
Preview
Supports
Markdown
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