roslaunch with arg arry roslaunch: error: no such option: -0

asked 2021-05-22 03:21:37 -0600

improve100 gravatar image

updated 2021-05-22 08:20:32 -0600

gvdhoorn gravatar image

is OK:

$ roslaunch /home/xxx/codes//install/share/xxx_gnss_driver/launch/xxx_gnss.launch tf_gps_rslidar:="0.72 -0.43 0.85 0.0335692727877856 0.01872668503988659 0.028346207480056704" 

... logging to /home/xxx/.ros/log/b1900702-b9fe-11eb-b65e-80ce62f28ef3/roslaunch-mingjiao-8233.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt

started roslaunch server http://xxx:46277/

SUMMARY

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14
 * /use_stamp_time: True
 * /xxxx_serial_reader/baud: 460800
 * /xxxx_serial_reader/port: /dev/gps

but If I use a shell variable instead of a parameter is not work

$ export PROGRAM_PARAMS2='tf_gps_rslidar:="0.72 -0.43 0.85 0.0335692727877856 0.01872668503988659 0.028346207480056704" '

$ roslaunch /home/xxx/codes/install/share/gnss_driver/launch/gnss.launch $PROGRAM_PARAMS2

Usage: roslaunch [options] [package] <filename> [arg_name:=value...]
       roslaunch [options] <filename> [<filename>...] [arg_name:=value...]

If <filename> is a single dash ('-'), launch XML is read from standard input.

roslaunch: error: no such option: -0

why?

edit retag flag offensive close merge delete