hayato-m126 / launch_arg_sample

ros launch, demo

Repository from Github https://github.comhayato-m126/launch_arg_sampleRepository from Github https://github.comhayato-m126/launch_arg_sample

launch arg sample

This is demo package to describe launch argument bug how to set a launch argument that includes character colon.

problem

If a string argement includes colon : , launch process will die.

demo

demo command

# launch process will die
ros2 launch launch_arg_sample sample.launch.py compare_str:="Hello World:"
# working
ros2 launch launch_arg_sample sample.launch.py compare_str:="Hello World"

Solution

Enclose string in single quotes.

# working
ros2 launch launch_arg_sample sample.launch.py compare_str:="'Hello World:'"

Why

ros2/launch#508

About

ros launch, demo

License:Apache License 2.0


Languages

Language:C++ 65.6%Language:CMake 19.4%Language:Python 14.9%