<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>area_provider: ma.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jquery.js"></script>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.8.17 -->
<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('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></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_a61f22007e0f347cded0d82030ee545d.html">lib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ma.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ma_8h.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="preprocessor">#ifndef MA_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define MA_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="area_8h.html">lib/area.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="classma.html">    9</a></span>&#160;<span class="keyword">class </span><a class="code" href="classma.html">ma</a> : <span class="keyword">public</span> <a class="code" href="classarea.html">area</a></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;{</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <a class="code" href="classma.html#a4ce661d1de7e6e3ea8a88a6c8f0b70f2">ma</a> ();</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;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classma.html#a0be630a1e21c021e6e712e3a4857563d">map_to_coords</a> ();</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classma.html#aaa52d464cd21904557198d9be3107df8">read_coords</a> ();</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classma.html#a0dd6ae4b7d0264754e84c9a26b230a8d">map_callback</a> (<span class="keyword">const</span> nav_msgs::OccupancyGrid::ConstPtr&amp; msg);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classma.html#aee77bb9c34cc71537e0565d5f881c99e">   37</a></span>&#160;    Subscriber <a class="code" href="classma.html#aee77bb9c34cc71537e0565d5f881c99e">map_subscriber</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classma.html#a3a7cf29a809f0a61c0c682d40544eeb2">   42</a></span>&#160;    Publisher <a class="code" href="classma.html#a3a7cf29a809f0a61c0c682d40544eeb2">map_publisher</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="classma.html#a78d617070544063c56457b92e21336b9">   47</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classma.html#a78d617070544063c56457b92e21336b9">publish_map</a>;</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; </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#endif // MA_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassma_html_aee77bb9c34cc71537e0565d5f881c99e"><div class="ttname"><a href="classma.html#aee77bb9c34cc71537e0565d5f881c99e">ma::map_subscriber</a></div><div class="ttdeci">Subscriber map_subscriber</div><div class="ttdoc">Subscriber to receive an existing map.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8h_source.html#l00037">ma.h:37</a></div></div>
<div class="ttc" id="aclassma_html_aaa52d464cd21904557198d9be3107df8"><div class="ttname"><a href="classma.html#aaa52d464cd21904557198d9be3107df8">ma::read_coords</a></div><div class="ttdeci">void read_coords()</div><div class="ttdoc">Read mission area coordinates from ROS parameters. If global (GPS) coordinates are given they are con...</div><div class="ttdef"><b>Definition:</b> <a href="ma_8cpp_source.html#l00072">ma.cpp:72</a></div></div>
<div class="ttc" id="aclassma_html_a3a7cf29a809f0a61c0c682d40544eeb2"><div class="ttname"><a href="classma.html#a3a7cf29a809f0a61c0c682d40544eeb2">ma::map_publisher</a></div><div class="ttdeci">Publisher map_publisher</div><div class="ttdoc">Publisher to publish grid map.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8h_source.html#l00042">ma.h:42</a></div></div>
<div class="ttc" id="aclassarea_html"><div class="ttname"><a href="classarea.html">area</a></div><div class="ttdoc">A class that holds the an area and offers related services.</div><div class="ttdef"><b>Definition:</b> <a href="area_8h_source.html#l00031">area.h:31</a></div></div>
<div class="ttc" id="aclassma_html"><div class="ttname"><a href="classma.html">ma</a></div><div class="ttdoc">A class that holds the mission area, i.e., the area in which CPSs are allowed to move.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8h_source.html#l00009">ma.h:9</a></div></div>
<div class="ttc" id="aclassma_html_a0dd6ae4b7d0264754e84c9a26b230a8d"><div class="ttname"><a href="classma.html#a0dd6ae4b7d0264754e84c9a26b230a8d">ma::map_callback</a></div><div class="ttdeci">void map_callback(const nav_msgs::OccupancyGrid::ConstPtr &amp;msg)</div><div class="ttdoc">Callback function to receive map updates.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8cpp_source.html#l00092">ma.cpp:92</a></div></div>
<div class="ttc" id="aclassma_html_a4ce661d1de7e6e3ea8a88a6c8f0b70f2"><div class="ttname"><a href="classma.html#a4ce661d1de7e6e3ea8a88a6c8f0b70f2">ma::ma</a></div><div class="ttdeci">ma()</div><div class="ttdoc">Constructor that initializes mission area coordinates.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8cpp_source.html#l00003">ma.cpp:3</a></div></div>
<div class="ttc" id="aarea_8h_html"><div class="ttname"><a href="area_8h.html">area.h</a></div></div>
<div class="ttc" id="aclassma_html_a78d617070544063c56457b92e21336b9"><div class="ttname"><a href="classma.html#a78d617070544063c56457b92e21336b9">ma::publish_map</a></div><div class="ttdeci">bool publish_map</div><div class="ttdoc">Whether a grid map will be published.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8h_source.html#l00047">ma.h:47</a></div></div>
<div class="ttc" id="aclassma_html_a0be630a1e21c021e6e712e3a4857563d"><div class="ttname"><a href="classma.html#a0be630a1e21c021e6e712e3a4857563d">ma::map_to_coords</a></div><div class="ttdeci">void map_to_coords()</div><div class="ttdoc">Extract coordinates from existing map.</div><div class="ttdef"><b>Definition:</b> <a href="ma_8cpp_source.html#l00049">ma.cpp:49</a></div></div>

<br clear="all" />
<hr size="1"><div style="align: right;">
<a href="http://wiki.ros.org/area_provider">area_provider</a><br />
Author(s): Micha Sende <sende@lakeside-labs.com></br />
<small>autogenerated on Mon Jan 10 2022 15:13:45</small>
</div>
</body>
</html>
