Parameterizing elements of an SDF model
I'm new to Gazebo and I've been trying to create a SDF model for a general wall I'll be using in a Vicon space. I'm using aau gazebo vicon to modify the pose of my wall model, but, because I have eight walls, I need to figure out how to parameterize the ros topic they listen to.
Specifically, the code I'm trying to modify is:
<plugin name="ros_transform" filename="/home/cohrint/catkin_ws/devel/lib/libros_transform.so">
<targetLink>wall</targetLink>
<transformTopic>/vicon/Wall1/Wall1</transformTopic>
</plugin>
How can I change <transformTopic>/vicon/Wall1/Wall1</transformTopic>
to <transformTopic>/vicon/Wall(n)/Wall(n)</transformTopic>
where (n)
is the nth wall loaded into gazebo?