<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[xiaoqiang tutorial (15) AMCL navigation test]]></title><description><![CDATA[<p dir="auto"><a href="http://www.bwbot.org/en/products/xiaoqiang-4-pro" target="_blank" rel="noopener noreferrer">Xiaoqiang Homepage</a></p>
<h2>AMCL Navigation Test</h2>
<p dir="auto">The following will demonstrate the AMCL navigation operation using rplidar a2 as the scan input and the map file created in <a href="https://community.bwbot.org/topic/595" target="_blank" rel="noopener noreferrer">Tutorial 14</a> as the global map.</p>
<h3>1 preparations</h3>
<p dir="auto">Install and upgrade <code>nav_test</code>, <code>laser_filters</code> package first.</p>
<p dir="auto">1.1 ssh login Xiaoqiang host and cd to Xiaoqiang’s ros workspace</p>
<pre><code class="language-bash">ssh xiaoqiang@192.168.xxx.xxx -X
cd Documents/ros/src/
</code></pre>
<p dir="auto">1.2 Update upgrade package</p>
<pre><code class="language-bash">cd  laser_filters
git stash
git pull
cd ..
cd nav_test
git stash
git pull
cd ..
cd ..
catkin_make
</code></pre>
<p dir="auto">1.3 Update the Xiaoqiang hosts file and the hosts file of the local virtual machine so that Xiaoqiang and the local virtual machine can communicate with each other. Refer to sections 1.A and 1.B in <a href="https://community.bwbot.org/topic/594" target="_blank" rel="noopener noreferrer">Tutorial 13</a>.</p>
<h3>2.Start navigation node</h3>
<p dir="auto">First, copy the two map files created in <a href="https://community.bwbot.org/topic/595" target="_blank" rel="noopener noreferrer">Tutorial 14</a> to <code>/home/xiaoqiang/Documents/ros/src/nav_test/maps/</code>, overwrite the files with the same name.</p>
<pre><code class="language-bash">roslaunch nav_test xiaoqiang_a2_demo_amcl.launch
</code></pre>
<p dir="auto">Normally there will be similar results in the figure below, while the lidar starts to rotate</p>
<p dir="auto"><img src="/assets/uploads/files/1536825992629-fb92303f-93a5-4113-939b-25f241ab9ecd-image-resized.png" alt="0_1536825991853_fb92303f-93a5-4113-939b-25f241ab9ecd-image.png" class=" img-responsive img-markdown" /></p>
<h3>3 Start rviz</h3>
<p dir="auto">3.1  Start rviz in the local virtual, select the open <code>nav_test/config/xiaoqiang_amcl.rviz</code> configuration file in the work directory of Xiaoqiang ros</p>
<pre><code class="language-bash">export ROS_MASTER_URI=http://xiaoqiang-desktop:11311
rviz
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1536826049093-7a753361-bb5c-4413-982f-b2bb4c837a57-image-resized.png" alt="0_1536826048262_7a753361-bb5c-4413-982f-b2bb4c837a57-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">3.2 After waiting for a few seconds, rviz will normally have a screen similar to the one below.</p>
<p dir="auto"><img src="/assets/uploads/files/1536826064492-cfb11d5c-96df-4a00-801a-4f7961f51731-image-resized.png" alt="0_1536826063652_cfb11d5c-96df-4a00-801a-4f7961f51731-image.png" class=" img-responsive img-markdown" /></p>
<h3>4.Start navigation test</h3>
<p dir="auto">4.1 In rviz, use 2D Pose Estimation to set the position of the initial pose of the robot in the map. Because the AMCL algorithm needs a more accurate initial value, the actual position of the robot in the map can be further matched by the current liadr scanning dot matrix.</p>
<p dir="auto"><img src="/assets/uploads/files/1536826093205-30c30fe7-0b3a-49f0-82d2-e5f92be2a403-image-resized.png" alt="0_1536826092369_30c30fe7-0b3a-49f0-82d2-e5f92be2a403-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">4.2 Using 2D Nav Goal in rviz to release targets to Xiaoqiang</p>
<p dir="auto"><img src="/assets/uploads/files/1536826109835-ba58a846-149e-4a10-876f-7fe5bc9ce7ee-image-resized.png" alt="0_1536826109005_ba58a846-149e-4a10-876f-7fe5bc9ce7ee-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">4.3 Xiaoqiang began to move autonomously to the designated location</p>
<p dir="auto"><img src="/assets/uploads/files/1536826128211-88eb034a-872d-444f-a659-e8327af071ab-image-resized.png" alt="0_1536826127455_88eb034a-872d-444f-a659-e8327af071ab-image.png" class=" img-responsive img-markdown" /></p>
<h3>5. Set up Xiaoqiang’s 2D Nav Goal and observe the movement of Xiaoqiang.</h3>
<p dir="auto"><img src="/assets/uploads/files/1536826147304-36321626-275a-4881-a00e-f1154a227599-image-resized.png" alt="0_1536826146545_36321626-275a-4881-a00e-f1154a227599-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1536826158659-39512988-2bdf-46ea-85d3-a8aea2fdaa92-image-resized.png" alt="0_1536826157825_39512988-2bdf-46ea-85d3-a8aea2fdaa92-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><a href="http://www.bwbot.org/en/products/xiaoqiang-4-pro" target="_blank" rel="noopener noreferrer">Xiaoqiang Homepage</a><br />
<a href="https://community.bwbot.org/topic/617" target="_blank" rel="noopener noreferrer">Back To Index</a></p>
]]></description><link>http://community.bwbot.org/topic/596/xiaoqiang-tutorial-15-amcl-navigation-test</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 08:25:03 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/596.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Sep 2018 08:09:24 GMT</pubDate><ttl>60</ttl></channel></rss>