ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

what is xmlns tag for xacro?

asked 2017-01-12 07:14:55 -0500

shawnysh gravatar image

updated 2017-01-12 07:18:49 -0500

what is xmlns tag for xacro?

Here is the tutorial of xacro

It is confusing for me to see the below code

<robot xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor"
       xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller"
       xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
       xmlns:xacro="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
       name="pr2" >

Why linking to those paths?

When should I use this?

How should I write this?

I need a detailed explanation to it. I do not know what xmlns value I should assign to.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-01-12 07:38:07 -0500

VictorLamoine gravatar image
edit flag offensive delete link more

Comments

This is basically the answer.

xmlns is short for "XML NameSpace", and is a special XML construct that is expained in the links @VictorLamoine posted. @shawnysh: you can essentially consider them like import statements in the example you posted. But it's really an XML thing, not ROS specific.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-12 13:23:22 -0500 )edit
shawnysh gravatar image shawnysh  ( 2017-01-14 05:08:14 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-01-12 07:14:55 -0500

Seen: 2,655 times

Last updated: Jan 12 '17