Open osrf-migration opened 5 years ago
May want to look into client image and check whether it's started, or else investigate whether docker compose will handle this.
This is a duplicate of issue #7, which includes Tyler's write up. Currently, the way we check for this is indirect, by making the testing infrastructure available to the teams and conducting the dress rehearsal.
We can avoid having to wait an arbitrary, fixed about of time by switching to Docker compose and using the depends_on flag. This is an easy way of making sure the team's container doesn't run until the vrx-server is up. It still doesn't prevent the competitor from starting while the team's container is getting ready.
There are some good suggestions for improving our approach here: https://docs.docker.com/compose/startup-order/
We can probably add a script that waits for the competitor container to be running before we start the initial_state_duration
timer.
Original report (archived issue) by Brian Bingham (Bitbucket: brian_bingham).
Currently the run_trial.bash script does the following in order:
We should verify that this timing won’t cause any problems. I believe it is done this way b/c if we start the team’s container first, it will not have a ROS master on the network which could cause problems.
This seems to have the potential for the simulation to start (and proceed towards Running state) before the team’s code gets up and running, especially if the team’s container takes significant time to spin up.
Also, Tyler left notes in the source to check on this, so wanted to get it into our list.