Home | Tutorials | Wiki | Issues
Ask Your Question

Is it possible to use variables in sdf file?

asked 2015-03-21 09:02:18 -0600

winston gravatar image

I am in such a situation that I want to create the same type of robots in gazebo sharing one sdf file. The only differences are robots' name. So can I use a string array robot_name[index], for example, to replace the model name tags in sdf in my code using option 2 as this tutorial suggests. Or do you have any better solutions?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-07 10:34:26 -0600

winston gravatar image

I found the answer recently. I could use Ruby. Read these links:
1. How can I declare a variable in model.sdf file?;
2. Algorithmic world generation

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-03-21 09:02:18 -0600

Seen: 1,854 times

Last updated: Aug 07 '16