Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Including other xacro files

We can extend the capabilities of the robot xacro by including the xacro definition of sensors using the xacro:include tag. The following code snippet shows how to include a sensor definition in the robot xacro:

  <xacro:include filename="$(find mastering_ros_robot_description_pkg)/urdf/sensors/xtion_pro_live.urdf.xacro"/> 

Here, we include a xacro definition of sensor called Asus Xtion pro, and this will be expanded when the xacro file is parsed.

Using "$(find mastering_ros_robot_description_pkg)/urdf/sensors/xtion_pro_live.urdf.xacro", we can access the xacro definition of the sensor, where find is to locate the current package mastering_ros_robot_description_pkg.

We will discuss more on vision processing in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content