Closed thomas-moulard closed 11 years ago
Hello Thomas,
I think that making the -r
flag a requirement will make the script quite painful to use.
IMHO, having to type every time -r hydro
in command line will soon be daunting.
I think that a good compromise would be to avoid giving a default value to ROS_VERSION
(*) and stop
the script if it has not been HARD_CODED nor given with the -r flag.
(*) ie remove the lines
if [ "$ROS_VERSION" == "" ]; then ROS_VERSION=electric # ROS VERSION by default electric fi
François
Why not detecting the ros version installed on the system and give the user a choice ? Otherwise IMHO, I would support Francois suggestion.
I pushed @francois-keith idea. If not version is set it fails, if ROS_VERSION is set it is used. If -r
is passed it takes precedence over the environment variable.
Thanks Thomas !
The current default ROS version is
electric
which will soon disappear. What about making the-r
flag a requirement?Another way would be to detect automatically the last version of ROS available on the system.