Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 152

How to use conditional includes in xacro?

$
0
0
Hi all! When I'm using if-conditions in xacro like the example below, the substitution macro ($(find.... )) of the xacro:include statement will be evaluated independent of the if-result causing errors when the package is missing. I intend to have optional packages included which are not available by default. For this purpose I expected to use xacro:if analogously as the if-statement in launch files to enable or disable parts of the xacro file. Is there a proper way to model such things? (I'm using ROS Indigo with Ubuntu 14.04.) Thanks!

Viewing all articles
Browse latest Browse all 152

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>