[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Parameter values get evaluated by yaml rules #31

Merged
merged 3 commits into from
May 21, 2019

Conversation

sloretz
Copy link
Contributor
@sloretz sloretz commented May 20, 2019

Resolves #30

This PR evaluates parameter values as yaml would.

I'm not set up to run mypy at the moment, so I'm not confident the type annotations are correct.

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz sloretz requested review from wjwwood and Karsten1987 May 20, 2019 23:46
@sloretz sloretz self-assigned this May 20, 2019
Copy link
Member
@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

A few comments, but overall lgtm!

sloretz added 2 commits May 21, 2019 09:42
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz
Copy link
Contributor Author
sloretz commented May 21, 2019

CI (testing launch_ros and test_launch_ros)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@sloretz sloretz merged commit bb82f31 into master May 21, 2019
@delete-merged-branch delete-merged-branch bot deleted the sloretz/yamlfy_parameter_values branch May 21, 2019 17:28
@Karsten1987
Copy link
Contributor

Oh, too late for the party. But anyway, this works great! :)

One can now set boolean parameters when launching a node:

        Node(
            package='robot_state_publisher',
            node_executable='robot_state_publisher',
            node_name='robot_state_publisher',
            output='screen',
            parameters=[{'use_sim_time': LaunchConfiguration('use_sim_time')}],
            arguments=[urdf])

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

Successfully merging this pull request may close these issues.

launch file should interpret LaunchConfiguration values as yaml
3 participants