Skip to contentSkip to conversation

mmwave-ros-pkg-master: remove local launch and map files

PATCH New Hongmei Gou 1 participant 2 messages Nov 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mmwave-ros-pkg-master: remove local launch and map files

---
 .../files/0001-ti-mmwave-rospkg-launch-rviz.patch  |  50 +++++++++++++++++++++
 .../append_cfg/map_4ft_by_6ft_border_large.bt      | Bin 1062 -> 0 bytes
 .../files/append_launch/plsdk_rviz_1443_3d.launch  |  26 -----------
 .../files/append_launch/plsdk_rviz_1642_2d.launch  |  26 -----------
 .../ros-mmwave/mmwave-ros-pkg-master_3.1.0.bb      |   7 +--
 5 files changed, 52 insertions(+), 57 deletions(-)
 create mode 100644 recipes-ros/ros-mmwave/files/0001-ti-mmwave-rospkg-launch-rviz.patch
 delete mode 100644 recipes-ros/ros-mmwave/files/append_cfg/map_4ft_by_6ft_border_large.bt
 delete mode 100644 recipes-ros/ros-mmwave/files/append_launch/plsdk_rviz_1443_3d.launch
 delete mode 100644 recipes-ros/ros-mmwave/files/append_launch/plsdk_rviz_1642_2d.launch
recipes-ros/ros-mmwave/files/0001-ti-mmwave-rospkg-launch-rviz.patch new file +50 -0
new file mode 100644
index 0000000..65bdf02
@@ -0,0 +1,50 @@
+--- a/launch/rviz_1443_2d.launch
++++ b/launch/rviz_1443_2d.launch
+@@ -15,7 +15,4 @@
+   <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
+   <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 map base_radar_link 100"/>
+ 
+-  <!-- Launch Rviz with pre-defined configuration to view mmWave sensor detected object data (color by intensity) -->
+-  <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ti_mmwave_rospkg)/launch/radar_det_obj_color_by_intensity.rviz"/>
+-
+ </launch>
+--- a/launch/rviz_1443_3d.launch
++++ b/launch/rviz_1443_3d.launch
+@@ -15,7 +15,4 @@
+   <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
+   <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 map base_radar_link 100"/>
+
+-  <!-- Launch Rviz with pre-defined configuration to view mmWave sensor detected object data (color by elevation) -->
+-  <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ti_mmwave_rospkg)/launch/radar_det_obj_color_by_elev.rviz"/>
+-
+ </launch>
+--- a/launch/rviz_1642_2d.launch
++++ b/launch/rviz_1642_2d.launch
+@@ -15,7 +15,4 @@
+   <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
+   <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 map base_radar_link 100"/>
+
+-  <!-- Launch Rviz with pre-defined configuration to view mmWave sensor detected object data (color by intensity) -->
+-  <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ti_mmwave_rospkg)/launch/radar_det_obj_color_by_intensity.rviz"/>
+-
+ </launch>
+--- a/launch/rviz_6843_2d.launch
++++ b/launch/rviz_6843_2d.launch
+@@ -15,7 +15,4 @@
+   <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
+   <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 map base_radar_link 100"/>
+
+-  <!-- Launch Rviz with pre-defined configuration to view mmWave sensor detected object data (color by intensity) -->
+-  <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ti_mmwave_rospkg)/launch/radar_det_obj_color_by_intensity.rviz"/>
+-
+ </launch>
+--- a/launch/rviz_6843_3d.launch
++++ b/launch/rviz_6843_3d.launch
+@@ -15,7 +15,4 @@
+   <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
+   <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 map base_radar_link 100"/>
+
+-  <!-- Launch Rviz with pre-defined configuration to view mmWave sensor detected object data (color by elevation) -->
+-  <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ti_mmwave_rospkg)/launch/radar_det_obj_color_by_elev.rviz"/>
+-
+ </launch>
recipes-ros/ros-mmwave/files/append_cfg/map_4ft_by_6ft_border_large.bt deleted binary +0 -0
deleted file mode 100644
index 7c13bde542ea671eb36c61e3d655f864a33c45eb..0000000000000000000000000000000000000000
GIT binary patch
recipes-ros/ros-mmwave/files/append_launch/plsdk_rviz_1443_3d.launch deleted +0 -26
deleted file mode 100644
index df81d9a..0000000
@@ -1,26 +0,0 @@
-<!--
-  This file will launch rViz along with the mmWave sensor node and configure a TI mmWave 1443 sensor using a 3D config
- -->
-
-<launch>
-
-  <!-- Call mmWave sensor launch file -->
-  <include file="$(find ti_mmwave_rospkg)/launch/ti_mmwave_sensor.launch">
-    <arg name="device" value="1443" doc="TI mmWave sensor device type [1443, 1642]"/>
-    <arg name="config" value="3d" doc="TI mmWave sensor device configuration [3d (not supported by 1642 EVM), 2d]"/>
-    <arg name="max_allowed_elevation_angle_deg" value="90" doc="Maximum allowed elevation angle in degrees for detected object data [0 > value >= 90]}"/>
-    <arg name="max_allowed_azimuth_angle_deg" value="90" doc="Maximum allowed azimuth angle in degrees for detected object data [0 > value >= 90]}"/>
-  </include>
-
-  <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
-  <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_odom" args="0 0 0 0 0 0 map odom 100"/>
-  <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 base_footprint base_radar_link 100"/>
-
-  <!-- Map server -->
-  <node name="octomap_server" pkg="octomap_server" type="octomap_server_node" args="$(find ti_mmwave_rospkg)/cfg/map_4ft_by_6ft_border_large.bt projected_map:=map cloud_in:=no_input" />
-  <node pkg="fake_localization" type="fake_localization" name="fake_localization">
-    <param name="use_map_topic" value="true"/>
-    <remap from="base_pose_ground_truth" to="odom"/>
-  </node>
-
-</launch>
recipes-ros/ros-mmwave/files/append_launch/plsdk_rviz_1642_2d.launch deleted +0 -26
deleted file mode 100644
index 7e4ff78..0000000
@@ -1,26 +0,0 @@
-<!--
-  This file will launch rViz along with the mmWave sensor node and configure a TI mmWave 1642 sensor using a 2D config
- -->
-
-<launch>
-
-  <!-- Call mmWave sensor launch file -->
-  <include file="$(find ti_mmwave_rospkg)/launch/ti_mmwave_sensor.launch">
-    <arg name="device" value="1642" doc="TI mmWave sensor device type [1443, 1642]"/>
-    <arg name="config" value="2d" doc="TI mmWave sensor device configuration [3d (not supported by 1642 EVM), 2d]"/>
-    <arg name="max_allowed_elevation_angle_deg" value="90" doc="Maximum allowed elevation angle in degrees for detected object data [0 > value >= 90]}"/>
-    <arg name="max_allowed_azimuth_angle_deg" value="90" doc="Maximum allowed azimuth angle in degrees for detected object data [0 > value >= 90]}"/>
-  </include>
-
-  <!-- Static transform from map to base_radar_link for visualization of stand-alone mmWave sensor using Rviz -->
-  <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_odom" args="0 0 0 0 0 0 map odom 100"/>
-  <node pkg="tf" type="static_transform_publisher" name="static_tf_map_to_base_radar_link" args="0 0 0 0 0 0 base_footprint base_radar_link 100"/>
-
-  <!-- Map server -->
-  <node name="octomap_server" pkg="octomap_server" type="octomap_server_node" args="$(find ti_mmwave_rospkg)/cfg/map_4ft_by_6ft_border_large.bt projected_map:=map cloud_in:=no_
-  <node pkg="fake_localization" type="fake_localization" name="fake_localization">
-    <param name="use_map_topic" value="true"/>
-    <remap from="base_pose_ground_truth" to="odom"/>
-  </node>
-
-</launch>
recipes-ros/ros-mmwave/mmwave-ros-pkg-master_3.1.0.bb +2 -5
index f92b82c..179651e 100644
@@ -6,12 +6,11 @@ LIC_FILES_CHKSUM = "file://docs/TI_mmWave_ROS_Driver_manifest.pdf;md5=1f2c3f5697
 SRC_URI[base.md5sum] = "822e5f91acbcfc2b68ba2d440ec9be82"
 SRC_URI[base.sha256sum] = "d4c8d7c204972656096d458938c19d6b3277ef435bbdbb735076d9597d7a880c"
 SRC_URI = "http://dev.ti.com/tirex/content/mmwave_industrial_toolbox_3_1_0/labs/lab0006-ros-driver/lab0006_ros_driver_pjt/ti_mmwave_rospkg_v1p5.zip;name=base;subdir=${P}"
-SRC_URI += "file://append_launch \
-            file://append_cfg \
+SRC_URI += "file://0001-ti-mmwave-rospkg-launch-rviz.patch \
             file://setup.bash \
 "
 
-PR = "r0"
+PR = "r1"
 
 # do not use rpath
 EXTRA_OECMAKE_append = " -DCMAKE_SKIP_RPATH=ON"
