<?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 (3) Displaying Xiaoqiang Robot Model in 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>
<h3>Displaying Xiaoqiang Robot Model in rviz</h3>
<p dir="auto">It is a cool thing to display the current pose of the robot in real time. With rviz, you can easily achieve this goal in ROS. Look at the results:</p>
<p dir="auto"><video src="https://community.bwbot.org/assets/uploads/files/1537508265958-1464181444790-udrf.webm" controls style="max-width:100%"></video></p>
<p dir="auto">The Xiaoqiang model package located at <code>Documents/ros/src/xiaoqiang_udrf</code> and can also be downloaded from our open source repository on Github.</p>
<pre><code class="language-bash"># Connect the Xiaoqiang host to the monitor and keyboard, and after booting, open the terminal
# stop the startup task first
sudo service startup stop
roscore
# Open a new terminal on Xiaoqiang host, start this package
roslaunch xiaoqiang_udrf display.launch
</code></pre>
<p dir="auto">Note that this process requires a graphical interface, so there is no way to operate through a remote ssh connection. If you must use ssh connection, you can add <code>-X</code> (note the capital) option when connecting, but the experience is not good and is not recommended. It is recommended to operate through VNC. VNC installation method can refer to this <a href="https://community.bwbot.org/topic/618" target="_blank" rel="noopener noreferrer">article</a>.</p>
<p dir="auto"><code>If you want to open the model package remotely, you need to install Xiaoqiang's model package locally. For users using the Xiaoqiang system image, Xiaoqiang's model package has been installed in advance.</code></p>
<p dir="auto"><img src="/assets/uploads/files/1536149760524-6cdf6f32-235c-4317-9658-1bd7d8744932-image-resized.png" alt="0_1536149758424_6cdf6f32-235c-4317-9658-1bd7d8744932-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1536149766770-881963c3-4493-4760-b099-123138ee7d0b-image-resized.png" alt="0_1536149764875_881963c3-4493-4760-b099-123138ee7d0b-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">At this point, there is no thing to display, you need to add rviz display items</p>
<p dir="auto"><img src="/assets/uploads/files/1536149789609-63a72c85-5cb4-47ae-81bf-7432238171ab-image-resized.png" alt="0_1536149787678_63a72c85-5cb4-47ae-81bf-7432238171ab-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1536149797027-1d97256a-d3a1-4956-b6a2-06485c7c8da5-image-resized.png" alt="0_1536149795091_1d97256a-d3a1-4956-b6a2-06485c7c8da5-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">There is still a problem, the entire model is transparent and whitish, this is because the global coordinate system <code>fixed frame</code> in the rviz is not set properly, After map is changed to <code>base_link</code>, it will display normally</p>
<p dir="auto"><img src="/assets/uploads/files/1536149817758-ed84ade1-2d26-44b1-aba8-1cc82d50922a-image-resized.png" alt="0_1536149815803_ed84ade1-2d26-44b1-aba8-1cc82d50922a-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Now operate the slider in the upper right corner to turn the corresponding wheel.</p>
<p dir="auto">Above we simply demonstrated the use of rviz to display the urdf model. The following section will describe in detail the whole process of making urdf model with solidworks under windows system.</p>
<p dir="auto">First use solidworks to create the platform model, download and install the solidwork to <a href="http://wiki.ros.org/sw_urdf_exporter" target="_blank" rel="noopener noreferrer">urdf plug-in</a>.</p>
<p dir="auto">After making a model, you need to add a coordinate system. This coordinate system will be used as the reference coordinate system of the entire urdf model (ie, the base_link frame in ROS).</p>
<p dir="auto"><img src="/assets/uploads/files/1536149868970-1cce9b61-3132-4ec2-866b-7f5f7b3d5e7b-image-resized.png" alt="0_1536149867003_1cce9b61-3132-4ec2-866b-7f5f7b3d5e7b-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Open urdf plugin</p>
<p dir="auto"><img src="/assets/uploads/files/1536149884326-15d512fb-f066-4224-99f6-fce0023f6bfb-image-resized.png" alt="0_1536149882541_15d512fb-f066-4224-99f6-fce0023f6bfb-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Xiaoqiang has two driving wheels and one driven wheel, so the whole model needs 3 links, 3 joints. First edit the <code>base_link</code>, pay attention to the global coordinate system above, the red area in the picture is the item you need to click or modify.</p>
<p dir="auto"><img src="/assets/uploads/files/1536149904286-df79b244-30bb-4e6e-af8a-25fff4c3bb39-image-resized.png" alt="0_1536149902192_df79b244-30bb-4e6e-af8a-25fff4c3bb39-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Then right wheel</p>
<p dir="auto"><img src="/assets/uploads/files/1536149922484-6b17942f-d35d-4fd9-b60c-6b46291e5b05-image-resized.png" alt="0_1536149920556_6b17942f-d35d-4fd9-b60c-6b46291e5b05-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Continue the revolver and rear wheel</p>
<p dir="auto"><img src="/assets/uploads/files/1536149959383-90174cee-76a6-4ff8-8b8d-d481dc9cc9a7-image-resized.png" alt="0_1536149957391_90174cee-76a6-4ff8-8b8d-d481dc9cc9a7-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1536149967605-c75952f1-c141-45cc-91aa-cbf0b6a2e96e-image-resized.png" alt="0_1536149965619_c75952f1-c141-45cc-91aa-cbf0b6a2e96e-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">All settings are now complete, start exporting</p>
<p dir="auto"><img src="/assets/uploads/files/1536149990272-5e618c54-621d-48d8-a546-d68c5d8688c9-image-resized.png" alt="0_1536149988313_5e618c54-621d-48d8-a546-d68c5d8688c9-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">All the way next and ok go</p>
<p dir="auto"><img src="/assets/uploads/files/1536150017700-919adc20-bc43-4615-aa04-2ab3260c761e-image-resized.png" alt="0_1536150015728_919adc20-bc43-4615-aa04-2ab3260c761e-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1536150028508-4c88fc8f-1c0f-43c9-b769-d0eee1c26bd4-image-resized.png" alt="0_1536150026545_4c88fc8f-1c0f-43c9-b769-d0eee1c26bd4-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1536150038122-b654c15f-e112-4431-8e64-c92490bf3f5f-image-resized.png" alt="0_1536150036201_b654c15f-e112-4431-8e64-c92490bf3f5f-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Now that we have obtained the robot’s urdf file, the entire generated folder is a ROS package. Modify the display.launch file in the launch folder and change false to true</p>
<p dir="auto"><img src="/assets/uploads/files/1536150057576-de413c95-0212-4117-aa6c-a4125a2efafd-image-resized.png" alt="0_1536150055722_de413c95-0212-4117-aa6c-a4125a2efafd-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Copy this ros package to the ROS workspace. After running catkin_make, it can be tested and used by the method at the beginning of this article.</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/552/xiaoqiang-tutorial-3-displaying-xiaoqiang-robot-model-in-rviz</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 10:07:17 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/552.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Sep 2018 12:21:18 GMT</pubDate><ttl>60</ttl></channel></rss>