Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
EricChen-Lei committed Nov 15, 2024
1 parent 9a49036 commit c166278
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
import org.eclipse.mosaic.interactions.traffic.VehicleUpdates;
import org.eclipse.mosaic.lib.CommonUtil.ambassador.CommonInstanceManager;
import org.eclipse.mosaic.lib.geo.GeoPoint;
import org.eclipse.mosaic.lib.geo.MutableGeoPoint;
import org.eclipse.mosaic.lib.objects.trafficevent.MsgerTrafficEvent;
import org.eclipse.mosaic.lib.objects.vehicle.MsgerVehicleStatus;
import org.eclipse.mosaic.lib.objects.vehicle.VehicleData;
import org.eclipse.mosaic.lib.transform.Proj4Projection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -220,7 +218,7 @@ public void vehicleStatusUpdate(long updateInterval) throws IOException{
GeoPoint prev_location = instance.getPrevLocation();
log.info("Previous location: {}", prev_location.toCartesian().toString());
GeoPoint curr_location = instance.getLocation();
log.info("Current location: {}", curr_location);
log.info("Current location: {}", curr_location.toCartesian().toString());

// Create the VehicleTwist object with calculated values
MsgerVehicleStatus.VehicleTwist twist;
Expand All @@ -239,9 +237,9 @@ public void vehicleStatusUpdate(long updateInterval) throws IOException{

// Create VehiclePose with lat, lon, alt values
MsgerVehicleStatus.VehiclePose pose = new MsgerVehicleStatus.VehiclePose(
instance.getGeoLocation().getLatitude(),
instance.getGeoLocation().getLongitude(),
instance.getGeoLocation().getAltitude()
instance.getLocation().getLatitude(),
instance.getLocation().getLongitude(),
instance.getLocation().getAltitude()
);

// Create the MsgerVehicleStatus object
Expand Down

0 comments on commit c166278

Please sign in to comment.