Skip to content

tecnalia-advancedmanufacturing-robotics/ros_test_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

license - apache 2.0

Ros test generator

Assuming a ROS model has been extracted from a package, this component will generate the appropriate pattern specification file for the ROS package generator, to enable the creation of a test package.

Author & Maintainer: Anthony Remazeilles, [email protected]

Affiliation : Tecnalia Research and Innovation, Spain

License: This project is under the Apache 2.0 License.

Getting started

Prerequisites

We assume ROS is installed on the machine. Code is developed and tested so far under ROS kinetic.

Installing

The installation procedure follows the standard operations as any ROS package does.

# Assuming ~/catkin_ws is the workspace in which the repository has been downloaded
cd ~/catkin_ws
cp src/ros_test_generator/.rosinstall src/
wstool update -t src
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO
catkin build

Usage

We assume a package has been analysed using IPA320 tools, and that a .ros model file is available for the node of interest:

# go to the workspace root
roscd
rosrun ros_test_generator generate_xml -m ../ros_model_parser/resources/cob_light.ros -o check.xml
rosrun package_generator generate_package check.xml
catkin build
source devel/setup.zsh

The first operation parses the ROS model and interacts with you to complete the test definition. The second operation generates the testing package.

Warning

the generated test files need to be open to check and adjust the testing configuration. This is particularly the case if a service or a filter-like node is tested (to introduce input& output values in the test file)

Acknowledgements

This development is supported by the European Union’s Horizon 2020 project ROSIN. This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 732287.

The opinions and arguments expressed reflect only the author‘s view and reflect in no way the European Commission‘s opinions. The European Commission is not responsible for any use that may be made of the information it contains.

ROSIN website

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published