1
$\begingroup$

Gazebo Answers logo

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?


Originally posted by winston on Gazebo Answers with karma: 449 on 2015-03-21

Post score: 2

$\endgroup$

1 Answer 1

0
$\begingroup$

Gazebo Answers logo

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

Originally posted by winston with karma: 449 on 2016-08-07

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.