Skip to content

Commit

Permalink
clean: cleaned minor details
Browse files Browse the repository at this point in the history
  • Loading branch information
FunKuchen committed Dec 2, 2024
1 parent 41d3958 commit d9ca5e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ private void process(final VehicleUpdates vehicleUpdates) {
}

private void process(final LidarUpdates lidarUpdates) {
for (LidarUpdates.LidarUpdate lidarUpdate :lidarUpdates.getUpdated()) {
for (LidarUpdates.LidarUpdate lidarUpdate : lidarUpdates.getUpdated()) {
final AbstractSimulationUnit simulationUnit = UnitSimulator.UnitSimulator.getUnitFromId(lidarUpdate.unitId());

// we don't simulate vehicles without application or correct lidar sensor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public boolean isEnabled() {
@Override
public void disable() {
this.enabled = false;

// Create a VehicleSensorActivation interaction to be sent to the RTI that disables the LiDAR sensor
VehicleSensorActivation interaction = new VehicleSensorActivation(
SimulationKernel.SimulationKernel.getCurrentSimulationTime(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
import java.util.stream.Collectors;

public class LidarUpdates extends Interaction {

public record LidarUpdate(String unitId, PointCloud pointCloud) {}

private static final long serialVersionUID = 1L;

/**
Expand All @@ -40,9 +43,6 @@ public class LidarUpdates extends Interaction {
*/
private long nextUpdate;


public record LidarUpdate(String unitId, PointCloud pointCloud) {}

/**
* List of {@link PointCloud} containing LiDAR data from the simulator.
*/
Expand Down

0 comments on commit d9ca5e5

Please sign in to comment.