Ignore ros-args in parameter bridge #65
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Starting from eloquent, the --ros-args flag becomes mandatory and, according to the design document, even an empty
--ros-flags
is valid.When embedding the parameter_bridge in a launch file in eloquent, i.e. in the following way (forwarding ignition clock to ROS2):
ros_ign_bridge crashes because it doesn't expect the --ros-args flag:
[ERROR] [parameter_bridge-1]: process has died [pid 1398, exit code 255, cmd '/home/luca/demos_ws/install/ros_ign_bridge/lib/ros_ign_bridge/parameter_bridge /clock@rosgraph_msgs/msg/Clock[ignition.msgs.Clock --ros-args'].
This PR ignores every command line argument after the --ros-args (since it's not used anyway in the bridge), fixing the crash.