Adding lidar sensor handling

This commit is contained in:
2026-07-08 20:58:21 -06:00
parent 8fc5088c01
commit 04f3e2ba07
19 changed files with 145 additions and 31 deletions
+17 -1
View File
@@ -1,9 +1,14 @@
extends BaseSensorNode
class_name Lidar2DSensorNode
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
super._ready()
DataSignals.lidar_2d_data_received.connect(_on_lidar_data_received)
DataSignals.gps_data_received.connect(_on_gps_data_received)
DataSignals.accelerometer_data_received.connect(_on_accel_data_received)
DataSignals.gyroscope_data_received.connect(_on_gyro_data_received)
# Called every frame. 'delta' is the elapsed time since the previous frame.
@@ -12,3 +17,14 @@ func _process(delta: float) -> void:
func _get_sensor_class():
return "LIDAR_2D"
func _on_lidar_data_received(sensor_ip: String, timestamp_list: Array, lidar_point_count: int, lidar_data: Array):pass
func _on_gps_data_received(source_ip: String, timestamp_list: Array, new_coordinates: Array, speed_kmh: float, dop: Array):
pass
func _on_accel_data_received(source_ip: String, timestamp_list: Array, accel: Vector3, linear_accel: Vector3, g_accel: Vector3):
pass
func _on_gyro_data_received(source_ip: String, timestamp_list: Array, gyro_data: Array):
pass