<?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[使用wstool管理小强的工作空间]]></title><description><![CDATA[<p dir="auto">wstool是一个ros中用于管理工作空间的工具。ws就是workspace的缩写。<br />
wstool通过rosinstall文件记录工作空间的软件信息。小强相关的rosinstall文件被整理在<a href="https://github.com/BluewhaleRobot/xiaoqiang-rosinstall" target="_blank" rel="noopener noreferrer">xiaoqiang-rosinstall</a>软件源中。使用起来十分方便。</p>
<p dir="auto">下面是xiaoqiang-rosinstall软件源的使用说明。</p>
<h1>ROS Installs</h1>
<p dir="auto">此软件源包含了小强相关的rosinstall文件。方便用户通过wstool工具对自己的工作空间进行管理。比如软件的更新,恢复出厂软件设置等等。</p>
<h2>文件说明</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">文件</th>
<th style="text-align:left">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">xq4-pro.rosintall</td>
<td style="text-align:left">小强XQ4 Pro 工作空间文件</td>
</tr>
<tr>
<td style="text-align:left">mini.rosinstall</td>
<td style="text-align:left">小强 mini 工作空间文件</td>
</tr>
<tr>
<td style="text-align:left">xq5.rosinstall</td>
<td style="text-align:left">小强 XQ5 工作空间文件</td>
</tr>
</tbody>
</table>
<h2>如何使用</h2>
<h3>创建工作空间</h3>
<pre><code class="language-bash">mkdir -p catkin_ws/src
cd catkin_ws/src
wstool init
</code></pre>
<p dir="auto">如上操作会在 catkin_ws/src 文件夹内创建一个.rosinstall文件。这个文件是wstool工具用来记录工作空间的软件信息的文件。catkin_ws为示例的工作空间路径。</p>
<h3>添加rosintall文件</h3>
<pre><code class="language-bash">cd ~/Documents
git clone https://github.com/bluewhalerobot/xiaoqiang-rosinstall.git
cd catkin_ws/src
# 此处以xiaoqiang xq4 pro 的工作空间为例。请根据你的版本选择不同的rosinstall文件
wstool merge ~/Documents/xiaoqiang-rosinstall/xq4-pro.rosinstall
</code></pre>
<p dir="auto">以上操作会将对应的rosintall文件内容添加到本地工作空间的rosinstall文件中。<br />
添加rosinstall只需要第一次执行。如果已经添加过了，之后就不需要再添加了。</p>
<h3>更新软件</h3>
<pre><code class="language-bash">wstool status
wstool update
</code></pre>
<p dir="auto">如果有更新失败的软件包，说明本地文件发生了更改。如果想要获取到原版的小强程序可以直接把本地软件包删除。然后再次运行 <code>wstool update</code>。</p>
<h3>查看自己修改过哪些文件</h3>
<pre><code class="language-bash">wstool status
</code></pre>
<p dir="auto">此指令会列出小强工作空间中左右被修改的文件。</p>
]]></description><link>http://community.bwbot.org/topic/548/使用wstool管理小强的工作空间</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 21:57:25 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/548.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Sep 2018 05:24:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 使用wstool管理小强的工作空间 on Sat, 01 Dec 2018 08:40:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/655">@kevin</a> 使用 <code>wstool scrape</code>指令自动生成</p>
]]></description><link>http://community.bwbot.org/post/993</link><guid isPermaLink="true">http://community.bwbot.org/post/993</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Sat, 01 Dec 2018 08:40:48 GMT</pubDate></item><item><title><![CDATA[Reply to 使用wstool管理小强的工作空间 on Fri, 30 Nov 2018 07:22:25 GMT]]></title><description><![CDATA[<p dir="auto">你好，请问下这些<code>xq4-pro.rosintall</code>、<code>mini.rosintall</code>、<code>xq5.rosintall</code>文件是怎么生成的？</p>
]]></description><link>http://community.bwbot.org/post/992</link><guid isPermaLink="true">http://community.bwbot.org/post/992</guid><dc:creator><![CDATA[kevin]]></dc:creator><pubDate>Fri, 30 Nov 2018 07:22:25 GMT</pubDate></item></channel></rss>