ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I don't believe that is possible, but there are two workarounds.

One is that variables are global, such that if you declare a variable in the including file, it will still have that value in the included file.

However, if you want to include something more than once (say, a left and a right leg) then you should create a macro and use the argument passing logic in there to achieve your goal.