From d3f9e464c4df45dba41a3e83249b6e58845dcd30 Mon Sep 17 00:00:00 2001 From: Binit Shah Date: Fri, 3 Sep 2021 15:46:44 -0700 Subject: [PATCH] Add Joystick teleop to Stretch Navigation --- stretch_core/launch/teleop_twist.launch | 33 +++++++++++++++++++ stretch_core/package.xml | 3 ++ stretch_navigation/launch/mapping.launch | 23 ++++++++----- .../launch/mapping_gazebo.launch | 28 ++++++++-------- stretch_navigation/launch/navigation.launch | 4 +-- .../launch/navigation_gazebo.launch | 10 +++--- 6 files changed, 73 insertions(+), 28 deletions(-) create mode 100644 stretch_core/launch/teleop_twist.launch diff --git a/stretch_core/launch/teleop_twist.launch b/stretch_core/launch/teleop_twist.launch new file mode 100644 index 0000000..80602cd --- /dev/null +++ b/stretch_core/launch/teleop_twist.launch @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/stretch_core/package.xml b/stretch_core/package.xml index f152327..9678954 100644 --- a/stretch_core/package.xml +++ b/stretch_core/package.xml @@ -83,6 +83,9 @@ std_srvs tf tf2 + joy + teleop_twist_joy + teleop_twist_keyboard diff --git a/stretch_navigation/launch/mapping.launch b/stretch_navigation/launch/mapping.launch index 4fce65b..71542cb 100644 --- a/stretch_navigation/launch/mapping.launch +++ b/stretch_navigation/launch/mapping.launch @@ -1,21 +1,28 @@ - + + + + - - - - - - - + + + + + + + + + + + diff --git a/stretch_navigation/launch/mapping_gazebo.launch b/stretch_navigation/launch/mapping_gazebo.launch index cf7e39b..d2ce28b 100644 --- a/stretch_navigation/launch/mapping_gazebo.launch +++ b/stretch_navigation/launch/mapping_gazebo.launch @@ -1,9 +1,10 @@ - - - - + + + + + @@ -13,16 +14,17 @@ - - - - - - - - + + + + + + - + + + + diff --git a/stretch_navigation/launch/navigation.launch b/stretch_navigation/launch/navigation.launch index 2a359b5..2423f3f 100644 --- a/stretch_navigation/launch/navigation.launch +++ b/stretch_navigation/launch/navigation.launch @@ -1,7 +1,7 @@ - - + + diff --git a/stretch_navigation/launch/navigation_gazebo.launch b/stretch_navigation/launch/navigation_gazebo.launch index d5cc933..dce81c5 100644 --- a/stretch_navigation/launch/navigation_gazebo.launch +++ b/stretch_navigation/launch/navigation_gazebo.launch @@ -1,10 +1,10 @@ - - - - - + + + + +