Closed osrf-migration closed 9 years ago
Original comment by Jordan Lack (Bitbucket: jordanlack).
Issue was unit test was finishing before gazebo had a chance to actually launch. Adding pause statements in the unit tests has fixed this. As far as I am concerned you can close this. Thanks!
Original comment by Jordan Lack (Bitbucket: jordanlack).
Pause in unit tests to give gazebo a chance to spawn fixed the issue.
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
Original report (archived issue) by Jordan Lack (Bitbucket: jordanlack).
The original report had attachments: gazebo_test.tar.gz
In order to comprehensively test things like gazebo plugins, I would like to be able to run a rostest unit test that launches a headless gazebo simulator with a robot in it. From that I would be able to create end to end tests of gazebo plugins as well as other software components such as controllers using gtest.
I am having a bit of trouble figuring out how to get the gazebo simulator to launch as part of a rostest though. Maybe I am going about this the wrong way and rostest is not the way to do this, but currently its the only way I have found. When I try to launch a gazebo sim as part of a rostest, I get an exception that tells me there has been a keyboard interrupt.
I have attached a catkin package that can be used to reproduce the issue I am having. To run, put the catkin package in a catkin workspace, then run the following commands from the top level of the catkin workspace,