Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eriksuer
specialtopics
Commits
a91d2841
Commit
a91d2841
authored
Jun 23, 2021
by
eriksuer
Browse files
Update Aruco Marker dict sizes with actual DINA2 sizes
parent
f8d935b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/image_processing/image_processing/image_vector_node.py
View file @
a91d2841
...
...
@@ -56,11 +56,18 @@ class ImageVectors(Node):
# Init for Aruco markers
self
.
aruco_dict
=
aruco
.
Dictionary_get
(
aruco
.
DICT_6X6_250
)
self
.
aruco_parameters
=
aruco
.
DetectorParameters_create
()
# Initialize Parameters
self
.
marker_length_dict
=
{
"1"
:
0.063
,
"3"
:
0.063
,
"5"
:
0.031
,
"7"
:
0.063
,
"9"
:
0.063
}
# Dictionary for all 5 marker lengths
# self.marker_length_dict = {"1": 0.063,
# "3": 0.063,
# "5": 0.031,
# "7": 0.063,
# "9": 0.063} # Dictionary for all 5 marker lengths for DINA4
self
.
marker_length_dict
=
{
"1"
:
0.1635
,
"3"
:
0.1635
,
"4"
:
0.1635
,
"5"
:
0.082
,
"7"
:
0.408
,
"9"
:
0.1635
}
# Dictionary for all 5 marker lengths for DINA2
# Create publisher
self
.
publisher_
=
self
.
create_publisher
(
Transform
,
'image_vectors'
,
10
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment