]> rtime.felk.cvut.cz Git - socketcan-simulink.git/blobdiff - demo/canopen_2j_arm/run_model.sh
Include initial version of two joints robotic arm model.
[socketcan-simulink.git] / demo / canopen_2j_arm / run_model.sh
diff --git a/demo/canopen_2j_arm/run_model.sh b/demo/canopen_2j_arm/run_model.sh
new file mode 100755 (executable)
index 0000000..b3b26b2
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "$2" ] ; then
+
+  xterm -e "scp -i target-ssh-key ./$1 root@$2:/tmp ; echo model $1 copied to target is run ; ssh  -i target-ssh-key root@$2 /tmp/$1 -tf inf -w ; sleep 2" &
+
+else
+
+  xterm -e "./$1 -tf inf -w ; sleep 2" &
+
+fi