Robot Operating System Cookbook by Kumar Bipin
Author:Kumar Bipin
Language: eng
Format: epub
Tags: COM086000 - COMPUTERS / Computerized Home and Entertainment, COM051010 - COMPUTERS / Programming Languages / General, COM067000 - COMPUTERS / Hardware / General
Publisher: Packt Publishing
Published: 2018-06-29T11:24:45+00:00
Mobile robot's circular motion
Similarly, using the following command, we will start the 3D model of the arm robot in rviz and can visualize all of its articulations:
$ roslaunch robot_description arm_state_xacro.launch model:="'rospack find robot1_description'/urdf/arm_robot.xacro"
In the following screenshot, we can view the articulation of the arm robot:
Arm robot articulation
There's more…
3D modeling software such as SketchUp or Blender can be used to generate mesh designs for the 3D model, which can be exported in either *.dae or *.sdf format. We can create a URDF file and view the model on RViz. However, the detailed process for developing the mesh design for a 3D model using modeling software is beyond the scope of this book, but an advanced reader can find the resources on the web.
Nevertheless, we have the file named bot.dae in the robot_description/meshes folder at GitHub, which is a basic mesh design of the mobile robot model for demonstration purposes.
Hence, we will learn how to use the mesh design of a 3D model using the URDF file. Therefore, we will create a new file in the robot_description/urdf folder with the name dae.urdf, and we will add the following code to it (refer to the robot_description/urdf/dae.urdf package at GitHub):
<?xml version="1.0"?> <robot name="robot"> <link name="base_link"> <visual> <geometry> <mesh scale="1 1 1" filename="package://robot_description/meshes/bot.dae"/> </geometry> <origin xyz="0 0 0.226"/> </visual> </link> </robot>
The model can be exported to one file only, and so the wheels and chassis base are part of the same object. In order to develop a robot model with mobile parts, each part must be exported to a separate file.
We can verify the model by using the following command:
$ roslaunch robot_description simulation.launch model:="'rospack find robot_description'/urdf/dae.urdf"
As a result, we will get the following output:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12568)
Hello! Python by Anthony Briggs(9912)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9795)
The Mikado Method by Ola Ellnestam Daniel Brolund(9777)
Dependency Injection in .NET by Mark Seemann(9336)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8293)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7760)
Grails in Action by Glen Smith Peter Ledbrook(7693)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7040)
Microservices with Go by Alexander Shuiskov(6805)
Practical Design Patterns for Java Developers by Miroslav Wengner(6717)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6656)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Angular Projects - Third Edition by Aristeidis Bampakos(6065)
The Art of Crafting User Stories by The Art of Crafting User Stories(5596)
NetSuite for Consultants - Second Edition by Peter Ries(5531)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5335)
Kotlin in Action by Dmitry Jemerov(5062)
