Skip to content

Commit

Permalink
tag configuration with tags for jaffa and oats
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Jun 3, 2022
1 parent 025904c commit 27a8486
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ include_directories(
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )

install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
install(DIRECTORY config/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config)

#############
## Testing ##
#############
Expand Down
12 changes: 12 additions & 0 deletions config/settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AprilTag 3 code parameters
# Find descriptions in apriltag/include/apriltag.h:struct apriltag_detector
# apriltag/include/apriltag.h:struct apriltag_family
tag_family: 'tag36h11' # options: tagStandard52h13, tagStandard41h12, tag36h11, tag25h9, tag16h5, tagCustom48h12, tagCircle21h7, tagCircle49h12
tag_threads: 4 # default: 2
tag_decimate: 1.0 # default: 1.0
tag_blur: 0.0 # default: 0.0
tag_refine_edges: 1 # default: 1
tag_debug: 0 # default: 0
max_hamming_dist: 2 # default: 2 (Tunable parameter with 2 being a good choice - values >=3 consume large amounts of memory. Choose the largest value possible.)
# Other parameters
publish_tf: true # default: false
9 changes: 9 additions & 0 deletions config/tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The tags (including the white border) are printed on a 10x10 grid, but the tag
# size is given by the size of the 8x8 grid without the white border. Hence, the
# values given here are 8/10 of the printed tag size.

standalone_tags:
[
{id: 0, size: 0.136, name: "jaffa"},
{id: 1, size: 0.10, name: "oats"},
]
16 changes: 16 additions & 0 deletions launch/apriltag.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<launch>
<arg name="launch_prefix" default="" />
<arg name="node_namespace" default="apriltag_ros_continuous_node" />
<arg name="camera_name" default="/rgb" />

<!-- load configuration -->
<rosparam command="load" file="$(find jaffa_apriltag)/config/settings.yaml" ns="$(arg node_namespace)" />
<rosparam command="load" file="$(find jaffa_apriltag)/config/tags.yaml" ns="$(arg node_namespace)" />

<node pkg="apriltag_ros" type="apriltag_ros_continuous_node" name="$(arg node_namespace)" clear_params="true" output="screen" launch-prefix="$(arg launch_prefix)" >
<remap from="image_rect" to="$(arg camera_name)/image_rect_color" />
<remap from="camera_info" to="$(arg camera_name)/camera_info" />

<param name="publish_tag_detections_image" type="bool" value="true" />
</node>
</launch>
5 changes: 2 additions & 3 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@
<!-- Use doc_depend for packages you need only for building documentation: -->
<!-- <doc_depend>doxygen</doc_depend> -->
<buildtool_depend>catkin</buildtool_depend>
<build_depend>apriltag_ros</build_depend>
<build_export_depend>apriltag_ros</build_export_depend>
<exec_depend>apriltag_ros</exec_depend>

<depend>apriltag_ros</depend>


<!-- The export tag contains other, unspecified, tags -->
Expand Down
Binary file added tags/tag36_11_00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tags/tag36_11_00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tags/tags.pdf
Binary file not shown.
24 changes: 24 additions & 0 deletions tags/tags.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\documentclass{article}
\usepackage{graphicx}
\usepackage[export]{adjustbox}

\begin{document}

% tag images
% https://github.com/AprilRobotics/apriltag-imgs

\begin{figure}
\centering
\noindent\makebox[\textwidth]{%
\includegraphics[width=17cm,frame]{tag36_11_00000.png}
}
\end{figure}

\begin{figure}
\centering
\noindent\makebox[\textwidth]{%
\includegraphics[width=12.5cm,frame]{tag36_11_00001.png}
}
\end{figure}

\end{document}

0 comments on commit 27a8486

Please sign in to comment.