From fbd3317844442d62b5e11d43ab79862c5b80ea02 Mon Sep 17 00:00:00 2001 From: ipa-lth Date: Fri, 16 Nov 2018 11:37:11 +0100 Subject: [PATCH] ADD launch file for tcp based connection --- launch/driver.launch | 1 + launch/driver_tcp.launch | 23 +++++++++++++++++++++++ launch/socat_script.sh | 5 +++++ package.xml | 1 + 4 files changed, 30 insertions(+) create mode 100644 launch/driver_tcp.launch create mode 100755 launch/socat_script.sh diff --git a/launch/driver.launch b/launch/driver.launch index 9e4ebee..42ba426 100644 --- a/launch/driver.launch +++ b/launch/driver.launch @@ -1,3 +1,4 @@ + diff --git a/launch/driver_tcp.launch b/launch/driver_tcp.launch new file mode 100644 index 0000000..f9ce0c6 --- /dev/null +++ b/launch/driver_tcp.launch @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/launch/socat_script.sh b/launch/socat_script.sh new file mode 100755 index 0000000..009e753 --- /dev/null +++ b/launch/socat_script.sh @@ -0,0 +1,5 @@ +#!/bin/bash +echo ========================================================== +echo -e "| Mapping \e[31m$1\e[0m:\e[31m$2\e[0m to \e[31m$3\e[0m" +echo ========================================================== +socat -d -d PTY,link=$3 TCP:$1:$2 diff --git a/package.xml b/package.xml index 1ba1e7c..9fce97a 100644 --- a/package.xml +++ b/package.xml @@ -35,6 +35,7 @@ std_srvs tf xacro + socat rostest