ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Tests if ros master is not running using rostest

asked 2016-02-05 01:15:41 -0500

130s gravatar image

I like to write a test for a feature that detects if ros master is not running. Using rostest, which automatically starts ros master, is there a way to achieve this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-05 01:52:55 -0500

ahendrix gravatar image

I think you've answered your own question: since rostest starts a master, you won't be able to use it for tests where a master isn't running.

Why not use a standard test framework such as gtest or nosetest for your tests which don't require a ROS master to be running?

edit flag offensive delete link more

Comments

Looking at a catkin's document, using non-ROS test structures sound like a right path.

Nosetest is the framework for running Python unit tests. No ROS environment is available. See: Configuring rostest if your tests need a running roscore.

130s gravatar image 130s  ( 2016-02-09 11:14:28 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-05 01:15:41 -0500

Seen: 591 times

Last updated: Feb 05 '16