ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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=""
       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.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

VictorLamoine gravatar image
edit flag offensive delete link more


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

Your Answer

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

Add Answer

Question Tools



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

Seen: 2,435 times

Last updated: Jan 12 '17