OpenPCDet LiDar Object Detection Node #297
7 errors
Autopep8 found 7 errors
Annotations
Check failure on line 21 in src/samples/python/aggregator/setup.py
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'],
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')
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,
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
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):
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()
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()