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
Stack Of Tasks
sot-talos
Commits
f5b28288
Commit
f5b28288
authored
Jan 24, 2019
by
Olivier Stasse
Browse files
Fix the translation from URDF to SoT device force sensors.
parent
1fe46902
Pipeline
#2265
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/sot-talos-device.cpp
View file @
f5b28288
...
...
@@ -114,6 +114,7 @@ SoTTalosDevice::~SoTTalosDevice()
void
SoTTalosDevice
::
setSensorsForce
(
map
<
string
,
dgsot
::
SensorValues
>
&
SensorsIn
,
int
t
)
{
int
map_sot_2_urdf
[
4
]
=
{
2
,
0
,
3
,
1
};
sotDEBUGIN
(
15
);
map
<
string
,
dgsot
::
SensorValues
>::
iterator
it
;
it
=
SensorsIn
.
find
(
"forces"
);
...
...
@@ -125,9 +126,10 @@ void SoTTalosDevice::setSensorsForce(map<string,dgsot::SensorValues> &SensorsIn,
for
(
int
i
=
0
;
i
<
4
;
++
i
)
{
sotDEBUG
(
15
)
<<
"Force sensor "
<<
i
<<
std
::
endl
;
int
idx_sensor
=
map_sot_2_urdf
[
i
];
for
(
int
j
=
0
;
j
<
6
;
++
j
)
{
dgforces_
(
j
)
=
forcesIn
[
i
*
6
+
j
];
dgforces_
(
j
)
=
forcesIn
[
i
dx_sensor
*
6
+
j
];
sotDEBUG
(
15
)
<<
"Force value "
<<
j
<<
":"
<<
dgforces_
(
j
)
<<
std
::
endl
;
}
forcesSOUT
[
i
]
->
setConstant
(
dgforces_
);
...
...
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