From 1f63bf559cf118e172bdcb41fac10baeb8affc92 Mon Sep 17 00:00:00 2001 From: "tomoya.kimura" Date: Tue, 14 Dec 2021 15:49:58 +0900 Subject: [PATCH] remove autoware_rosbag_recorder Signed-off-by: tomoya.kimura --- .../autoware_rosbag_recorder/CMakeLists.txt | 17 --------------- common/autoware_rosbag_recorder/Readme.md | 21 ------------------- common/autoware_rosbag_recorder/package.xml | 18 ---------------- .../scripts/record.sh | 21 ------------------- 4 files changed, 77 deletions(-) delete mode 100644 common/autoware_rosbag_recorder/CMakeLists.txt delete mode 100644 common/autoware_rosbag_recorder/Readme.md delete mode 100644 common/autoware_rosbag_recorder/package.xml delete mode 100755 common/autoware_rosbag_recorder/scripts/record.sh diff --git a/common/autoware_rosbag_recorder/CMakeLists.txt b/common/autoware_rosbag_recorder/CMakeLists.txt deleted file mode 100644 index 03e7ca43e5296..0000000000000 --- a/common/autoware_rosbag_recorder/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -cmake_minimum_required(VERSION 3.5) -project(autoware_rosbag_recorder) - -find_package(ament_cmake_auto REQUIRED) -ament_auto_find_build_dependencies() - -if(BUILD_TESTING) - find_package(ament_lint_auto REQUIRED) - ament_lint_auto_find_test_dependencies() -endif() - -ament_auto_package() - -install(PROGRAMS - scripts/record.sh - DESTINATION lib/${PROJECT_NAME} -) diff --git a/common/autoware_rosbag_recorder/Readme.md b/common/autoware_rosbag_recorder/Readme.md deleted file mode 100644 index 087e2cffbff2f..0000000000000 --- a/common/autoware_rosbag_recorder/Readme.md +++ /dev/null @@ -1,21 +0,0 @@ -# Autoware Rosbag Recorder - -This package is to record ros2 bag with desired topic. - -## Usage - -Here is a usage below. - -```sh -ros2 run autoware_rosbag_recorder record.sh [-o filename] -``` - -If you want some other topics to record, you need to modify below in record.sh as an example. - -```sh - ros2 bag record -e "(.*)/velodyne_packets|/pacmod_interface/(.*)|/pacmod/(.*)|/vehicle/(.*)|/sensing/imu/(.*)|/sensing/gnss/(.*)|/sensing/camera/(.*)/camera_info|/sensing/camera/(.*)/compressed|/perception/object_recognition/detection/rois(.)|/perception/object_recognition/objects" -o "$OPTARG"; -``` - -## Assumptions / Known limits - -Recording all topics in autoware is very heavy so usually you need to avoid points cloud topics to record. diff --git a/common/autoware_rosbag_recorder/package.xml b/common/autoware_rosbag_recorder/package.xml deleted file mode 100644 index e0d2cedb04044..0000000000000 --- a/common/autoware_rosbag_recorder/package.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - autoware_rosbag_recorder - 0.1.0 - The autoware_rosbag_recorder package - - Yukihiro Saito - Apache License 2.0 - - ament_cmake_auto - - ament_lint_auto - autoware_lint_common - - - ament_cmake - - diff --git a/common/autoware_rosbag_recorder/scripts/record.sh b/common/autoware_rosbag_recorder/scripts/record.sh deleted file mode 100755 index 64cf200a26da6..0000000000000 --- a/common/autoware_rosbag_recorder/scripts/record.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -usage_exit() { - echo "Usage: ros2 run autoware_rosbag_recorder record.sh [-o filename]" 1>&2 - exit 1 -} - -while getopts o:h OPT; do - case $OPT in - "o") echo "record as $OPTARG" ;; - "h") usage_exit ;; - "*") usage_exit ;; - \?) usage_exit ;; - esac -done - -if [ -n "$OPTARG" ]; then - ros2 bag record -e "(.*)/velodyne_packets|/pacmod_interface/(.*)|/pacmod/(.*)|/vehicle/(.*)|/sensing/imu/(.*)|/sensing/gnss/(.*)|/sensing/camera/(.*)/camera_info|/sensing/camera/(.*)/compressed|/perception/object_recognition/detection/rois(.)|/perception/object_recognition/objects" -o "$OPTARG" -else - usage_exit -fi