@@ -29,8 +28,6 @@ do_install_append() {
      cp ${S}/mmWave_nodelets.xml ${D}${ros_datadir}/ti_mmwave_rospkg/
      cp -r ${S}/cfg ${D}${ros_datadir}/ti_mmwave_rospkg/
      cp -r ${S}/launch ${D}${ros_datadir}/ti_mmwave_rospkg/
-     cp  ${WORKDIR}/append_launch/*.launch  ${D}${ros_datadir}/ti_mmwave_rospkg/launch/.
-     cp  ${WORKDIR}/append_cfg/*.bt  ${D}${ros_datadir}/ti_mmwave_rospkg/cfg/.
      cp ${WORKDIR}/setup.bash ${D}${ros_prefix}
 }
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 mmwave-ros-autonomous-robotics: add turtlebot-teleop

---
 .../files/0001-turtlebot-teleop-scripts.patch      | 34 ++++++++++++++++++++++
 .../mmwave-ros-autonomous-robotics_3.1.0.bb        |  8 ++++-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 recipes-ros/ros-mmwave/files/0001-turtlebot-teleop-scripts.patch
recipes-ros/ros-mmwave/files/0001-turtlebot-teleop-scripts.patch new file +34 -0
new file mode 100644
index 0000000..b2270a6
@@ -0,0 +1,34 @@
+--- a/scripts/turtlebot_teleop_key
++++ b/scripts/turtlebot_teleop_key
+@@ -103,8 +103,8 @@
+     control_speed = 0
+     control_turn = 0
+     try:
+-        print msg
+-        print vels(speed,turn)
++        print (msg)
++        print (vels(speed,turn))
+         while(1):
+             key = getKey()
+             if key in moveBindings.keys():
+@@ -116,9 +116,9 @@
+                 turn = turn * speedBindings[key][1]
+                 count = 0
+ 
+-                print vels(speed,turn)
++                print (vels(speed,turn))
+                 if (status == 14):
+-                    print msg
++                    print (msg)
+                 status = (status + 1) % 15
+             elif key == ' ' or key == 'k' :
+                 x = 0
+@@ -160,7 +160,7 @@
+             #print("publihsed: vx: {0}, wz: {1}".format(twist.linear.x, twist.angular.z))
+ 
+     except:
+-        print e
++        print (e)
+ 
+     finally:
+         twist = Twist()
recipes-ros/ros-mmwave/mmwave-ros-autonomous-robotics_3.1.0.bb +7 -1
index bfbfaa5..47243db 100644
@@ -12,11 +12,12 @@ SRC_URI += "file://0001-turtlebot-bringup-description-launch-xml.patch;patchdir=
             file://0001-turtlebot-navigation-params-yaml.patch;patchdir=${WORKDIR}/${P}/turtlebot/turtlebot_apps/turtlebot_navigation \
             file://0001-turtlebot-mmwave-launchers-navigation-visualization-rviz.patch;patchdir=${S} \
             file://0003-turtlebot-bringup-description.launch \
+            file://0001-turtlebot-teleop-scripts.patch;patchdir=${WORKDIR}/${P}/turtlebot/turtlebot/turtlebot_teleop \
 "
 
 S = "${WORKDIR}/${P}/turtlebot_mmwave_launchers"
 
-PR = "r0"
+PR = "r1"
 
 inherit catkin
 
@@ -37,6 +38,10 @@ do_install_append() {
     cp ${WORKDIR}/0003-turtlebot-bringup-description.launch ${D}${ros_datadir}/turtlebot_bringup/launch/description.launch
     rm -rf ${D}${ros_datadir}/turtlebot_bringup/patches
 
+    install -d ${D}${ros_datadir}/turtlebot_teleop
+    cp -r ${WORKDIR}/${P}/turtlebot/turtlebot/turtlebot_teleop/* ${D}${ros_datadir}/turtlebot_teleop
+    rm -rf ${D}${ros_datadir}/turtlebot_teleop/patches
+
     install -d ${D}${ros_datadir}/turtlebot_navigation
     cp -r ${WORKDIR}/${P}/turtlebot/turtlebot_apps/turtlebot_navigation/* ${D}${ros_datadir}/turtlebot_navigation
     rm -rf ${D}${ros_datadir}/turtlebot_navigation/patches
@@ -46,6 +51,7 @@ FILES_${PN} += "${ros_datadir}/turtlebot_mmwave_launchers"
 FILES_${PN} += "${ros_datadir}/ti_mmwave_rospkg"
 FILES_${PN} += "${ros_datadir}/turtlebot_bringup"
 FILES_${PN} += "${ros_datadir}/turtlebot_description"
+FILES_${PN} += "${ros_datadir}/turtlebot_teleop"
 FILES_${PN} += "${ros_datadir}/turtlebot_navigation"
 
 ROS_SPN = "turtlebot_mmwave_launchers"
Signature · 1 line
1.9.1