How to fix this python's roslaunch API error?

asked 2019-07-01 05:27:32 -0500

achmad_fathoni gravatar image

I follow this procedure to execute roslaunch file with argument via python like this:

    # launch recording program
    uuid = roslaunch.rlutil.get_or_generate_uuid(None, False)
    cli_args = [
    roslaunch_file = roslaunch.rlutil.resolve_launch_arguments(cli_args)
    roslaunch_args = cli_args[2:]
    launch_file = [(roslaunch_file, roslaunch_args)]
    parent = roslaunch.parent.ROSLaunchParent(uuid, launch_file)

But it returns this error:

File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 450, in load_config_default'loading config file %s'%f)
TypeError: not all arguments converted during string formatting

similar question has been asked here but still no answer.

edit retag flag offensive close merge delete