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.
We assume ROS
is installed on the machine.
Code is developed and tested so far under ROS kinetic
.
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
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)
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.