Ask Your Question
2

what is xmlns tag for xacro?

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

shawnysh gravatar image

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

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 -0600

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 imagegvdhoorn ( 2017-01-12 13:23:22 -0600 )edit
shawnysh gravatar imageshawnysh ( 2017-01-14 05:08:14 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 1,126 times

Last updated: Jan 12 '17