small_gicp/doc_cpp/robust__kernel_8hpp_source....

190 lines
30 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>small_gicp: /home/runner/work/small_gicp/small_gicp/include/small_gicp/factors/robust_kernel.hpp Source File</title>
<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="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>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">small_gicp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_8f93768a68ffc2367e7100c40b4e616a.html">small_gicp</a></li><li class="navelem"><a class="el" href="dir_10d2ca31331a920e163404c3842c11af.html">factors</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">robust_kernel.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="robust__kernel_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// SPDX-License-Identifier: MIT</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;Eigen/Core&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;Eigen/Geometry&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacesmall__gicp.html">small_gicp</a> {</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Huber.html"> 11</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsmall__gicp_1_1Huber.html">Huber</a> {</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Huber_1_1Setting.html"> 14</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structsmall__gicp_1_1Huber_1_1Setting.html">Setting</a> {</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Huber_1_1Setting.html#a6b238e2bf944db0b5c50d97b31243ea2"> 15</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1Huber_1_1Setting.html#a6b238e2bf944db0b5c50d97b31243ea2">c</a> = 1.0; </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; };</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Huber.html#a2a4911cb06c8cb00be1b3a716b376bef"> 19</a></span>&#160; <a class="code" href="structsmall__gicp_1_1Huber.html#a2a4911cb06c8cb00be1b3a716b376bef">Huber</a>(<span class="keyword">const</span> <a class="code" href="structsmall__gicp_1_1Huber_1_1Setting.html">Setting</a>&amp; setting) : <a class="code" href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d">c</a>(setting.<a class="code" href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d">c</a>) {}</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Huber.html#ab199291b6663c900ac78b33d4b0ebad6"> 24</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1Huber.html#ab199291b6663c900ac78b33d4b0ebad6">weight</a>(<span class="keywordtype">double</span> e)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> e_abs = std::abs(e);</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keywordflow">return</span> e_abs &lt; <a class="code" href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d">c</a> ? 1.0 : <a class="code" href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d">c</a> / e_abs;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; }</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d"> 30</a></span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d">c</a>; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;};</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Cauchy.html"> 34</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsmall__gicp_1_1Cauchy.html">Cauchy</a> {</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Cauchy_1_1Setting.html"> 37</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structsmall__gicp_1_1Cauchy_1_1Setting.html">Setting</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Cauchy_1_1Setting.html#acf18467f27e9099ee224cb5ee4c63da7"> 38</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1Cauchy_1_1Setting.html#acf18467f27e9099ee224cb5ee4c63da7">c</a> = 1.0; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; };</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Cauchy.html#a8a3264b8fe54b2b55a32de5776e1f138"> 42</a></span>&#160; <a class="code" href="structsmall__gicp_1_1Cauchy.html#a8a3264b8fe54b2b55a32de5776e1f138">Cauchy</a>(<span class="keyword">const</span> <a class="code" href="structsmall__gicp_1_1Cauchy_1_1Setting.html">Setting</a>&amp; setting) : <a class="code" href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79">c</a>(setting.<a class="code" href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79">c</a>) {}</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Cauchy.html#a339abc1dd105822b01f51b8d3a7b4dc8"> 47</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1Cauchy.html#a339abc1dd105822b01f51b8d3a7b4dc8">weight</a>(<span class="keywordtype">double</span> e)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79">c</a> / (<a class="code" href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79">c</a> + e * e); }</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79"> 50</a></span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79">c</a>; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;};</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Kernel, <span class="keyword">typename</span> Factor&gt;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html"> 57</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsmall__gicp_1_1RobustFactor.html">RobustFactor</a> {</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html"> 60</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html">Setting</a> {</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html#a207fb5bb4163655f6edc2ce3d564fe51"> 61</a></span>&#160; <span class="keyword">typename</span> Kernel::Setting <a class="code" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html#a207fb5bb4163655f6edc2ce3d564fe51">robust_kernel</a>; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html#ab3c5989f37ebed36c848e086baaba9ec"> 62</a></span>&#160; <span class="keyword">typename</span> Factor::Setting <a class="code" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html#ab3c5989f37ebed36c848e086baaba9ec">factor</a>; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; };</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html#aec0efc27610875bab44db5ff7a2438ce"> 66</a></span>&#160; <a class="code" href="structsmall__gicp_1_1RobustFactor.html#aec0efc27610875bab44db5ff7a2438ce">RobustFactor</a>(<span class="keyword">const</span> <a class="code" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html">Setting</a>&amp; setting = <a class="code" href="structsmall__gicp_1_1RobustFactor_1_1Setting.html">Setting</a>()) : <a class="code" href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61">robust_kernel</a>(setting.<a class="code" href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61">robust_kernel</a>), <a class="code" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">factor</a>(setting.<a class="code" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">factor</a>) {}</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TargetPo<span class="keywordtype">int</span>Cloud, <span class="keyword">typename</span> SourcePo<span class="keywordtype">int</span>Cloud, <span class="keyword">typename</span> TargetTree, <span class="keyword">typename</span> CorrespondenceRejector&gt;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html#abe796549693e216c231fc8ef9d4f4891"> 70</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structsmall__gicp_1_1RobustFactor.html#abe796549693e216c231fc8ef9d4f4891">linearize</a>(</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keyword">const</span> TargetPointCloud&amp; target,</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">const</span> SourcePointCloud&amp; source,</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keyword">const</span> TargetTree&amp; target_tree,</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">const</span> Eigen::Isometry3d&amp; T,</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">size_t</span> source_index,</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">const</span> CorrespondenceRejector&amp; rejector,</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; Eigen::Matrix&lt;double, 6, 6&gt;* H,</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; Eigen::Matrix&lt;double, 6, 1&gt;* b,</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordtype">double</span>* e) {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">factor</a>.linearize(target, source, target_tree, T, source_index, rejector, H, b, e)) {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Robustify the linearized factor</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> w = <a class="code" href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61">robust_kernel</a>.weight(std::sqrt(*e));</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; *H *= w;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; *b *= w;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; *e *= w;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TargetPo<span class="keywordtype">int</span>Cloud, <span class="keyword">typename</span> SourcePo<span class="keywordtype">int</span>Cloud&gt;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html#ad96a6c46b611c4eadbb287dfa532c79c"> 95</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structsmall__gicp_1_1RobustFactor.html#ad96a6c46b611c4eadbb287dfa532c79c">error</a>(<span class="keyword">const</span> TargetPointCloud&amp; target, <span class="keyword">const</span> SourcePointCloud&amp; source, <span class="keyword">const</span> Eigen::Isometry3d&amp; T)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> e = <a class="code" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">factor</a>.error(target, source, T);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61">robust_kernel</a>.weight(std::sqrt(e)) * e;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; }</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html#aa3d768312452d0c6ad68ff0f55fa6802"> 101</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structsmall__gicp_1_1RobustFactor.html#aa3d768312452d0c6ad68ff0f55fa6802">inlier</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">factor</a>.inlier(); }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61"> 104</a></span>&#160; Kernel <a class="code" href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61">robust_kernel</a>; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919"> 105</a></span>&#160; Factor <a class="code" href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">factor</a>; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;};</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;} <span class="comment">// namespace small_gicp</span></div>
<div class="ttc" id="anamespacesmall__gicp_html"><div class="ttname"><a href="namespacesmall__gicp.html">small_gicp</a></div><div class="ttdef"><b>Definition:</b> flat_container.hpp:12</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Cauchy_1_1Setting_html"><div class="ttname"><a href="structsmall__gicp_1_1Cauchy_1_1Setting.html">small_gicp::Cauchy::Setting</a></div><div class="ttdoc">Huber robust kernel setting.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:37</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Cauchy_1_1Setting_html_acf18467f27e9099ee224cb5ee4c63da7"><div class="ttname"><a href="structsmall__gicp_1_1Cauchy_1_1Setting.html#acf18467f27e9099ee224cb5ee4c63da7">small_gicp::Cauchy::Setting::c</a></div><div class="ttdeci">double c</div><div class="ttdoc">Kernel width.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:38</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Cauchy_html"><div class="ttname"><a href="structsmall__gicp_1_1Cauchy.html">small_gicp::Cauchy</a></div><div class="ttdoc">Cauchy robust kernel.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:34</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Cauchy_html_a32afe5d20f86c4d33fc303dc03a3ff79"><div class="ttname"><a href="structsmall__gicp_1_1Cauchy.html#a32afe5d20f86c4d33fc303dc03a3ff79">small_gicp::Cauchy::c</a></div><div class="ttdeci">const double c</div><div class="ttdoc">Kernel width.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:50</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Cauchy_html_a339abc1dd105822b01f51b8d3a7b4dc8"><div class="ttname"><a href="structsmall__gicp_1_1Cauchy.html#a339abc1dd105822b01f51b8d3a7b4dc8">small_gicp::Cauchy::weight</a></div><div class="ttdeci">double weight(double e) const</div><div class="ttdoc">Compute the weight for an error.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:47</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Cauchy_html_a8a3264b8fe54b2b55a32de5776e1f138"><div class="ttname"><a href="structsmall__gicp_1_1Cauchy.html#a8a3264b8fe54b2b55a32de5776e1f138">small_gicp::Cauchy::Cauchy</a></div><div class="ttdeci">Cauchy(const Setting &amp;setting)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:42</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Huber_1_1Setting_html"><div class="ttname"><a href="structsmall__gicp_1_1Huber_1_1Setting.html">small_gicp::Huber::Setting</a></div><div class="ttdoc">Huber robust kernel setting.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:14</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Huber_1_1Setting_html_a6b238e2bf944db0b5c50d97b31243ea2"><div class="ttname"><a href="structsmall__gicp_1_1Huber_1_1Setting.html#a6b238e2bf944db0b5c50d97b31243ea2">small_gicp::Huber::Setting::c</a></div><div class="ttdeci">double c</div><div class="ttdoc">Kernel width.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:15</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Huber_html"><div class="ttname"><a href="structsmall__gicp_1_1Huber.html">small_gicp::Huber</a></div><div class="ttdoc">Huber robust kernel.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:11</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Huber_html_a2a4911cb06c8cb00be1b3a716b376bef"><div class="ttname"><a href="structsmall__gicp_1_1Huber.html#a2a4911cb06c8cb00be1b3a716b376bef">small_gicp::Huber::Huber</a></div><div class="ttdeci">Huber(const Setting &amp;setting)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:19</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Huber_html_ab199291b6663c900ac78b33d4b0ebad6"><div class="ttname"><a href="structsmall__gicp_1_1Huber.html#ab199291b6663c900ac78b33d4b0ebad6">small_gicp::Huber::weight</a></div><div class="ttdeci">double weight(double e) const</div><div class="ttdoc">Compute the weight for an error.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:24</div></div>
<div class="ttc" id="astructsmall__gicp_1_1Huber_html_aecff5c9b886686dd3bf5accf7a652f6d"><div class="ttname"><a href="structsmall__gicp_1_1Huber.html#aecff5c9b886686dd3bf5accf7a652f6d">small_gicp::Huber::c</a></div><div class="ttdeci">const double c</div><div class="ttdoc">Kernel width.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:30</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_1_1Setting_html"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor_1_1Setting.html">small_gicp::RobustFactor::Setting</a></div><div class="ttdoc">Robust factor setting.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:60</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_1_1Setting_html_a207fb5bb4163655f6edc2ce3d564fe51"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor_1_1Setting.html#a207fb5bb4163655f6edc2ce3d564fe51">small_gicp::RobustFactor::Setting::robust_kernel</a></div><div class="ttdeci">Kernel::Setting robust_kernel</div><div class="ttdoc">Robust kernel setting.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:61</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_1_1Setting_html_ab3c5989f37ebed36c848e086baaba9ec"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor_1_1Setting.html#ab3c5989f37ebed36c848e086baaba9ec">small_gicp::RobustFactor::Setting::factor</a></div><div class="ttdeci">Factor::Setting factor</div><div class="ttdoc">Factor setting.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:62</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html">small_gicp::RobustFactor</a></div><div class="ttdoc">Robustify a factor with a robust kernel.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:57</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html_aa3d768312452d0c6ad68ff0f55fa6802"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html#aa3d768312452d0c6ad68ff0f55fa6802">small_gicp::RobustFactor::inlier</a></div><div class="ttdeci">bool inlier() const</div><div class="ttdoc">Check if the factor is inlier.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:101</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html_abe796549693e216c231fc8ef9d4f4891"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html#abe796549693e216c231fc8ef9d4f4891">small_gicp::RobustFactor::linearize</a></div><div class="ttdeci">bool linearize(const TargetPointCloud &amp;target, const SourcePointCloud &amp;source, const TargetTree &amp;target_tree, const Eigen::Isometry3d &amp;T, size_t source_index, const CorrespondenceRejector &amp;rejector, Eigen::Matrix&lt; double, 6, 6 &gt; *H, Eigen::Matrix&lt; double, 6, 1 &gt; *b, double *e)</div><div class="ttdoc">Linearize the factor.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:70</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html_ad96a6c46b611c4eadbb287dfa532c79c"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html#ad96a6c46b611c4eadbb287dfa532c79c">small_gicp::RobustFactor::error</a></div><div class="ttdeci">double error(const TargetPointCloud &amp;target, const SourcePointCloud &amp;source, const Eigen::Isometry3d &amp;T) const</div><div class="ttdoc">Evaluate error.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:95</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html_ae91f13cb7cb259f17b634c6571b45919"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html#ae91f13cb7cb259f17b634c6571b45919">small_gicp::RobustFactor::factor</a></div><div class="ttdeci">Factor factor</div><div class="ttdoc">Factor.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:105</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html_aec0efc27610875bab44db5ff7a2438ce"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html#aec0efc27610875bab44db5ff7a2438ce">small_gicp::RobustFactor::RobustFactor</a></div><div class="ttdeci">RobustFactor(const Setting &amp;setting=Setting())</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:66</div></div>
<div class="ttc" id="astructsmall__gicp_1_1RobustFactor_html_afd4b4e1f74205840d243bfc51742ac61"><div class="ttname"><a href="structsmall__gicp_1_1RobustFactor.html#afd4b4e1f74205840d243bfc51742ac61">small_gicp::RobustFactor::robust_kernel</a></div><div class="ttdeci">Kernel robust_kernel</div><div class="ttdoc">Robust kernel.</div><div class="ttdef"><b>Definition:</b> robust_kernel.hpp:104</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- 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.1
</small></address>
</body>
</html>