Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

roslaunch: Allow passing _TIMEOUT_SIGINT and _TIMEOUT_SIGTERM as parameters#1502

Closed
peci1 wants to merge 5 commits intoros:melodic-develfrom
tradr-project:parametrize_timeouts
Closed

roslaunch: Allow passing _TIMEOUT_SIGINT and _TIMEOUT_SIGTERM as parameters#1502
peci1 wants to merge 5 commits intoros:melodic-develfrom
tradr-project:parametrize_timeouts

Conversation

@peci1
Copy link
Copy Markdown
Contributor

@peci1 peci1 commented Sep 7, 2018

Fixes #1493 by adding roslaunch CLI options --sigint-timeout and --sigterm-timeout. The timeouts are common to all nodes launched by this command. It would be possible to customize them per-node, but that would require changing the XML tags, and I'm not sure if it'd be useful at all.

It needed an unexpectedly big change to the codebase, but mainly it was just adding and passing keyword arguments of methods, so the API should be backwards compatible (every added kw argument has a default value).

I added unit tests for the local nodes, however, I haven't figured out any other way of testing this than really launching and stopping nodes, so the newly added tests need about 20 seconds to run... I hope it's not a big problem...

I also haven't figured out how to do automatic testing of the remote launch, but it seems that it's not tested at all. So I at least added a script you can run manually in case you have a second machine set up for remote launching. This test passed on my machine.

Theoretically, it should work also on Windows, but I haven't tested that.

@peci1
Copy link
Copy Markdown
Contributor Author

peci1 commented Sep 7, 2018

Hmm, the test failures seem to be unrelated...

@PymZoR
Copy link
Copy Markdown

PymZoR commented Dec 4, 2018

+1, that would be very appreciated and time-saving :)

@dirk-thomas
Copy link
Copy Markdown
Member

The patch removes the previously (private) constants and duplicates the values 2 and 15 in numerous places. Please keep the constants (without a leading underscore) and use them everywhere instead of the integers.

@peci1
Copy link
Copy Markdown
Contributor Author

peci1 commented Apr 29, 2019

Closing in favor of #1670.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

roslaunch: Allow passing _TIMEOUT_SIGINT and _TIMEOUT_SIGTERM as parameters

3 participants