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

Remove ROS-specific arguments before passing to argparse #994

Merged
merged 1 commit into from
Sep 12, 2019

Commits on Sep 11, 2019

  1. Remove ROS-specific arguments before passing to argparse

    This resolves argparse errors when trying to launch the spawn_entity script as a ROS node.
    
    For example, a launch file like the following wouldn't work without this change:
    
        <launch>
          <arg name="model_urdf" default="$(find-pkg-share mymodels)/urdf/ball.urdf" />
          <node
            pkg="gazebo_ros"
            exec="spawn_entity.py"
            name="spawner"
            args="-entity foo -file /path/to/my/model/foo.urdf" />
        </launch>
    
    Signed-off-by: Jacob Perron <jacob@openrobotics.org>
    jacobperron committed Sep 11, 2019
    Configuration menu
    Copy the full SHA
    f23fa55 View commit details
    Browse the repository at this point in the history