Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_ros_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
labrobotica
ros
iri_core
iri_ros_tools
Commits
217443c0
Commit
217443c0
authored
3 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Solved a bug in the read_params functions: The bools parameters was used for all data types.
parent
cd176710
No related branches found
No related tags found
1 merge request
!3
Development
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/iri_ros_tools/module.h
+1
-1
1 addition, 1 deletion
include/iri_ros_tools/module.h
include/iri_ros_tools/module_dyn_reconf.h
+3
-3
3 additions, 3 deletions
include/iri_ros_tools/module_dyn_reconf.h
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
5 additions
and
4 deletions
include/iri_ros_tools/module.h
+
1
−
1
View file @
217443c0
...
...
@@ -170,7 +170,7 @@ class CModule
* \param name prefix given to the module servie variables in order to locate and
* handle them.
*/
void
dynamic_reconfigure
(
ModuleCfg
&
config
,
const
std
::
string
&
name
);
virtual
void
dynamic_reconfigure
(
ModuleCfg
&
config
,
const
std
::
string
&
name
);
/**
* \brief function to start the operation of the class
*
...
...
This diff is collapsed.
Click to expand it.
include/iri_ros_tools/module_dyn_reconf.h
+
3
−
3
View file @
217443c0
...
...
@@ -336,11 +336,11 @@ void CModuleDynReconf<dyn_reconf_config>::read_params(void)
for
(
i
=
0
;
i
<
set_params_srv
.
response
.
config
.
bools
.
size
();
i
++
)
this
->
bool_params
[
set_params_srv
.
response
.
config
.
bools
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
bools
[
i
].
value
;
for
(
i
=
0
;
i
<
set_params_srv
.
response
.
config
.
ints
.
size
();
i
++
)
this
->
bool
_params
[
set_params_srv
.
response
.
config
.
ints
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
ints
[
i
].
value
;
this
->
int
_params
[
set_params_srv
.
response
.
config
.
ints
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
ints
[
i
].
value
;
for
(
i
=
0
;
i
<
set_params_srv
.
response
.
config
.
strs
.
size
();
i
++
)
this
->
bool
_params
[
set_params_srv
.
response
.
config
.
strs
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
strs
[
i
].
value
;
this
->
string
_params
[
set_params_srv
.
response
.
config
.
strs
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
strs
[
i
].
value
;
for
(
i
=
0
;
i
<
set_params_srv
.
response
.
config
.
doubles
.
size
();
i
++
)
this
->
bool
_params
[
set_params_srv
.
response
.
config
.
doubles
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
doubles
[
i
].
value
;
this
->
double
_params
[
set_params_srv
.
response
.
config
.
doubles
[
i
].
name
]
=
set_params_srv
.
response
.
config
.
doubles
[
i
].
value
;
this
->
read_done
=
true
;
}
else
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
217443c0
...
...
@@ -2,6 +2,7 @@
from
distutils.core
import
setup
from
catkin_pkg.python_setup
import
generate_distutils_setup
d
=
generate_distutils_setup
(
scripts
=
[
'
src/iri_ros_tools/dyn_params.py
'
],
packages
=
[
'
iri_ros_tools
'
],
package_dir
=
{
''
:
'
src
'
},
requires
=
[
'
roslib
'
,
'
rospy
'
,
'
rosservice
'
]
...
...
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