OpenPCDet LiDar Object Detection Node #297
linting_auto.yml
on: pull_request
Run C++/Python linters
6s
Annotations
14 errors and 2 warnings
src/samples/python/aggregator/setup.py#L14
# 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'],
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L14
import sys
sys.path.append("/home/bolty/OpenPCDet")
+
class LidarObjectDetection(Node):
def __init__(self):
super().__init__('lidar_object_detection')
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L25
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,
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L55
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
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L3
import rclpy
from rclpy.node import Node
from vision_msgs.msg import VisionInfo
+
class LabelServer(Node):
def __init__(self):
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L23
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()
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L30
label_server.destroy_node()
rclpy.shutdown()
+
if __name__ == '__main__':
main()
|
src/samples/python/aggregator/setup.py#L14
# 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'],
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L14
import sys
sys.path.append("/home/bolty/OpenPCDet")
+
class LidarObjectDetection(Node):
def __init__(self):
super().__init__('lidar_object_detection')
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L25
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,
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/lidar_object_detection_node.py#L55
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
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L3
import rclpy
from rclpy.node import Node
from vision_msgs.msg import VisionInfo
+
class LabelServer(Node):
def __init__(self):
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L23
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()
|
src/perception/lidar_object_detection/lidar_object_detection/lidar_object_detection/label_server.py#L30
label_server.destroy_node()
rclpy.shutdown()
+
if __name__ == '__main__':
main()
|
Run C++/Python linters
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v1, WATonomous/wato-lint-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run C++/Python linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|