diff --git a/ros-ed/setup b/ros-ed/setup index f089d3e59..a40bfab27 100644 --- a/ros-ed/setup +++ b/ros-ed/setup @@ -4,28 +4,28 @@ export ED_PLUGIN_PATH=$TUE_ENV_DIR/dev/devel/lib:$TUE_ENV_DIR/system/devel/lib function ed { - if [ -z "$1" ] - then - echo """Usage: ed COMMAND [ARG1 ARG2 ... ] + if [ -z "$1" ] + then + echo """Usage: ed COMMAND [ARG1 ARG2 ... ] Possible commands: run Starts the ED server reset Resets ED """ - return - fi + return + fi - if [ "$1" == "run" ] - then + if [ "$1" == "run" ] + then shift - rosrun ed ed_server $@ - elif [ "$1" == "reset" ] - then - rosservice call /ed/reset - else - echo "ED: Unknown command: '$1'" - fi + rosrun ed ed_server $@ + elif [ "$1" == "reset" ] + then + rosservice call /ed/reset + else + echo "ED: Unknown command: '$1'" + fi } alias ed-reset='rosservice call /ed/reset "{}"'