FIX: fix in position contuctor
This commit is contained in:
@@ -26,8 +26,11 @@ namespace SimCore {
|
||||
|
||||
Position::Position(const Position& other){
|
||||
std::lock_guard<std::mutex> lock(other.mx);
|
||||
|
||||
valid_ = false;
|
||||
|
||||
earth_ = std::make_unique<GeographicLib::Geocentric>(GeographicLib::Constants::WGS84_a(), GeographicLib::Constants::WGS84_f());
|
||||
geod_ = std::make_unique<GeographicLib::Geodesic>(GeographicLib::Constants::WGS84_a(), GeographicLib::Constants::WGS84_f());
|
||||
wgs84_ = std::make_unique<GeographicLib::Ellipsoid>(GeographicLib::Constants::WGS84_a(), GeographicLib::Constants::WGS84_f());
|
||||
if (other.valid_ == true)
|
||||
{
|
||||
this->setGeocentricPos(other.GeocentricPos_[X],other.GeocentricPos_[Y],other.GeocentricPos_[Z]);
|
||||
@@ -35,9 +38,6 @@ namespace SimCore {
|
||||
// GeocentricPos_ = other.GeocentricPos_;
|
||||
// GeodesicPos_ = other.GeodesicPos_;
|
||||
|
||||
earth_ = std::make_unique<GeographicLib::Geocentric>(GeographicLib::Constants::WGS84_a(), GeographicLib::Constants::WGS84_f());
|
||||
geod_ = std::make_unique<GeographicLib::Geodesic>(GeographicLib::Constants::WGS84_a(), GeographicLib::Constants::WGS84_f());
|
||||
wgs84_ = std::make_unique<GeographicLib::Ellipsoid>(GeographicLib::Constants::WGS84_a(), GeographicLib::Constants::WGS84_f());
|
||||
}
|
||||
|
||||
Eigen::Vector3d Position::getGeocentricPos()
|
||||
|
||||
Reference in New Issue
Block a user