<?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 (2) Bluewhale Robot Open source code repository usage and ROS startup task configuration]]></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>
<h1>Bluewhale Robot Open source code repository usage and ROS startup task configuration.</h1>
<p dir="auto">Some of Xiaoqiang’s software source code is shared with Bluewhale Robot’s <a href="https://github.com/BluewhaleRobot" target="_blank" rel="noopener noreferrer">open source code repository</a>，Anybody can freely download or use it for futher development.</p>
<p dir="auto">For Xiaoqiang users, the software in the open source Code repository can be directly git cloned into Xiaoqiang’s ROS working directory, and then can be compiled and used directly with ROS’s <code>catkin_make</code>. Xiaoqiang’s ROS working directory is: <code>/home/xiaoqiang/Documents/ros/src</code></p>
<p dir="auto">The following will use the startup package in the open source repository as an example to demonstrate the complete use of the open source repository</p>
<h3>1. Startup package introduction</h3>
<p dir="auto">After the Xiaoqiang host starts up, it will automatically start the Linux service script named startup. When the service script runs, it will start the replica which is registered in ubuntu system by<code> startup.launch</code> file. Therefore, by modifying the <code>startup.launch</code> file in the startup package, and then registering this file as a startup service in the ubuntu system, we can control the booting tasks of the Xiaoqiang host.</p>
<h3>2. Download and install startup package on Xiaoqiang host</h3>
<p dir="auto">a. In the local remote control terminal ssh connection Xiaoqiang host, refer to the configuration of the previous tutorial</p>
<pre><code class="language-bash">ssh xiaoqiang@192.168.x.x
</code></pre>
<p dir="auto">b. Enter Xiaoqiang’s ROS working directory to see if there is a startup folder</p>
<pre><code class="language-bash">cd Documents/ros/src/
ls
</code></pre>
<p dir="auto">If it exists, it indicates that the startup package has been installed. You can directly perform the following third step. If you want to update the startup package  synchronously with the open source repository, enter the following command:</p>
<pre><code class="language-bash">cd startup
git stash
git pull
cd ..
</code></pre>
<h3>3.Modify the startup.launch file in the launch folder in the package</h3>
<p dir="auto">Using the vscode editor installed in the previous tutorial, Edit this file directly on the local machine（If you need to remotely access Xiaoqiang’s host file directory, please refer to the previous basic operation tutorial to configure.）</p>
<p dir="auto"><img src="/assets/uploads/files/1537601557728-6c9d1a78-ef32-43b2-9375-3a588a2eafc8-image-resized.png" alt="0_1537601556902_6c9d1a78-ef32-43b2-9375-3a588a2eafc8-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">In the arrow area above, add or delete the ROS launch file and ROS node that you need to launch. These items will be added to the boot of the Xiaoqiang host in the following. Xiaoqiang will automatically run these items when booted next time. Finally, save and exit.</p>
<h3>4.Register the startup.launch file as a startup startup service on Xiaoqiang host</h3>
<p dir="auto">Please continue to enter in the ssh window in the second section above.</p>
<p dir="auto">a. First stop and delete the previously registered startup service</p>
<pre><code class="language-bash">sudo service startup stop
rosrun robot_upstart uninstall startup
</code></pre>
<p dir="auto">b. Re-register startup service</p>
<pre><code class="language-bash">rosrun robot_upstart install startup/launch/startup.launch
sudo systemctl daemon-reload &amp;&amp; sudo systemctl start startup
</code></pre>
<h3>5.Remotely restart Xiaoqiang’s host and check if the boot startup item is loaded normally</h3>
<p dir="auto">Then enter the ssh window above</p>
<p dir="auto">a. Send a reboot command</p>
<pre><code class="language-bash">sudo shutdown -r now
</code></pre>
<p dir="auto">b. Start a new ssh connection</p>
<pre><code class="language-bash">ssh xiaoqiang@192.168.x.x
</code></pre>
<p dir="auto">c. Check the status of the startup service</p>
<pre><code class="language-bash">sudo service startup status
</code></pre>
<p dir="auto">Normally, it will show startup start/running as shown in the figure below.</p>
<p dir="auto"><img src="/assets/uploads/files/1537600425599-f6969148-c800-4d82-a4d1-788d5561e8a1-image.png" alt="0_1537600424946_f6969148-c800-4d82-a4d1-788d5561e8a1-image.png" class=" img-responsive img-markdown" width="720" height="405" /></p>
<p dir="auto">d. You can also further see if the related topic has been published</p>
<pre><code class="language-bash">rostopic list
</code></pre>
<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/551/xiaoqiang-tutorial-2-bluewhale-robot-open-source-code-repository-usage-and-ros-startup-task-configuration</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 09:02:01 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/551.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Sep 2018 09:35:12 GMT</pubDate><ttl>60</ttl></channel></rss>