Skip to content

OpenPCDet LiDar Object Detection Node #512

OpenPCDet LiDar Object Detection Node

OpenPCDet LiDar Object Detection Node #512

GitHub Actions / Autopep8 failed Apr 4, 2024 in 0s

1 error

Autopep8 found 1 error

Annotations

Check failure on line 26 in src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L1-L26

 # pylint: disable=wrong-import-position
+from sensor_msgs.msg import PointCloud2, PointField
+from vision_msgs.msg import ObjectHypothesisWithPose, Detection3D, Detection3DArray
+from visualization_msgs.msg import Marker, MarkerArray
+import torch
+import numpy as np
+from rclpy.node import Node
+import rclpy
+import argparse
+import sys
+from pcdet.config import cfg, cfg_from_yaml_file
+from pcdet.datasets import DatasetTemplate
+from pcdet.models import build_network, load_data_to_gpu
+from pcdet.utils import common_utils
 sys.path.append("/home/bolty/OpenPCDet")
-from pcdet.utils import common_utils
-from pcdet.models import build_network, load_data_to_gpu
-from pcdet.datasets import DatasetTemplate
-from pcdet.config import cfg, cfg_from_yaml_file
-import sys
-import argparse
-import rclpy
-from rclpy.node import Node
-import numpy as np
-import torch
-from visualization_msgs.msg import Marker, MarkerArray
-from vision_msgs.msg import ObjectHypothesisWithPose, Detection3D, Detection3DArray
-from sensor_msgs.msg import PointCloud2, PointField
 
 
 class LidarObjectDetection(Node):
     def __init__(self):
         super().__init__('lidar_object_detection')
-        self.declare_parameter("model_path", "/home/bolty/OpenPCDet/models/transfusion_trained_model.pth")
-        self.declare_parameter("model_config_path", "/home/bolty/OpenPCDet/tools/cfgs/nuscenes_models/transfusion_lidar.yaml")
+        self.declare_parameter(
+            "model_path", "/home/bolty/OpenPCDet/models/transfusion_trained_model.pth")
+        self.declare_parameter(
+            "model_config_path", "/home/bolty/OpenPCDet/tools/cfgs/nuscenes_models/transfusion_lidar.yaml")
         self.declare_parameter("lidar_topic", "/velodyne_points")
         self.model_path = self.get_parameter("model_path").value
         self.model_config_path = self.get_parameter("model_config_path").value