It is an extension for TestIt toolkit which allows to test autonomous platform navigating in the confined area.
It also includes turtlebot example of how TestIt toolkit can be used.
First, one has to check if Docker has been installed. Then you need to save instructions from docker directories with names “Dockerfile” and type “File”. You can either download it here (https://github.com/arturgummel/dtrontestit) or clone the repository.
Finally, build the Testit base image by typing:
$ docker build –no-cache -t testit:latest .
To build SUT and testing images type next commands:
$ docker build --no-cache -t testit_tb_sut .
$ docker build --no-cache -t testit_tb_testit .
After a successful installation run TestIt base image with Docker:
$ docker run --name testit -v /var/run/docker.sock:/var/run/docker.sock -it testit bash
It is necessary to mount Docker socket to run Docker commands inside the container.
Navigate to the “catkin_ws” directory and source files:
$ cd /catkin_ws
$ source devel/setup.bash
To start TestIt daemon, type next command:
$ roslaunch dtron turtlebot.launch
The file for navigation with simple move_base action server is specified by default. But it can be changed by passing the path to the configuration file in the parameter.
For example, if we want to test topological navigation:
$ roslaunch dtron turtlebot.launch config:=/catkin_ws/src/testit/dtron/turtlebot/cfg/config_top_nav.yaml
To set the state and to bring up open new terminal and type:
$ rosrun testit testit_command.py bringup
And finally, to start the test type:
$ rosrun testit testit_command.py test
It is possible to monitor what happens in containers by passing the container identifier to the parameter:
$ docker attach CONTAINER-ID
Navigate to the “catkin_ws” directory and source files:
$ cd /catkin_ws
$ source devel/setup.bash
To start TestIt daemon, type next command:
$ roslaunch dtron turtlebot.launch config:=/catkin_ws/src/testit/dtron/turtlebot/cfg/config_stage.yaml
To set the state and to bring up open new terminal and type:
$ rosrun testit testit_command.py bringup
And finally, to start the test type:
$ rosrun testit testit_command.py test