Skip to content

OpenPCDet LiDar Object Detection Node #297

OpenPCDet LiDar Object Detection Node

OpenPCDet LiDar Object Detection Node #297

GitHub Actions / Autopep8 failed Jun 28, 2024 in 0s

7 errors

Autopep8 found 7 errors

Annotations

Check failure on line 21 in src/samples/python/aggregator/setup.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/aggregator/setup.py#L14-L21

         # Include our package.xml file
         (os.path.join('share', package_name), ['package.xml']),
         # Include all launch files.
-        (os.path.join('share', package_name, 'launch'), \
+        (os.path.join('share', package_name, 'launch'),
          glob(os.path.join('launch', '*.launch.py'))),
     ],
     install_requires=['setuptools'],

Check failure on line 20 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#L14-L20

 import sys
 sys.path.append("/home/bolty/OpenPCDet")
 
+
 class LidarObjectDetection(Node):
     def __init__(self):
         super().__init__('lidar_object_detection')

Check failure on line 32 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#L25-L32

         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(
             VisionInfo,

Check failure on line 62 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#L55-L62

         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
 

Check failure on line 9 in src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L3-L9

 import rclpy
 from rclpy.node import Node
 from vision_msgs.msg import VisionInfo
+
 
 class LabelServer(Node):
     def __init__(self):

Check failure on line 29 in src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L23-L29

             vision_info_msg.class_map[label_id] = class_name
         self.publisher_.publish(vision_info_msg)
 
+
 def main(args=None):
     rclpy.init(args=args)
     label_server = LabelServer()

Check failure on line 35 in src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L30-L35

     label_server.destroy_node()
     rclpy.shutdown()
 
+
 if __name__ == '__main__':
     main()