Ask Your Question
1

Port to connect to rostest rosmaster after Indigo

asked 2015-05-02 06:04:31 -0500

130s gravatar image

updated 2015-05-02 11:24:38 -0500

Connecting to rosmater with specific port number used to be possible. I see this pull request against Indigo that randomizes the rosmaster port for rostest. Does this mean that there is now no way to connect to rosmater during rostest?

(I'm seeing an issue that only occurs to me during rostest. I want to see values set in Parameter Server for debug purpose.)

$ dpkg -p ros-indigo-ros-comm | grep Ver
Version: 1.11.13-0trusty-20150429-190011-0700
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-03-04 22:45:00 -0500

lucasw gravatar image

updated 2016-03-04 22:46:39 -0500

https://github.com/ros/ros_comm/pull/637 replaced the earlier pr and was merged and now rostest --reuse-master pkg foo.test will use the standard ROS_MASTER_URI port.

edit flag offensive delete link more

Comments

But is there a way to catkin_make run_tests and reuse-master?

lucasw gravatar imagelucasw ( 2016-03-19 08:45:16 -0500 )edit
3

answered 2015-05-02 14:24:13 -0500

Dirk Thomas gravatar image

updated 2016-03-04 22:51:22 -0500

lucasw gravatar image

As mentioned in the referenced PR rostest has been modified for Indigo to use a random port by default ( https://github.com/ros/ros_comm/pull/467 ). That allows to run multiple rostests in parallel which significantly speeds up testing.

For your use case it would be good if you could override the port using a command line argument to rostest. Since the internal API of rostest still allows to configure a custom port it should be straight forward to add a command line argument for that. It would be great if you could create a PR for this feature.

After that the referenced wiki page should be updated as well.

edit flag offensive delete link more

Comments

Thanks, and PR is opened.

130s gravatar image130s ( 2015-05-04 04:10:47 -0500 )edit

Any update on this PR? It's still not merged as of 6/18/2015

Peaches491 gravatar imagePeaches491 ( 2015-06-18 15:51:56 -0500 )edit

The PR fails some unit tests which need to be fixed by the PR author before it can be merged.

Dirk Thomas gravatar imageDirk Thomas ( 2015-06-18 16:08:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-05-02 06:04:31 -0500

Seen: 350 times

Last updated: Mar 04 '16