ros / xacro

Xacro is an XML macro language. With xacro, you can construct shorter and more readable XML files by using macros that expand to larger XML expressions.

Home Page:http://www.ros.org/wiki/xacro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow property indirection `${value(variable)}`

rhaschke opened this issue · comments

Unfortunately, due to limitations of the property expression parser, we cannot implement property indirection, i.e. having a property variable that holds the name of the actual property one wants to access: ${${variable}}.
However, that's a crucial feature I missed multiple times in the past. One idea is to expose a function, e.g. value() which performs the indirection on the python level - without the need to adapt the expression parser: ${value(variable)}

Isn't this another instance of "double evaluation is not supported"?

Yes, exactly.