Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_image_local_binarization
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
perception
iri_image_local_binarization
Commits
f68a002e
Commit
f68a002e
authored
2 years ago
by
Marc Dalmasso
Browse files
Options
Downloads
Patches
Plain Diff
Add queue_size param read at startup
parent
45cffca0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cfg/ImageLocalBinarization.cfg
+2
-0
2 additions, 0 deletions
cfg/ImageLocalBinarization.cfg
src/image_local_binarization_alg_node.cpp
+3
-1
3 additions, 1 deletion
src/image_local_binarization_alg_node.cpp
with
5 additions
and
1 deletion
cfg/ImageLocalBinarization.cfg
+
2
−
0
View file @
f68a002e
...
...
@@ -41,5 +41,7 @@ gen = ParameterGenerator()
#gen.add("velocity_scale_factor",
double_t, 0, "Maximum velocity scale factor", 0.5, 0.0, 1.0)
gen.add(
"window_size", int_t, 0, "Local threshold window size", 15, 3, 500)
gen.add(
"k", double_t, 0, "Multiplicative constant for local deviation", 0.06, 0, 0.5)
#not
reconfigurable
#gen.add(
"queue size", int_t, 0, "subscriber queue size for image_transport", 10, 1, 100)
exit(gen.generate(PACKAGE,
"ImageLocalBinarizationAlgorithm", "ImageLocalBinarization"))
This diff is collapsed.
Click to expand it.
src/image_local_binarization_alg_node.cpp
+
3
−
1
View file @
f68a002e
...
...
@@ -9,8 +9,10 @@ ImageLocalBinarizationAlgNode::ImageLocalBinarizationAlgNode(void) :
// [init publishers]
this
->
image_out_publisher_
=
this
->
it
.
advertiseCamera
(
"image_out/image_raw"
,
1
);
int
queue_size
=
10
;
this
->
private_node_handle_
.
getParam
(
"queue_size"
,
queue_size
);
// [init subscribers]
this
->
image_in_subscriber_
=
this
->
it
.
subscribeCamera
(
"image_in/image_raw"
,
1
,
&
ImageLocalBinarizationAlgNode
::
image_in_callback
,
this
);
this
->
image_in_subscriber_
=
this
->
it
.
subscribeCamera
(
"image_in/image_raw"
,
queue_size
,
&
ImageLocalBinarizationAlgNode
::
image_in_callback
,
this
);
pthread_mutex_init
(
&
this
->
image_in_mutex_
,
NULL
);
...
...
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