ros/xacro — pull request #8 by piyushk (2013-06-02 02:08:39+00:00)
Title: xacro conditional blocks

resubmitting pull request https://github.com/ros/xacro/pull/7 to be merged into hydro-devel

---

This patch allows adding conditionals to xacro with the following syntax. This is useful in the case of configurable robots or loading different gazebo plugins.
```

<... some xml code here ...>

<... some xml code here ...>

```
The expression needs to evaluate to "0", "true", "1" or "false", otherwise an error will be thrown. Additionally, the conditional has no effect on macro or property definitions, and is only used while constructing the final xml.

The pull request also includes a minor bug fix. https://github.com/piyushk/xacro/commit/5c0cbd7e939bf8dc782d2914003d7ffd3f25788f