Removed unnecessary function
This commit is contained in:
parent
535cb7681e
commit
a21160743f
|
@ -58,26 +58,23 @@ namespace geom {
|
|||
}
|
||||
|
||||
// =========================================================================
|
||||
/// @todo The following is copy-pasted from MSGPACK_DEFINE_ARRAY.
|
||||
/// This is a workaround for an issue in msgpack library. The
|
||||
/// MSGPACK_DEFINE_ARRAY macro is shadowing our `z` variable.
|
||||
/// https://github.com/msgpack/msgpack-c/issues/709
|
||||
// -- Pack / Unpack GeoLocation --------------------------------------------
|
||||
// =========================================================================
|
||||
template <typename Packer>
|
||||
void msgpack_pack(Packer& pk) const
|
||||
{
|
||||
clmdep_msgpack::type::make_define_array(latitude, longitude, altitude).msgpack_pack(pk);
|
||||
clmdep_msgpack::type::make_define_array(
|
||||
latitude,
|
||||
longitude,
|
||||
altitude).msgpack_pack(pk);
|
||||
}
|
||||
void msgpack_unpack(clmdep_msgpack::object const& o)
|
||||
{
|
||||
clmdep_msgpack::type::make_define_array(latitude, longitude, altitude).msgpack_unpack(o);
|
||||
clmdep_msgpack::type::make_define_array(
|
||||
latitude,
|
||||
longitude,
|
||||
altitude).msgpack_unpack(o);
|
||||
}
|
||||
template <typename MSGPACK_OBJECT>
|
||||
void msgpack_object(MSGPACK_OBJECT* o, clmdep_msgpack::zone& sneaky_variable_that_shadows_z) const
|
||||
{
|
||||
clmdep_msgpack::type::make_define_array(latitude, longitude, altitude).msgpack_object(o, sneaky_variable_that_shadows_z);
|
||||
}
|
||||
// =========================================================================
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -27,8 +27,6 @@ FActorDefinition AGnssSensor::GetSensorDefinition()
|
|||
void AGnssSensor::Set(const FActorDescription &ActorDescription)
|
||||
{
|
||||
Super::Set(ActorDescription);
|
||||
// Fill the parameters that the user requested
|
||||
// Not currently needed in this sensor
|
||||
UActorBlueprintFunctionLibrary::SetGnss(ActorDescription, this);
|
||||
}
|
||||
|
||||
|
@ -38,7 +36,7 @@ void AGnssSensor::Tick(float DeltaSeconds)
|
|||
|
||||
carla::geom::Location location = GetActorLocation();
|
||||
|
||||
carla::geom::GeoLocation current_location = CurrentGeoLocation.Transform(location);
|
||||
carla::geom::GeoLocation current_location = CurrentGeoReference.Transform(location);
|
||||
|
||||
auto Stream = GetDataStream(*this);
|
||||
float lat_error = RandomEngine->GetNormalDistribution(0.0f, LatitudeDeviation);
|
||||
|
@ -117,5 +115,5 @@ void AGnssSensor::BeginPlay()
|
|||
Super::BeginPlay();
|
||||
|
||||
const UCarlaEpisode* episode = UCarlaStatics::GetCurrentEpisode(GetWorld());
|
||||
CurrentGeoLocation = episode->GetGeoReference();
|
||||
CurrentGeoReference = episode->GetGeoReference();
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ protected:
|
|||
|
||||
private:
|
||||
|
||||
carla::geom::GeoLocation CurrentGeoLocation;
|
||||
carla::geom::GeoLocation CurrentGeoReference;
|
||||
|
||||
float LatitudeDeviation;
|
||||
float LongitudeDeviation;
|
||||
|
|
Loading…
Reference in New Issue