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

Magnus's profile - activity

2020-12-02 11:52:50 -0500 commented question Why must I call roslaunch.configure_logging?

The logging in ~/.ros/log directory appears to behave exactly the same, with/without configure_logging(). I wonder what

2020-11-23 12:16:51 -0500 edited answer roslaunch parameter has additional newlines when set using command=

It because your python script is printing with newline endings. Print without a newline. Python 2: sys.stdout.write("/

2020-11-23 12:16:37 -0500 answered a question roslaunch parameter has additional newlines when set using command=

It because your python script it printing with newline endings. Print without a newline. Python 2: sys.stdout.write("/

2020-06-24 05:09:00 -0500 received badge  Famous Question (source)
2020-06-24 05:09:00 -0500 received badge  Notable Question (source)
2019-11-02 07:35:08 -0500 received badge  Popular Question (source)
2019-09-06 05:41:27 -0500 edited question Validating non-consecutive enums in dynamic reconfigure

Validating non-consecutive enums in dynamic reconfigure I'm using dynamic reconfigure to set a property to three possibl

2019-09-06 04:13:30 -0500 edited question Validating non-consecutive enums in dynamic reconfigure

Validating non-consecutive enums in dynamic reconfigure I'm using dynamic reconfigure to set a property to three possibl

2019-09-06 04:12:30 -0500 edited question Validating non-consecutive enums in dynamic reconfigure

Validating enums in dynamic reconfigure I'm using dynamic reconfigure to set a property to three possible values: 1, 3 o

2019-09-06 04:10:30 -0500 asked a question Validating non-consecutive enums in dynamic reconfigure

Validating enums in dynamic reconfigure I'm using dynamic reconfigure to set a property to three possible values: 1, 3 o

2019-07-09 03:37:40 -0500 received badge  Famous Question (source)
2019-05-03 08:37:48 -0500 received badge  Notable Question (source)
2019-04-15 04:42:46 -0500 received badge  Popular Question (source)
2019-03-01 04:16:59 -0500 received badge  Enthusiast
2019-02-27 13:02:16 -0500 marked best answer Enforce consecutive execution order for gtest and rostest.

My ROS package contains two test executables, one gtest and one rostest. They are specified in the CMakeLists as, catkin_add_gtest(...) and add_rostest_gtest(...) respectively.

When performing catkin run_tests my_package --no-deps, the rostest executable decides to run in the middle of the gtests. This is undesirable as the messages being published from one test could be received by another test.

Is there a way to ensure these tests are run consecutively?

Note: I tried using add_dependencies(my_gtest_target my_rostest_target), hoping it would force the gtest to execute before the rostest, but this makes no difference.

Looking at the build output, it seems two instances of run_tests.py are always run in parallel. One instance for gtest and one for rostest.

2019-02-27 13:02:16 -0500 received badge  Scholar (source)
2019-02-27 08:08:07 -0500 received badge  Self-Learner (source)
2019-02-27 08:08:07 -0500 received badge  Teacher (source)
2019-02-27 08:08:05 -0500 received badge  Student (source)
2019-02-27 07:43:48 -0500 answered a question Enforce consecutive execution order for gtest and rostest.

Catkin build accepts the jobs flag: https://catkin-tools.readthedocs.io/en/latest/verbs/catkin_build.html#configuring-bu

2019-02-27 07:38:40 -0500 edited question Enforce consecutive execution order for gtest and rostest.

Enforce consecutive execution order for gtest and rostest. My ROS package contains two test executables, one gtest and o

2019-02-27 05:02:45 -0500 edited question Enforce consecutive execution order for gtest and rostest.

Enforce consecutive execution order for gtest and rostest. My ROS package contains two test executables, one gtest and o

2019-02-27 04:59:26 -0500 edited question Enforce consecutive execution order for gtest and rostest.

Enforce consecutive execution order for gtest and rostest. My ROS package contains two test executables, one gtest and o

2019-02-27 04:31:11 -0500 edited question Enforce consecutive execution order for gtest and rostest.

Enforce consecutive execution order for gtest and rostest. My ROS package contains two test executables, one gtest and o

2019-02-27 04:31:11 -0500 received badge  Editor (source)
2019-02-27 03:47:29 -0500 edited question Enforce consecutive execution order for gtest and rostest.

Enforce consecutive execution order for gtest and rostest. My ROS package contains two test executables, one gtest and o

2019-02-27 03:37:34 -0500 asked a question Enforce consecutive execution order for gtest and rostest.

Enforce consecutive execution order for gtest and rostest. My ROS package contains two test executables, one gtest and o

2019-02-19 04:28:16 -0500 received badge  Supporter (source)