Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
adapter.py
Go to the documentation of this file.
1from sensor_msgs.msg import PointCloud2
2import message_filters
3import datetime
4import rclpy
5
6
7class Adapter:
8 """!
9 Class for subscribing to a point cloud topic and synchronizing messages with a ROS2 node.
10 """
11
12 def __init__(self, node: rclpy.node.Node):
13 """!
14 Initializes the Adapter.
15
16 Args:
17 node (Node): ROS2 node instance.
18 point_cloud_topic (str): Topic for point cloud data.
19 """
20 self.node: rclpy.node.Node = node
Class for subscribing to a point cloud topic and synchronizing messages with a ROS2 node.
Definition adapter.py:7
__init__(self, rclpy.node.Node node)
Initializes the Adapter.
Definition adapter.py:12