Building a Movable Robot Model with URDF 用URDF建立移动机器人模型
原文链接: https://wiki.ros.org/urdf/Tutorials/Building a Movable Robot Model with URDF
Description: Learn how to define movable joints in URDF
描述:了解如何在URDF中定义活动关节
Keywords: URDF, Joints
关键词:URDF,关节
Tutorial Level: BEGINNER
教程级别:初学者
Next Tutorial: Adding Physical and Collision Properties to the Model
下一篇教程:向模型添加物理和碰撞特性
In this tutorial, we’re going to revise the R2D2 model we made in the previous tutorial so that it has movable joints. In the previous model, all of the joints were fixed. Now we’ll explore three other important types of joints: continuous, revolute and prismatic.
在本教程中,我们将修改上一教程中创建的R2D2模型,使其具有可移动关节。在以前的模型中,所有关节都是固定的。现在我们将探讨其他三种重要类型的关节:连续关节、旋转关节和棱柱关节。
Make sure you have installed all prerequisites before continuing. See the previous tutorial for information on what is required.
继续之前,请确保已安装所有必备组件。有关所需内容的信息,请参见上一教程。
Again, all of the robot models mentioned in this tutorial can be found in the urdf_tutorial package.
同样,本教程中提到的所有机器人模型都可以在urdf_tutorial包中找到。
Here is the new urdf with flexible joints. You can compare it to the previous version to see everything that has changed, but we’re just going to focus on three example joints.
这是带有柔性接头的新urdf。您可以将其与以前的版本进行比较,以查看所有更改,但我们将只关注三个示例关节。
To visualize and control this model, run the same command as the last tutorial: roslaunch urdf_tutorial display.launch model:=urdf/06-flexible.urdf
However now this will also pop up a GUI that allows you to control the values of all the non-fixed joints. Play with the model some and see how it moves. Then, we can take a look at how we accomplished this.
要可视化和控制此模型,请运行与上一教程相同的命令:roslaunch urdf_tutorial display.launch model:=urdf/06-flexible.urdf
但是现在这也将弹出一个GUI,允许您控制所有非固定关节的值。玩一下模型,看看它如何移动。然后,我们可以看看我们是如何做到这一点的。