<?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 (20) get vision odometer and display the xiaoqiang track in the rviz]]></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>
<p dir="auto">1.Local ssh preparation section (Xiaoqiang host is the controlled end, local refers to remote control end)</p>
<p dir="auto">ssh remote login Xiaoqiang host, the following operation is entered in this ssh window if without special statement</p>
<pre><code class="language-bash">ssh xiaoqiang@xxx.xxx.xxx.xxx  
# Please replace xxx.xxx.xxx.xxx with Xiaoqiang's current actual ip address
# Start multi-window manager
screen
</code></pre>
<p dir="auto">Screen usage please refer to this <a href="http://www.cnblogs.com/mchina/archive/2013/01/30/2880680.html" target="_blank" rel="noopener noreferrer">tutorial</a></p>
<p dir="auto">Check if the <code>orb_init</code> package has installed</p>
<pre><code class="language-bash">rospack find orb_init
</code></pre>
<p dir="auto">Delete if it exists</p>
<pre><code class="language-bash">cd ~/Documents/ros/src
rm -r orb_init
</code></pre>
<p dir="auto">Download the latest version of <a href="https://github.com/BlueWhaleRobot/orb_init" target="_blank" rel="noopener noreferrer">orb_init</a> from the Bluewhale Open Source Software Store and install it</p>
<pre><code class="language-bash">cd ~/Documents/ros/src
git clone https://github.com/BlueWhaleRobot/orb_init.git
</code></pre>
<p dir="auto">Check whether startup task is running</p>
<pre><code class="language-bash">sudo service startup status
</code></pre>
<p dir="auto">If runing is displayed, it means normal. If stopped is displayed, then restart it</p>
<pre><code class="language-bash">sudo service startup start
# If you want to close this task, you can use this command
sudo service startup stop
</code></pre>
<p dir="auto">Check system status</p>
<pre><code class="language-bash">rostopic echo /system_monitor/report
</code></pre>
<p dir="auto">If it is normal, the display is as follows</p>
<pre><code class="language-yaml">imageStatus: True
odomStatus: True
orbStartStatus: False
orbInitStatus: False
orbScaleStatus: False
brightness: 0
power: 12.34432
</code></pre>
<p dir="auto">If it is abnormal, restart the startup task.</p>
<pre><code class="language-bash">sudo service startup restart
</code></pre>
<p dir="auto">Start ORB_SLAM in another command window in screen</p>
<pre><code class="language-bash">roslaunch ORB_SLAM ov2610.launch
</code></pre>
<p dir="auto">Return to the previous screen window and wait for ORB_SLAM to start</p>
<pre><code class="language-bash">rostopic echo /system_monitor/report
# If ORB_SLAM is started, the following is displayed
orbStartStatus: True
</code></pre>
<p dir="auto">2.Native local operation section</p>
<p dir="auto">This machine has been installed ros jade version of the robot system, the computer operating system is ubuntu14.04, ros can be installed to refer to this <a href="http://community.bwbot.org/topic/232/%E8%93%9D%E9%B2%B8ros%E9%95%9C%E5%83%8F%E5%8F%91%E5%B8%83">tutorial</a>.</p>
<p dir="auto">Add this machine to Xiaoqiang’s ros network, open a command line terminal locally, and add Xiaoqiang’s ip in the local hosts file.</p>
<pre><code class="language-bash">sudo gedit /etc/hosts
Add to
xxx.xxx.xxx.xxx xiaoqiang-desktop
Save and exit
Please replace xxx.xxx.xxx.xxx with Xiaoqiang's current actual ip address
</code></pre>
<p dir="auto">Join ros LAN</p>
<pre><code class="language-bash">export ROS_MASTER_URI=http://xiaoqiang-desktop:11311
rostopic list
</code></pre>
<p dir="auto">If the join is successful, the command line will output the topic on Xiaoqiang’s host. For more information about setting up multiple ros machines online, please refer <a href="http://wiki.ros.org/ROS/NetworkSetup" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p dir="auto">Download the rviz <a href="https://github.com/BlueWhaleRobot/orb_init/blob/master/src/orb_init.rviz" target="_blank" rel="noopener noreferrer">configuration file</a>. This configuration file can also be copied directly from the orb_init package on Xiaoqiang’s host to view the output path of the Xiaoqiang vision system.</p>
<p dir="auto">Enter in local command line terminal</p>
<pre><code class="language-bash">rviz
</code></pre>
<p dir="auto">When the window opens, click on file-&gt;open in the upper left corner and select the above downloaded configuration file. At this time the interface should appear as shown below</p>
<p dir="auto"><img src="/assets/uploads/files/1537582521378-6515f3a5-573b-4a67-8f2a-c3948b8ef493-image-resized.png" alt="0_1537582520832_6515f3a5-573b-4a67-8f2a-c3948b8ef493-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">3.In ssh in the screen to open a new window, used to start orb_init Xiaoqiang host, before the start to ensure Xiaoqiang around two square meters of free space, Xiaoqiang will move for some time</p>
<pre><code class="language-bash">rosrun orb_init orb_scale.py
</code></pre>
<p dir="auto">After orb_init initialization is completed, orb_init cannot be closed. It will continue to output the visual odometer topic. This topic is the content that the local rviz needs to display. At this time, a new window is opened to check the system status.</p>
<pre><code class="language-bash">rostopic echo /system_monitor/report
</code></pre>
<p dir="auto">If it is normal, the display is as follows</p>
<pre><code class="language-bash">imageStatus: True
odomStatus: True
orbStartStatus: True
orbInitStatus: True
orbScaleStatus: True
brightness: 0
power: 12.34432
</code></pre>
<p dir="auto">At this point we have already acquired Xiaoqiang’s visual odometer</p>
<p dir="auto">4.In ssh in the screen to open a new window, used to control Xiaoqiang move</p>
<pre><code class="language-bash">rosrun nav_test control.py
</code></pre>
<p dir="auto">Use the arrow keys to control the movement of Xiaoqiang. Spacebar is stopped. Ctrl + C exits the program.</p>
<p dir="auto">5.As Xiaoqiang moves, the rviz interface on the local machine will be updated to show Xiaoqiang’s trajectory in real time. Our own test video is <a href="http://www.bwbot.org/article/8" target="_blank" rel="noopener noreferrer">here</a>. For more information on how to use rviz, see <a href="http://wiki.ros.org/rviz" target="_blank" rel="noopener noreferrer">here</a>.</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/605/xiaoqiang-tutorial-20-get-vision-odometer-and-display-the-xiaoqiang-track-in-the-rviz</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 10:34:48 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/605.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Sep 2018 02:18:20 GMT</pubDate><ttl>60</ttl></channel></rss>