Code Monkey home page Code Monkey logo

dtrontestit's Introduction

INFO

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.

SETUP

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 .

Executing the example

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

Executing the Stage example

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

dtrontestit's People

Contributors

arturgummel avatar

Watchers

James Cloos avatar Gert Kanter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.