Random number in launch file
Hi all,
I'm using ROS Indigo with Gazebo to simulate a robot and I would like to spawn my robot at random positions in the world. I use launch files to start the whole simulation. In these launch files the spawning position is initially defined. Therefore I thought it would be best to create a random position in the launch file but since this is all xml, I doubt this is possible. Does anyone have any idea how I can somehow change the spawning position each run? Somehow run an external C++ program that passes a random number to the launch file?
Cheers