Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
darwin_robot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
humanoides
darwin_robot
Commits
4cee69d7
Commit
4cee69d7
authored
7 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Added a return true in all the set parameters callbacks to avoid calling errors.
parent
b657c3e3
No related branches found
No related tags found
1 merge request
!8
Kinetic migration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
darwin_controller/include/darwin_controller_impl.h
+7
-3
7 additions, 3 deletions
darwin_controller/include/darwin_controller_impl.h
with
7 additions
and
3 deletions
darwin_controller/include/darwin_controller_impl.h
+
7
−
3
View file @
4cee69d7
...
...
@@ -780,6 +780,8 @@ namespace darwin_controller
this
->
walk_access
.
exit
();
res
.
ret
=
true
;
return
true
;
}
/************************************ set_walk_params *******************************************/
...
...
@@ -834,7 +836,7 @@ namespace darwin_controller
}
/************************************ get_walk_params *******************************************/
/************************************ set_
walk
_params *******************************************/
/************************************ set_
stairs
_params *******************************************/
template
<
class
HardwareInterface
>
bool
DarwinController
<
HardwareInterface
>::
set_stairs_paramsCallback
(
humanoid_common_msgs
::
set_stairs_params
::
Request
&
req
,
humanoid_common_msgs
::
set_stairs_params
::
Response
&
res
)
{
...
...
@@ -866,10 +868,12 @@ namespace darwin_controller
ram_write_byte
(
DARWIN_STAIRS_X_SHIFT_BODY
,(
unsigned
char
)(
req
.
params
.
X_SHIFT_BODY
*
1000.0
));
res
.
ret
=
true
;
return
true
;
}
/************************************ set_
walk
_params *******************************************/
/************************************ set_
stairs
_params *******************************************/
/************************************ get_
walk
_params *******************************************/
/************************************ get_
stairs
_params *******************************************/
template
<
class
HardwareInterface
>
bool
DarwinController
<
HardwareInterface
>::
get_stairs_paramsCallback
(
humanoid_common_msgs
::
get_stairs_params
::
Request
&
req
,
humanoid_common_msgs
::
get_stairs_params
::
Response
&
res
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment