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
Add frontend parsing methods for Node, ExecutableInPackage and FindPackage substitution #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks amazing, great job @ivanpauno !
test_launch_ros/test/test_launch_ros/xml_frontend/test_node_xml.py
Outdated
Show resolved
Hide resolved
cda8719
to
c56dff8
Compare
3abfbe9
to
1282980
Compare
Rebased again with master |
@hidmic 218d879 and ros2/launch@cd4ff85 handles parameters correctly after #31. |
f0e244c
to
86bd241
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also lgtm!
test_launch_ros/test/test_launch_ros/launch_frontend/test_node_frontend.py
Outdated
Show resolved
Hide resolved
import pytest | ||
|
||
# Scaping the quote is needed in 'a_string' launch configuration, becuase of how the parser works. | ||
# TODO(ivanpauno): Check if it's possible to avoid that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivanpauno is all this quoting for 'a_string'
due to substitution grammar parsing? Is that bad for YAML markup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the substitution grammar needs the quotes escaped. In YAML markup you have the same problem, but it's not particularly "bad" for it.
The yaml example is in the same file (below the xml example).
test_launch_ros/test/test_launch_ros/launch_frontend/test_node_frontend.py
Outdated
Show resolved
Hide resolved
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
…ckage.xml. Move test descriptions in place Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
This reverts commit 218d879. Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
…ated test. Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivan <ivanpauno@gmail.com>
Signed-off-by: ivan <ivanpauno@gmail.com>
Signed-off-by: ivan <ivanpauno@gmail.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
f456720
to
3a95e38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes lgtm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too!
package = parser.parse_substitution(entity.get_attr('package')) | ||
kwargs['package'] = package | ||
executable = parser.parse_substitution(entity.get_attr('executable')) | ||
kwargs['node_executable'] = executable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivanpauno just curious, why the two step assignment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a bad habit.
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add parsing method for Node and ExecutableInPackage.
Add test example of launching a node from xml.
Blocked by ros2/launch#226
Blocked by #33