Skip to content

Commit

Permalink
fix whitespace in ros-ed/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Apr 2, 2019
1 parent e498815 commit 467331b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions ros-ed/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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 "{}"'

0 comments on commit 467331b

Please sign in to comment.