- Mastering ROS for Robotics Programming
- Lentin Joseph
- 129字
- 2021-07-30 10:03:25
Adding physical and collision properties to a URDF model
Before simulating a robot in a robot simulator, such as Gazebo, V-REP, and so on, we need to define the robot link's physical properties such as geometry, color, mass, and inertia, and the collision properties of the link.
We will only get good simulation results if we define all these properties inside the robot model. URDF provides tags to include all these parameters and code snippets of base_link
contained in theses properties as given here:
<link> ...... <collision> <geometry> <cylinder length="0.03" radius="0.2"/> </geometry> <origin rpy="0 0 0" xyz="0 0 0"/> </collision> <inertial> <mass value="1"/> <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/> </inertial> ........... </link>
Here, we define the collision geometry as cylinder and the mass as 1 Kg, and we also set the inertial matrix of the link.
The collision
and inertia
parameters are required in each link; otherwise, Gazebo will not load the robot model properly.
推薦閱讀
- 零基礎搭建量化投資系統:以Python為工具
- Beginning Java Data Structures and Algorithms
- Visual Basic 6.0程序設計計算機組裝與維修
- PHP基礎案例教程
- 信息可視化的藝術:信息可視化在英國
- Java:Data Science Made Easy
- Learning ArcGIS Pro
- Symfony2 Essentials
- BIM概論及Revit精講
- Android系統級深入開發
- 微服務架構深度解析:原理、實踐與進階
- HTML5秘籍(第2版)
- Python數據可視化之美:專業圖表繪制指南(全彩)
- Mastering Leap Motion
- ASP.NET Core and Angular 2