Preview for PR #1492 c82721341cb6b9be5ea6c74e1c195f07d4187738

This commit is contained in:
github-actions[bot]
2026-08-02 07:56:38 +00:00
parent 6259cf4409
commit 9043c4a9aa
1083 changed files with 121946 additions and 11202 deletions
@@ -10,6 +10,10 @@
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
@@ -27,6 +31,7 @@
<td id="projectalign">
<div id="projectname">RTAB-Map<span id="projectnumber">&#160;0.23.10</span>
</div>
<div id="projectbrief">Real-Time Appearance-Based Mapping</div>
</td>
</tr>
</tbody>
@@ -50,6 +55,23 @@ $(function() {
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('uResourceGeneratorPage.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
@@ -71,12 +93,12 @@ $(function() {
</div>
</div>
</div><!-- top -->
<div><div class="header">
<div class="headertitle"><div class="title">uResourceGenerator</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>UtiLite provides a utility application called <a class="el" href="uResourceGeneratorPage.html">uResourceGenerator</a> to generate resources to include in an executable. For example: </p><div class="fragment"><div class="line">$ ./uresourcegenerator DatabaseSchema.sql</div>
<div class="textblock"><p>UtiLite provides a utility application called <a class="el" href="uResourceGeneratorPage.html">uResourceGenerator</a> to generate resources to include in an executable. For example: </p><div class="fragment"><div class="line">$ <a class="code hl_namespace" href="namespacertabmap.html">rtabmap</a>-res_tool DatabaseSchema.sql</div>
<div class="ttc" id="anamespacertabmap_html"><div class="ttname"><a href="namespacertabmap.html">rtabmap</a></div><div class="ttdef"><b>Definition</b> <a href="BayesFilter_8h_source.html#l00039">BayesFilter.h:39</a></div></div>
</div><!-- fragment --><p> This will generate a HEX file "DatabaseSchema_sql.h" which can be included in source files. Data of the file is global and can be accessed by the generated const char * DATABASESCHEMA_SQL. </p><div class="fragment"><div class="line"><span class="preprocessor">#include &quot;DatabaseSchema_sql.h&quot;</span></div>
<div class="line">...</div>
<div class="line">std::string hex = DATABASESCHEMA_SQL;</div>
@@ -88,7 +110,7 @@ $(function() {
<div class="ttc" id="aUConversion_8h_html_aafb2c6939780df0241eb35ab4fc8b91b"><div class="ttname"><a href="UConversion_8h.html#aafb2c6939780df0241eb35ab4fc8b91b">uHex2Bytes</a></div><div class="ttdeci">std::vector&lt; char &gt; UTILITE_EXPORT uHex2Bytes(const std::string &amp;hex)</div></div>
</div><!-- fragment --><p>The generator can be automated in a CMake build like: </p><div class="fragment"><div class="line">ADD_CUSTOM_COMMAND(</div>
<div class="line"> OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/DatabaseSchema_sql.h</div>
<div class="line"> COMMAND ${URESOURCEGENERATOR_EXEC} -n my_namespace -p ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/DatabaseSchema.sql</div>
<div class="line"> COMMAND ${RTABMAP_RES_TOOL} -n my_namespace -p ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/DatabaseSchema.sql</div>
<div class="line"> COMMENT <span class="stringliteral">&quot;[Creating database resource]&quot;</span></div>
<div class="line"> DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/DatabaseSchema.sql</div>
<div class="line">)</div>
@@ -97,12 +119,15 @@ $(function() {
<div class="line">)</div>
<div class="line">ADD_LIBRARY(mylib ${SRC_FILES} ${RESOURCES})</div>
<div class="line">ADD_EXECUTABLE(myexecutable ${SRC_FILES} ${RESOURCES})</div>
</div><!-- fragment --><p> The variable URESOURCEGENERATOR_EXEC is set when FIND_PACKAGE(UtiLite) is done, you would need to add FindUtiLite.cmake. </p>
</div><!-- fragment --><p> The tool is installed as <code>rtabmap-res_tool</code>. It is not exported by FIND_PACKAGE(RTABMap), so locate it with FIND_PROGRAM(RTABMAP_RES_TOOL rtabmap-res_tool). Inside RTAB-Map's own build, the <code>res_tool</code> CMake target can be used directly as the COMMAND instead. </p>
</div></div><!-- contents -->
</div><!-- PageDoc -->
</div><!-- doc-content -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
</ul>
</div>
</body>
</html>