Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[roslaunch] Indicating <node> tag when it is actually a <test> tag is confusing. #989

Closed
wants to merge 1 commit into from

Conversation

130s
Copy link
Member

@130s 130s commented Feb 16, 2017

For example, this warning msg (in this PR):

* WARN: unrecognized 'group' tag in <node> tag. Node xml is <test name="$(arg testnode_name)" pkg="rostest" test-name="hztest_test" type="hztest">
   <group unless="$(arg expected_success)">
     <node args="-r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag" name="play" pkg="rosbag" type="play"/>
     <param name="hz" value="0.0"/>
   </group>

This is confusing because the tag in question is actually <test>, not <node>. Although the warning message refers to the exact tag, I didn't try to read it because I was told the issue is with <node>, not <test>.

With this PR the message becomes a bit verbose but hope the readers get better idea.

Copy link
Member

@dirk-thomas dirk-thomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make PR against the latest development branch, currently kinetic-devel. You can edit the existing PR and retarget a different branch by clicking edit beside the PR title.

tools/roslaunch/src/roslaunch/xmlloader.py Outdated Show resolved Hide resolved
@130s 130s changed the base branch from indigo-devel to kinetic-devel February 16, 2017 18:48
@130s 130s force-pushed the i/roslaunch/warningmsg branch 3 times, most recently from 546004d to 0951eaa Compare February 16, 2017 19:19
… confusing.

For example, [this warning msg](https://travis-ci.org/wg-perception/people/jobs/202019288#L3737) (in this [PR](wg-perception/people#49)):

 ```
 * WARN: unrecognized 'group' tag in <node> tag. Node xml is <test name="$(arg testnode_name)" pkg="rostest" test-name="hztest_test" type="hztest">
    <group unless="$(arg expected_success)">
      <node args="-r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag" name="play" pkg="rosbag" type="play"/>
      <param name="hz" value="0.0"/>
    </group>
```

This is confusing because the tag in question is actually `<test>`, not `<node>`. Although the warning message refers to the exact <test> tag, I didn't try to read it because I was told the issue is with <node>, not <test>.

With this PR the message becomes a bit verbose but hope the readers get better idea.
@dirk-thomas
Copy link
Member

Thank you for the patch. I cherry-picked a slightly modified version ("child %s tag" -> "%s child tag") in 084b51b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants