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
roscontrol_sot
Commits
4026dd9a
Commit
4026dd9a
authored
Feb 20, 2019
by
Noëlie Ramuzat
Committed by
Olivier Stasse
Feb 20, 2019
Browse files
Fix bug for initJoints failure in EFFORT
parent
6c0059c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/roscontrol-sot-controller.cpp
View file @
4026dd9a
...
...
@@ -626,6 +626,7 @@ namespace sot_controller
{
bool
notok
=
true
;
SotControlMode
lcontrol_mode
=
control_mode_
;
bool
failure
=
false
;
while
(
notok
)
{
...
...
@@ -651,6 +652,7 @@ namespace sot_controller
}
catch
(...)
{
failure
=
true
;
ROS_ERROR_STREAM
(
"Could not find joint "
<<
joints_name_
[
i
]);
if
(
lcontrol_mode
==
POSITION
)
...
...
@@ -663,7 +665,8 @@ namespace sot_controller
else
if
(
lcontrol_mode
==
EFFORT
)
lcontrol_mode
=
POSITION
;
}
desired_init_pose_
[
i
]
=
joints_
[
i
].
getPosition
();
if
(
!
failure
)
desired_init_pose_
[
i
]
=
joints_
[
i
].
getPosition
();
}
}
...
...
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