ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok. Thanks for showing us the actual error.

This has most likely nothing to do with quotes or not.

The cause is here that you're trying to start a script that is not equipped to deal with roslaunch args with roslaunch.

Notice this part in the error message:

unrecognized arguments: __name:=makeSoundRequest __log:=/home/nvidia/.ros/log/0681ca48-10f0-11ea-8929-00044bc771c7/makeSoundRequest-1.log

Those arguments (__name and __log) are added by roslaunch to the command line used to invoke your script. So in the end, the complete command line used to invoke your script becomes:

/absolute/path/to/makeSoundRequest.py __name:=makeSoundRequest __log:=/home/nvidia/.ros/log/0681ca48-10f0-11ea-8929-00044bc771c7/makeSoundRequest-1.log --text 'please say something' --label mode1

As your script doesn't expect those extra arguments, it fails with the error message that you show.

You could either do what @Delb suggests (ignore "unknown args"), or properly handle them using an approach similar to what is described in #q272267.