From 43628a44316861246d9c96c698f23dda4e12dabd Mon Sep 17 00:00:00 2001 From: Danryanh7 Date: Fri, 28 Jun 2024 02:49:01 +0000 Subject: [PATCH] linter --- .../lidar_object_detection/lidar_object_detection_node.py | 4 +--- .../lidar_object_detection/lidar_object_detection/setup.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py b/src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py index 7043493d..d81a21bc 100644 --- a/src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py +++ b/src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py @@ -26,7 +26,6 @@ def __init__(self): self.lidar_data = self.get_parameter("lidar_topic").value self.publish_detection = self.get_parameter( 'enable_detection').get_parameter_value().bool_value - self.label_mapping = {} self.subscription = self.create_subscription( @@ -57,8 +56,7 @@ def __init__(self): self.model.load_params_from_file(filename=args.ckpt, logger=self.logger, to_cpu=True) self.model.cuda() self.model.eval() - - + def vision_info_callback(self, msg): self.label_mapping = msg.class_map diff --git a/src/perception/lidar_object_detection/lidar_object_detection/setup.py b/src/perception/lidar_object_detection/lidar_object_detection/setup.py index 3568fc78..c0459e9a 100644 --- a/src/perception/lidar_object_detection/lidar_object_detection/setup.py +++ b/src/perception/lidar_object_detection/lidar_object_detection/setup.py @@ -12,7 +12,7 @@ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), - (os.path.join('share', package_name, 'launch'), + (os.path.join('share', package_name, 'launch'), glob('launch/*.py')), (os.path.join('share', package_name, 'config'), glob('config/*.yaml')), ],