repo_id stringlengths 19 138 | file_path stringlengths 32 200 | content stringlengths 1 12.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/alignment.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <vector>
#include "modules/map/tools/map_datachecker/proto/collection_error_code.pb.h"
#include "modules/map/tools/map_datachecker/server/common.h"
namespace apollo {
namespace hdmap {
typedef struct BadOrGoodPoseInfo {
BadOrGoodPoseInfo() : start_time(-1.0), end_time(-1.0), pose_count(0) {}
double start_time;
double end_time;
int pose_count;
} BadOrGoodPoseInfo;
class Alignment {
public:
explicit Alignment(std::shared_ptr<JsonConf> sp_conf)
: return_state_(ErrorCode::SUCCESS),
sp_conf_(sp_conf),
sp_good_pose_info_(std::make_shared<BadOrGoodPoseInfo>()),
sp_bad_pose_info_(std::make_shared<BadOrGoodPoseInfo>()) {}
virtual ~Alignment() {}
virtual ErrorCode Process(const std::vector<FramePose>& poses) = 0;
virtual void Reset() = 0;
virtual double GetProgress() const { return progress_; }
virtual void SetStartTime(double start_time) { start_time_ = start_time; }
virtual void SetEndTime(double end_time) { end_time_ = end_time; }
virtual void UpdateBadPoseInfo(const FramePose& pose) {
UpdatePoseInfo(pose, sp_bad_pose_info_);
}
virtual void ClearBadPoseInfo() { ClearPoseInfo(sp_bad_pose_info_); }
virtual void UpdateGoodPoseInfo(const FramePose& pose) {
UpdatePoseInfo(pose, sp_good_pose_info_);
}
virtual void ClearGoodPoseInfo() { ClearPoseInfo(sp_good_pose_info_); }
virtual bool IsGoodPose(const std::vector<FramePose>& poses, int pose_index) {
if (pose_index <= 0 || pose_index >= static_cast<int>(poses.size())) {
AINFO << "params error. poses size:" << poses.size()
<< ",pose_index:" << pose_index;
return false;
}
unsigned int position_type = poses[pose_index].position_type;
float diff_age = poses[pose_index].diff_age;
double local_std = poses[pose_index].local_std;
if (sp_conf_->position_type_range.find(position_type) !=
sp_conf_->position_type_range.end() &&
diff_age >= sp_conf_->diff_age_range.first &&
diff_age <= sp_conf_->diff_age_range.second &&
local_std <= sp_conf_->local_std_upper_limit) {
return true;
}
return false;
}
ErrorCode GetReturnState() const { return return_state_; }
protected:
void UpdatePoseInfo(const FramePose& pose,
std::shared_ptr<BadOrGoodPoseInfo> sp_pose_info) {
if (sp_pose_info == nullptr) {
AERROR << "sp_pose_info is nullptr";
return;
}
BadOrGoodPoseInfo& pose_info = *sp_pose_info;
if (pose_info.pose_count == 0) {
pose_info.start_time = pose.time_stamp;
++pose_info.pose_count;
AINFO << "update start time: " << pose_info.start_time
<< ",pose count: " << pose_info.pose_count;
} else {
pose_info.end_time = pose.time_stamp;
++pose_info.pose_count;
AINFO << "update start time: " << pose_info.start_time
<< ",pose count: " << pose_info.pose_count;
}
}
void ClearPoseInfo(std::shared_ptr<BadOrGoodPoseInfo> sp_pose_info) {
if (sp_pose_info == nullptr) {
AERROR << "sp_pose_info is nullptr";
return;
}
BadOrGoodPoseInfo& pose_info = *sp_pose_info;
pose_info.start_time = -1.0;
pose_info.end_time = -1.0;
pose_info.pose_count = 0;
}
int TimeToIndex(const std::vector<FramePose>& poses, double time) {
size_t size = poses.size();
if (size == 0 || time <= 0) {
return -1;
}
for (size_t i = 0; i < size; ++i) {
if (poses[i].time_stamp >= time) {
return static_cast<int>(i);
}
}
return static_cast<int>(size);
}
protected:
double progress_;
double last_progress_;
double start_time_;
double end_time_;
int start_index_;
double end_index_;
ErrorCode return_state_;
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
// BadOrGoodPoseInfo _bad_pose_info, _good_pose_info;
std::shared_ptr<BadOrGoodPoseInfo> sp_good_pose_info_ = nullptr;
std::shared_ptr<BadOrGoodPoseInfo> sp_bad_pose_info_ = nullptr;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/common.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/common.h"
#include "cyber/cyber.h"
namespace apollo {
namespace hdmap {
std::shared_ptr<JsonConf> ParseJson(std::string conf_path) {
AINFO << "parsing json config";
boost::filesystem::path path(conf_path);
if (!boost::filesystem::exists(path)) {
AERROR << "json config file " << conf_path << " does not exist";
return nullptr;
}
std::shared_ptr<JsonConf> conf(new JsonConf);
boost::property_tree::ptree pt;
try {
boost::property_tree::read_json(conf_path, pt);
conf->use_system_time = pt.get<bool>("use_system_time");
conf->topic_rate_tolerance = pt.get<double>("topic_rate_tolerance");
boost::property_tree::ptree children2 = pt.get_child("topic_list");
for (auto it = children2.begin(); it != children2.end(); ++it) {
conf->topic_list.push_back(
std::make_pair(it->first, it->second.get_value<double>()));
}
conf->solution_status = pt.get<unsigned int>("solution_status");
boost::property_tree::ptree position_type = pt.get_child("position_type");
for (auto it = position_type.begin(); it != position_type.end(); ++it) {
conf->position_type_range.insert(it->second.get_value<unsigned int>());
}
conf->local_std_upper_limit = pt.get<double>("local_std_upper_limit");
boost::property_tree::ptree diff_age = pt.get_child("diff_age");
{
auto it = diff_age.begin();
conf->diff_age_range.first = it->second.get_value<float>();
++it;
conf->diff_age_range.second = it->second.get_value<float>();
}
conf->channel_check_trigger_gap = pt.get<int>("channel_check_trigger_gap");
conf->alignment_featch_pose_sleep =
pt.get<int>("alignment_featch_pose_sleep");
conf->static_align_duration = pt.get<double>("static_align_duration");
conf->static_align_tolerance = pt.get<double>("static_align_tolerance");
conf->static_align_dist_thresh = pt.get<double>("static_align_dist_thresh");
conf->eight_angle = pt.get<double>("eight_angle");
conf->eight_duration = pt.get<double>("eight_duration");
conf->eight_vel = pt.get<double>("eight_vel");
conf->eight_bad_pose_tolerance = pt.get<int>("eight_bad_pose_tolerance");
conf->laps_frames_thresh = pt.get<int>("laps_frames_thresh");
conf->laps_alpha_err_thresh = pt.get<double>("laps_alpha_err_thresh");
conf->laps_time_err_thresh = pt.get<double>("laps_time_err_thresh");
conf->laps_search_diameter = pt.get<int>("laps_search_diameter");
conf->laps_number = pt.get<int>("laps_number");
conf->laps_number_additional = pt.get<int>("laps_number_additional");
conf->laps_rate_thresh = pt.get<double>("laps_rate_thresh");
} catch (const boost::property_tree::json_parser_error& e) {
AERROR << e.what();
return nullptr;
} catch (const std::exception& e) {
AERROR << e.what();
return nullptr;
}
return conf;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker_cyber_node.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include "cyber/cyber.h"
#include "modules/common_msgs/sensor_msgs/gnss_best_pose.pb.h"
namespace apollo {
namespace hdmap {
class MapDataCheckerAgent;
class MapDataCheckerCyberNode
: public std::enable_shared_from_this<MapDataCheckerCyberNode> {
public:
using GnssBestPose_t = apollo::drivers::gnss::GnssBestPose;
public:
MapDataCheckerCyberNode(std::shared_ptr<MapDataCheckerAgent> agent,
bool *init_success);
inline std::shared_ptr<MapDataCheckerCyberNode> GetWorkerCyberNode() {
return shared_from_this();
}
private:
int CreateChannelSubscriber();
private:
std::shared_ptr<apollo::cyber::Node> node_ = nullptr;
std::shared_ptr<apollo::cyber::Reader<GnssBestPose_t>> bestgnsspos_reader_ =
nullptr;
std::shared_ptr<MapDataCheckerAgent> agent_ = nullptr;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/channel_verify_agent.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <utility>
#include <vector>
#include "grpc++/grpc++.h"
#include "modules/map/tools/map_datachecker/proto/collection_error_code.pb.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.pb.h"
#include "modules/map/tools/map_datachecker/server/channel_verify.h"
namespace apollo {
namespace hdmap {
enum class ChannelVerifyAgentState { IDLE, RUNNING };
class ChannelVerifyAgent {
public:
explicit ChannelVerifyAgent(std::shared_ptr<JsonConf> sp_conf);
grpc::Status ProcessGrpcRequest(grpc::ServerContext *context,
ChannelVerifyRequest *request,
ChannelVerifyResponse *response);
private:
void StartCheck(ChannelVerifyRequest *request,
ChannelVerifyResponse *response);
void AsyncCheck(const std::string &records_path);
void DoCheck(const std::string &records_path);
void CheckResult(ChannelVerifyRequest *request,
ChannelVerifyResponse *response);
void StopCheck(ChannelVerifyRequest *request,
ChannelVerifyResponse *response);
void Reset();
void SetState(ChannelVerifyAgentState state);
ChannelVerifyAgentState GetState() const;
int AddTopicLack(VerifyResult *result, const std::string &record_path,
std::vector<std::string> const &lack_channels);
int AddInadequateRate(
VerifyResult *result, std::string const &record_path,
std::map<std::string, std::pair<double, double>> const &inadequate_rate);
FrameRate *FindRates(VerifyResult *result, const std::string &channel);
private:
ChannelVerifyAgentState state_;
std::mutex stop_mutex_;
bool need_stop_;
bool stopped_;
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
std::shared_ptr<ChannelVerify> sp_channel_checker_ = nullptr;
CheckedResult sp_check_result_ = nullptr;
std::thread::id check_thread_id_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/alignment_agent.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <chrono>
#include <memory>
#include <thread>
#include <vector>
#include "grpc++/grpc++.h"
#include "modules/map/tools/map_datachecker/proto/collection_error_code.pb.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.pb.h"
#include "modules/map/tools/map_datachecker/server/eight_route.h"
#include "modules/map/tools/map_datachecker/server/pose_collection_agent.h"
#include "modules/map/tools/map_datachecker/server/static_align.h"
namespace apollo {
namespace hdmap {
typedef State AlignmentAgentState;
template <typename ALIGNMENT_TYPE, typename REQUEST_TYPE,
typename RESPONSE_TYPE>
class AlignmentAgent {
public:
AlignmentAgent(
std::shared_ptr<JsonConf> sp_conf,
std::shared_ptr<PoseCollectionAgent> sp_pose_collection_agent) {
sp_conf_ = sp_conf;
sp_pose_collection_agent_ = sp_pose_collection_agent;
}
void Reset() {
sp_alignment_ = std::make_shared<ALIGNMENT_TYPE>(sp_conf_);
state_ = AlignmentAgentState::IDLE;
need_stop_ = false;
}
grpc::Status ProcessGrpcRequest(grpc::ServerContext *context,
REQUEST_TYPE *request,
RESPONSE_TYPE *response) {
AINFO << "AlignmentAgent request: " << request->DebugString();
switch (request->cmd()) {
case CmdType::START:
AINFO << "AlignmentAgent start";
AlignmentStart(request, response);
break;
case CmdType::CHECK:
AINFO << "AlignmentAgent check";
AlignmentCheck(request, response);
break;
case CmdType::STOP:
AINFO << "AlignmentAgent stop";
AlignmentStop(request, response);
break;
default:
response->set_code(ErrorCode::ERROR_REQUEST);
response->set_progress(sp_alignment_->GetProgress());
AERROR << "command error";
}
AINFO << "AlignmentAgent progress: " << response->progress();
return grpc::Status::OK;
}
int AlignmentStart(REQUEST_TYPE *request, RESPONSE_TYPE *response) {
if (AlignmentAgentState::RUNNING == GetState()) {
AINFO << "AlignmentAgent is running. do need start again";
response->set_code(ErrorCode::ERROR_REPEATED_START);
response->set_progress(0.0);
return 0;
}
Reset();
AsyncStartAlignment();
response->set_code(ErrorCode::SUCCESS);
response->set_progress(0.0);
return 0;
}
int AsyncStartAlignment() {
SetState(AlignmentAgentState::RUNNING);
std::thread alignment_thread([=]() {
sp_alignment_->SetStartTime(UnixNow());
AINFO << "set state RUNNING";
while (!need_stop_ && !apollo::cyber::IsShutdown()) {
std::shared_ptr<std::vector<FramePose>> sp_poses = GetPoses();
if (sp_poses == nullptr) {
AINFO << "error, pose pointer is null";
return;
}
sp_alignment_->Process(*sp_poses);
ErrorCode code = sp_alignment_->GetReturnState();
if (code == ErrorCode::ERROR_VERIFY_NO_GNSSPOS ||
code == ErrorCode::ERROR_GNSS_SIGNAL_FAIL) {
AERROR << "Some error occurred, while loop will exit";
break;
}
AINFO << "get progress:" << sp_alignment_->GetProgress();
if (fabs(1 - sp_alignment_->GetProgress()) < 1e-8) {
AINFO << "alignment progress reached 1.0, thread exit";
break;
}
AINFO << "sleep " << sp_conf_->alignment_featch_pose_sleep << " sec";
auto seconds =
std::chrono::seconds(sp_conf_->alignment_featch_pose_sleep);
std::this_thread::sleep_for(seconds);
}
stopped_ = true;
AINFO << "Align thread complete";
});
alignment_thread.detach();
return 0;
}
std::shared_ptr<std::vector<FramePose>> GetPoses() const {
if (sp_pose_collection_agent_ == nullptr) {
return nullptr;
}
return sp_pose_collection_agent_->GetPoses();
}
int AlignmentCheck(REQUEST_TYPE *request, RESPONSE_TYPE *response) {
if (AlignmentAgentState::IDLE == GetState()) {
AINFO << "AlignmentAgent is idle. this call will be refused";
response->set_code(ErrorCode::ERROR_CHECK_BEFORE_START);
response->set_progress(0.0);
return 0;
}
if (sp_alignment_ == nullptr) {
AINFO << "sp_alignment_ is null, check later";
response->set_code(ErrorCode::SUCCESS);
response->set_progress(0.0);
return 0;
}
ErrorCode code = sp_alignment_->GetReturnState();
double progress = sp_alignment_->GetProgress();
response->set_code(code);
response->set_progress(progress);
if (code == ErrorCode::ERROR_VERIFY_NO_GNSSPOS ||
code == ErrorCode::ERROR_GNSS_SIGNAL_FAIL) {
stopped_ = true;
SetState(AlignmentAgentState::IDLE);
return -1;
}
return 0;
}
int AlignmentStop(REQUEST_TYPE *request, RESPONSE_TYPE *response) {
response->set_code(ErrorCode::SUCCESS);
if (sp_alignment_ == nullptr) {
response->set_progress(0.0);
} else {
response->set_progress(sp_alignment_->GetProgress());
need_stop_ = true;
}
SetState(AlignmentAgentState::IDLE);
return 0;
}
void SetState(AlignmentAgentState state) { state_ = state; }
AlignmentAgentState GetState() const { return state_; }
private:
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
std::shared_ptr<ALIGNMENT_TYPE> sp_alignment_ = nullptr;
std::shared_ptr<PoseCollectionAgent> sp_pose_collection_agent_ = nullptr;
AlignmentAgentState state_;
bool need_stop_;
bool stopped_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker_gflags.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include "gflags/gflags.h"
namespace apollo {
namespace hdmap {
// worker address
DECLARE_string(map_datachecker_host);
DECLARE_string(map_datachecker_port);
// Cybertron topics
DECLARE_string(topic_bestgnsspos);
DECLARE_string(conf_json);
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/eight_route.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/eight_route.h"
#include <cmath>
#include <vector>
namespace apollo {
namespace hdmap {
EightRoute::EightRoute(std::shared_ptr<JsonConf> sp_conf) : Alignment(sp_conf) {
Reset();
}
void EightRoute::Reset() {
progress_ = 0.0;
last_progress_ = 0;
}
bool EightRoute::IsEightRoutePose(const std::vector<FramePose>& poses,
int pose_index) {
if (poses.empty() || pose_index <= 0 ||
pose_index >= static_cast<int>(poses.size())) {
AINFO << "params error, poses size: " << poses.size()
<< ", pose_index: " << pose_index;
return true;
}
double yaw = GetYaw(poses[pose_index - 1].tx, poses[pose_index - 1].ty,
poses[pose_index].tx, poses[pose_index].ty);
double yaw_diff = fabs(last_yaw_ - yaw);
last_yaw_ = yaw;
yaw_diff = yaw_diff < 180 ? yaw_diff : 360 - yaw_diff;
double xdiff = poses[pose_index].tx - poses[pose_index - 1].tx;
double ydiff = poses[pose_index].ty - poses[pose_index - 1].ty;
double zdiff = poses[pose_index].tz - poses[pose_index - 1].tz;
double dist = std::sqrt(xdiff * xdiff + ydiff * ydiff + zdiff * zdiff);
double during =
poses[pose_index].time_stamp - poses[pose_index - 1].time_stamp;
if (during < 0) {
AINFO << "skip back pose is bad pose";
return false;
}
double vel = dist / during;
AINFO << poses[pose_index].time_stamp << ", yaw_diff:" << yaw_diff
<< ", dist: " << dist << ", during: " << during << ", vel: " << vel;
if (yaw_diff > sp_conf_->eight_angle && vel > sp_conf_->eight_vel) {
return true;
}
return false;
}
double EightRoute::GetGoodPoseDuring() {
if (sp_good_pose_info_ == nullptr || sp_good_pose_info_->start_time < 0 ||
sp_good_pose_info_->end_time < 0) {
return 0.0;
}
return sp_good_pose_info_->end_time - sp_good_pose_info_->start_time;
}
double EightRoute::GetEightRouteProgress(const std::vector<FramePose>& poses) {
int size = static_cast<int>(poses.size());
int start_index = TimeToIndex(poses, start_time_);
// select first good pose
while (start_index < size) {
if (IsGoodPose(poses, start_index) &&
IsEightRoutePose(poses, start_index)) {
AINFO << "find first good pose.index:" << start_index;
break;
}
++start_index;
}
if (start_index >= size) {
AINFO << "not find first good pose, start_time: " << start_time_
<< ", start_index: " << start_index << ", pose size: " << size;
return 0.0;
}
if (start_index + 1 >= size) {
AINFO << "not have enough poses, wait for a moment";
return 0.0;
}
last_yaw_ = GetYaw(poses[start_index].tx, poses[start_index].ty,
poses[start_index + 1].tx, poses[start_index + 1].ty);
int not_eight_count = 0;
for (int i = start_index + 2; i < size; ++i) {
if (!IsGoodPose(poses, i)) {
AINFO << "not good pose";
return 0.0;
}
if (!IsEightRoutePose(poses, i)) {
++not_eight_count;
AINFO << "not eight route pose";
if (not_eight_count > sp_conf_->eight_bad_pose_tolerance) {
AINFO << "not-eight pose count reached upper limitation";
return_state_ = ErrorCode::ERROR_NOT_EIGHT_ROUTE;
return 0.0;
}
} else {
not_eight_count = 0;
}
AINFO << "good pose";
UpdateGoodPoseInfo(poses[i]);
// ClearBadPoseInfo();
}
double eight_route_during = GetGoodPoseDuring();
if (eight_route_during < 1e-8) {
AINFO << "num of eight route good pose too small, during: "
<< eight_route_during;
return_state_ = ErrorCode::SUCCESS;
return 0.0;
}
return_state_ = ErrorCode::SUCCESS;
double progress = eight_route_during / sp_conf_->eight_duration;
if (progress >= 1.0) {
progress = 1.0;
}
ClearGoodPoseInfo();
return progress;
}
ErrorCode EightRoute::Process(const std::vector<FramePose>& poses) {
AINFO << "[EightRoute::process] begin";
size_t size = poses.size();
if (size <= 1) {
return_state_ = ErrorCode::ERROR_VERIFY_NO_GNSSPOS;
return return_state_;
}
progress_ = GetEightRouteProgress(poses);
if (return_state_ != ErrorCode::SUCCESS) {
AINFO << "get_eight_route_progress failed.";
return return_state_;
}
if (progress_ < last_progress_) {
return_state_ = ErrorCode::ERROR_NOT_EIGHT_ROUTE;
return return_state_;
}
AINFO << "[EightRoute::process] end, progress:" << progress_;
return_state_ = ErrorCode::SUCCESS;
return return_state_;
}
double EightRoute::GetProgress() const { return progress_; }
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker_gflags.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/worker_gflags.h"
namespace apollo {
namespace hdmap {
// Server address
DEFINE_string(map_datachecker_host, "127.0.0.1", "the grpc server host");
DEFINE_string(map_datachecker_port, "50100", "the grpc server port");
// Cybertron topics
DEFINE_string(topic_bestgnsspos, "/apollo/sensor/gnss/best_pose", "");
// configure file
DEFINE_string(conf_json,
"/apollo/modules/map/tools/map_datachecker/server/conf/"
"map-datachecker.json",
"configure file");
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker_agent.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <utility>
#include <vector>
#include "grpc++/grpc++.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.grpc.pb.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.pb.h"
#include "modules/map/tools/map_datachecker/server/alignment_agent.h"
#include "modules/map/tools/map_datachecker/server/channel_verify_agent.h"
#include "modules/map/tools/map_datachecker/server/common.h"
#include "modules/map/tools/map_datachecker/server/loops_verify_agent.h"
#include "modules/map/tools/map_datachecker/server/pose_collection.h"
namespace apollo {
namespace hdmap {
class MapDataCheckerAgent final
: public std::enable_shared_from_this<MapDataCheckerAgent>,
public CollectionCheckerService::Service {
public:
using STATIC_ALIGN_AGENT_TYPE =
AlignmentAgent<StaticAlign, StaticAlignRequest, StaticAlignResponse>;
using EIGHT_ROUTE_AGENT_TYPE =
AlignmentAgent<EightRoute, EightRouteRequest, EightRouteResponse>;
public:
MapDataCheckerAgent();
inline std::shared_ptr<MapDataCheckerAgent> GetWorkerAgent() {
return shared_from_this();
}
std::shared_ptr<PoseCollectionAgent> GetSpPoseCollectionAgent();
grpc::Status ServiceChannelVerify(grpc::ServerContext *context,
ChannelVerifyRequest *request,
ChannelVerifyResponse *response);
grpc::Status ServiceStaticAlign(grpc::ServerContext *context,
StaticAlignRequest *request,
StaticAlignResponse *response);
grpc::Status ServiceEightRoute(grpc::ServerContext *context,
EightRouteRequest *request,
EightRouteResponse *response);
grpc::Status ServiceLoopsVerify(grpc::ServerContext *context,
LoopsVerifyRequest *request,
LoopsVerifyResponse *response);
private:
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
std::shared_ptr<PoseCollectionAgent> sp_pose_collection_agent_ = nullptr;
std::shared_ptr<ChannelVerifyAgent> sp_channel_checker_agent_ = nullptr;
std::shared_ptr<STATIC_ALIGN_AGENT_TYPE> sp_static_align_agent_ = nullptr;
std::shared_ptr<EIGHT_ROUTE_AGENT_TYPE> sp_eight_route_agent_ = nullptr;
std::shared_ptr<LoopsVerifyAgent> sp_loops_verify_agent_ = nullptr;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/channel_verify.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/channel_verify.h"
#include <unordered_map>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/filesystem.hpp>
#include "cyber/cyber.h"
#include "cyber/proto/record.pb.h"
#include "cyber/record/record_viewer.h"
namespace apollo {
namespace hdmap {
ChannelVerify::ChannelVerify(std::shared_ptr<JsonConf> sp_conf)
: sp_conf_(sp_conf) {
Reset();
}
void ChannelVerify::Reset() {
return_state_ = ErrorCode::SUCCESS;
checked_records_.clear();
sp_vec_check_result_ =
std::make_shared<std::vector<OneRecordChannelCheckResult>>();
}
ErrorCode ChannelVerify::Check(
const std::string& record_dir_or_record_full_path) {
std::vector<std::string> records_path;
records_path = GetRecordsPath(record_dir_or_record_full_path);
if (records_path.empty()) {
AINFO << "have no data file to check";
return_state_ = ErrorCode::ERROR_VERIFY_NO_RECORDERS;
return return_state_;
}
IncrementalCheck(records_path);
return_state_ = ErrorCode::SUCCESS;
return return_state_;
}
std::shared_ptr<std::vector<OneRecordChannelCheckResult>>
ChannelVerify::get_check_result() const {
return sp_vec_check_result_;
}
int ChannelVerify::IncrementalCheck(
const std::vector<std::string>& records_path) {
std::vector<std::string> not_check_records_path;
AINFO << "all records path:";
for (size_t i = 0; i < records_path.size(); ++i) {
AINFO << "[" << i << "]: " << records_path[i];
if (IsRecordFile(records_path[i]) && !IsRecordChecked(records_path[i])) {
not_check_records_path.push_back(records_path[i]);
}
}
AINFO << "not_check_records_path:";
for (size_t i = 0; i < not_check_records_path.size(); ++i) {
AINFO << "[" << i << "]: " << not_check_records_path[i];
OneRecordChannelCheckResult check_result =
CheckRecordChannels(not_check_records_path[i]);
if (check_result.record_path.empty()) {
continue;
}
sp_vec_check_result_->push_back(check_result);
}
return 0;
}
bool ChannelVerify::IsRecordFile(const std::string& record_path) const {
if (!boost::filesystem::exists(record_path)) {
AINFO << "path [" << record_path << "] does not exist";
return false;
}
if (!boost::filesystem::is_regular_file(record_path)) {
AINFO << "path [" << record_path << "] is not a regular file";
return false;
}
// To avoid disk overhead caused by opening files twice, the real
// file checking is placed in the function [ChannelVerify::get_record_info]
return true;
}
std::vector<std::string> ChannelVerify::GetRecordsPath(
const std::string& record_dir_or_record_full_path) const {
// record_dir_or_record_full_path is record fullpath or
// directory which contains some records
std::vector<std::string> records_path;
// 1. check record_dir_or_record_full_path is valid or not
boost::filesystem::path path(record_dir_or_record_full_path);
if (!boost::filesystem::exists(path)) {
AINFO << "record path [" << record_dir_or_record_full_path
<< "] does not exist";
return records_path;
}
if (IsRecordFile(record_dir_or_record_full_path)) {
records_path.push_back(record_dir_or_record_full_path);
} else if (boost::filesystem::is_directory(path)) {
using dit_t = boost::filesystem::directory_iterator;
dit_t end;
for (dit_t it(record_dir_or_record_full_path); it != end; ++it) {
if (IsRecordFile(it->path().string())) {
records_path.push_back(it->path().string());
}
}
}
return records_path;
}
bool ChannelVerify::IsRecordChecked(const std::string& record_path) {
return !checked_records_.insert(record_path).second;
}
std::shared_ptr<CyberRecordInfo> ChannelVerify::GetRecordInfo(
const std::string& record_path) const {
if (!IsRecordFile(record_path)) {
AINFO << "get_record_info failed.[" << record_path
<< "] is not record file";
return nullptr;
}
std::shared_ptr<CyberRecordInfo> sp_record_info(new CyberRecordInfo);
std::shared_ptr<apollo::cyber::record::RecordReader> sp_reader =
std::make_shared<apollo::cyber::record::RecordReader>(record_path);
if (sp_reader == nullptr || !sp_reader->IsValid()) {
AINFO << "open record [" << record_path << "] failed";
return nullptr;
}
std::shared_ptr<apollo::cyber::record::RecordViewer> sp_viewer(
new apollo::cyber::record::RecordViewer(sp_reader));
sp_record_info->path = record_path;
sp_record_info->start_time = sp_viewer->begin_time();
sp_record_info->end_time = sp_viewer->end_time();
sp_record_info->duration =
static_cast<double>((sp_viewer->end_time() - sp_viewer->begin_time())) /
1e9;
std::set<std::string> channel_list = sp_reader->GetChannelList();
for (auto it = channel_list.begin(); it != channel_list.end(); ++it) {
const std::string& channel_name = *it;
CyberRecordChannel channel;
channel.channel_name = channel_name;
channel.msgnum = sp_reader->GetMessageNumber(channel_name);
channel.msg_type = sp_reader->GetMessageType(channel_name);
sp_record_info->channels.push_back(channel);
}
return sp_record_info;
}
OneRecordChannelCheckResult ChannelVerify::CheckRecordChannels(
const std::string& record_path) {
OneRecordChannelCheckResult check_result;
std::shared_ptr<CyberRecordInfo> sp_record_info = GetRecordInfo(record_path);
if (sp_record_info == nullptr) {
return check_result;
}
std::vector<CyberRecordChannel>& channels = sp_record_info->channels;
std::vector<std::pair<std::string, double>>& topic_list =
sp_conf_->topic_list;
check_result.record_path = record_path;
check_result.start_time = sp_record_info->start_time;
for (size_t i = 0; i < topic_list.size(); ++i) {
std::string& channel_in_list = topic_list[i].first;
double channel_expected_rate = topic_list[i].second;
bool channel_in_list_found = false;
size_t j = 0;
for (j = 0; j < channels.size(); ++j) {
std::string& channel_in_record = channels[j].channel_name;
if (channel_in_record == channel_in_list) {
channel_in_list_found = true;
break;
}
}
if (!channel_in_list_found) { // topic
AINFO << record_path << " lacks [" << channel_in_list << "]";
check_result.lack_channels.push_back(channel_in_list);
} else { // rate
double actual_rate =
static_cast<double>((channels[j].msgnum)) / sp_record_info->duration;
if (actual_rate < 1e-8) {
actual_rate = 0.0;
AINFO << "msgnum:" << channels[j].msgnum
<< ",duration:" << sp_record_info->duration;
}
AINFO << record_path << " [" << channel_in_list
<< "] expected rate: " << channel_expected_rate
<< ", actual rate: " << actual_rate;
if (actual_rate <
channel_expected_rate * sp_conf_->topic_rate_tolerance) {
check_result.inadequate_rate[channel_in_list] =
std::make_pair(channel_expected_rate, actual_rate);
}
}
}
return check_result;
}
ErrorCode ChannelVerify::GetReturnState() const { return return_state_; }
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker_cyber_node.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/worker_cyber_node.h"
#include <memory>
#include <string>
#include "modules/map/tools/map_datachecker/server/worker_agent.h"
#include "modules/map/tools/map_datachecker/server/worker_gflags.h"
constexpr double kRADIANS_TO_DEGREES = 180.0 / M_PI;
constexpr double kDEGRESS_TO_RADIANS = M_PI / 180.0;
namespace apollo {
namespace hdmap {
MapDataCheckerCyberNode::MapDataCheckerCyberNode(
std::shared_ptr<MapDataCheckerAgent> agent, bool *init_success) {
if (!agent) {
AFATAL << "MapDataCheckerAgent pointer is nullptr";
*init_success = false;
return;
}
agent_ = agent->GetWorkerAgent();
node_ = apollo::cyber::CreateNode(std::string("cybernode_map_datachecker"));
if (!node_) {
AFATAL << "Create cybertron node failed.";
*init_success = false;
return;
}
// Readers
CreateChannelSubscriber();
*init_success = true;
AINFO << "map-datachecker cyber node create successfully";
}
int MapDataCheckerCyberNode::CreateChannelSubscriber() {
AINFO << "create bestgnsspos reader, topic: " << FLAGS_topic_bestgnsspos;
bestgnsspos_reader_ = node_->CreateReader<GnssBestPose_t>(
FLAGS_topic_bestgnsspos,
[this](const std::shared_ptr<const GnssBestPose_t> &msg) {
agent_->GetSpPoseCollectionAgent()->OnBestgnssposCallback(msg);
});
if (!bestgnsspos_reader_) {
AFATAL << "create bestgnsspos reader error";
return -1;
}
return 0;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/static_align.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <vector>
#include "modules/map/tools/map_datachecker/server/alignment.h"
#include "modules/map/tools/map_datachecker/server/common.h"
namespace apollo {
namespace hdmap {
enum class StaticAlignDetectMethod {
RANSAC,
DYNAMIC_CENTROID,
};
typedef struct Point3d {
Point3d() : x(0.0), y(0.0), z(0.0) {}
double x, y, z;
} Point3d;
typedef struct Centroid3D {
Centroid3D() : count(0), start_time(0.0), end_time(0.0) {}
Point3d center;
int count;
double start_time, end_time;
} Centroid3D;
class StaticAlign : public Alignment {
public:
explicit StaticAlign(std::shared_ptr<JsonConf> sp_conf);
ErrorCode Process(const std::vector<FramePose>& poses);
private:
void Reset();
double GetStaticAlignProgress(const std::vector<FramePose>& poses);
double StaticAlignRansac(const std::vector<FramePose>& poses);
double StaticAlignDynamicCentroid(const std::vector<FramePose>& poses);
double GetCentroidTimeDuring();
void UpdateDynamicCentroid(const FramePose& pose);
bool IsStaticPose(const FramePose& pose);
void UpdateGoodPoseInfo(const FramePose& pose);
private:
StaticAlignDetectMethod static_align_detect_method_;
Centroid3D dynamic_centroid_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/pose_collection.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/pose_collection.h"
namespace apollo {
namespace hdmap {
PoseCollection::PoseCollection(std::shared_ptr<JsonConf> sp_conf) {
sp_conf_ = sp_conf;
Reset();
}
void PoseCollection::Reset() {
sp_poses_ = std::make_shared<std::vector<FramePose>>();
}
void PoseCollection::Collect(const FramePose& pose) {
if (sp_poses_ == nullptr) {
sp_poses_ = std::make_shared<std::vector<FramePose>>();
}
sp_poses_->push_back(pose);
}
std::shared_ptr<std::vector<FramePose>> PoseCollection::GetPoses() const {
return sp_poses_;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <string>
#include "grpc++/grpc++.h"
namespace apollo {
namespace hdmap {
class Mapdatachecker {
public:
Mapdatachecker() {}
~Mapdatachecker() {}
bool Init();
bool Start();
bool Stop();
void Report();
private:
std::string grpc_address_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/pose_collection_agent.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <mutex>
#include <vector>
#include "modules/common_msgs/sensor_msgs/gnss_best_pose.pb.h"
#include "modules/map/tools/map_datachecker/server/common.h"
#include "modules/map/tools/map_datachecker/server/pj_transformer.h"
#include "modules/map/tools/map_datachecker/server/pose_collection.h"
namespace apollo {
namespace hdmap {
class PoseCollectionAgent {
public:
explicit PoseCollectionAgent(std::shared_ptr<JsonConf> sp_conf);
void OnBestgnssposCallback(
const std::shared_ptr<const apollo::drivers::gnss::GnssBestPose>
&bestgnsspos);
std::shared_ptr<std::vector<FramePose>> GetPoses() const;
private:
void Reset();
private:
std::mutex mutex_;
std::shared_ptr<PoseCollection> sp_pose_collection_ = nullptr;
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
std::shared_ptr<PJTransformer> sp_pj_transformer_ = nullptr;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/common.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <cmath>
#include <ctime>
#include <iostream>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include <boost/filesystem.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include "cyber/cyber.h"
namespace apollo {
namespace hdmap {
constexpr double kRADIANS_TO_DEGREES = 180.0 / M_PI;
constexpr double kDEGRESS_TO_RADIANS = M_PI / 180.0;
typedef unsigned char uchar;
struct FramePose {
double time_stamp; // unix time
double tx, ty, tz;
double qx, qy, qz, qw;
double latitude, longitude, altitude;
double velx, vely, velz;
double roll, pitch, azimuth;
unsigned int ins_status;
unsigned int solution_status;
unsigned int position_type;
float diff_age;
double local_std;
};
enum class State { IDLE, RUNNING };
struct JsonConf {
std::vector<std::pair<std::string, double>> topic_list;
bool use_system_time;
double topic_rate_tolerance;
unsigned int solution_status;
std::set<unsigned int> position_type_range;
std::pair<float, float> diff_age_range;
double local_std_upper_limit;
/*Period of channel check trigger. The unit is seconds.*/
int channel_check_trigger_gap;
/*Period of alignment, The unit is seconds.
Eight route maneuver is also included in the alignment process.*/
int alignment_featch_pose_sleep;
/*the time that static alignment must last. The unit is seconds.*/
double static_align_duration;
/*the maximum time that bad pose included in static alignment.
The unit is seconds.*/
double static_align_tolerance;
/*Maximum Motion Distance Tolerated by Static Alignment*/
double static_align_dist_thresh;
/*Angle threshold between adjacent frames in eight route. The unit is degree*/
double eight_angle;
/*the time that eight route must last,The unit is seconds.*/
double eight_duration;
/*Minimum speed should be achieved in eight route*/
double eight_vel;
/*The tolerance of bad pose in eight route. The unit is frame*/
int eight_bad_pose_tolerance;
/*Minimum frame number threshold for acquisition of multiple loops*/
int laps_frames_thresh;
/*The angle error of adjacent poses on the same trajectory should not be
greater than alpha_err_thresh. The unit is degree*/
double laps_alpha_err_thresh;
/*The time stamp interval of adjacent poses on the same track should not be
greater than time_err_thresh. The unit is minutes.*/
double laps_time_err_thresh;
/*The diameter of the searched square area*/
int laps_search_diameter;
/*loops to check*/
size_t laps_number;
/*additional loops to check*/
int laps_number_additional;
/*Proportional thresholds for all required points
in acquisition cycle checking*/
double laps_rate_thresh;
};
std::shared_ptr<JsonConf> ParseJson(std::string conf_path);
inline double GetYaw(double from_x, double from_y, double to_x, double to_y) {
double vecx = to_x - from_x;
double vecy = to_y - from_y;
double alpha = acos(vecy / sqrt(vecx * vecx + vecy * vecy));
if (vecx < 0) {
alpha = 2 * M_PI - alpha;
}
return kRADIANS_TO_DEGREES * alpha;
}
inline double UnixNow() { return apollo::cyber::Time::Now().ToSecond(); }
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/laps_checker.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/laps_checker.h"
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <limits>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
namespace apollo {
namespace hdmap {
LapsChecker::LapsChecker(const std::vector<FramePose> &poses, int laps_to_check,
std::shared_ptr<JsonConf> sp_conf)
: poses_(poses), sp_conf_(sp_conf) {
laps_to_check_ = laps_to_check;
maxx_ = 0.0;
maxy_ = 0.0;
minx_ = 0.0;
miny_ = 0.0;
possible_max_laps_ = (laps_to_check_ + 1) * 10;
confidence_.resize(possible_max_laps_ + 1, 0.0);
finished_ = false;
return_state_ = ErrorCode::SUCCESS;
AINFO << "instance has " << poses.size() << " poses";
AINFO << "confidence size: " << possible_max_laps_ + 1;
}
int LapsChecker::SetProgress(double p) {
progress_ = p;
return 0;
}
double LapsChecker::GetProgress() const { return progress_; }
size_t LapsChecker::GetLap() const { return lap_; }
double LapsChecker::GetConfidence() {
double res = 0.0;
lap_ = laps_to_check_;
for (size_t i = 0; i < confidence_.size(); ++i) {
AINFO << "confidence[" << i << "]: " << confidence_[i];
}
AINFO << "laps to check: " << laps_to_check_;
for (size_t i = laps_to_check_; i < confidence_.size(); ++i) {
res += confidence_[i];
}
AINFO << "current confidence: " << res
<< ",confidence thresh:" << sp_conf_->laps_rate_thresh;
if (res < sp_conf_->laps_rate_thresh) {
if (confidence_.empty()) {
AINFO << "some problems induce lap problem";
return 0.0;
}
res = confidence_[0];
lap_ = 0;
for (size_t i = 1; i < confidence_.size(); ++i) {
if (i == laps_to_check_) {
continue;
}
if (confidence_[i] > res) {
lap_ = i;
res = confidence_[i];
}
}
}
return res;
}
ErrorCode LapsChecker::Check() {
if (poses_.empty()) {
return_state_ = ErrorCode::ERROR_VERIFY_NO_GNSSPOS;
return return_state_;
}
DoCheck();
finished_ = true;
return return_state_;
}
void LapsChecker::DoCheck() {
AINFO << "do_check";
SetProgress(0.0);
int ret = 0;
AINFO << "check->check_params";
ret = CheckParams();
if (ret < 0) {
AINFO << "check_params failed";
}
SetProgress(0.1);
AINFO << "check->setup_grids_map";
ret = SetupGridsMap();
if (ret < 0) {
AINFO << "setup_grids_map failed";
}
SetProgress(0.5);
AINFO << "check->setup_grids_map done";
AINFO << "check->check_laps";
ret = CheckLaps();
if (ret < 0) {
AINFO << "check_laps failed";
}
SetProgress(1.0);
AINFO << "check->check_laps done";
AINFO << "do_check done";
}
int LapsChecker::CheckParams() {
int n_pose = static_cast<int>(poses_.size());
if (n_pose < sp_conf_->laps_frames_thresh) {
return -1;
}
return 0;
}
int LapsChecker::SetupGridsMap() {
AINFO << "setup_grids_map->get_min_max";
GetMinMax();
AINFO << "setup_grids_map->do_setup_grids_map";
int ret = DoSetupGridsMap();
if (ret < 0) {
AINFO << "do_setup_grids_map failed";
return -1;
}
AINFO << "setup_grids_map done";
return 0;
}
int LapsChecker::CheckLaps() {
int height = static_cast<int>(grids_map_.size());
if (height <= 2 || height > 1000000) {
AINFO << "grids_map_ size error. height = " << height;
return -1;
}
int width = static_cast<int>(grids_map_[0].size());
if (width <= 2 || width >= 1000000) {
AINFO << "grids_map_ size error. width = " << width;
return -1;
}
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
Grid &grid = grids_map_[y][x];
size_t t_size = grid.size();
if (t_size == 0) {
continue;
}
for (size_t i = 0; i < t_size; ++i) {
std::vector<double> stamps;
GatherTimestamps(&stamps, grid[i].alpha, x, y);
if (stamps.empty()) {
continue;
}
std::sort(stamps.begin(), stamps.end());
double thresh_in_sec = sp_conf_->laps_time_err_thresh * 60;
size_t segment = 1;
for (size_t j = 1; j < stamps.size(); ++j) {
if (stamps[j] - stamps[j - 1] > thresh_in_sec) {
segment++;
}
}
if (segment <= possible_max_laps_) {
confidence_[segment] += 1;
}
}
}
}
double all = 0.0;
for (size_t i = 0; i < confidence_.size(); ++i) {
all += confidence_[i];
}
if (all == 0.0) {
AINFO << "there seems no poses";
return -1;
}
AINFO << "confidence size: " << confidence_.size();
for (size_t i = 0; i < confidence_.size(); ++i) {
confidence_[i] /= all;
}
return 0;
}
int LapsChecker::GatherTimestamps(std::vector<double> *sp_stamps, double alpha,
int center_x, int center_y) {
int search_d = sp_conf_->laps_search_diameter;
if ((search_d & 1) == 0) {
AINFO << "laps_search_diameter should be an odd";
return -1;
}
int search_r = (search_d >> 1);
size_t height = grids_map_.size(), width = grids_map_[0].size();
std::vector<double> &stamps = *sp_stamps;
stamps.clear();
const size_t start_y = std::max(0, center_y - search_r);
const size_t end_y =
std::min(static_cast<int>(height) - 1, center_y + search_r);
const size_t start_x = std::max(0, center_x - search_r);
const size_t end_x =
std::min(static_cast<int>(width) - 1, center_x + search_r);
for (size_t y = start_y; y <= end_y; y++) {
for (size_t x = start_x; x <= end_x; x++) {
Grid &grid = grids_map_[y][x];
for (size_t i = 0; i < grid.size(); ++i) {
if (std::abs(alpha - grid[i].alpha) < sp_conf_->laps_alpha_err_thresh) {
std::vector<int> &idxs = grid[i].idxs;
for (size_t j = 0; j < idxs.size(); ++j) {
if (idxs[j] >= static_cast<int>(poses_.size())) {
AINFO << "index error, index: " << idxs[j]
<< ", pose size: " << poses_.size();
} else {
stamps.push_back(poses_[idxs[j]].time_stamp);
}
}
}
}
}
}
return 0;
}
int LapsChecker::GetMinMax() {
minx_ = std::numeric_limits<double>::max();
miny_ = std::numeric_limits<double>::max();
maxx_ = std::numeric_limits<double>::min();
maxy_ = std::numeric_limits<double>::min();
size_t size = poses_.size();
AINFO << "get_min_max pose size: " << size;
for (size_t i = 0; i < size; ++i) {
double tx = poses_[i].tx, ty = poses_[i].ty;
if (tx < minx_) {
minx_ = tx;
}
if (tx > maxx_) {
maxx_ = tx;
}
if (ty < miny_) {
miny_ = ty;
}
if (ty > maxy_) {
maxy_ = ty;
}
}
return 0;
}
int LapsChecker::DoSetupGridsMap() {
size_t width = size_t(maxx_ - minx_ + 1);
size_t height = size_t(maxy_ - miny_ + 1);
AINFO << "grid map width: " << width << ", height: " << height;
size_t size = poses_.size();
if (1 >= size || 0 == height || 0 == width || height > 1000000 ||
width > 1000000) {
AINFO << "pose size: " << size << ", height: " << height
<< ", width: " << width;
AINFO << "pose size error or grid map size error";
return -1;
}
grids_map_.resize(height);
for (size_t i = 0; i < height; ++i) {
grids_map_[i].resize(width);
}
// first pose can not be used
for (size_t i = 1; i < size; ++i) {
int x = static_cast<int>(poses_[i].tx - minx_);
int y = static_cast<int>(poses_[i].ty - miny_);
PutPoseToGrid(static_cast<int>(i), y, x);
PutPoseToNeighborGrid(static_cast<int>(i));
}
return 0;
}
double LapsChecker::CalcAlpha(int pose_index) {
double vecx = poses_[pose_index].tx - poses_[pose_index - 1].tx;
double vecy = poses_[pose_index].ty - poses_[pose_index - 1].ty;
double alpha = acos(vecx / sqrt(vecx * vecx + vecy * vecy)) * 180 / M_PI;
if (alpha > 0) {
return alpha;
}
return 360 + alpha;
}
int LapsChecker::PutPoseToGrid(int pose_index, int grid_y, int grid_x) {
if (pose_index <= 0) {
return 0;
}
double alpha = CalcAlpha(pose_index);
if (std::isnan(alpha)) {
AERROR << "ignore static pose " << pose_index;
return 0;
}
Grid &grid = grids_map_[grid_y][grid_x];
size_t t_size = grid.size();
for (size_t j = 0; j < t_size; ++j) {
if (std::abs(alpha - grid[j].alpha) < sp_conf_->laps_alpha_err_thresh) {
grid[j].idxs.push_back(pose_index);
grid[j].alpha = (grid[j].alpha + alpha) / 2;
return 0;
}
}
GridMeta gm;
gm.alpha = alpha;
gm.idxs = {pose_index};
grid.push_back(gm);
return 0;
}
int LapsChecker::PutPoseToNeighborGrid(int pose_index) {
if (pose_index <= 0) {
return 0;
}
std::vector<int> x, y;
GetPassedGrid(pose_index, &x, &y);
for (size_t i = 0; i < x.size(); ++i) {
PutPoseToGrid(pose_index, y[i], x[i]);
}
return 0;
}
int LapsChecker::GetPassedGrid(int pose_index, std::vector<int> *sp_grid_x,
std::vector<int> *sp_grid_y) {
if (pose_index <= 0) {
return 0;
}
std::vector<int> &grid_x = *sp_grid_x;
std::vector<int> &grid_y = *sp_grid_y;
grid_x.clear();
grid_y.clear();
double x = poses_[pose_index].tx - minx_;
double y = poses_[pose_index].ty - miny_;
double last_x = poses_[pose_index - 1].tx - minx_;
double last_y = poses_[pose_index - 1].ty - miny_;
if (std::abs(x - last_x) < 1e-6) { // current trace is vertical
int start_y = static_cast<int>(std::min(y, last_y)) + 1;
int end_y = static_cast<int>(std::max(y, last_y));
int start_x = static_cast<int>(x);
while ((start_y++) < end_y) {
grid_x.push_back(start_x);
grid_y.push_back(start_y);
}
} else if (std::abs(y - last_y) < 1e-6) { // current trace is horizontal
int start_x = static_cast<int>(std::min(x, last_x));
int end_x = static_cast<int>(std::max(x, last_x));
int start_y = static_cast<int>(y);
while ((++start_x) < end_x) {
grid_x.push_back(start_x);
grid_y.push_back(start_y);
}
} else {
double k = Slope(last_x, last_y, x, y);
if (k > 99999999.0) {
AERROR << "slope error";
return -1;
}
int steps = static_cast<int>(std::abs(last_x - x));
int step = 0;
double xx = 0.0, yy = 0.0;
if (x < last_x) {
xx = x, yy = y;
} else {
xx = last_x, yy = last_y;
}
while ((step++) < steps) {
xx = xx + 1;
yy = yy + k;
grid_x.push_back(static_cast<int>(xx));
grid_y.push_back(static_cast<int>(yy));
}
}
return 0;
}
double LapsChecker::Slope(double x1, double y1, double x2, double y2) {
if (std::abs(x1 - x2) < 1e-6) {
return std::numeric_limits<double>::max();
}
if (std::abs(y1 - y2) < 1e-6) {
return 0.0;
}
return (y2 - y1) / (x2 - x1);
}
ErrorCode LapsChecker::GetReturnState() { return return_state_; }
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/static_align.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/static_align.h"
#include <vector>
namespace apollo {
namespace hdmap {
StaticAlign::StaticAlign(std::shared_ptr<JsonConf> sp_conf)
: Alignment(sp_conf) {
sp_conf_ = sp_conf;
static_align_detect_method_ = StaticAlignDetectMethod::DYNAMIC_CENTROID;
Reset();
}
void StaticAlign::Reset() {
progress_ = 0.0;
last_progress_ = 0.0;
start_time_ = -1.0;
end_time_ = -1.0;
start_index_ = -1;
end_index_ = -1;
sp_bad_pose_info_ = std::make_shared<BadOrGoodPoseInfo>();
sp_good_pose_info_ = std::make_shared<BadOrGoodPoseInfo>();
dynamic_centroid_ = Centroid3D();
}
bool StaticAlign::IsStaticPose(const FramePose& pose) {
if (dynamic_centroid_.count == 0) {
return true;
}
double move_dist_x = pose.tx - dynamic_centroid_.center.x;
double move_dist_y = pose.ty - dynamic_centroid_.center.y;
double move_dist_z = pose.tz - dynamic_centroid_.center.z;
double move_dist =
std::sqrt(move_dist_x * move_dist_x + move_dist_y * move_dist_y +
move_dist_z * move_dist_z);
AINFO << "dist thresh: " << sp_conf_->static_align_dist_thresh
<< ", dist: " << move_dist;
if (move_dist <= sp_conf_->static_align_dist_thresh) {
return true;
}
return false;
}
void StaticAlign::UpdateDynamicCentroid(const FramePose& pose) {
int count = dynamic_centroid_.count;
if (count == 0) {
dynamic_centroid_.start_time = pose.time_stamp;
} else {
dynamic_centroid_.end_time = pose.time_stamp;
}
AINFO << "cetroid start: " << dynamic_centroid_.start_time
<< ", end: " << dynamic_centroid_.end_time;
double x = dynamic_centroid_.center.x * count + pose.tx;
double y = dynamic_centroid_.center.y * count + pose.ty;
double z = dynamic_centroid_.center.z * count + pose.tz;
++count;
dynamic_centroid_.count = count;
dynamic_centroid_.center.x = x / count;
dynamic_centroid_.center.y = y / count;
dynamic_centroid_.center.z = z / count;
}
double StaticAlign::GetCentroidTimeDuring() {
if (dynamic_centroid_.start_time > 0 && dynamic_centroid_.end_time > 0) {
return dynamic_centroid_.end_time - dynamic_centroid_.start_time;
}
return 0.0;
}
void StaticAlign::UpdateGoodPoseInfo(const FramePose& pose) {
UpdateDynamicCentroid(pose);
}
double StaticAlign::StaticAlignDynamicCentroid(
const std::vector<FramePose>& poses) {
int start_index = TimeToIndex(poses, start_time_);
AINFO << "start_index:" << start_index << ",pose size:" << poses.size();
dynamic_centroid_ = Centroid3D();
for (int i = start_index + 1; i < static_cast<int>(poses.size()); ++i) {
if (!IsGoodPose(poses, i)) {
AINFO << "not good pose";
return_state_ = ErrorCode::ERROR_GNSS_SIGNAL_FAIL;
return 0.0;
}
if (!IsStaticPose(poses[i])) {
AINFO << "not static pose";
return_state_ = ErrorCode::ERROR_NOT_STATIC;
return 0.0;
}
UpdateGoodPoseInfo(poses[i]);
return_state_ = ErrorCode::SUCCESS;
}
double progress = GetCentroidTimeDuring() / sp_conf_->static_align_duration;
if (progress > 1.0) {
progress = 1.0;
}
return progress;
}
double StaticAlign::StaticAlignRansac(const std::vector<FramePose>& poses) {
// TODO(yuanyijun): implementation of selecting an center by RANSAC
return 0.0;
}
double StaticAlign::GetStaticAlignProgress(
const std::vector<FramePose>& poses) {
double progress = 0.0;
switch (static_align_detect_method_) {
case StaticAlignDetectMethod::DYNAMIC_CENTROID:
progress = StaticAlignDynamicCentroid(poses);
break;
case StaticAlignDetectMethod::RANSAC:
progress = StaticAlignRansac(poses);
break;
default:
break;
}
ClearGoodPoseInfo();
return progress;
}
ErrorCode StaticAlign::Process(const std::vector<FramePose>& poses) {
AINFO << "[StaticAlign::process] begin";
size_t size = poses.size();
if (size <= 1) {
AINFO << "system has no pose, exit process";
return_state_ = ErrorCode::ERROR_VERIFY_NO_GNSSPOS;
return return_state_;
}
progress_ = GetStaticAlignProgress(poses);
if (return_state_ != ErrorCode::SUCCESS) {
AINFO << "get_static_align_progress error, progress 0.0";
return return_state_;
}
AINFO << "[StaticAlign::process] end, progress:" << progress_;
return_state_ = ErrorCode::SUCCESS;
return return_state_;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/pj_transformer.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#include <proj_api.h>
namespace apollo {
namespace hdmap {
class PJTransformer {
public:
explicit PJTransformer(int zone_id = 50);
~PJTransformer();
int LatlongToUtm(int64_t point_count, int point_offset, double *x, double *y,
double *z);
private:
projPJ pj_latlong_;
projPJ pj_utm_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/loops_verify_agent.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <utility>
#include <vector>
#include "grpc++/grpc++.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.pb.h"
#include "modules/map/tools/map_datachecker/server/laps_checker.h"
#include "modules/map/tools/map_datachecker/server/pose_collection_agent.h"
namespace apollo {
namespace hdmap {
enum class LoopsVerifyAgentState { IDLE, RUNNING };
class LoopsVerifyAgent {
public:
LoopsVerifyAgent(
std::shared_ptr<JsonConf> sp_conf,
std::shared_ptr<PoseCollectionAgent> sp_pose_collection_agent);
grpc::Status ProcessGrpcRequest(grpc::ServerContext *context,
LoopsVerifyRequest *request,
LoopsVerifyResponse *response);
private:
void StartVerify(LoopsVerifyRequest *request, LoopsVerifyResponse *response);
void CheckVerify(LoopsVerifyRequest *request, LoopsVerifyResponse *response);
void StopVerify(LoopsVerifyRequest *request, LoopsVerifyResponse *response);
std::shared_ptr<std::vector<std::pair<double, double>>> get_verify_range(
LoopsVerifyRequest *request);
size_t GetLoopsToCheck(LoopsVerifyRequest *request);
int GetPosesToCheck(
std::shared_ptr<std::vector<std::pair<double, double>>> sp_range,
std::vector<FramePose> *poses);
int DoStartVerify(
std::shared_ptr<std::vector<std::pair<double, double>>> sp_range,
double loops_to_check);
double GetRangeIndex(
std::shared_ptr<std::vector<std::pair<double, double>>> sp_range,
std::vector<bool> *range_index,
std::shared_ptr<std::vector<FramePose>> sp_vec_poses);
void SetState(LoopsVerifyAgentState state);
LoopsVerifyAgentState GetState();
private:
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
std::shared_ptr<PoseCollectionAgent> sp_pose_collection_agent_ = nullptr;
std::shared_ptr<LapsChecker> sp_laps_checker_ = nullptr;
LoopsVerifyAgentState state_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/BUILD | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_binary(
name = "map_datachecker_server",
srcs = ["main.cc"],
deps = [
":worker",
"//cyber",
],
)
cc_library(
name = "channel_verify",
srcs = ["channel_verify.cc"],
hdrs = ["channel_verify.h"],
deps = [
":common",
"//cyber",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
"@boost",
],
)
cc_library(
name = "channel_verify_agent",
srcs = ["channel_verify_agent.cc"],
hdrs = ["channel_verify_agent.h"],
deps = [
":channel_verify",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
"//modules/map/tools/map_datachecker/proto:collection_service_cc_grpc",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "common",
srcs = ["common.cc"],
hdrs = ["common.h"],
deps = [
"//cyber",
"@boost",
],
)
cc_library(
name = "eight_route",
srcs = ["eight_route.cc"],
hdrs = [
"alignment.h",
"eight_route.h",
],
deps = [
":common",
":worker_gflags",
"//cyber",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "laps_checker",
srcs = ["laps_checker.cc"],
hdrs = ["laps_checker.h"],
deps = [
":common",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
"@boost",
],
)
cc_library(
name = "loops_verify_agent",
srcs = ["loops_verify_agent.cc"],
hdrs = ["loops_verify_agent.h"],
deps = [
":laps_checker",
":pose_collection_agent",
"//modules/map/tools/map_datachecker/proto:collection_service_cc_grpc",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "pj_transformer",
srcs = ["pj_transformer.cc"],
hdrs = ["pj_transformer.h"],
deps = [
"//cyber",
"@proj",
],
)
cc_library(
name = "pose_collection",
srcs = ["pose_collection.cc"],
hdrs = ["pose_collection.h"],
deps = [
":common",
],
)
cc_library(
name = "pose_collection_agent",
srcs = ["pose_collection_agent.cc"],
hdrs = ["pose_collection_agent.h"],
deps = [
":common",
":pj_transformer",
":pose_collection",
"//cyber",
"//modules/common_msgs/sensor_msgs:gnss_best_pose_cc_proto",
],
)
cc_library(
name = "static_align",
srcs = ["static_align.cc"],
hdrs = [
"alignment.h",
"static_align.h",
],
deps = [
":common",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
],
)
cc_library(
name = "worker",
srcs = ["worker.cc"],
hdrs = ["worker.h"],
deps = [
":eight_route",
":static_align",
":worker_agent",
":worker_cyber_node",
":worker_gflags",
"//cyber",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "worker_agent",
srcs = ["worker_agent.cc"],
hdrs = [
"alignment_agent.h",
"worker_agent.h",
],
deps = [
":channel_verify_agent",
":common",
":eight_route",
":loops_verify_agent",
":pose_collection",
":static_align",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
"//modules/map/tools/map_datachecker/proto:collection_service_cc_grpc",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "worker_cyber_node",
srcs = ["worker_cyber_node.cc"],
hdrs = ["worker_cyber_node.h"],
deps = [
":worker_agent",
":worker_gflags",
"//cyber",
"//modules/common_msgs/sensor_msgs:gnss_best_pose_cc_proto",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
"//modules/map/tools/map_datachecker/proto:collection_service_cc_grpc",
],
)
cc_library(
name = "worker_gflags",
srcs = ["worker_gflags.cc"],
hdrs = ["worker_gflags.h"],
deps = [
"@com_github_gflags_gflags//:gflags",
],
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/channel_verify.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <map>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "modules/map/tools/map_datachecker/proto/collection_error_code.pb.h"
#include "modules/map/tools/map_datachecker/server/common.h"
namespace apollo {
namespace hdmap {
struct CyberRecordChannel {
std::string channel_name;
uint64_t msgnum;
std::string msg_type;
};
struct CyberRecordInfo {
std::string path;
double duration; // the unit is seconds
uint64_t start_time;
uint64_t end_time;
std::vector<CyberRecordChannel> channels;
};
struct OneRecordChannelCheckResult {
std::string record_path;
uint64_t start_time = 0;
std::vector<std::string> lack_channels;
// inadequate_rate: channel_name <---> (expected_rate, actual_rate)
std::map<std::string, std::pair<double, double>> inadequate_rate;
};
typedef std::shared_ptr<std::vector<OneRecordChannelCheckResult>> CheckedResult;
typedef std::vector<OneRecordChannelCheckResult>::iterator CheckResultIterator;
class ChannelVerify {
public:
explicit ChannelVerify(std::shared_ptr<JsonConf> sp_conf);
ErrorCode Check(const std::string& record_dir_or_record_full_path);
std::shared_ptr<std::vector<OneRecordChannelCheckResult>> get_check_result()
const;
ErrorCode GetReturnState() const;
private:
bool IsRecordFile(const std::string& path) const;
std::shared_ptr<CyberRecordInfo> GetRecordInfo(
const std::string& record_path) const;
int IncrementalCheck(const std::vector<std::string>& records_path);
std::vector<std::string> GetRecordsPath(
const std::string& record_dir_or_record_full_path) const;
bool IsRecordChecked(const std::string& record_path);
OneRecordChannelCheckResult CheckRecordChannels(
const std::string& record_path);
void Reset();
private:
std::shared_ptr<JsonConf> sp_conf_ = nullptr;
CheckedResult sp_vec_check_result_ = nullptr;
ErrorCode return_state_;
std::set<std::string> checked_records_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/pj_transformer.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/pj_transformer.h"
#include <iostream>
#include <sstream>
#include "cyber/cyber.h"
namespace apollo {
namespace hdmap {
PJTransformer::PJTransformer(int zone_id) {
// init projPJ
std::stringstream stream;
stream << "+proj=utm +zone=" << zone_id << " +ellps=WGS84" << std::endl;
pj_utm_ = pj_init_plus(stream.str().c_str());
if (pj_utm_ == nullptr) {
AERROR << "proj4 init failed!" << stream.str() << std::endl;
return;
}
pj_latlong_ = pj_init_plus("+proj=latlong +ellps=WGS84");
if (pj_latlong_ == nullptr) {
AERROR << "proj4 pj_latlong init failed!";
return;
}
AINFO << "proj4 init success" << std::endl;
}
PJTransformer::~PJTransformer() {
if (pj_latlong_) {
pj_free(pj_latlong_);
pj_latlong_ = nullptr;
}
if (pj_utm_) {
pj_free(pj_utm_);
pj_utm_ = nullptr;
}
}
int PJTransformer::LatlongToUtm(int64_t point_count, int point_offset,
double *x, double *y, double *z) {
if (!pj_latlong_ || !pj_utm_) {
AERROR << "pj_latlong_:" << pj_latlong_ << "pj_utm_:" << pj_utm_
<< std::endl;
return -1;
}
return pj_transform(pj_latlong_, pj_utm_, point_count, point_offset, x, y, z);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/worker.h"
#include <memory>
#include "grpc++/grpc++.h"
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/server/worker_agent.h"
#include "modules/map/tools/map_datachecker/server/worker_cyber_node.h"
#include "modules/map/tools/map_datachecker/server/worker_gflags.h"
namespace apollo {
namespace hdmap {
bool Mapdatachecker::Init() {
grpc_address_ = FLAGS_map_datachecker_host + ":" + FLAGS_map_datachecker_port;
return true;
}
bool Mapdatachecker::Start() {
AINFO << "Mapdatachecker::Start";
Init();
AINFO << "creating agent";
std::shared_ptr<MapDataCheckerAgent> agent =
std::make_shared<MapDataCheckerAgent>();
AINFO << "creating node";
bool cyber_node_inited = false;
std::shared_ptr<MapDataCheckerCyberNode> cyber_node =
std::make_shared<MapDataCheckerCyberNode>(agent, &cyber_node_inited);
if (!cyber_node_inited) {
AFATAL << "Error in create MapDataCheckerCyberNode";
apollo::cyber::WaitForShutdown();
apollo::cyber::Clear();
return false;
}
AINFO << "register service";
grpc::ServerBuilder builder;
builder.AddListeningPort(grpc_address_, grpc::InsecureServerCredentials());
builder.RegisterService(agent.get());
std::unique_ptr<grpc::Server> server(builder.BuildAndStart());
AINFO << "Server listening on " << grpc_address_;
apollo::cyber::WaitForShutdown();
apollo::cyber::Clear();
return true;
}
bool Mapdatachecker::Stop() { return true; }
void Mapdatachecker::Report() {}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/worker_agent.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/worker_agent.h"
#include <memory>
#include "grpc++/grpc++.h"
namespace apollo {
namespace hdmap {
MapDataCheckerAgent::MapDataCheckerAgent() {
sp_conf_ = ParseJson(FLAGS_conf_json);
assert(sp_conf_ != nullptr);
sp_pose_collection_agent_ = std::make_shared<PoseCollectionAgent>(sp_conf_);
sp_channel_checker_agent_ = std::make_shared<ChannelVerifyAgent>(sp_conf_);
sp_static_align_agent_ = std::make_shared<STATIC_ALIGN_AGENT_TYPE>(
sp_conf_, sp_pose_collection_agent_);
sp_eight_route_agent_ = std::make_shared<EIGHT_ROUTE_AGENT_TYPE>(
sp_conf_, sp_pose_collection_agent_);
sp_loops_verify_agent_ =
std::make_shared<LoopsVerifyAgent>(sp_conf_, sp_pose_collection_agent_);
AINFO << "MapDataCheckerAgent create successfully";
}
std::shared_ptr<PoseCollectionAgent>
MapDataCheckerAgent::GetSpPoseCollectionAgent() {
return sp_pose_collection_agent_;
}
grpc::Status MapDataCheckerAgent::ServiceChannelVerify(
grpc::ServerContext *context, ChannelVerifyRequest *request,
ChannelVerifyResponse *response) {
return sp_channel_checker_agent_->ProcessGrpcRequest(context, request,
response);
}
grpc::Status MapDataCheckerAgent::ServiceStaticAlign(
grpc::ServerContext *context, StaticAlignRequest *request,
StaticAlignResponse *response) {
return sp_static_align_agent_->ProcessGrpcRequest(context, request, response);
}
grpc::Status MapDataCheckerAgent::ServiceEightRoute(
grpc::ServerContext *context, EightRouteRequest *request,
EightRouteResponse *response) {
return sp_eight_route_agent_->ProcessGrpcRequest(context, request, response);
}
grpc::Status MapDataCheckerAgent::ServiceLoopsVerify(
grpc::ServerContext *context, LoopsVerifyRequest *request,
LoopsVerifyResponse *response) {
return sp_loops_verify_agent_->ProcessGrpcRequest(context, request, response);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker/server | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/conf/map-datachecker.conf | --map_datachecker_host=127.0.0.1
--map_datachecker_port=50100
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker/server | apollo_public_repos/apollo/modules/map/tools/map_datachecker/server/conf/map-datachecker.json | {
"topic_list": {
"/apollo/sensor/gnss/best_pose": 0.9,
"/apollo/sensor/velodyne16/VelodyneScanUnified": 9.0,
"/apollo/sensor/velodyne64/VelodyneScanUnified": 9.0,
"/apollo/sensor/camera/traffic/image_short": 6.0,
"/apollo/sensor/camera/traffic/image_long": 6.0,
"/apollo/sensor/gnss/odometry": 99
},
"use_system_time": false,
"topic_rate_tolerance": 1.0,
"channel_check_trigger_gap": 60,
"solution_status": 0,
"position_type": [48, 49, 50],
"diff_age": [0, 60],
"local_std_upper_limit": 0.15,
"alignment_featch_pose_sleep": 1,
"static_align_duration": 30,
"static_align_tolerance": 5,
"static_align_dist_thresh": 0.15,
"dynamic_align_turn_angle": 60,
"dynamic_align_straight_angle": 30,
"dynamic_align_vel": 5,
"dynamic_align_duration": 120,
"dynamic_align_bad_pose_tolerance": 20,
"dynamic_align_segment": 1,
"dynamic_align_dist_per_segment": 100,
"eight_angle": 1,
"eight_duration": 60,
"eight_vel": 1.0,
"eight_bad_pose_tolerance": 3,
"laps_frames_thresh": 1000,
"laps_alpha_err_thresh": 60,
"laps_time_err_thresh": 0.2,
"laps_search_diameter": 15,
"laps_number": 5,
"laps_number_additional": 1,
"laps_rate_thresh": 0.8,
"laps_inspva_downsample_freq": 10
}
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/main.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client.h"
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
int main(int argc, char** argv) {
google::ParseCommandLineFlags(&argc, &argv, true);
AINFO << "cyber init";
if (apollo::cyber::Init(argv[0])) {
AINFO << "init succeed";
} else {
AERROR << "init failed";
}
google::SetStderrLogging(FLAGS_minloglevel);
AINFO << "Starting Client";
apollo::hdmap::Client client;
if (client.Run() != 0) {
AFATAL << "Start Client Failed!";
return -1;
}
return 0;
}
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_common.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <string>
#include <vector>
#include "cyber/cyber.h"
#include "grpc++/grpc++.h"
namespace apollo {
namespace hdmap {
#ifndef SYSTEM_OUTPUT_STREAM
#define SYSTEM_OUTPUT_STREAM stderr
#define SYS_STREAM SYSTEM_OUTPUT_STREAM
#endif
#ifndef CLIENT_OUTPUT_STREAM
#define CLIENT_OUTPUT_STREAM stdout
#define USER_STREAM CLIENT_OUTPUT_STREAM
#endif
std::vector<std::string> GetFileLines(const std::string& path);
inline double UnixNow() { return apollo::cyber::Time::Now().ToSecond(); }
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <string>
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
namespace apollo {
namespace hdmap {
class Client {
public:
Client();
int Run();
private:
int RecordCheckStage();
int StaticAlignStage();
int EightRouteStage();
int DataCollectStage();
int LoopsCheckStage();
int CleanStage();
private:
std::string data_collect_time_flag_file_;
std::string channel_checker_stop_flag_file_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_loops_check.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
#include "modules/map/tools/map_datachecker/client/exception_handler.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.grpc.pb.h"
namespace apollo {
namespace hdmap {
class LoopsChecker {
public:
explicit LoopsChecker(const std::string& time_flag_file);
int SyncStart(bool* reached);
private:
std::vector<std::pair<double, double>> GetTimeRanges();
int PeriodicCheck(bool* reached);
int GrpcStub(LoopsVerifyRequest* request, LoopsVerifyResponse* response);
int Start(const std::vector<std::pair<double, double>>& time_ranges);
int Check(double* progress, bool* reached);
int Stop();
private:
std::unique_ptr<CollectionCheckerService::Stub> service_stub_;
const std::string& time_flag_file_;
int check_period_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_loops_check.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/client_loops_check.h"
#include <utility>
#include <boost/algorithm/string.hpp>
#include "grpc++/grpc++.h"
#include "yaml-cpp/yaml.h"
namespace apollo {
namespace hdmap {
LoopsChecker::LoopsChecker(const std::string& time_flag_file)
: time_flag_file_(time_flag_file) {
YAML::Node node = YAML::LoadFile(FLAGS_client_conf_yaml);
std::string server_addr =
node["grpc_host_port"]["grpc_host"].as<std::string>() + ":" +
node["grpc_host_port"]["grpc_port"].as<std::string>();
check_period_ = node["loops_check"]["check_period"].as<int>();
service_stub_ = CollectionCheckerService::NewStub(
grpc::CreateChannel(server_addr, grpc::InsecureChannelCredentials()));
}
int LoopsChecker::SyncStart(bool* reached) {
std::vector<std::pair<double, double>> time_ranges = GetTimeRanges();
size_t pair_count = time_ranges.size();
if (pair_count == 0) {
AINFO << "there is no time range";
return -1;
}
int ret = Start(time_ranges);
if (ret != 0) {
AINFO << "loops check start failed";
fprintf(USER_STREAM, "loops check start failed\n");
return -1;
}
return PeriodicCheck(reached);
}
int LoopsChecker::PeriodicCheck(bool* reached) {
int ret = 0;
while (true) {
double progress = 0.0;
ret = Check(&progress, reached);
if (ret != 0) {
AERROR << "loops check failed";
break;
}
AINFO << "loops check progress: [" << progress << "]";
fprintf(USER_STREAM, "loops check progress: %.2lf%%\n", progress * 100);
if (fabs(progress - 1.0) < 1e-8) {
break;
}
std::this_thread::sleep_for(std::chrono::seconds(check_period_));
}
if (ret != 0) {
return -1;
}
ret = Stop();
if (ret != 0) {
AERROR << "loops check stop failed";
return -1;
}
return 0;
}
std::vector<std::pair<double, double>> LoopsChecker::GetTimeRanges() {
std::vector<std::pair<double, double>> result;
std::vector<std::pair<double, double>> empty;
std::vector<std::string> lines = GetFileLines(time_flag_file_);
size_t record_count = lines.size();
if (record_count == 0 || (record_count & 1) != 0) {
AINFO << "record_count should be even number";
fprintf(USER_STREAM,
"The command start and stop should be appear in pairs\n");
return empty;
}
for (size_t i = 0; i < record_count; i += 2) {
std::vector<std::string> split_str;
boost::split(split_str, lines[i], boost::is_any_of(" ,\t\n"));
double start_time = 0.0;
sscanf(split_str[0].c_str(), "%lf", &start_time);
if (split_str[1] != "start") {
AERROR << "state machine was broken";
fprintf(USER_STREAM,
"The data collect command start and stop should be appear in "
"pairs\n");
return empty;
}
boost::split(split_str, lines[i + 1], boost::is_any_of(" ,\t\n"));
double end_time = 0.0;
sscanf(split_str[0].c_str(), "%lf", &end_time);
if (split_str[1] != "stop") {
AERROR << "state machine was broken";
fprintf(USER_STREAM,
"The data collect command start and stop should be appear in "
"pairs\n");
return empty;
}
result.push_back(std::make_pair(start_time, end_time));
}
return result;
}
int LoopsChecker::GrpcStub(LoopsVerifyRequest* request,
LoopsVerifyResponse* response) {
grpc::ClientContext context;
grpc::Status status;
status = service_stub_->ServiceLoopsVerify(&context, *request, response);
if (status.error_code() == grpc::StatusCode::UNAVAILABLE) {
AERROR << "FATAL Error. Map grpc service is UNAVAILABLE.";
fprintf(USER_STREAM, "You should start server first\n");
return -1;
}
ErrorCode error_code = response->code();
if (error_code != ErrorCode::SUCCESS) {
return ExceptionHandler::ExceptionHandlerFun(error_code);
}
return 0;
}
int LoopsChecker::Start(
const std::vector<std::pair<double, double>>& time_ranges) {
LoopsVerifyRequest request;
request.set_cmd(CmdType::START);
for (size_t i = 0; i < time_ranges.size(); i++) {
VerifyRange* range = request.add_range();
range->set_start_time(time_ranges[i].first);
range->set_end_time(time_ranges[i].second);
AINFO << "range[" << i << "] is [" << time_ranges[i].first << ","
<< time_ranges[i].second << "]";
}
LoopsVerifyResponse response;
return GrpcStub(&request, &response);
}
int LoopsChecker::Check(double* progress, bool* reached) {
LoopsVerifyRequest request;
request.set_cmd(CmdType::CHECK);
AINFO << "loops check request: "
<< "cmd: [" << request.cmd() << "]";
LoopsVerifyResponse response;
int ret = GrpcStub(&request, &response);
*progress = response.progress();
if (response.has_loop_result() && response.loop_result().has_is_reached()) {
*reached = response.loop_result().is_reached();
}
return ret;
}
int LoopsChecker::Stop() {
LoopsVerifyRequest request;
request.set_cmd(CmdType::STOP);
AINFO << "loops check request: "
<< "cmd: [" << request.cmd() << "]";
LoopsVerifyResponse response;
return GrpcStub(&request, &response);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_gflags.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include "gflags/gflags.h"
namespace apollo {
namespace hdmap {
DECLARE_string(stage);
DECLARE_string(cmd);
DECLARE_string(record_path);
DECLARE_string(client_conf_yaml);
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/exception_handler.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/exception_handler.h"
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include "modules/map/tools/map_datachecker/proto/collection_error_code.pb.h"
namespace apollo {
namespace hdmap {
int ExceptionHandler::ExceptionHandlerFun(ErrorCode error_code) {
int ret = 0;
switch (error_code) {
case ErrorCode::SUCCESS:
AINFO << "ErrorCode::SUCCESS";
fprintf(USER_STREAM, "SUCCESS\n");
break;
case ErrorCode::ERROR_REPEATED_START:
AINFO << "ErrorCode::ERROR_CHECK_BEFORE_START";
fprintf(USER_STREAM,
"Do not start repeated. This request will be ignored\n");
break;
case ErrorCode::ERROR_CHECK_BEFORE_START:
AINFO << "ErrorCode::ERROR_CHECK_BEFORE_START";
fprintf(USER_STREAM,
"Start command should be called before check. This request will "
"be ignored\n");
break;
case ErrorCode::ERROR_REQUEST:
AINFO << "ErrorCode::ERROR_REQUEST";
fprintf(USER_STREAM, "Request error. This request will be ignored\n");
break;
case ErrorCode::ERROR_GNSS_SIGNAL_FAIL:
AINFO << "ErrorCode::ERROR_GNSS_SIGNAL_FAIL."
<< "Please check if area is spacious";
fprintf(USER_STREAM,
"ERROR: GNSS signal do not meet the requirements, please make "
"sure area is spacious\n");
ret = -1;
break;
case ErrorCode::ERROR_VERIFY_NO_GNSSPOS:
AINFO << "ErrorCode::ERROR_VERIFY_NO_GNSSPOS."
<< "Please check if channel /apollo/sensor/gnss/best_pose exists "
"in system";
fprintf(USER_STREAM,
"ERROR:System has no channel /apollo/sensor/gnss/best_pose, you "
"may need to reboot system\n");
ret = -1;
break;
case ErrorCode::ERROR_NOT_STATIC:
AINFO << "ErrorCode::ERROR_NOT_STATIC. Please keep the car still";
fprintf(USER_STREAM, "ERROR:Please keep the car still\n");
ret = -1;
break;
case ErrorCode::ERROR_NOT_EIGHT_ROUTE:
AINFO << "ErrorCode::ERROR_NOT_EIGHT_ROUTE. "
<< "Please keep the car 8-like maneuver";
fprintf(USER_STREAM, "WARNING:Please keep the car 8-like maneuver\n");
break;
case ErrorCode::ERROR_LOOPS_NOT_REACHED:
AINFO << "ErrorCode.ERROR_LOOPS_NOT_REACHED";
fprintf(USER_STREAM,
"WARNING:Collection time do not meet the requirements. "
"Supplementary data collection may be required\n");
ret = -1;
break;
case ErrorCode::ERROR_CHANNEL_VERIFY_TOPIC_LACK:
AINFO << "ErrorCode.ERROR_CHANNEL_VERIFY_TOPIC_LACK";
fprintf(USER_STREAM, "ERROR: Missing topic\n");
ret = -1;
break;
case ErrorCode::ERROR_CHANNEL_VERIFY_RATES_ABNORMAL:
AINFO << "ErrorCode.ERROR_CHANNEL_VERIFY_RATES_ABNORMAL";
fprintf(USER_STREAM, "ERROR: Missing topic\n");
ret = -1;
break;
case ErrorCode::ERROR_VERIFY_NO_RECORDERS:
AINFO << "ErrorCode.ERROR_VERIFY_NO_RECORDERS";
fprintf(USER_STREAM, "ERROR: Missing record\n");
ret = -1;
break;
default:
AINFO << "This branch should never be reached. If this happened, please "
"open an issue. code: "
<< error_code;
fprintf(USER_STREAM,
"ERROR:This branch should never be reached. If this happened, "
"please open an issue\n");
break;
}
return ret;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_gflags.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
namespace apollo {
namespace hdmap {
DEFINE_string(stage, "", "data acquisition stage");
DEFINE_string(cmd, "start", "command corresponding to stage");
DEFINE_string(record_path, "", "record path");
DEFINE_string(
client_conf_yaml,
"/apollo/modules/map/tools/map_datachecker/client/conf/client.yaml",
"client configurations");
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/client.h"
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include "yaml-cpp/yaml.h"
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client_alignment.h"
#include "modules/map/tools/map_datachecker/client/client_channel_checker.h"
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include "modules/map/tools/map_datachecker/client/client_loops_check.h"
namespace apollo {
namespace hdmap {
Client::Client() {
YAML::Node node = YAML::LoadFile(FLAGS_client_conf_yaml);
std::string bin_path = boost::filesystem::current_path().string();
data_collect_time_flag_file_ =
bin_path + "/" + node["time_flag_file"].as<std::string>();
channel_checker_stop_flag_file_ =
bin_path + "/" +
node["channel_check"]["stop_flag_file"].as<std::string>();
AINFO << "bin_path: " << bin_path
<< ", data_collect_time_flag_file_: " << data_collect_time_flag_file_
<< ", channel_checker_stop_flag_file_: "
<< channel_checker_stop_flag_file_;
}
int Client::Run() {
std::string stage = FLAGS_stage;
AINFO << "stage [" << stage << "]";
int ret = 0;
if ("record_check" == stage) {
ret = RecordCheckStage();
} else if ("static_align" == stage) {
ret = StaticAlignStage();
} else if ("eight_route" == stage) {
ret = EightRouteStage();
} else if ("data_collect" == stage) {
ret = DataCollectStage();
} else if ("loops_check" == stage) {
ret = LoopsCheckStage();
} else if ("clean" == stage) {
ret = CleanStage();
}
return ret;
}
int Client::RecordCheckStage() {
std::string cmd = FLAGS_cmd;
ChannelChecker channel_checker(channel_checker_stop_flag_file_);
AINFO << "cmd [" << cmd << "]";
if ("start" == cmd) {
std::string record_path = FLAGS_record_path;
AINFO << "record_path [" << record_path << "]";
if (!boost::filesystem::exists(record_path)) {
AERROR << "record_path does not exist";
return -1;
}
int ret = 0;
ret = channel_checker.SyncStart(record_path);
if (ret != 0) {
AERROR << "SyncStart channel chacker failed, record_path [" << record_path
<< "]";
return -1;
}
} else {
int ret = 0;
ret = channel_checker.SyncStop();
if (ret != 0) {
AERROR << "SyncStop channel chacker failed";
return -1;
}
}
return 0;
}
int Client::StaticAlignStage() {
std::string cmd = FLAGS_cmd;
AINFO << "cmd [" << cmd << "]";
StaticAlign static_align;
if ("start" == cmd) {
int ret = 0;
ret = static_align.SyncStart();
if (ret != 0) {
AERROR << "SyncStart static align failed";
return -1;
} else {
AINFO << "Static aligh succeed";
fprintf(USER_STREAM,
"Static aligh succeed. Next, you may want to run: bash client.sh "
"-- stage eight_route\n");
}
} else {
int ret = 0;
ret = static_align.SyncStop();
if (ret != 0) {
AERROR << "SyncStop static align failed";
return -1;
}
}
return 0;
}
int Client::EightRouteStage() {
std::string cmd = FLAGS_cmd;
AINFO << "cmd [" << cmd << "]";
EightRoute eight_route;
if ("start" == cmd) {
int ret = 0;
ret = eight_route.SyncStart();
if (ret != 0) {
AERROR << "SyncStart static align failed";
return -1;
} else {
AINFO << "Eight route succeed";
fprintf(USER_STREAM,
"Eight route succeed. Next, you may want to run: bash client.sh "
"--stage data_collect\n");
}
} else {
int ret = 0;
ret = eight_route.SyncStop();
if (ret != 0) {
AERROR << "SyncStop static align failed";
return -1;
}
}
return 0;
}
int Client::DataCollectStage() {
std::string cmd = FLAGS_cmd;
AINFO << "cmd [" << cmd << "]";
std::vector<std::string> lines = GetFileLines(data_collect_time_flag_file_);
std::ofstream time_file_handler(data_collect_time_flag_file_);
double now = UnixNow();
if (cmd == "start") {
if (lines.empty()) {
time_file_handler << now << " start\n";
AINFO << "write [" << now << " start] to file "
<< data_collect_time_flag_file_;
fprintf(USER_STREAM,
"Start success. At the end of the collection, you should run: "
"bash client.sh data_collect stop\n");
} else {
std::string& the_last_line = lines.back();
std::vector<std::string> s;
boost::split(s, the_last_line, boost::is_any_of(" ,\t\n"));
if (s[1] == "start") {
AINFO << "This progress has been already started, this command will be "
"ignored";
fprintf(USER_STREAM,
"This progress has been already started, this command will be "
"ignored\n");
} else {
time_file_handler << now << " start\n";
AINFO << "write [" << now << " start] to file "
<< data_collect_time_flag_file_;
fprintf(USER_STREAM,
"Start success. At the end of the collection, you should run: "
"bash client.sh --stage data_collect --cmd stop\n");
}
}
} else if (cmd == "stop") {
if (lines.empty()) {
AINFO << "Start first, this command will be ignored";
} else {
std::string& the_last_line = lines.back();
std::vector<std::string> s;
boost::split(s, the_last_line, boost::is_any_of(" ,\t\n"));
if (s[1] == "start") {
time_file_handler << now << " stop\n";
AINFO << "write [" << now << " stop] to file "
<< data_collect_time_flag_file_;
fprintf(USER_STREAM,
"Stop success. Next you may want to run: bash client.sh "
"loops_check start\n");
} else {
AINFO << "This progress has been already stopped, this command will be "
"ignored";
fprintf(USER_STREAM,
"This progress has been already stopped, this command will be "
"ignored\n");
}
}
} else {
AINFO << "Error command, expected command are [start|stop], current "
"command is ["
<< cmd << "]";
fprintf(USER_STREAM,
"Error command, expected command are [start|stop], current command "
"is [%s]\n",
cmd.c_str());
}
return 0;
}
int Client::LoopsCheckStage() {
LoopsChecker loops_checker(data_collect_time_flag_file_);
bool reached = false;
int ret = loops_checker.SyncStart(&reached);
if (ret != 0) {
AINFO << "loops_check failed";
return -1;
}
if (reached) {
AINFO << "loops meet requirements";
fprintf(USER_STREAM,
"Loops meet requirements. Next you may want to run: bash client.sh "
"--stage eight_route\n");
} else {
AINFO << "loops do not meet requirements";
fprintf(USER_STREAM,
"Next you may need to run: bash client.sh --stage data_collect\n");
}
return 0;
}
int Client::CleanStage() {
if (boost::filesystem::exists(data_collect_time_flag_file_)) {
boost::filesystem::remove(data_collect_time_flag_file_);
AINFO << "removed " << data_collect_time_flag_file_;
}
if (boost::filesystem::exists(channel_checker_stop_flag_file_)) {
boost::filesystem::remove(channel_checker_stop_flag_file_);
AINFO << "removed " << channel_checker_stop_flag_file_;
}
fprintf(USER_STREAM, "clean done\n");
return 0;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_alignment.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <string>
#include <typeinfo>
#include "grpc++/grpc++.h"
#include "yaml-cpp/yaml.h"
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
#include "modules/map/tools/map_datachecker/client/exception_handler.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.grpc.pb.h"
namespace apollo {
namespace hdmap {
template <typename REQUEST_TYPE, typename RESPONSE_TYPE>
class Alignment {
public:
Alignment() {
YAML::Node node = YAML::LoadFile(FLAGS_client_conf_yaml);
std::string server_addr =
node["grpc_host_port"]["grpc_host"].as<std::string>() + ":" +
node["grpc_host_port"]["grpc_port"].as<std::string>();
check_period_ = node["alignment"]["check_period"].as<int>();
service_stub_ = CollectionCheckerService::NewStub(
grpc::CreateChannel(server_addr, grpc::InsecureChannelCredentials()));
}
int SyncStart() {
int ret = Start();
if (ret != 0) {
AERROR << "start alignment failed";
return -1;
}
return PeriodicCheck();
}
int SyncStop() {
// stop server
return Stop();
}
int PeriodicCheck() {
int ret = 0;
while (true) {
double progress = 0.0;
ret = Check(&progress);
if (ret != 0) {
AERROR << "alignment check failed";
break;
}
AINFO << "alignment check progress: [" << progress << "]";
fprintf(USER_STREAM, "alignment progress: %.2lf%%\n", progress * 100);
if (fabs(progress - 1.0) < 1e-8) {
AINFO << "diff " << fabs(progress - 1.0);
break;
}
std::this_thread::sleep_for(std::chrono::seconds(check_period_));
}
if (ret != 0) {
return -1;
}
ret = Stop();
if (ret != 0) {
AERROR << "alignment stop failed";
return -1;
}
return 0;
}
int GrpcStub(REQUEST_TYPE* request, RESPONSE_TYPE* response) {
grpc::Status status = GrpcAlignmentStub(request, response);
if (status.error_code() == grpc::StatusCode::UNAVAILABLE) {
AERROR << "FATAL Error. Map grpc service is UNAVAILABLE.";
fprintf(USER_STREAM, "You should start server first\n");
return -1;
}
AINFO << "response error code: " << response->code();
if (response->code() != ErrorCode::SUCCESS) {
return ExceptionHandler::ExceptionHandlerFun(response->code());
}
return 0;
}
private:
int Start() {
REQUEST_TYPE request;
request.set_cmd(CmdType::START);
AINFO << "alignment request: "
<< "cmd: [" << request.cmd() << "]";
RESPONSE_TYPE response;
return GrpcStub(&request, &response);
}
int Check(double* progress) {
REQUEST_TYPE request;
request.set_cmd(CmdType::CHECK);
AINFO << "alignment request: "
<< "cmd: [" << request.cmd() << "]";
RESPONSE_TYPE response;
int ret = GrpcStub(&request, &response);
*progress = response.progress();
return ret;
}
int Stop() {
REQUEST_TYPE request;
request.set_cmd(CmdType::STOP);
AINFO << "alignment request: "
<< "cmd: [" << request.cmd() << "]";
RESPONSE_TYPE response;
return GrpcStub(&request, &response);
}
private:
int check_period_;
protected:
std::unique_ptr<CollectionCheckerService::Stub> service_stub_;
virtual grpc::Status GrpcAlignmentStub(REQUEST_TYPE* request,
RESPONSE_TYPE* response) = 0;
};
class StaticAlign : public Alignment<StaticAlignRequest, StaticAlignResponse> {
grpc::Status GrpcAlignmentStub(StaticAlignRequest* request,
StaticAlignResponse* response) {
grpc::ClientContext context;
return service_stub_->ServiceStaticAlign(&context, *request, response);
}
};
class EightRoute : public Alignment<EightRouteRequest, EightRouteResponse> {
grpc::Status GrpcAlignmentStub(EightRouteRequest* request,
EightRouteResponse* response) {
grpc::ClientContext context;
return service_stub_->ServiceEightRoute(&context, *request, response);
}
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_channel_checker.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/client_channel_checker.h"
#include <chrono>
#include <fstream>
#include <memory>
#include <string>
#include <boost/filesystem.hpp>
#include "grpc++/grpc++.h"
#include "yaml-cpp/yaml.h"
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
#include "modules/map/tools/map_datachecker/client/exception_handler.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.grpc.pb.h"
namespace apollo {
namespace hdmap {
ChannelChecker::ChannelChecker(const std::string& stop_flag_file)
: stop_flag_file_(stop_flag_file) {
YAML::Node node = YAML::LoadFile(FLAGS_client_conf_yaml);
std::string server_addr =
node["grpc_host_port"]["grpc_host"].as<std::string>() + ":" +
node["grpc_host_port"]["grpc_port"].as<std::string>();
check_period_ = node["channel_check"]["check_period"].as<int>();
service_stub_ = CollectionCheckerService::NewStub(
grpc::CreateChannel(server_addr, grpc::InsecureChannelCredentials()));
}
int ChannelChecker::SyncStart(const std::string& record_path) {
if (!boost::filesystem::exists(record_path)) {
AERROR << "record_path [" << record_path << "]does not exist";
return -1;
}
int ret = Start(record_path);
if (ret != 0) {
AERROR << "start check channel failed, record_path [" << record_path << "]";
return -1;
}
return PeriodicCheck();
}
int ChannelChecker::SyncStop() {
// stop client
std::ofstream ofs(stop_flag_file_);
if (!ofs) {
AERROR << "Create Flag File [" << stop_flag_file_ << "] Failed";
return -1;
}
ofs.close();
// stop server
return Stop();
}
int ChannelChecker::PeriodicCheck() {
int ret = 0;
while (!boost::filesystem::exists(stop_flag_file_)) {
ret = Check();
if (ret != 0) {
break;
}
AINFO << "channel checker sleep " << check_period_ << " seconds";
std::this_thread::sleep_for(std::chrono::seconds(check_period_));
}
if (ret == 0) {
AINFO << "detected stop flag file, periodically checking will exit";
} else {
AINFO << "periodically checking will exit because of some errors";
}
return ret;
}
int ChannelChecker::GrpcStub(ChannelVerifyRequest* request,
ChannelVerifyResponse* response) {
grpc::ClientContext context;
grpc::Status status;
status = service_stub_->ServiceChannelVerify(&context, *request, response);
if (status.error_code() == grpc::StatusCode::UNAVAILABLE) {
AERROR << "FATAL Error. Map grpc service is UNAVAILABLE.";
fprintf(USER_STREAM, "You should start server first\n");
return -1;
}
ErrorCode error_code = response->code();
if (error_code != ErrorCode::SUCCESS) {
return ExceptionHandler::ExceptionHandlerFun(error_code);
}
return 0;
}
int ChannelChecker::Start(const std::string& record_path) {
ChannelVerifyRequest request;
request.set_path(record_path);
request.set_cmd(CmdType::START);
AINFO << "channel check request: "
<< "record_path: [" << request.path() << "], "
<< "cmd: [" << request.cmd() << "]";
ChannelVerifyResponse response;
return GrpcStub(&request, &response);
}
int ChannelChecker::Check() {
ChannelVerifyRequest request;
request.set_cmd(CmdType::CHECK);
AINFO << "channel check request: "
<< "cmd: [" << request.cmd() << "]";
ChannelVerifyResponse response;
int ret = GrpcStub(&request, &response);
if (ret != 0) {
ProcessAbnormal(&response);
}
return ret;
}
int ChannelChecker::Stop() {
ChannelVerifyRequest request;
request.set_cmd(CmdType::STOP);
AINFO << "channel check request: "
<< "cmd: [" << request.cmd() << "]";
ChannelVerifyResponse response;
return GrpcStub(&request, &response);
}
int ChannelChecker::ProcessAbnormal(ChannelVerifyResponse* response) {
ErrorCode code = response->code();
if (code == ErrorCode::ERROR_CHANNEL_VERIFY_RATES_ABNORMAL) {
if (response->has_result()) {
const VerifyResult& result = response->result();
for (int i = 0; i < result.rates_size(); ++i) {
const FrameRate& rate = result.rates(i);
fprintf(USER_STREAM, "Channels with insufficient frame rate:%s\n",
rate.topic().c_str());
fprintf(USER_STREAM, "-expected_rate:%lf\n", rate.expected_rate());
fprintf(USER_STREAM, "-current_rate:%lf\n", rate.current_rate());
fprintf(USER_STREAM, "-bad_record_name:\n");
for (int j = 0; j < rate.bad_record_name_size(); ++j) {
fprintf(USER_STREAM, "--%s\n", rate.bad_record_name(j).c_str());
}
}
} else {
AERROR << "response content from server is inconsistent";
return -1;
}
} else if (code == ErrorCode::ERROR_CHANNEL_VERIFY_TOPIC_LACK) {
if (response->has_result() && response->result().has_topics()) {
const TopicResult& topics = response->result().topics();
fprintf(USER_STREAM, "Missing channel(s):\n");
for (int i = 0; i < topics.topic_lack_size(); ++i) {
fprintf(USER_STREAM, "-%s:\n", topics.topic_lack(i).c_str());
}
} else {
AERROR << "response content from server is inconsistent";
return -1;
}
}
return 0;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/BUILD | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_binary(
name = "map_datachecker_client",
srcs = ["main.cc"],
deps = [
":client",
":client_gflags",
"@boost",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "client",
srcs = ["client.cc"],
hdrs = [
"client.h",
"client_alignment.h",
],
deps = [
":client_channel_checker",
":client_common",
":client_gflags",
":client_loops_check",
"//cyber",
"@boost",
"@com_github_grpc_grpc//:grpc++",
"@com_github_jbeder_yaml_cpp//:yaml-cpp",
],
)
cc_library(
name = "client_channel_checker",
srcs = ["client_channel_checker.cc"],
hdrs = ["client_channel_checker.h"],
deps = [
":client_common",
":client_gflags",
":exception_handler",
"//cyber",
"//modules/map/tools/map_datachecker/proto:collection_service_cc_grpc",
"@boost",
"@com_github_grpc_grpc//:grpc++",
"@com_github_jbeder_yaml_cpp//:yaml-cpp",
],
)
cc_library(
name = "client_common",
srcs = ["client_common.cc"],
hdrs = ["client_common.h"],
deps = [
"//cyber",
"@boost",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_library(
name = "client_gflags",
srcs = ["client_gflags.cc"],
hdrs = ["client_gflags.h"],
deps = [
"@com_github_gflags_gflags//:gflags",
],
)
cc_library(
name = "client_loops_check",
srcs = ["client_loops_check.cc"],
hdrs = ["client_loops_check.h"],
deps = [
":client_common",
":client_gflags",
":exception_handler",
"//cyber",
"//modules/map/tools/map_datachecker/proto:collection_service_cc_grpc",
"@boost",
"@com_github_grpc_grpc//:grpc++",
"@com_github_jbeder_yaml_cpp//:yaml-cpp",
],
)
cc_library(
name = "exception_handler",
srcs = ["exception_handler.cc"],
hdrs = ["exception_handler.h"],
deps = [
":client_common",
"//cyber",
"//modules/map/tools/map_datachecker/proto:collection_error_code_cc_proto",
],
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_channel_checker.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include <string>
#include "modules/map/tools/map_datachecker/client/client_gflags.h"
#include "modules/map/tools/map_datachecker/proto/collection_service.grpc.pb.h"
namespace apollo {
namespace hdmap {
class ChannelChecker {
public:
explicit ChannelChecker(const std::string& stop_flag_file);
int SyncStart(const std::string& record_path);
int SyncStop();
int PeriodicCheck();
int GrpcStub(ChannelVerifyRequest* request, ChannelVerifyResponse* response);
private:
int Start(const std::string& record_path);
int Check();
int Stop();
int ProcessAbnormal(ChannelVerifyResponse* response);
private:
std::unique_ptr<CollectionCheckerService::Stub> service_stub_;
int check_period_;
const std::string& stop_flag_file_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/client_common.cc | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include <fstream>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include "grpc++/grpc++.h"
namespace apollo {
namespace hdmap {
std::vector<std::string> GetFileLines(const std::string& path) {
std::ifstream file_handler(path);
std::string line;
std::vector<std::string> lines;
while (std::getline(file_handler, line)) {
lines.emplace_back(line);
}
file_handler.close();
return lines;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/exception_handler.h | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include "modules/map/tools/map_datachecker/proto/collection_error_code.pb.h"
namespace apollo {
namespace hdmap {
class ExceptionHandler {
public:
static int ExceptionHandlerFun(ErrorCode error_code);
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker/client | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/conf/state_machine.yaml | # state:
# static_align:
stages:
- "record_check_start"
- "static_align_befor_collect_data"
- "eight_route_befor_collect_data"
- "loops_check"
- "eight_route_after_collect_data"
- "static_align_after_collect_data"
- "record_check_end"
flow:
record_check_start:
exception:
ERROR_VERIFY_NO_RECORDERS: "self"
static_align_befor_collect_data:
exception:
ERROR_VERIFY_NO_GNSSPOS: "record_check_start"
ERROR_GNSS_SIGNAL_FAIL: "self"
ERROR_NOT_STATIC: "self"
eight_route_befor_collect_data:
exception:
ERROR_VERIFY_NO_GNSSPOS: "record_check_start"
ERROR_NOT_EIGHT_ROUTE: "self"
loops_check:
exception:
ERROR_LOOPS_NOT_REACHED: "self"
eight_route_after_collect_data:
exception:
ERROR_VERIFY_NO_GNSSPOS: "record_check_start"
ERROR_NOT_EIGHT_ROUTE: "self"
static_align_after_collect_data:
exception:
ERROR_VERIFY_NO_GNSSPOS: "record_check_start"
ERROR_GNSS_SIGNAL_FAIL: "self"
ERROR_NOT_STATIC: "self"
record_check_end:
null | 0 |
apollo_public_repos/apollo/modules/map/tools/map_datachecker/client | apollo_public_repos/apollo/modules/map/tools/map_datachecker/client/conf/client.yaml | grpc_host_port: &grpc_host_port
grpc_host: "127.0.0.1"
grpc_port: "50100"
channel_check:
check_period: 10
stop_flag_file: "channel_check.stop"
alignment:
check_period: 1
loops_check:
check_period: 1
time_flag_file: "collect.time"
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/route_segments_test.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/route_segments.h"
#include "gflags/gflags.h"
#include "gtest/gtest.h"
#include "cyber/common/file.h"
#include "modules/map/hdmap/hdmap_util.h"
namespace apollo {
namespace hdmap {
DEFINE_string(test_map_file,
"modules/map/data/sunnyvale_loop/base_map_test.bin",
"The test map file");
DEFINE_string(
test_routing_file,
"modules/map/pnc_map/testdata/sample_sunnyvale_loop_routing.pb.txt",
"The test map file");
class RouteSegmentsTest : public ::testing::Test {
public:
static void SetUpTestCase() {
AINFO << "map file: " << FLAGS_test_map_file;
if (hdmap_.LoadMapFromFile(FLAGS_test_map_file) != 0) {
AERROR << "Failed to load map: " << FLAGS_test_map_file;
ACHECK(false);
}
}
static hdmap::HDMap hdmap_;
};
hdmap::HDMap RouteSegmentsTest::hdmap_;
TEST_F(RouteSegmentsTest, GetProjection) {
auto lane1 = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-1"));
RouteSegments route_segments;
route_segments.emplace_back(lane1, 5, 10);
LaneWaypoint waypoint;
auto point = lane1->GetSmoothPoint(3);
common::SLPoint sl;
EXPECT_FALSE(route_segments.GetProjection(point, &sl, &waypoint));
point = lane1->GetSmoothPoint(5);
EXPECT_TRUE(route_segments.GetProjection(point, &sl, &waypoint));
EXPECT_EQ(lane1, waypoint.lane);
EXPECT_NEAR(5.0, waypoint.s, 1e-4);
EXPECT_NEAR(0.0, sl.s(), 1e-4);
EXPECT_NEAR(0.0, sl.l(), 1e-4);
point = lane1->GetSmoothPoint(8);
EXPECT_TRUE(route_segments.GetProjection(point, &sl, &waypoint));
EXPECT_EQ(lane1, waypoint.lane);
EXPECT_NEAR(8.0, waypoint.s, 1e-4);
EXPECT_NEAR(3.0, sl.s(), 1e-4);
EXPECT_NEAR(0.0, sl.l(), 1e-4);
point = lane1->GetSmoothPoint(15);
EXPECT_FALSE(route_segments.GetProjection(point, &sl, &waypoint));
auto lane2 = hdmap_.GetLaneById(hdmap::MakeMapId("13_1_-1"));
route_segments.emplace_back(lane2, 20, 30);
EXPECT_FALSE(route_segments.GetProjection(point, &sl, &waypoint));
point = lane2->GetSmoothPoint(0);
EXPECT_FALSE(route_segments.GetProjection(point, &sl, &waypoint));
point = lane2->GetSmoothPoint(25);
EXPECT_TRUE(route_segments.GetProjection(point, &sl, &waypoint));
EXPECT_EQ(lane2, waypoint.lane);
EXPECT_NEAR(25.0, waypoint.s, 1e-4);
EXPECT_NEAR(10.0, sl.s(), 1e-4);
EXPECT_NEAR(0.0, sl.l(), 1e-4);
point = lane2->GetSmoothPoint(31);
EXPECT_FALSE(route_segments.GetProjection(point, &sl, &waypoint));
}
TEST_F(RouteSegmentsTest, Stitch) {
auto lane1 = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-1"));
auto lane2 = hdmap_.GetLaneById(hdmap::MakeMapId("13_1_-1"));
{
RouteSegments seg1;
RouteSegments seg2;
seg1.emplace_back(lane1, 10, 20);
seg1.emplace_back(lane2, 10, 15);
seg2.emplace_back(lane2, 15, 20);
seg2.emplace_back(lane2, 20, 30);
EXPECT_TRUE(seg1.Stitch(seg2));
EXPECT_EQ(3, seg1.size());
EXPECT_EQ(lane1, seg1[0].lane);
EXPECT_FLOAT_EQ(10, seg1[0].start_s);
EXPECT_FLOAT_EQ(20, seg1[0].end_s);
EXPECT_EQ(lane2, seg1[1].lane);
EXPECT_FLOAT_EQ(10, seg1[1].start_s);
EXPECT_FLOAT_EQ(20, seg1[1].end_s);
EXPECT_EQ(lane2, seg1[2].lane);
EXPECT_FLOAT_EQ(20, seg1[2].start_s);
EXPECT_FLOAT_EQ(30, seg1[2].end_s);
}
{
RouteSegments seg1;
RouteSegments seg2;
seg1.emplace_back(lane1, 10, 20);
seg1.emplace_back(lane2, 10, 15);
seg2.emplace_back(lane2, 15, 20);
seg2.emplace_back(lane2, 20, 30);
EXPECT_TRUE(seg2.Stitch(seg1));
EXPECT_EQ(3, seg2.size());
EXPECT_EQ(lane1, seg2[0].lane);
EXPECT_FLOAT_EQ(10, seg2[0].start_s);
EXPECT_FLOAT_EQ(20, seg2[0].end_s);
EXPECT_EQ(lane2, seg2[1].lane);
EXPECT_FLOAT_EQ(10, seg2[1].start_s);
EXPECT_FLOAT_EQ(20, seg2[1].end_s);
EXPECT_EQ(lane2, seg2[2].lane);
EXPECT_FLOAT_EQ(20, seg2[2].start_s);
EXPECT_FLOAT_EQ(30, seg2[2].end_s);
}
}
TEST_F(RouteSegmentsTest, Shrink) {
auto lane1 = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-1"));
auto lane2 = hdmap_.GetLaneById(hdmap::MakeMapId("13_1_-1"));
{
RouteSegments seg;
seg.emplace_back(lane1, 10, 20);
seg.emplace_back(lane2, 15, 20);
seg.emplace_back(lane2, 20, 30);
auto point = lane2->GetSmoothPoint(15.0);
EXPECT_TRUE(seg.Shrink({point.x(), point.y()}, 5, 10));
EXPECT_EQ(3, seg.size());
EXPECT_EQ(lane1, seg[0].lane);
EXPECT_FLOAT_EQ(15, seg[0].start_s);
EXPECT_FLOAT_EQ(20, seg[0].end_s);
EXPECT_EQ(lane2, seg[1].lane);
EXPECT_FLOAT_EQ(15, seg[1].start_s);
EXPECT_FLOAT_EQ(20, seg[1].end_s);
EXPECT_FLOAT_EQ(20, seg[2].start_s);
EXPECT_FLOAT_EQ(25, seg[2].end_s);
}
{
RouteSegments seg;
seg.emplace_back(lane1, 10, 20);
seg.emplace_back(lane2, 15, 20);
seg.emplace_back(lane2, 20, 30);
auto point = lane2->GetSmoothPoint(15.0);
EXPECT_TRUE(seg.Shrink({point.x(), point.y()}, 50, 10));
EXPECT_EQ(3, seg.size());
EXPECT_EQ(lane1, seg[0].lane);
EXPECT_FLOAT_EQ(10, seg[0].start_s);
EXPECT_FLOAT_EQ(20, seg[0].end_s);
EXPECT_EQ(lane2, seg[1].lane);
EXPECT_FLOAT_EQ(15, seg[1].start_s);
EXPECT_FLOAT_EQ(20, seg[1].end_s);
EXPECT_EQ(lane2, seg[2].lane);
EXPECT_FLOAT_EQ(20, seg[2].start_s);
EXPECT_FLOAT_EQ(25, seg[2].end_s);
}
{
RouteSegments seg;
seg.emplace_back(lane1, 10, 20);
seg.emplace_back(lane2, 15, 20);
seg.emplace_back(lane2, 20, 30);
auto point = lane2->GetSmoothPoint(15.0);
EXPECT_TRUE(seg.Shrink({point.x(), point.y()}, -5, 50));
EXPECT_EQ(1, seg.size());
EXPECT_EQ(lane2, seg[0].lane);
EXPECT_FLOAT_EQ(20, seg[0].start_s);
EXPECT_FLOAT_EQ(30, seg[0].end_s);
}
{
RouteSegments seg;
seg.emplace_back(lane2, 10, 30);
auto point = lane2->GetSmoothPoint(20.0);
EXPECT_TRUE(seg.Shrink({point.x(), point.y()}, 5, 5));
EXPECT_EQ(1, seg.size());
EXPECT_EQ(lane2, seg[0].lane);
EXPECT_FLOAT_EQ(15, seg[0].start_s);
EXPECT_FLOAT_EQ(25, seg[0].end_s);
}
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/path.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/path.h"
#include <algorithm>
#include <limits>
#include <unordered_map>
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "cyber/common/log.h"
#include "modules/common/math/line_segment2d.h"
#include "modules/common/math/math_utils.h"
#include "modules/common/math/polygon2d.h"
#include "modules/common/util/string_util.h"
// https://nacto.org/publication/urban-street-design-guide/street-design-elements/lane-width/
DEFINE_double(default_lane_width, 3.048, "default lane width is about 10 feet");
namespace apollo {
namespace hdmap {
using apollo::common::math::Box2d;
using apollo::common::math::kMathEpsilon;
using apollo::common::math::LineSegment2d;
using apollo::common::math::Sqr;
using apollo::common::math::Vec2d;
using apollo::common::util::DebugStringFormatter;
using std::placeholders::_1;
namespace {
const double kSampleDistance = 0.25;
bool FindLaneSegment(const MapPathPoint& p1, const MapPathPoint& p2,
LaneSegment* const lane_segment) {
for (const auto& wp1 : p1.lane_waypoints()) {
for (const auto& wp2 : p2.lane_waypoints()) {
if (wp1.lane->id().id() == wp2.lane->id().id() && wp1.s < wp2.s) {
*lane_segment = LaneSegment(wp1.lane, wp1.s, wp2.s);
return true;
}
}
}
return false;
}
} // namespace
std::string LaneWaypoint::DebugString() const {
if (lane == nullptr) {
return "(lane is null)";
}
return absl::StrCat("id = ", lane->id().id(), " s = ", s);
}
LaneBoundaryType::Type LeftBoundaryType(const LaneWaypoint& waypoint) {
if (!waypoint.lane) {
return LaneBoundaryType::UNKNOWN;
}
for (const auto& type :
waypoint.lane->lane().left_boundary().boundary_type()) {
if (type.s() <= waypoint.s) {
if (type.types_size() > 0) {
return type.types(0);
} else {
return LaneBoundaryType::UNKNOWN;
}
}
}
return LaneBoundaryType::UNKNOWN;
}
LaneBoundaryType::Type RightBoundaryType(const LaneWaypoint& waypoint) {
if (!waypoint.lane) {
return LaneBoundaryType::UNKNOWN;
}
for (const auto& type :
waypoint.lane->lane().right_boundary().boundary_type()) {
if (type.s() <= waypoint.s) {
if (type.types_size() > 0) {
return type.types(0);
} else {
return LaneBoundaryType::UNKNOWN;
}
}
}
return LaneBoundaryType::UNKNOWN;
}
LaneWaypoint LeftNeighborWaypoint(const LaneWaypoint& waypoint) {
LaneWaypoint neighbor;
if (!waypoint.lane) {
return neighbor;
}
auto point = waypoint.lane->GetSmoothPoint(waypoint.s);
auto map_ptr = HDMapUtil::BaseMapPtr();
CHECK_NOTNULL(map_ptr);
for (const auto& lane_id :
waypoint.lane->lane().left_neighbor_forward_lane_id()) {
auto lane = map_ptr->GetLaneById(lane_id);
if (!lane) {
return neighbor;
}
double s = 0.0;
double l = 0.0;
if (!lane->GetProjection({point.x(), point.y()}, &s, &l)) {
continue;
}
if (s < -kSampleDistance || s > lane->total_length() + kSampleDistance) {
continue;
} else {
return LaneWaypoint(lane, s);
}
}
return neighbor;
}
void LaneSegment::Join(std::vector<LaneSegment>* segments) {
static constexpr double kSegmentDelta = 0.5;
std::size_t k = 0;
std::size_t i = 0;
while (i < segments->size()) {
std::size_t j = i;
while (j + 1 < segments->size() &&
segments->at(i).lane == segments->at(j + 1).lane) {
++j;
}
auto& segment_k = segments->at(k);
segment_k.lane = segments->at(i).lane;
segment_k.start_s = segments->at(i).start_s;
segment_k.end_s = segments->at(j).end_s;
if (segment_k.start_s < kSegmentDelta) {
segment_k.start_s = 0.0;
}
if (segment_k.end_s + kSegmentDelta >= segment_k.lane->total_length()) {
segment_k.end_s = segment_k.lane->total_length();
}
i = j + 1;
++k;
}
segments->resize(k);
segments->shrink_to_fit(); // release memory
}
LaneWaypoint RightNeighborWaypoint(const LaneWaypoint& waypoint) {
LaneWaypoint neighbor;
if (!waypoint.lane) {
return neighbor;
}
auto point = waypoint.lane->GetSmoothPoint(waypoint.s);
auto map_ptr = HDMapUtil::BaseMapPtr();
CHECK_NOTNULL(map_ptr);
for (const auto& lane_id :
waypoint.lane->lane().right_neighbor_forward_lane_id()) {
auto lane = map_ptr->GetLaneById(lane_id);
if (!lane) {
return neighbor;
}
double s = 0.0;
double l = 0.0;
if (!lane->GetProjection({point.x(), point.y()}, &s, &l)) {
continue;
}
if (s < -kSampleDistance || s > lane->total_length() + kSampleDistance) {
continue;
} else {
return LaneWaypoint(lane, s);
}
}
return neighbor;
}
std::string LaneSegment::DebugString() const {
if (lane == nullptr) {
return "(lane is null)";
}
return absl::StrCat("id = ", lane->id().id(), " start_s = ", start_s,
" end_s = ", end_s);
}
std::vector<MapPathPoint> MapPathPoint::GetPointsFromSegment(
const LaneSegment& segment) {
return GetPointsFromLane(segment.lane, segment.start_s, segment.end_s);
}
std::vector<MapPathPoint> MapPathPoint::GetPointsFromLane(LaneInfoConstPtr lane,
const double start_s,
const double end_s) {
std::vector<MapPathPoint> points;
if (start_s >= end_s) {
return points;
}
double accumulate_s = 0.0;
for (size_t i = 0; i < lane->points().size(); ++i) {
if (accumulate_s >= start_s && accumulate_s <= end_s) {
points.emplace_back(lane->points()[i], lane->headings()[i],
LaneWaypoint(lane, accumulate_s));
}
if (i < lane->segments().size()) {
const auto& segment = lane->segments()[i];
const double next_accumulate_s = accumulate_s + segment.length();
if (start_s > accumulate_s && start_s < next_accumulate_s) {
points.emplace_back(segment.start() + segment.unit_direction() *
(start_s - accumulate_s),
lane->headings()[i], LaneWaypoint(lane, start_s));
}
if (end_s > accumulate_s && end_s < next_accumulate_s) {
points.emplace_back(
segment.start() + segment.unit_direction() * (end_s - accumulate_s),
lane->headings()[i], LaneWaypoint(lane, end_s));
}
accumulate_s = next_accumulate_s;
}
if (accumulate_s > end_s) {
break;
}
}
return points;
}
void MapPathPoint::RemoveDuplicates(std::vector<MapPathPoint>* points) {
static constexpr double kDuplicatedPointsEpsilon = 1e-7;
static constexpr double limit =
kDuplicatedPointsEpsilon * kDuplicatedPointsEpsilon;
CHECK_NOTNULL(points);
int count = 0;
for (size_t i = 0; i < points->size(); ++i) {
if (count == 0 ||
(*points)[i].DistanceSquareTo((*points)[count - 1]) > limit) {
(*points)[count++] = (*points)[i];
} else {
(*points)[count - 1].add_lane_waypoints((*points)[i].lane_waypoints());
}
}
points->resize(count);
}
std::string MapPathPoint::DebugString() const {
return absl::StrCat(
"x = ", x_, " y = ", y_, " heading = ", heading_,
" lwp = "
"{(",
absl::StrJoin(lane_waypoints_, "), (", DebugStringFormatter()), ")}");
}
std::string Path::DebugString() const {
return absl::StrCat(
"num_points = ", num_points_,
" points = "
"{(",
absl::StrJoin(path_points_, "), (", DebugStringFormatter()),
")} "
"numlane_segments_ = ",
lane_segments_.size(),
" lane_segments = "
"{(",
absl::StrJoin(lane_segments_, "), (", DebugStringFormatter()), ")}");
}
std::string PathOverlap::DebugString() const {
return absl::StrCat(object_id, " ", start_s, " ", end_s);
}
Path::Path(const std::vector<MapPathPoint>& path_points)
: path_points_(path_points) {
Init();
}
Path::Path(std::vector<MapPathPoint>&& path_points)
: path_points_(std::move(path_points)) {
Init();
}
Path::Path(const std::vector<MapPathPoint>& path_points,
const std::vector<LaneSegment>& lane_segments)
: path_points_(path_points), lane_segments_(lane_segments) {
Init();
}
Path::Path(std::vector<MapPathPoint>&& path_points,
std::vector<LaneSegment>&& lane_segments)
: path_points_(std::move(path_points)),
lane_segments_(std::move(lane_segments)) {
Init();
}
Path::Path(const std::vector<MapPathPoint>& path_points,
const std::vector<LaneSegment>& lane_segments,
const double max_approximation_error)
: path_points_(path_points), lane_segments_(lane_segments) {
Init();
if (max_approximation_error > 0.0) {
use_path_approximation_ = true;
approximation_ = PathApproximation(*this, max_approximation_error);
}
}
Path::Path(const std::vector<LaneSegment>& segments)
: lane_segments_(segments) {
for (const auto& segment : lane_segments_) {
const auto points = MapPathPoint::GetPointsFromLane(
segment.lane, segment.start_s, segment.end_s);
path_points_.insert(path_points_.end(), points.begin(), points.end());
}
MapPathPoint::RemoveDuplicates(&path_points_);
CHECK_GE(path_points_.size(), 2U);
Init();
}
Path::Path(std::vector<LaneSegment>&& segments)
: lane_segments_(std::move(segments)) {
for (const auto& segment : lane_segments_) {
const auto points = MapPathPoint::GetPointsFromLane(
segment.lane, segment.start_s, segment.end_s);
path_points_.insert(path_points_.end(), points.begin(), points.end());
}
MapPathPoint::RemoveDuplicates(&path_points_);
CHECK_GE(path_points_.size(), 2U);
Init();
}
Path::Path(std::vector<MapPathPoint>&& path_points,
std::vector<LaneSegment>&& lane_segments,
const double max_approximation_error)
: path_points_(std::move(path_points)),
lane_segments_(std::move(lane_segments)) {
Init();
if (max_approximation_error > 0.0) {
use_path_approximation_ = true;
approximation_ = PathApproximation(*this, max_approximation_error);
}
}
void Path::Init() {
InitPoints();
InitLaneSegments();
InitPointIndex();
InitWidth();
InitOverlaps();
}
void Path::InitPoints() {
num_points_ = static_cast<int>(path_points_.size());
CHECK_GE(num_points_, 2);
accumulated_s_.clear();
accumulated_s_.reserve(num_points_);
segments_.clear();
segments_.reserve(num_points_);
unit_directions_.clear();
unit_directions_.reserve(num_points_);
double s = 0.0;
for (int i = 0; i < num_points_; ++i) {
accumulated_s_.push_back(s);
Vec2d heading;
if (i + 1 >= num_points_) {
heading = path_points_[i] - path_points_[i - 1];
} else {
segments_.emplace_back(path_points_[i], path_points_[i + 1]);
heading = path_points_[i + 1] - path_points_[i];
// TODO(All): use heading.length when all adjacent lanes are guarantee to
// be connected.
s += heading.Length();
}
heading.Normalize();
unit_directions_.push_back(heading);
}
length_ = s;
num_sample_points_ = static_cast<int>(length_ / kSampleDistance) + 1;
num_segments_ = num_points_ - 1;
CHECK_EQ(accumulated_s_.size(), static_cast<size_t>(num_points_));
CHECK_EQ(unit_directions_.size(), static_cast<size_t>(num_points_));
CHECK_EQ(segments_.size(), static_cast<size_t>(num_segments_));
}
void Path::InitLaneSegments() {
if (lane_segments_.empty()) {
for (int i = 0; i + 1 < num_points_; ++i) {
LaneSegment lane_segment;
if (FindLaneSegment(path_points_[i], path_points_[i + 1],
&lane_segment)) {
lane_segments_.push_back(lane_segment);
}
}
}
LaneSegment::Join(&lane_segments_);
if (lane_segments_.empty()) {
return;
}
lane_accumulated_s_.resize(lane_segments_.size());
lane_accumulated_s_[0] = lane_segments_[0].Length();
for (std::size_t i = 1; i < lane_segments_.size(); ++i) {
lane_accumulated_s_[i] =
lane_accumulated_s_[i - 1] + lane_segments_[i].Length();
}
lane_segments_to_next_point_.clear();
lane_segments_to_next_point_.reserve(num_points_);
for (int i = 0; i + 1 < num_points_; ++i) {
LaneSegment lane_segment;
if (FindLaneSegment(path_points_[i], path_points_[i + 1], &lane_segment)) {
lane_segments_to_next_point_.push_back(lane_segment);
} else {
lane_segments_to_next_point_.push_back(LaneSegment());
}
}
CHECK_EQ(lane_segments_to_next_point_.size(),
static_cast<size_t>(num_segments_));
}
void Path::InitWidth() {
lane_left_width_.clear();
lane_left_width_.reserve(num_sample_points_);
lane_right_width_.clear();
lane_right_width_.reserve(num_sample_points_);
road_left_width_.clear();
road_left_width_.reserve(num_sample_points_);
road_right_width_.clear();
road_right_width_.reserve(num_sample_points_);
double s = 0;
for (int i = 0; i < num_sample_points_; ++i) {
const MapPathPoint point = GetSmoothPoint(s);
if (point.lane_waypoints().empty()) {
lane_left_width_.push_back(FLAGS_default_lane_width / 2.0);
lane_right_width_.push_back(FLAGS_default_lane_width / 2.0);
road_left_width_.push_back(FLAGS_default_lane_width / 2.0);
road_right_width_.push_back(FLAGS_default_lane_width / 2.0);
AWARN << "path point:" << point.DebugString() << " has invalid width.";
} else {
const LaneWaypoint waypoint = point.lane_waypoints()[0];
CHECK_NOTNULL(waypoint.lane);
double lane_left_width = 0.0;
double lane_right_width = 0.0;
waypoint.lane->GetWidth(waypoint.s, &lane_left_width, &lane_right_width);
lane_left_width_.push_back(lane_left_width - waypoint.l);
lane_right_width_.push_back(lane_right_width + waypoint.l);
double road_left_width = 0.0;
double road_right_width = 0.0;
waypoint.lane->GetRoadWidth(waypoint.s, &road_left_width,
&road_right_width);
road_left_width_.push_back(road_left_width - waypoint.l);
road_right_width_.push_back(road_right_width + waypoint.l);
}
s += kSampleDistance;
}
auto num_sample_points = static_cast<size_t>(num_sample_points_);
CHECK_EQ(lane_left_width_.size(), num_sample_points);
CHECK_EQ(lane_right_width_.size(), num_sample_points);
CHECK_EQ(road_left_width_.size(), num_sample_points);
CHECK_EQ(road_right_width_.size(), num_sample_points);
}
void Path::InitPointIndex() {
last_point_index_.clear();
last_point_index_.reserve(num_sample_points_);
double s = 0.0;
int last_index = 0;
for (int i = 0; i < num_sample_points_; ++i) {
while (last_index + 1 < num_points_ &&
accumulated_s_[last_index + 1] <= s) {
++last_index;
}
last_point_index_.push_back(last_index);
s += kSampleDistance;
}
CHECK_EQ(last_point_index_.size(), static_cast<size_t>(num_sample_points_));
}
void Path::GetAllOverlaps(GetOverlapFromLaneFunc GetOverlaps_from_lane,
std::vector<PathOverlap>* const overlaps) const {
if (overlaps == nullptr) {
return;
}
overlaps->clear();
std::unordered_map<std::string, std::vector<std::pair<double, double>>>
overlaps_by_id;
double s = 0.0;
for (const auto& lane_segment : lane_segments_) {
if (lane_segment.lane == nullptr) {
continue;
}
for (const auto& overlap : GetOverlaps_from_lane(*(lane_segment.lane))) {
const auto& overlap_info =
overlap->GetObjectOverlapInfo(lane_segment.lane->id());
if (overlap_info == nullptr) {
continue;
}
const auto& lane_overlap_info = overlap_info->lane_overlap_info();
if (lane_overlap_info.start_s() <= lane_segment.end_s &&
lane_overlap_info.end_s() >= lane_segment.start_s) {
const double ref_s = s - lane_segment.start_s;
const double adjusted_start_s =
std::max(lane_overlap_info.start_s(), lane_segment.start_s) + ref_s;
const double adjusted_end_s =
std::min(lane_overlap_info.end_s(), lane_segment.end_s) + ref_s;
for (const auto& object : overlap->overlap().object()) {
if (object.id().id() != lane_segment.lane->id().id()) {
overlaps_by_id[object.id().id()].emplace_back(adjusted_start_s,
adjusted_end_s);
}
}
}
}
s += lane_segment.end_s - lane_segment.start_s;
}
for (auto& overlaps_one_object : overlaps_by_id) {
const std::string& object_id = overlaps_one_object.first;
auto& segments = overlaps_one_object.second;
std::sort(segments.begin(), segments.end());
const double kMinOverlapDistanceGap = 1.5; // in meters.
for (const auto& segment : segments) {
if (!overlaps->empty() && overlaps->back().object_id == object_id &&
segment.first - overlaps->back().end_s <= kMinOverlapDistanceGap) {
overlaps->back().end_s =
std::max(overlaps->back().end_s, segment.second);
} else {
overlaps->emplace_back(object_id, segment.first, segment.second);
}
}
}
std::sort(overlaps->begin(), overlaps->end(),
[](const PathOverlap& overlap1, const PathOverlap& overlap2) {
return overlap1.start_s < overlap2.start_s;
});
}
const PathOverlap* Path::NextLaneOverlap(double s) const {
auto next = std::upper_bound(
lane_overlaps_.begin(), lane_overlaps_.end(), s,
[](double s, const PathOverlap& o) { return s < o.start_s; });
if (next == lane_overlaps_.end()) {
return nullptr;
} else {
return &(*next);
}
}
void Path::InitOverlaps() {
GetAllOverlaps(std::bind(&LaneInfo::cross_lanes, _1), &lane_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::signals, _1), &signal_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::yield_signs, _1), &yield_sign_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::stop_signs, _1), &stop_sign_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::crosswalks, _1), &crosswalk_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::junctions, _1), &junction_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::pnc_junctions, _1),
&pnc_junction_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::clear_areas, _1), &clear_area_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::speed_bumps, _1), &speed_bump_overlaps_);
GetAllOverlaps(std::bind(&LaneInfo::parking_spaces, _1),
&parking_space_overlaps_);
}
MapPathPoint Path::GetSmoothPoint(const InterpolatedIndex& index) const {
CHECK_GE(index.id, 0);
CHECK_LT(index.id, num_points_);
const MapPathPoint& ref_point = path_points_[index.id];
if (std::abs(index.offset) > kMathEpsilon) {
const Vec2d delta = unit_directions_[index.id] * index.offset;
MapPathPoint point({ref_point.x() + delta.x(), ref_point.y() + delta.y()},
ref_point.heading());
if (index.id < num_segments_ && !ref_point.lane_waypoints().empty()) {
const LaneSegment& lane_segment = lane_segments_to_next_point_[index.id];
auto ref_lane_waypoint = ref_point.lane_waypoints()[0];
if (lane_segment.lane != nullptr) {
for (const auto& lane_waypoint : ref_point.lane_waypoints()) {
if (lane_waypoint.lane->id().id() == lane_segment.lane->id().id()) {
ref_lane_waypoint = lane_waypoint;
break;
}
}
point.add_lane_waypoint(
LaneWaypoint(lane_segment.lane, lane_segment.start_s + index.offset,
ref_lane_waypoint.l));
}
}
if (point.lane_waypoints().empty() && !ref_point.lane_waypoints().empty()) {
point.add_lane_waypoint(ref_point.lane_waypoints()[0]);
}
return point;
} else {
return ref_point;
}
}
MapPathPoint Path::GetSmoothPoint(double s) const {
return GetSmoothPoint(GetIndexFromS(s));
}
double Path::GetSFromIndex(const InterpolatedIndex& index) const {
if (index.id < 0) {
return 0.0;
}
if (index.id >= num_points_) {
return length_;
}
return accumulated_s_[index.id] + index.offset;
}
InterpolatedIndex Path::GetIndexFromS(double s) const {
if (s <= 0.0) {
return {0, 0.0};
}
CHECK_GT(num_points_, 0);
if (s >= length_) {
return {num_points_ - 1, 0.0};
}
const int sample_id = static_cast<int>(s / kSampleDistance);
if (sample_id >= num_sample_points_) {
return {num_points_ - 1, 0.0};
}
const int next_sample_id = sample_id + 1;
int low = last_point_index_[sample_id];
int high = (next_sample_id < num_sample_points_
? std::min(num_points_, last_point_index_[next_sample_id] + 1)
: num_points_);
while (low + 1 < high) {
const int mid = (low + high) / 2;
if (accumulated_s_[mid] <= s) {
low = mid;
} else {
high = mid;
}
}
return {low, s - accumulated_s_[low]};
}
InterpolatedIndex Path::GetLaneIndexFromS(double s) const {
if (s <= 0.0) {
return {0, 0.0};
}
CHECK_GT(lane_segments_.size(), 0U);
if (s >= length_) {
return {static_cast<int>(lane_segments_.size() - 1),
lane_segments_.back().Length()};
}
auto iter = std::lower_bound(lane_accumulated_s_.begin(),
lane_accumulated_s_.end(), s);
if (iter == lane_accumulated_s_.end()) {
return {static_cast<int>(lane_segments_.size() - 1),
lane_segments_.back().Length()};
}
int index =
static_cast<int>(std::distance(lane_accumulated_s_.begin(), iter));
if (index == 0) {
return {index, s};
} else {
return {index, s - lane_accumulated_s_[index - 1]};
}
}
std::vector<hdmap::LaneSegment> Path::GetLaneSegments(
const double start_s, const double end_s) const {
std::vector<hdmap::LaneSegment> lanes;
if (start_s + kMathEpsilon > end_s) {
return lanes;
}
auto start_index = GetLaneIndexFromS(start_s);
if (start_index.offset + kMathEpsilon >=
lane_segments_[start_index.id].Length()) {
start_index.id += 1;
start_index.offset = 0;
}
const int num_lanes = static_cast<int>(lane_segments_.size());
if (start_index.id >= num_lanes) {
return lanes;
}
lanes.emplace_back(lane_segments_[start_index.id].lane, start_index.offset,
lane_segments_[start_index.id].Length());
auto end_index = GetLaneIndexFromS(end_s);
for (int i = start_index.id; i < end_index.id && i < num_lanes; ++i) {
lanes.emplace_back(lane_segments_[i]);
}
if (end_index.offset >= kMathEpsilon) {
lanes.emplace_back(lane_segments_[end_index.id].lane, 0, end_index.offset);
}
return lanes;
}
bool Path::GetNearestPoint(const Vec2d& point, double* accumulate_s,
double* lateral) const {
double distance = 0.0;
return GetNearestPoint(point, accumulate_s, lateral, &distance);
}
bool Path::GetNearestPoint(const Vec2d& point, double* accumulate_s,
double* lateral, double* min_distance) const {
if (!GetProjection(point, accumulate_s, lateral, min_distance)) {
return false;
}
if (*accumulate_s < 0.0) {
*accumulate_s = 0.0;
*min_distance = point.DistanceTo(path_points_[0]);
} else if (*accumulate_s > length_) {
*accumulate_s = length_;
*min_distance = point.DistanceTo(path_points_.back());
}
return true;
}
bool Path::GetProjection(const common::math::Vec2d& point, double* accumulate_s,
double* lateral) const {
double distance = 0.0;
return GetProjection(point, accumulate_s, lateral, &distance);
}
bool Path::GetProjectionWithHueristicParams(const Vec2d& point,
const double hueristic_start_s,
const double hueristic_end_s,
double* accumulate_s,
double* lateral,
double* min_distance) const {
if (segments_.empty()) {
return false;
}
if (accumulate_s == nullptr || lateral == nullptr ||
min_distance == nullptr) {
return false;
}
CHECK_GE(num_points_, 2);
*min_distance = std::numeric_limits<double>::infinity();
int start_interpolation_index = GetIndexFromS(hueristic_start_s).id;
int end_interpolation_index = static_cast<int>(
std::fmin(num_segments_, GetIndexFromS(hueristic_end_s).id + 1));
int min_index = start_interpolation_index;
for (int i = start_interpolation_index; i < end_interpolation_index; ++i) {
const double distance = segments_[i].DistanceSquareTo(point);
if (distance < *min_distance) {
min_index = i;
*min_distance = distance;
}
}
*min_distance = std::sqrt(*min_distance);
const auto& nearest_seg = segments_[min_index];
const auto prod = nearest_seg.ProductOntoUnit(point);
const auto proj = nearest_seg.ProjectOntoUnit(point);
if (min_index == 0) {
*accumulate_s = std::min(proj, nearest_seg.length());
if (proj < 0) {
*lateral = prod;
} else {
*lateral = (prod > 0.0 ? 1 : -1) * *min_distance;
}
} else if (min_index == num_segments_ - 1) {
*accumulate_s = accumulated_s_[min_index] + std::max(0.0, proj);
if (proj > 0) {
*lateral = prod;
} else {
*lateral = (prod > 0.0 ? 1 : -1) * *min_distance;
}
} else {
*accumulate_s = accumulated_s_[min_index] +
std::max(0.0, std::min(proj, nearest_seg.length()));
*lateral = (prod > 0.0 ? 1 : -1) * *min_distance;
}
return true;
}
bool Path::GetProjection(const Vec2d& point, double* accumulate_s,
double* lateral, double* min_distance) const {
if (segments_.empty()) {
return false;
}
if (accumulate_s == nullptr || lateral == nullptr ||
min_distance == nullptr) {
return false;
}
if (use_path_approximation_) {
return approximation_.GetProjection(*this, point, accumulate_s, lateral,
min_distance);
}
CHECK_GE(num_points_, 2);
*min_distance = std::numeric_limits<double>::infinity();
int min_index = 0;
for (int i = 0; i < num_segments_; ++i) {
const double distance = segments_[i].DistanceSquareTo(point);
if (distance < *min_distance) {
min_index = i;
*min_distance = distance;
}
}
*min_distance = std::sqrt(*min_distance);
const auto& nearest_seg = segments_[min_index];
const auto prod = nearest_seg.ProductOntoUnit(point);
const auto proj = nearest_seg.ProjectOntoUnit(point);
if (min_index == 0) {
*accumulate_s = std::min(proj, nearest_seg.length());
if (proj < 0) {
*lateral = prod;
} else {
*lateral = (prod > 0.0 ? 1 : -1) * *min_distance;
}
} else if (min_index == num_segments_ - 1) {
*accumulate_s = accumulated_s_[min_index] + std::max(0.0, proj);
if (proj > 0) {
*lateral = prod;
} else {
*lateral = (prod > 0.0 ? 1 : -1) * *min_distance;
}
} else {
*accumulate_s = accumulated_s_[min_index] +
std::max(0.0, std::min(proj, nearest_seg.length()));
*lateral = (prod > 0.0 ? 1 : -1) * *min_distance;
}
return true;
}
bool Path::GetHeadingAlongPath(const Vec2d& point, double* heading) const {
if (heading == nullptr) {
return false;
}
double s = 0;
double l = 0;
if (GetProjection(point, &s, &l)) {
*heading = GetSmoothPoint(s).heading();
return true;
}
return false;
}
double Path::GetLaneLeftWidth(const double s) const {
return GetSample(lane_left_width_, s);
}
double Path::GetLaneRightWidth(const double s) const {
return GetSample(lane_right_width_, s);
}
bool Path::GetLaneWidth(const double s, double* lane_left_width,
double* lane_right_width) const {
CHECK_NOTNULL(lane_left_width);
CHECK_NOTNULL(lane_right_width);
if (s < 0.0 || s > length_) {
return false;
}
*lane_left_width = GetSample(lane_left_width_, s);
*lane_right_width = GetSample(lane_right_width_, s);
return true;
}
double Path::GetRoadLeftWidth(const double s) const {
return GetSample(road_left_width_, s);
}
double Path::GetRoadRightWidth(const double s) const {
return GetSample(road_right_width_, s);
}
bool Path::GetRoadWidth(const double s, double* road_left_width,
double* road_right_width) const {
CHECK_NOTNULL(road_left_width);
CHECK_NOTNULL(road_right_width);
if (s < 0.0 || s > length_) {
return false;
}
*road_left_width = GetSample(road_left_width_, s);
*road_right_width = GetSample(road_right_width_, s);
return true;
}
double Path::GetSample(const std::vector<double>& samples,
const double s) const {
if (samples.empty()) {
return 0.0;
}
if (s <= 0.0) {
return samples[0];
}
const int idx = static_cast<int>(s / kSampleDistance);
if (idx >= num_sample_points_ - 1) {
return samples.back();
}
const double ratio = (s - idx * kSampleDistance) / kSampleDistance;
return samples[idx] * (1.0 - ratio) + samples[idx + 1] * ratio;
}
bool Path::IsOnPath(const Vec2d& point) const {
double accumulate_s = 0.0;
double lateral = 0.0;
if (!GetProjection(point, &accumulate_s, &lateral)) {
return false;
}
double lane_left_width = 0.0;
double lane_right_width = 0.0;
if (!GetLaneWidth(accumulate_s, &lane_left_width, &lane_right_width)) {
return false;
}
if (lateral < lane_left_width && lateral > -lane_right_width) {
return true;
}
return false;
}
bool Path::OverlapWith(const common::math::Box2d& box, double width) const {
if (use_path_approximation_) {
return approximation_.OverlapWith(*this, box, width);
}
const Vec2d center = box.center();
const double radius_sqr = Sqr(box.diagonal() / 2.0 + width) + kMathEpsilon;
for (const auto& segment : segments_) {
if (segment.DistanceSquareTo(center) > radius_sqr) {
continue;
}
if (box.DistanceTo(segment) <= width + kMathEpsilon) {
return true;
}
}
return false;
}
double PathApproximation::compute_max_error(const Path& path, const int s,
const int t) {
if (s + 1 >= t) {
return 0.0;
}
const auto& points = path.path_points();
const LineSegment2d segment(points[s], points[t]);
double max_distance_sqr = 0.0;
for (int i = s + 1; i < t; ++i) {
max_distance_sqr =
std::max(max_distance_sqr, segment.DistanceSquareTo(points[i]));
}
return sqrt(max_distance_sqr);
}
bool PathApproximation::is_within_max_error(const Path& path, const int s,
const int t) {
if (s + 1 >= t) {
return true;
}
const auto& points = path.path_points();
const LineSegment2d segment(points[s], points[t]);
for (int i = s + 1; i < t; ++i) {
if (segment.DistanceSquareTo(points[i]) > max_sqr_error_) {
return false;
}
}
return true;
}
void PathApproximation::Init(const Path& path) {
InitDilute(path);
InitProjections(path);
}
void PathApproximation::InitDilute(const Path& path) {
const int num_original_points = path.num_points();
original_ids_.clear();
int last_idx = 0;
while (last_idx < num_original_points - 1) {
original_ids_.push_back(last_idx);
int next_idx = last_idx + 1;
int delta = 2;
for (; last_idx + delta < num_original_points; delta *= 2) {
if (!is_within_max_error(path, last_idx, last_idx + delta)) {
break;
}
next_idx = last_idx + delta;
}
for (; delta > 0; delta /= 2) {
if (next_idx + delta < num_original_points &&
is_within_max_error(path, last_idx, next_idx + delta)) {
next_idx += delta;
}
}
last_idx = next_idx;
}
original_ids_.push_back(last_idx);
num_points_ = static_cast<int>(original_ids_.size());
if (num_points_ == 0) {
return;
}
segments_.clear();
segments_.reserve(num_points_ - 1);
for (int i = 0; i < num_points_ - 1; ++i) {
segments_.emplace_back(path.path_points()[original_ids_[i]],
path.path_points()[original_ids_[i + 1]]);
}
max_error_per_segment_.clear();
max_error_per_segment_.reserve(num_points_ - 1);
for (int i = 0; i < num_points_ - 1; ++i) {
max_error_per_segment_.push_back(
compute_max_error(path, original_ids_[i], original_ids_[i + 1]));
}
}
void PathApproximation::InitProjections(const Path& path) {
if (num_points_ == 0) {
return;
}
projections_.clear();
projections_.reserve(segments_.size() + 1);
double s = 0.0;
projections_.push_back(0);
for (const auto& segment : segments_) {
s += segment.length();
projections_.push_back(s);
}
const auto& original_points = path.path_points();
const int num_original_points = static_cast<int>(original_points.size());
original_projections_.clear();
original_projections_.reserve(num_original_points);
for (size_t i = 0; i < projections_.size(); ++i) {
original_projections_.push_back(projections_[i]);
if (i + 1 < projections_.size()) {
const auto& segment = segments_[i];
for (int idx = original_ids_[i] + 1; idx < original_ids_[i + 1]; ++idx) {
const double proj = segment.ProjectOntoUnit(original_points[idx]);
original_projections_.push_back(
projections_[i] + std::max(0.0, std::min(proj, segment.length())));
}
}
}
// max_p_to_left[i] = max(p[0], p[1], ... p[i]).
max_original_projections_to_left_.resize(num_original_points);
double last_projection = -std::numeric_limits<double>::infinity();
for (int i = 0; i < num_original_points; ++i) {
last_projection = std::max(last_projection, original_projections_[i]);
max_original_projections_to_left_[i] = last_projection;
}
for (int i = 0; i + 1 < num_original_points; ++i) {
CHECK_LE(max_original_projections_to_left_[i],
max_original_projections_to_left_[i + 1] + kMathEpsilon);
}
// min_p_to_right[i] = min(p[i], p[i + 1], ... p[size - 1]).
min_original_projections_to_right_.resize(original_projections_.size());
last_projection = std::numeric_limits<double>::infinity();
for (int i = num_original_points - 1; i >= 0; --i) {
last_projection = std::min(last_projection, original_projections_[i]);
min_original_projections_to_right_[i] = last_projection;
}
for (int i = 0; i + 1 < num_original_points; ++i) {
CHECK_LE(min_original_projections_to_right_[i],
min_original_projections_to_right_[i + 1] + kMathEpsilon);
}
// Sample max_p_to_left by sample_distance.
max_projection_ = projections_.back();
num_projection_samples_ =
static_cast<int>(max_projection_ / kSampleDistance) + 1;
sampled_max_original_projections_to_left_.clear();
sampled_max_original_projections_to_left_.reserve(num_projection_samples_);
double proj = 0.0;
int last_index = 0;
for (int i = 0; i < num_projection_samples_; ++i) {
while (last_index + 1 < num_original_points &&
max_original_projections_to_left_[last_index + 1] < proj) {
++last_index;
}
sampled_max_original_projections_to_left_.push_back(last_index);
proj += kSampleDistance;
}
CHECK_EQ(sampled_max_original_projections_to_left_.size(),
static_cast<size_t>(num_projection_samples_));
}
bool PathApproximation::GetProjection(const Path& path,
const common::math::Vec2d& point,
double* accumulate_s, double* lateral,
double* min_distance) const {
if (num_points_ == 0) {
return false;
}
if (accumulate_s == nullptr || lateral == nullptr ||
min_distance == nullptr) {
return false;
}
double min_distance_sqr = std::numeric_limits<double>::infinity();
int estimate_nearest_segment_idx = -1;
std::vector<double> distance_sqr_to_segments;
distance_sqr_to_segments.reserve(segments_.size());
for (size_t i = 0; i < segments_.size(); ++i) {
const double distance_sqr = segments_[i].DistanceSquareTo(point);
distance_sqr_to_segments.push_back(distance_sqr);
if (distance_sqr < min_distance_sqr) {
min_distance_sqr = distance_sqr;
estimate_nearest_segment_idx = static_cast<int>(i);
}
}
if (estimate_nearest_segment_idx < 0) {
return false;
}
const auto& original_segments = path.segments();
const int num_original_segments = static_cast<int>(original_segments.size());
const auto& original_accumulated_s = path.accumulated_s();
double min_distance_sqr_with_error =
Sqr(sqrt(min_distance_sqr) +
max_error_per_segment_[estimate_nearest_segment_idx] + max_error_);
*min_distance = std::numeric_limits<double>::infinity();
int nearest_segment_idx = -1;
for (size_t i = 0; i < segments_.size(); ++i) {
if (distance_sqr_to_segments[i] >= min_distance_sqr_with_error) {
continue;
}
int first_segment_idx = original_ids_[i];
int last_segment_idx = original_ids_[i + 1] - 1;
double max_original_projection = std::numeric_limits<double>::infinity();
if (first_segment_idx < last_segment_idx) {
const auto& segment = segments_[i];
const double projection = segment.ProjectOntoUnit(point);
const double prod_sqr = Sqr(segment.ProductOntoUnit(point));
if (prod_sqr >= min_distance_sqr_with_error) {
continue;
}
const double scan_distance = sqrt(min_distance_sqr_with_error - prod_sqr);
const double min_projection = projection - scan_distance;
max_original_projection = projections_[i] + projection + scan_distance;
if (min_projection > 0.0) {
const double limit = projections_[i] + min_projection;
const int sample_index =
std::max(0, static_cast<int>(limit / kSampleDistance));
if (sample_index >= num_projection_samples_) {
first_segment_idx = last_segment_idx;
} else {
first_segment_idx =
std::max(first_segment_idx,
sampled_max_original_projections_to_left_[sample_index]);
if (first_segment_idx >= last_segment_idx) {
first_segment_idx = last_segment_idx;
} else {
while (first_segment_idx < last_segment_idx &&
max_original_projections_to_left_[first_segment_idx + 1] <
limit) {
++first_segment_idx;
}
}
}
}
}
bool min_distance_updated = false;
bool is_within_end_point = false;
for (int idx = first_segment_idx; idx <= last_segment_idx; ++idx) {
if (min_original_projections_to_right_[idx] > max_original_projection) {
break;
}
const auto& original_segment = original_segments[idx];
const double x0 = point.x() - original_segment.start().x();
const double y0 = point.y() - original_segment.start().y();
const double ux = original_segment.unit_direction().x();
const double uy = original_segment.unit_direction().y();
double proj = x0 * ux + y0 * uy;
double distance = 0.0;
if (proj < 0.0) {
if (is_within_end_point) {
continue;
}
is_within_end_point = true;
distance = hypot(x0, y0);
} else if (proj <= original_segment.length()) {
is_within_end_point = true;
distance = std::abs(x0 * uy - y0 * ux);
} else {
is_within_end_point = false;
if (idx != last_segment_idx) {
continue;
}
distance = original_segment.end().DistanceTo(point);
}
if (distance < *min_distance) {
min_distance_updated = true;
*min_distance = distance;
nearest_segment_idx = idx;
}
}
if (min_distance_updated) {
min_distance_sqr_with_error = Sqr(*min_distance + max_error_);
}
}
if (nearest_segment_idx >= 0) {
const auto& segment = original_segments[nearest_segment_idx];
double proj = segment.ProjectOntoUnit(point);
const double prod = segment.ProductOntoUnit(point);
if (nearest_segment_idx > 0) {
proj = std::max(0.0, proj);
}
if (nearest_segment_idx + 1 < num_original_segments) {
proj = std::min(segment.length(), proj);
}
*accumulate_s = original_accumulated_s[nearest_segment_idx] + proj;
if ((nearest_segment_idx == 0 && proj < 0.0) ||
(nearest_segment_idx + 1 == num_original_segments &&
proj > segment.length())) {
*lateral = prod;
} else {
*lateral = (prod > 0 ? (*min_distance) : -(*min_distance));
}
return true;
}
return false;
}
bool PathApproximation::OverlapWith(const Path& path, const Box2d& box,
double width) const {
if (num_points_ == 0) {
return false;
}
const Vec2d center = box.center();
const double radius = box.diagonal() / 2.0 + width;
const double radius_sqr = Sqr(radius);
const auto& original_segments = path.segments();
for (size_t i = 0; i < segments_.size(); ++i) {
const LineSegment2d& segment = segments_[i];
const double max_error = max_error_per_segment_[i];
const double radius_sqr_with_error = Sqr(radius + max_error);
if (segment.DistanceSquareTo(center) > radius_sqr_with_error) {
continue;
}
int first_segment_idx = original_ids_[i];
int last_segment_idx = original_ids_[i + 1] - 1;
double max_original_projection = std::numeric_limits<double>::infinity();
if (first_segment_idx < last_segment_idx) {
const auto& segment = segments_[i];
const double projection = segment.ProjectOntoUnit(center);
const double prod_sqr = Sqr(segment.ProductOntoUnit(center));
if (prod_sqr >= radius_sqr_with_error) {
continue;
}
const double scan_distance = sqrt(radius_sqr_with_error - prod_sqr);
const double min_projection = projection - scan_distance;
max_original_projection = projections_[i] + projection + scan_distance;
if (min_projection > 0.0) {
const double limit = projections_[i] + min_projection;
const int sample_index =
std::max(0, static_cast<int>(limit / kSampleDistance));
if (sample_index >= num_projection_samples_) {
first_segment_idx = last_segment_idx;
} else {
first_segment_idx =
std::max(first_segment_idx,
sampled_max_original_projections_to_left_[sample_index]);
if (first_segment_idx >= last_segment_idx) {
first_segment_idx = last_segment_idx;
} else {
while (first_segment_idx < last_segment_idx &&
max_original_projections_to_left_[first_segment_idx + 1] <
limit) {
++first_segment_idx;
}
}
}
}
}
for (int idx = first_segment_idx; idx <= last_segment_idx; ++idx) {
if (min_original_projections_to_right_[idx] > max_original_projection) {
break;
}
const auto& original_segment = original_segments[idx];
if (original_segment.DistanceSquareTo(center) > radius_sqr) {
continue;
}
if (box.DistanceTo(original_segment) <= width) {
return true;
}
}
}
return false;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/path.h | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <string>
#include <utility>
#include <vector>
#include "modules/common_msgs/map_msgs/map_lane.pb.h"
#include "modules/common/math/box2d.h"
#include "modules/common/math/line_segment2d.h"
#include "modules/common/math/vec2d.h"
#include "modules/map/hdmap/hdmap_common.h"
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/map/hdmap/hdmap.h"
namespace apollo {
namespace hdmap {
// class LaneInfoConstPtr;
// class OverlapInfoConstPtr;
struct LaneWaypoint {
LaneWaypoint() = default;
LaneWaypoint(LaneInfoConstPtr lane, const double s)
: lane(CHECK_NOTNULL(lane)), s(s) {}
LaneWaypoint(LaneInfoConstPtr lane, const double s, const double l)
: lane(CHECK_NOTNULL(lane)), s(s), l(l) {}
LaneInfoConstPtr lane = nullptr;
double s = 0.0;
double l = 0.0;
std::string DebugString() const;
};
/**
* @brief get left boundary type at a waypoint.
*/
LaneBoundaryType::Type LeftBoundaryType(const LaneWaypoint& waypoint);
/**
* @brief get left boundary type at a waypoint.
*/
LaneBoundaryType::Type RightBoundaryType(const LaneWaypoint& waypoint);
/**
* @brief get left neighbor lane waypoint. If not exist, the Waypoint.lane will
* be null.
*/
LaneWaypoint LeftNeighborWaypoint(const LaneWaypoint& waypoint);
/**
* @brief get left neighbor lane waypoint. If not exist, the Waypoint.lane will
* be null.
*/
LaneWaypoint RightNeighborWaypoint(const LaneWaypoint& waypoint);
struct LaneSegment {
LaneSegment() = default;
LaneSegment(LaneInfoConstPtr lane, const double start_s, const double end_s)
: lane(CHECK_NOTNULL(lane)), start_s(start_s), end_s(end_s) {}
LaneInfoConstPtr lane = nullptr;
double start_s = 0.0;
double end_s = 0.0;
double Length() const { return end_s - start_s; }
/**
* Join neighboring lane segments if they have the same lane id
*/
static void Join(std::vector<LaneSegment>* segments);
std::string DebugString() const;
};
struct PathOverlap {
PathOverlap() = default;
PathOverlap(std::string object_id, const double start_s, const double end_s)
: object_id(std::move(object_id)), start_s(start_s), end_s(end_s) {}
std::string object_id;
double start_s = 0.0;
double end_s = 0.0;
std::string DebugString() const;
};
class MapPathPoint : public common::math::Vec2d {
public:
MapPathPoint() = default;
MapPathPoint(const common::math::Vec2d& point, double heading)
: Vec2d(point.x(), point.y()), heading_(heading) {}
MapPathPoint(const common::math::Vec2d& point, double heading,
LaneWaypoint lane_waypoint)
: Vec2d(point.x(), point.y()), heading_(heading) {
lane_waypoints_.emplace_back(std::move(lane_waypoint));
}
MapPathPoint(const common::math::Vec2d& point, double heading,
std::vector<LaneWaypoint> lane_waypoints)
: Vec2d(point.x(), point.y()),
heading_(heading),
lane_waypoints_(std::move(lane_waypoints)) {}
double heading() const { return heading_; }
void set_heading(const double heading) { heading_ = heading; }
const std::vector<LaneWaypoint>& lane_waypoints() const {
return lane_waypoints_;
}
void add_lane_waypoint(LaneWaypoint lane_waypoint) {
lane_waypoints_.emplace_back(std::move(lane_waypoint));
}
void add_lane_waypoints(const std::vector<LaneWaypoint>& lane_waypoints) {
lane_waypoints_.insert(lane_waypoints_.end(), lane_waypoints.begin(),
lane_waypoints.end());
}
void clear_lane_waypoints() { lane_waypoints_.clear(); }
static void RemoveDuplicates(std::vector<MapPathPoint>* points);
static std::vector<MapPathPoint> GetPointsFromSegment(
const LaneSegment& segment);
static std::vector<MapPathPoint> GetPointsFromLane(LaneInfoConstPtr lane,
const double start_s,
const double end_s);
std::string DebugString() const;
protected:
double heading_ = 0.0;
std::vector<LaneWaypoint> lane_waypoints_;
};
class Path;
class PathApproximation {
public:
PathApproximation() = default;
PathApproximation(const Path& path, const double max_error)
: max_error_(max_error), max_sqr_error_(max_error * max_error) {
Init(path);
}
double max_error() const { return max_error_; }
const std::vector<int>& original_ids() const { return original_ids_; }
const std::vector<common::math::LineSegment2d>& segments() const {
return segments_;
}
bool GetProjection(const Path& path, const common::math::Vec2d& point,
double* accumulate_s, double* lateral,
double* distance) const;
bool OverlapWith(const Path& path, const common::math::Box2d& box,
double width) const;
protected:
void Init(const Path& path);
bool is_within_max_error(const Path& path, const int s, const int t);
double compute_max_error(const Path& path, const int s, const int t);
void InitDilute(const Path& path);
void InitProjections(const Path& path);
protected:
double max_error_ = 0;
double max_sqr_error_ = 0;
int num_points_ = 0;
std::vector<int> original_ids_;
std::vector<common::math::LineSegment2d> segments_;
std::vector<double> max_error_per_segment_;
// TODO(All): use direction change checks to early stop.
// Projection of points onto the diluated segments.
std::vector<double> projections_;
double max_projection_;
int num_projection_samples_ = 0;
// The original_projection is the projection of original points onto the
// diluated segments.
std::vector<double> original_projections_;
// max_p_to_left[i] = max(p[0], p[1], ... p[i]).
// min_p_to_right[i] = min(p[i], p[i + 1], ... p[size - 1]).
std::vector<double> max_original_projections_to_left_;
std::vector<double> min_original_projections_to_right_;
std::vector<int> sampled_max_original_projections_to_left_;
};
class InterpolatedIndex {
public:
InterpolatedIndex(int id, double offset) : id(id), offset(offset) {}
int id = 0;
double offset = 0.0;
};
class Path {
public:
Path() = default;
explicit Path(const std::vector<MapPathPoint>& path_points);
explicit Path(std::vector<MapPathPoint>&& path_points);
explicit Path(std::vector<LaneSegment>&& path_points);
explicit Path(const std::vector<LaneSegment>& path_points);
Path(const std::vector<MapPathPoint>& path_points,
const std::vector<LaneSegment>& lane_segments);
Path(std::vector<MapPathPoint>&& path_points,
std::vector<LaneSegment>&& lane_segments);
Path(const std::vector<MapPathPoint>& path_points,
const std::vector<LaneSegment>& lane_segments,
const double max_approximation_error);
Path(std::vector<MapPathPoint>&& path_points,
std::vector<LaneSegment>&& lane_segments,
const double max_approximation_error);
// Return smooth coordinate by interpolated index or accumulate_s.
MapPathPoint GetSmoothPoint(const InterpolatedIndex& index) const;
MapPathPoint GetSmoothPoint(double s) const;
// Compute accumulate s value of the index.
double GetSFromIndex(const InterpolatedIndex& index) const;
// Compute interpolated index by accumulate_s.
InterpolatedIndex GetIndexFromS(double s) const;
// get the index of the lane from s by accumulate_s
InterpolatedIndex GetLaneIndexFromS(double s) const;
std::vector<hdmap::LaneSegment> GetLaneSegments(const double start_s,
const double end_s) const;
bool GetNearestPoint(const common::math::Vec2d& point, double* accumulate_s,
double* lateral) const;
bool GetNearestPoint(const common::math::Vec2d& point, double* accumulate_s,
double* lateral, double* distance) const;
bool GetProjectionWithHueristicParams(const common::math::Vec2d& point,
const double hueristic_start_s,
const double hueristic_end_s,
double* accumulate_s, double* lateral,
double* min_distance) const;
bool GetProjection(const common::math::Vec2d& point, double* accumulate_s,
double* lateral) const;
bool GetProjection(const common::math::Vec2d& point, double* accumulate_s,
double* lateral, double* distance) const;
bool GetHeadingAlongPath(const common::math::Vec2d& point,
double* heading) const;
int num_points() const { return num_points_; }
int num_segments() const { return num_segments_; }
const std::vector<MapPathPoint>& path_points() const { return path_points_; }
const std::vector<LaneSegment>& lane_segments() const {
return lane_segments_;
}
const std::vector<LaneSegment>& lane_segments_to_next_point() const {
return lane_segments_to_next_point_;
}
const std::vector<common::math::Vec2d>& unit_directions() const {
return unit_directions_;
}
const std::vector<double>& accumulated_s() const { return accumulated_s_; }
const std::vector<common::math::LineSegment2d>& segments() const {
return segments_;
}
const PathApproximation* approximation() const { return &approximation_; }
double length() const { return length_; }
const PathOverlap* NextLaneOverlap(double s) const;
const std::vector<PathOverlap>& lane_overlaps() const {
return lane_overlaps_;
}
const std::vector<PathOverlap>& signal_overlaps() const {
return signal_overlaps_;
}
const std::vector<PathOverlap>& yield_sign_overlaps() const {
return yield_sign_overlaps_;
}
const std::vector<PathOverlap>& stop_sign_overlaps() const {
return stop_sign_overlaps_;
}
const std::vector<PathOverlap>& crosswalk_overlaps() const {
return crosswalk_overlaps_;
}
const std::vector<PathOverlap>& junction_overlaps() const {
return junction_overlaps_;
}
const std::vector<PathOverlap>& pnc_junction_overlaps() const {
return pnc_junction_overlaps_;
}
const std::vector<PathOverlap>& clear_area_overlaps() const {
return clear_area_overlaps_;
}
const std::vector<PathOverlap>& speed_bump_overlaps() const {
return speed_bump_overlaps_;
}
const std::vector<PathOverlap>& parking_space_overlaps() const {
return parking_space_overlaps_;
}
const std::vector<PathOverlap>& dead_end_overlaps() const {
return dead_end_overlaps_;
}
double GetLaneLeftWidth(const double s) const;
double GetLaneRightWidth(const double s) const;
bool GetLaneWidth(const double s, double* lane_left_width,
double* lane_right_width) const;
double GetRoadLeftWidth(const double s) const;
double GetRoadRightWidth(const double s) const;
bool GetRoadWidth(const double s, double* road_left_width,
double* road_ight_width) const;
bool IsOnPath(const common::math::Vec2d& point) const;
bool OverlapWith(const common::math::Box2d& box, double width) const;
std::string DebugString() const;
protected:
void Init();
void InitPoints();
void InitLaneSegments();
void InitWidth();
void InitPointIndex();
void InitOverlaps();
double GetSample(const std::vector<double>& samples, const double s) const;
using GetOverlapFromLaneFunc =
std::function<const std::vector<OverlapInfoConstPtr>&(const LaneInfo&)>;
void GetAllOverlaps(GetOverlapFromLaneFunc GetOverlaps_from_lane,
std::vector<PathOverlap>* const overlaps) const;
protected:
int num_points_ = 0;
int num_segments_ = 0;
std::vector<MapPathPoint> path_points_;
std::vector<LaneSegment> lane_segments_;
std::vector<double> lane_accumulated_s_;
std::vector<LaneSegment> lane_segments_to_next_point_;
std::vector<common::math::Vec2d> unit_directions_;
double length_ = 0.0;
std::vector<double> accumulated_s_;
std::vector<common::math::LineSegment2d> segments_;
bool use_path_approximation_ = false;
PathApproximation approximation_;
// Sampled every fixed length.
int num_sample_points_ = 0;
std::vector<double> lane_left_width_;
std::vector<double> lane_right_width_;
std::vector<double> road_left_width_;
std::vector<double> road_right_width_;
std::vector<int> last_point_index_;
std::vector<PathOverlap> lane_overlaps_;
std::vector<PathOverlap> signal_overlaps_;
std::vector<PathOverlap> yield_sign_overlaps_;
std::vector<PathOverlap> stop_sign_overlaps_;
std::vector<PathOverlap> crosswalk_overlaps_;
std::vector<PathOverlap> parking_space_overlaps_;
std::vector<PathOverlap> dead_end_overlaps_;
std::vector<PathOverlap> junction_overlaps_;
std::vector<PathOverlap> pnc_junction_overlaps_;
std::vector<PathOverlap> clear_area_overlaps_;
std::vector<PathOverlap> speed_bump_overlaps_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/pnc_map.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/pnc_map.h"
#include <algorithm>
#include <limits>
#include "absl/strings/str_cat.h"
#include "google/protobuf/text_format.h"
#include "modules/common_msgs/map_msgs/map_id.pb.h"
#include "cyber/common/log.h"
#include "modules/common/configs/config_gflags.h"
#include "modules/common/util/point_factory.h"
#include "modules/common/util/string_util.h"
#include "modules/common/util/util.h"
#include "modules/map/hdmap/hdmap_util.h"
DEFINE_double(
look_backward_distance, 50,
"look backward this distance when creating reference line from routing");
DEFINE_double(look_forward_short_distance, 180,
"short look forward this distance when creating reference line "
"from routing when ADC is slow");
DEFINE_double(
look_forward_long_distance, 250,
"look forward this distance when creating reference line from routing");
namespace apollo {
namespace hdmap {
using apollo::common::PointENU;
using apollo::common::VehicleState;
using apollo::common::util::PointFactory;
using apollo::routing::RoutingResponse;
namespace {
// Maximum lateral error used in trajectory approximation.
const double kTrajectoryApproximationMaxError = 2.0;
} // namespace
PncMap::PncMap(const HDMap *hdmap) : hdmap_(hdmap) {}
const hdmap::HDMap *PncMap::hdmap() const { return hdmap_; }
LaneWaypoint PncMap::ToLaneWaypoint(
const routing::LaneWaypoint &waypoint) const {
auto lane = hdmap_->GetLaneById(hdmap::MakeMapId(waypoint.id()));
ACHECK(lane) << "Invalid lane id: " << waypoint.id();
return LaneWaypoint(lane, waypoint.s());
}
double PncMap::LookForwardDistance(double velocity) {
auto forward_distance = velocity * FLAGS_look_forward_time_sec;
return forward_distance > FLAGS_look_forward_short_distance
? FLAGS_look_forward_long_distance
: FLAGS_look_forward_short_distance;
}
LaneSegment PncMap::ToLaneSegment(const routing::LaneSegment &segment) const {
auto lane = hdmap_->GetLaneById(hdmap::MakeMapId(segment.id()));
ACHECK(lane) << "Invalid lane id: " << segment.id();
return LaneSegment(lane, segment.start_s(), segment.end_s());
}
void PncMap::UpdateNextRoutingWaypointIndex(int cur_index) {
if (cur_index < 0) {
next_routing_waypoint_index_ = 0;
return;
}
if (cur_index >= static_cast<int>(route_indices_.size())) {
next_routing_waypoint_index_ = routing_waypoint_index_.size() - 1;
return;
}
// Search backwards when the car is driven backward on the route.
while (next_routing_waypoint_index_ != 0 &&
next_routing_waypoint_index_ < routing_waypoint_index_.size() &&
routing_waypoint_index_[next_routing_waypoint_index_].index >
cur_index) {
--next_routing_waypoint_index_;
}
while (next_routing_waypoint_index_ != 0 &&
next_routing_waypoint_index_ < routing_waypoint_index_.size() &&
routing_waypoint_index_[next_routing_waypoint_index_].index ==
cur_index &&
adc_waypoint_.s <
routing_waypoint_index_[next_routing_waypoint_index_].waypoint.s) {
--next_routing_waypoint_index_;
}
// Search forwards
while (next_routing_waypoint_index_ < routing_waypoint_index_.size() &&
routing_waypoint_index_[next_routing_waypoint_index_].index <
cur_index) {
++next_routing_waypoint_index_;
}
while (next_routing_waypoint_index_ < routing_waypoint_index_.size() &&
cur_index ==
routing_waypoint_index_[next_routing_waypoint_index_].index &&
adc_waypoint_.s >=
routing_waypoint_index_[next_routing_waypoint_index_].waypoint.s) {
++next_routing_waypoint_index_;
}
if (next_routing_waypoint_index_ >= routing_waypoint_index_.size()) {
next_routing_waypoint_index_ = routing_waypoint_index_.size() - 1;
}
}
std::vector<routing::LaneWaypoint> PncMap::FutureRouteWaypoints() const {
const auto &waypoints = routing_.routing_request().waypoint();
return std::vector<routing::LaneWaypoint>(
waypoints.begin() + next_routing_waypoint_index_, waypoints.end());
}
void PncMap::UpdateRoutingRange(int adc_index) {
// Track routing range.
range_lane_ids_.clear();
range_start_ = std::max(0, adc_index - 1);
range_end_ = range_start_;
while (range_end_ < static_cast<int>(route_indices_.size())) {
const auto &lane_id = route_indices_[range_end_].segment.lane->id().id();
if (range_lane_ids_.count(lane_id) != 0) {
break;
}
range_lane_ids_.insert(lane_id);
++range_end_;
}
}
bool PncMap::UpdateVehicleState(const VehicleState &vehicle_state) {
if (!ValidateRouting(routing_)) {
AERROR << "The routing is invalid when updating vehicle state.";
return false;
}
if (!adc_state_.has_x() ||
(common::util::DistanceXY(adc_state_, vehicle_state) >
FLAGS_replan_lateral_distance_threshold +
FLAGS_replan_longitudinal_distance_threshold)) {
// Position is reset, but not replan.
next_routing_waypoint_index_ = 0;
adc_route_index_ = -1;
stop_for_destination_ = false;
}
adc_state_ = vehicle_state;
if (!GetNearestPointFromRouting(vehicle_state, &adc_waypoint_)) {
AERROR << "Failed to get waypoint from routing with point: "
<< "(" << vehicle_state.x() << ", " << vehicle_state.y() << ", "
<< vehicle_state.z() << ").";
return false;
}
int route_index = GetWaypointIndex(adc_waypoint_);
if (route_index < 0 ||
route_index >= static_cast<int>(route_indices_.size())) {
AERROR << "Cannot find waypoint: " << adc_waypoint_.DebugString();
return false;
}
// Track how many routing request waypoints the adc have passed.
UpdateNextRoutingWaypointIndex(route_index);
adc_route_index_ = route_index;
UpdateRoutingRange(adc_route_index_);
if (routing_waypoint_index_.empty()) {
AERROR << "No routing waypoint index.";
return false;
}
if (next_routing_waypoint_index_ == routing_waypoint_index_.size() - 1) {
stop_for_destination_ = true;
}
return true;
}
bool PncMap::IsNewRouting(const routing::RoutingResponse &routing) const {
return IsNewRouting(routing_, routing);
}
bool PncMap::IsNewRouting(const routing::RoutingResponse &prev,
const routing::RoutingResponse &routing) {
if (!ValidateRouting(routing)) {
ADEBUG << "The provided routing is invalid.";
return false;
}
return !common::util::IsProtoEqual(prev, routing);
}
bool PncMap::UpdateRoutingResponse(const routing::RoutingResponse &routing) {
range_lane_ids_.clear();
route_indices_.clear();
all_lane_ids_.clear();
for (int road_index = 0; road_index < routing.road_size(); ++road_index) {
const auto &road_segment = routing.road(road_index);
for (int passage_index = 0; passage_index < road_segment.passage_size();
++passage_index) {
const auto &passage = road_segment.passage(passage_index);
for (int lane_index = 0; lane_index < passage.segment_size();
++lane_index) {
all_lane_ids_.insert(passage.segment(lane_index).id());
route_indices_.emplace_back();
route_indices_.back().segment =
ToLaneSegment(passage.segment(lane_index));
if (route_indices_.back().segment.lane == nullptr) {
AERROR << "Failed to get lane segment from passage.";
return false;
}
route_indices_.back().index = {road_index, passage_index, lane_index};
}
}
}
range_start_ = 0;
range_end_ = 0;
adc_route_index_ = -1;
next_routing_waypoint_index_ = 0;
UpdateRoutingRange(adc_route_index_);
routing_waypoint_index_.clear();
const auto &request_waypoints = routing.routing_request().waypoint();
if (request_waypoints.empty()) {
AERROR << "Invalid routing: no request waypoints.";
return false;
}
int i = 0;
for (size_t j = 0; j < route_indices_.size(); ++j) {
while (i < request_waypoints.size() &&
RouteSegments::WithinLaneSegment(route_indices_[j].segment,
request_waypoints.Get(i))) {
routing_waypoint_index_.emplace_back(
LaneWaypoint(route_indices_[j].segment.lane,
request_waypoints.Get(i).s()),
j);
++i;
}
}
routing_ = routing;
adc_waypoint_ = LaneWaypoint();
stop_for_destination_ = false;
return true;
}
const routing::RoutingResponse &PncMap::routing_response() const {
return routing_;
}
bool PncMap::ValidateRouting(const RoutingResponse &routing) {
const int num_road = routing.road_size();
if (num_road == 0) {
AERROR << "Route is empty.";
return false;
}
if (!routing.has_routing_request() ||
routing.routing_request().waypoint_size() < 2) {
AERROR << "Routing does not have request.";
return false;
}
for (const auto &waypoint : routing.routing_request().waypoint()) {
if (!waypoint.has_id() || !waypoint.has_s()) {
AERROR << "Routing waypoint has no lane_id or s.";
return false;
}
}
return true;
}
int PncMap::SearchForwardWaypointIndex(int start,
const LaneWaypoint &waypoint) const {
int i = std::max(start, 0);
while (
i < static_cast<int>(route_indices_.size()) &&
!RouteSegments::WithinLaneSegment(route_indices_[i].segment, waypoint)) {
++i;
}
return i;
}
int PncMap::SearchBackwardWaypointIndex(int start,
const LaneWaypoint &waypoint) const {
int i = std::min(static_cast<int>(route_indices_.size() - 1), start);
while (i >= 0 && !RouteSegments::WithinLaneSegment(route_indices_[i].segment,
waypoint)) {
--i;
}
return i;
}
int PncMap::NextWaypointIndex(int index) const {
if (index >= static_cast<int>(route_indices_.size() - 1)) {
return static_cast<int>(route_indices_.size()) - 1;
} else if (index < 0) {
return 0;
} else {
return index + 1;
}
}
int PncMap::GetWaypointIndex(const LaneWaypoint &waypoint) const {
int forward_index = SearchForwardWaypointIndex(adc_route_index_, waypoint);
if (forward_index >= static_cast<int>(route_indices_.size())) {
return SearchBackwardWaypointIndex(adc_route_index_, waypoint);
}
if (forward_index == adc_route_index_ ||
forward_index == adc_route_index_ + 1) {
return forward_index;
}
auto backward_index = SearchBackwardWaypointIndex(adc_route_index_, waypoint);
if (backward_index < 0) {
return forward_index;
}
return (backward_index + 1 == adc_route_index_) ? backward_index
: forward_index;
}
bool PncMap::PassageToSegments(routing::Passage passage,
RouteSegments *segments) const {
CHECK_NOTNULL(segments);
segments->clear();
for (const auto &lane : passage.segment()) {
auto lane_ptr = hdmap_->GetLaneById(hdmap::MakeMapId(lane.id()));
if (!lane_ptr) {
AERROR << "Failed to find lane: " << lane.id();
return false;
}
segments->emplace_back(lane_ptr, std::max(0.0, lane.start_s()),
std::min(lane_ptr->total_length(), lane.end_s()));
}
return !segments->empty();
}
std::vector<int> PncMap::GetNeighborPassages(const routing::RoadSegment &road,
int start_passage) const {
CHECK_GE(start_passage, 0);
CHECK_LE(start_passage, road.passage_size());
std::vector<int> result;
const auto &source_passage = road.passage(start_passage);
result.emplace_back(start_passage);
if (source_passage.change_lane_type() == routing::FORWARD) {
return result;
}
if (source_passage.can_exit()) { // No need to change lane
return result;
}
RouteSegments source_segments;
if (!PassageToSegments(source_passage, &source_segments)) {
AERROR << "Failed to convert passage to segments";
return result;
}
if (next_routing_waypoint_index_ < routing_waypoint_index_.size() &&
source_segments.IsWaypointOnSegment(
routing_waypoint_index_[next_routing_waypoint_index_].waypoint)) {
ADEBUG << "Need to pass next waypoint[" << next_routing_waypoint_index_
<< "] before change lane";
return result;
}
std::unordered_set<std::string> neighbor_lanes;
if (source_passage.change_lane_type() == routing::LEFT) {
for (const auto &segment : source_segments) {
for (const auto &left_id :
segment.lane->lane().left_neighbor_forward_lane_id()) {
neighbor_lanes.insert(left_id.id());
}
}
} else if (source_passage.change_lane_type() == routing::RIGHT) {
for (const auto &segment : source_segments) {
for (const auto &right_id :
segment.lane->lane().right_neighbor_forward_lane_id()) {
neighbor_lanes.insert(right_id.id());
}
}
}
for (int i = 0; i < road.passage_size(); ++i) {
if (i == start_passage) {
continue;
}
const auto &target_passage = road.passage(i);
for (const auto &segment : target_passage.segment()) {
if (neighbor_lanes.count(segment.id())) {
result.emplace_back(i);
break;
}
}
}
return result;
}
bool PncMap::GetRouteSegments(const VehicleState &vehicle_state,
std::list<RouteSegments> *const route_segments) {
double look_forward_distance =
LookForwardDistance(vehicle_state.linear_velocity());
double look_backward_distance = FLAGS_look_backward_distance;
return GetRouteSegments(vehicle_state, look_backward_distance,
look_forward_distance, route_segments);
}
bool PncMap::GetRouteSegments(const VehicleState &vehicle_state,
const double backward_length,
const double forward_length,
std::list<RouteSegments> *const route_segments) {
if (!UpdateVehicleState(vehicle_state)) {
AERROR << "Failed to update vehicle state in pnc_map.";
return false;
}
// Vehicle has to be this close to lane center before considering change
// lane
if (!adc_waypoint_.lane || adc_route_index_ < 0 ||
adc_route_index_ >= static_cast<int>(route_indices_.size())) {
AERROR << "Invalid vehicle state in pnc_map, update vehicle state first.";
return false;
}
const auto &route_index = route_indices_[adc_route_index_].index;
const int road_index = route_index[0];
const int passage_index = route_index[1];
const auto &road = routing_.road(road_index);
// Raw filter to find all neighboring passages
auto drive_passages = GetNeighborPassages(road, passage_index);
for (const int index : drive_passages) {
const auto &passage = road.passage(index);
RouteSegments segments;
if (!PassageToSegments(passage, &segments)) {
ADEBUG << "Failed to convert passage to lane segments.";
continue;
}
const PointENU nearest_point =
index == passage_index
? adc_waypoint_.lane->GetSmoothPoint(adc_waypoint_.s)
: PointFactory::ToPointENU(adc_state_);
common::SLPoint sl;
LaneWaypoint segment_waypoint;
if (!segments.GetProjection(nearest_point, &sl, &segment_waypoint)) {
ADEBUG << "Failed to get projection from point: "
<< nearest_point.ShortDebugString();
continue;
}
if (index != passage_index) {
if (!segments.CanDriveFrom(adc_waypoint_)) {
ADEBUG << "You cannot drive from current waypoint to passage: "
<< index;
continue;
}
}
route_segments->emplace_back();
const auto last_waypoint = segments.LastWaypoint();
if (!ExtendSegments(segments, sl.s() - backward_length,
sl.s() + forward_length, &route_segments->back())) {
AERROR << "Failed to extend segments with s=" << sl.s()
<< ", backward: " << backward_length
<< ", forward: " << forward_length;
return false;
}
if (route_segments->back().IsWaypointOnSegment(last_waypoint)) {
route_segments->back().SetRouteEndWaypoint(last_waypoint);
}
route_segments->back().SetCanExit(passage.can_exit());
route_segments->back().SetNextAction(passage.change_lane_type());
const std::string route_segment_id = absl::StrCat(road_index, "_", index);
route_segments->back().SetId(route_segment_id);
route_segments->back().SetStopForDestination(stop_for_destination_);
if (index == passage_index) {
route_segments->back().SetIsOnSegment(true);
route_segments->back().SetPreviousAction(routing::FORWARD);
} else if (sl.l() > 0) {
route_segments->back().SetPreviousAction(routing::RIGHT);
} else {
route_segments->back().SetPreviousAction(routing::LEFT);
}
}
return !route_segments->empty();
}
bool PncMap::GetNearestPointFromRouting(const VehicleState &state,
LaneWaypoint *waypoint) const {
waypoint->lane = nullptr;
std::vector<LaneInfoConstPtr> lanes;
const auto point = PointFactory::ToPointENU(state);
std::vector<LaneInfoConstPtr> valid_lanes;
for (auto lane_id : all_lane_ids_) {
hdmap::Id id = hdmap::MakeMapId(lane_id);
auto lane = hdmap_->GetLaneById(id);
if (nullptr != lane) {
valid_lanes.emplace_back(lane);
}
}
// Get nearest_waypoints for current position
std::vector<LaneWaypoint> valid_way_points;
for (const auto &lane : valid_lanes) {
if (range_lane_ids_.count(lane->id().id()) == 0) {
continue;
}
double s = 0.0;
double l = 0.0;
{
if (!lane->GetProjection({point.x(), point.y()}, &s, &l)) {
continue;
}
// Use large epsilon to allow projection diff
static constexpr double kEpsilon = 0.5;
if (s > (lane->total_length() + kEpsilon) || (s + kEpsilon) < 0.0) {
continue;
}
}
valid_way_points.emplace_back();
auto &last = valid_way_points.back();
last.lane = lane;
last.s = s;
last.l = l;
ADEBUG << "distance:" << std::fabs(l);
}
if (valid_way_points.empty()) {
AERROR << "Failed to find nearest point: " << point.ShortDebugString();
return false;
}
// Choose the lane with the right heading if there is more than one candiate
// lanes. If there is no lane with the right heading, choose the closest one.
size_t closest_index = 0;
int right_heading_index = -1;
// The distance as the sum of the lateral and longitude distance, to estimate
// the distance from the vehicle to the lane.
double distance = std::numeric_limits<double>::max();
double lane_heading = 0.0;
double vehicle_heading = state.heading();
for (size_t i = 0; i < valid_way_points.size(); i++) {
double distance_to_lane = std::fabs(valid_way_points[i].l);
if (valid_way_points[i].s > valid_way_points[i].lane->total_length()) {
distance_to_lane +=
(valid_way_points[i].s - valid_way_points[i].lane->total_length());
} else if (valid_way_points[i].s < 0.0) {
distance_to_lane -= valid_way_points[i].s;
}
if (distance > distance_to_lane) {
distance = distance_to_lane;
closest_index = i;
}
lane_heading = valid_way_points[i].lane->Heading(valid_way_points[i].s);
if (std::abs(common::math::AngleDiff(lane_heading, vehicle_heading)) <
M_PI_2) {
// Choose the lane with the closest distance to the vehicle and with the
// right heading.
if (-1 == right_heading_index || closest_index == i) {
waypoint->lane = valid_way_points[i].lane;
waypoint->s = valid_way_points[i].s;
waypoint->l = valid_way_points[i].l;
right_heading_index = i;
}
}
}
// Use the lane with the closest distance to the current position of the
// vehicle.
if (-1 == right_heading_index) {
waypoint->lane = valid_way_points[closest_index].lane;
waypoint->s = valid_way_points[closest_index].s;
waypoint->l = valid_way_points[closest_index].l;
AWARN << "Find no lane with the right heading, use the cloesest lane!";
}
return true;
}
LaneInfoConstPtr PncMap::GetRouteSuccessor(LaneInfoConstPtr lane) const {
if (lane->lane().successor_id().empty()) {
return nullptr;
}
hdmap::Id preferred_id = lane->lane().successor_id(0);
for (const auto &lane_id : lane->lane().successor_id()) {
if (range_lane_ids_.count(lane_id.id()) != 0) {
preferred_id = lane_id;
break;
}
}
return hdmap_->GetLaneById(preferred_id);
}
LaneInfoConstPtr PncMap::GetRoutePredecessor(LaneInfoConstPtr lane) const {
if (lane->lane().predecessor_id().empty()) {
return nullptr;
}
std::unordered_set<std::string> predecessor_ids;
for (const auto &lane_id : lane->lane().predecessor_id()) {
predecessor_ids.insert(lane_id.id());
}
hdmap::Id preferred_id = lane->lane().predecessor_id(0);
for (size_t i = 1; i < route_indices_.size(); ++i) {
auto &lane = route_indices_[i].segment.lane->id();
if (predecessor_ids.count(lane.id()) != 0) {
preferred_id = lane;
break;
}
}
return hdmap_->GetLaneById(preferred_id);
}
bool PncMap::ExtendSegments(const RouteSegments &segments,
const common::PointENU &point, double look_backward,
double look_forward,
RouteSegments *extended_segments) {
common::SLPoint sl;
LaneWaypoint waypoint;
if (!segments.GetProjection(point, &sl, &waypoint)) {
AERROR << "point: " << point.ShortDebugString() << " is not on segment";
return false;
}
return ExtendSegments(segments, sl.s() - look_backward, sl.s() + look_forward,
extended_segments);
}
bool PncMap::ExtendSegments(const RouteSegments &segments, double start_s,
double end_s,
RouteSegments *const truncated_segments) const {
if (segments.empty()) {
AERROR << "The input segments is empty";
return false;
}
CHECK_NOTNULL(truncated_segments);
truncated_segments->SetProperties(segments);
if (start_s >= end_s) {
AERROR << "start_s(" << start_s << " >= end_s(" << end_s << ")";
return false;
}
std::unordered_set<std::string> unique_lanes;
static constexpr double kRouteEpsilon = 1e-3;
// Extend the trajectory towards the start of the trajectory.
if (start_s < 0) {
const auto &first_segment = *segments.begin();
auto lane = first_segment.lane;
double s = first_segment.start_s;
double extend_s = -start_s;
std::vector<LaneSegment> extended_lane_segments;
while (extend_s > kRouteEpsilon) {
if (s <= kRouteEpsilon) {
lane = GetRoutePredecessor(lane);
if (lane == nullptr ||
unique_lanes.find(lane->id().id()) != unique_lanes.end()) {
break;
}
s = lane->total_length();
} else {
const double length = std::min(s, extend_s);
extended_lane_segments.emplace_back(lane, s - length, s);
extend_s -= length;
s -= length;
unique_lanes.insert(lane->id().id());
}
}
truncated_segments->insert(truncated_segments->begin(),
extended_lane_segments.rbegin(),
extended_lane_segments.rend());
}
bool found_loop = false;
double router_s = 0;
for (const auto &lane_segment : segments) {
const double adjusted_start_s = std::max(
start_s - router_s + lane_segment.start_s, lane_segment.start_s);
const double adjusted_end_s =
std::min(end_s - router_s + lane_segment.start_s, lane_segment.end_s);
if (adjusted_start_s < adjusted_end_s) {
if (!truncated_segments->empty() &&
truncated_segments->back().lane->id().id() ==
lane_segment.lane->id().id()) {
truncated_segments->back().end_s = adjusted_end_s;
} else if (unique_lanes.find(lane_segment.lane->id().id()) ==
unique_lanes.end()) {
truncated_segments->emplace_back(lane_segment.lane, adjusted_start_s,
adjusted_end_s);
unique_lanes.insert(lane_segment.lane->id().id());
} else {
found_loop = true;
break;
}
}
router_s += (lane_segment.end_s - lane_segment.start_s);
if (router_s > end_s) {
break;
}
}
if (found_loop) {
return true;
}
// Extend the trajectory towards the end of the trajectory.
if (router_s < end_s && !truncated_segments->empty()) {
auto &back = truncated_segments->back();
if (back.lane->total_length() > back.end_s) {
double origin_end_s = back.end_s;
back.end_s =
std::min(back.end_s + end_s - router_s, back.lane->total_length());
router_s += back.end_s - origin_end_s;
}
}
auto last_lane = segments.back().lane;
while (router_s < end_s - kRouteEpsilon) {
last_lane = GetRouteSuccessor(last_lane);
if (last_lane == nullptr ||
unique_lanes.find(last_lane->id().id()) != unique_lanes.end()) {
break;
}
const double length = std::min(end_s - router_s, last_lane->total_length());
truncated_segments->emplace_back(last_lane, 0, length);
unique_lanes.insert(last_lane->id().id());
router_s += length;
}
return true;
}
void PncMap::AppendLaneToPoints(LaneInfoConstPtr lane, const double start_s,
const double end_s,
std::vector<MapPathPoint> *const points) {
if (points == nullptr || start_s >= end_s) {
return;
}
double accumulate_s = 0.0;
for (size_t i = 0; i < lane->points().size(); ++i) {
if (accumulate_s >= start_s && accumulate_s <= end_s) {
points->emplace_back(lane->points()[i], lane->headings()[i],
LaneWaypoint(lane, accumulate_s));
}
if (i < lane->segments().size()) {
const auto &segment = lane->segments()[i];
const double next_accumulate_s = accumulate_s + segment.length();
if (start_s > accumulate_s && start_s < next_accumulate_s) {
points->emplace_back(segment.start() + segment.unit_direction() *
(start_s - accumulate_s),
lane->headings()[i], LaneWaypoint(lane, start_s));
}
if (end_s > accumulate_s && end_s < next_accumulate_s) {
points->emplace_back(
segment.start() + segment.unit_direction() * (end_s - accumulate_s),
lane->headings()[i], LaneWaypoint(lane, end_s));
}
accumulate_s = next_accumulate_s;
}
if (accumulate_s > end_s) {
break;
}
}
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/route_segments.h | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
/**
* @file
**/
#pragma once
#include <limits>
#include <string>
#include <vector>
#include "modules/common_msgs/basic_msgs/pnc_point.pb.h"
#include "modules/common_msgs/routing_msgs/routing.pb.h"
#include "modules/common/vehicle_state/proto/vehicle_state.pb.h"
#include "modules/map/hdmap/hdmap.h"
#include "modules/map/pnc_map/path.h"
namespace apollo {
namespace hdmap {
/**
* @brief class RouteSegments
*
* This class is a representation of the Passage type in routing.proto.
* It is extended from a passage region, but keeps some properties of the
* passage, such as the last end LaneWaypoint of the original passage region
* (route_end_waypoint), whether the passage can lead to another passage in
* routing (can_exit_).
* This class contains the original data that can be used to generate
* hdmap::Path.
**/
class RouteSegments : public std::vector<LaneSegment> {
public:
/**
* The default constructor.
**/
RouteSegments() = default;
/**
* Get the next change lane action need to take by the vehicle, if the vehicle
* is on this RouteSegments.
* --- If the vehicle does not need to change lane, then change_lane_type ==
* routing::FORWARD;
* --- If the vehicle need to change to left lane according to routing, then
* change_lane_type_ == routing::LEFT;
* --- If the vehicle need to change to right lane according to routing, then
* change_lane_type_ == routing::RIGHT;
*/
routing::ChangeLaneType NextAction() const;
void SetNextAction(routing::ChangeLaneType action);
/**
* Get the previous change lane action need to take by the vehicle to reach
* current segment, if the vehicle is not on this RouteSegments.
* If the vehicle is already on this segment, or does not need to change lane
* to reach this segment, then change_lane_type = routing::FORWARD;
* If the vehicle need to change to left to reach this segment, then
* change_lane_type_ = routing::LEFT;
* If the vehicle need to change to right to reach this segment, then
* change_lane_type_ = routing::RIGHT;
*/
routing::ChangeLaneType PreviousAction() const;
void SetPreviousAction(routing::ChangeLaneType action);
/**
* Whether the passage region that generate this route segment can lead to
* another passage region in route.
*/
bool CanExit() const;
void SetCanExit(bool can_exit);
/**
* Project a point to this route segment.
* @param point_enu a map point, or point, which is a Vec2d point
* @param s return the longitudinal s relative to the route segment.
* @param l return the lateral distance relative to the route segment.
* @param waypoint return the LaneWaypoint, which has lane and lane_s on the
* route segment.
* @return false if error happened or projected outside of the lane segments.
*/
bool GetProjection(const common::PointENU &point_enu,
common::SLPoint *sl_point, LaneWaypoint *waypoint) const;
bool GetProjection(const common::math::Vec2d &point,
common::SLPoint *sl_point, LaneWaypoint *waypoint) const;
bool GetWaypoint(const double s, LaneWaypoint *waypoint) const;
/**
* @brief Check whether the map allows a vehicle can reach current
* RouteSegment from a point on a lane (LaneWaypoint).
* @param waypoint the start waypoint
* @return true if the map allows a vehicle to drive from waypoint to
* current RouteSegment. Otherwise false.
*/
bool CanDriveFrom(const LaneWaypoint &waypoint) const;
/*
* This is the point that is the end of the original passage in routing.
* It is used to check if the vehicle is out of current routing.
* The LaneWaypoint.lane is nullptr if the end of the passage is not on the
* RouteSegment.
*/
const LaneWaypoint &RouteEndWaypoint() const;
void SetRouteEndWaypoint(const LaneWaypoint &waypoint);
/** Stitch current route segments with the other route segment.
* Example 1
* this: |--------A-----x-----B------|
* other: |-----B------x--------C-------|
* Result: |--------A-----x-----B------x--------C-------|
* In the above example, A-B is current route segments, and B-C is the other
* route segments. We update current route segments to A-B-C.
*
* Example 2
* this: |-----A------x--------B-------|
* other: |--------C-----x-----A------|
* Result: |--------C-----x-----A------x--------B-------|
* In the above example, A-B is current route segments, and C-A is the other
* route segments. We update current route segments to C-A-B
*
* @return false if these two reference line cannot be stitched
*/
bool Stitch(const RouteSegments &other);
bool Shrink(const common::math::Vec2d &point, const double look_backward,
const double look_forward);
bool Shrink(const double s, const double look_backward,
const double look_forward);
bool Shrink(const double s, const LaneWaypoint &waypoint,
const double look_backward, const double look_forward);
bool IsOnSegment() const;
void SetIsOnSegment(bool on_segment);
bool IsNeighborSegment() const;
void SetIsNeighborSegment(bool is_neighbor);
void SetId(const std::string &id);
const std::string &Id() const;
/**
* Get the first waypoint from the lane segments.
*/
LaneWaypoint FirstWaypoint() const;
/**
* Get the last waypoint from the lane segments.
*/
LaneWaypoint LastWaypoint() const;
/**
* @brief Check if a waypoint is on segment
*/
bool IsWaypointOnSegment(const LaneWaypoint &waypoint) const;
/**
* @brief Check if we can reach the other segment from current segment just
* by following lane.
* @param other Another route segment
*/
bool IsConnectedSegment(const RouteSegments &other) const;
bool StopForDestination() const;
void SetStopForDestination(bool stop_for_destination);
/**
* @brief Copy the properties of other segments to current one
*/
void SetProperties(const RouteSegments &other);
static bool WithinLaneSegment(const LaneSegment &lane_segment,
const LaneWaypoint &waypoint);
static bool WithinLaneSegment(const LaneSegment &lane_segment,
const routing::LaneWaypoint &waypoint);
static bool WithinLaneSegment(const routing::LaneSegment &lane_segment,
const LaneWaypoint &waypoint);
static bool WithinLaneSegment(const routing::LaneSegment &lane_segment,
const routing::LaneWaypoint &waypoint);
static double Length(const RouteSegments &segments);
private:
LaneWaypoint route_end_waypoint_;
/**
* whether this segment can lead to another passage region in routing
*/
bool can_exit_ = false;
/**
* Indicates whether the vehicle is on current RouteSegment.
**/
bool is_on_segment_ = false;
/**
* Indicates whether current routeSegment is the neighbor of vehicle
* routeSegment.
**/
bool is_neighbor_ = false;
routing::ChangeLaneType next_action_ = routing::FORWARD;
routing::ChangeLaneType previous_action_ = routing::FORWARD;
std::string id_;
/**
* Whether the vehicle should stop for destination. In a routing that has
* loops, the adc may pass by destination many times, but it only need to stop
* for destination in the last loop.
*/
bool stop_for_destination_ = false;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/cuda_util.h | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include <vector>
#if GPU_PLATFORM == NVIDIA
#include <cuda_runtime_api.h>
#include <cublas_v2.h>
#elif GPU_PLATFORM == AMD
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <hipblas.h>
#define cudaError_t hipError_t
#define cudaFree hipFree
#define cudaMalloc hipMalloc
#define cudaMemcpy hipMemcpy
#define cudaMemcpyHostToDevice hipMemcpyHostToDevice
#define cudaSuccess hipSuccess
#define CUBLAS_STATUS_SUCCESS HIPBLAS_STATUS_SUCCESS
#define cublasCreate hipblasCreate
#define cublasHandle_t hipblasHandle_t
#define cublasIdamin hipblasIdamin
#define cublasStatus_t hipblasStatus_t
#endif
#include "modules/common/math/line_segment2d.h"
#include "modules/common/math/vec2d.h"
namespace apollo {
namespace pnc_map {
struct CudaLineSegment2d {
double x1;
double y1;
double x2;
double y2;
};
class CudaNearestSegment {
public:
CudaNearestSegment();
bool UpdateLineSegment(
const std::vector<apollo::common::math::LineSegment2d>& segments);
int FindNearestSegment(double x, double y);
~CudaNearestSegment();
private:
std::size_t size_ = 0;
CudaLineSegment2d* host_seg_;
double* dev_dist_;
CudaLineSegment2d* dev_seg_;
cublasHandle_t handle_;
};
} // namespace pnc_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/route_segments.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
/**
* @file:
**/
#include "modules/map/pnc_map/route_segments.h"
#include <algorithm>
#include "modules/common/util/util.h"
namespace apollo {
namespace hdmap {
namespace {
// Minimum error in lane segmentation.
constexpr double kSegmentationEpsilon = 0.2;
} // namespace
const std::string &RouteSegments::Id() const { return id_; }
void RouteSegments::SetId(const std::string &id) { id_ = id; }
void RouteSegments::SetCanExit(bool can_exit) { can_exit_ = can_exit; }
bool RouteSegments::CanExit() const { return can_exit_; }
bool RouteSegments::StopForDestination() const { return stop_for_destination_; }
void RouteSegments::SetStopForDestination(bool stop_for_destination) {
stop_for_destination_ = stop_for_destination;
}
bool RouteSegments::WithinLaneSegment(const LaneSegment &lane_segment,
const LaneWaypoint &waypoint) {
return waypoint.lane &&
lane_segment.lane->id().id() == waypoint.lane->id().id() &&
lane_segment.start_s - kSegmentationEpsilon <= waypoint.s &&
lane_segment.end_s + kSegmentationEpsilon >= waypoint.s;
}
bool RouteSegments::WithinLaneSegment(const LaneSegment &lane_segment,
const routing::LaneWaypoint &waypoint) {
return lane_segment.lane && lane_segment.lane->id().id() == waypoint.id() &&
lane_segment.start_s - kSegmentationEpsilon <= waypoint.s() &&
lane_segment.end_s + kSegmentationEpsilon >= waypoint.s();
}
bool RouteSegments::WithinLaneSegment(const routing::LaneSegment &lane_segment,
const LaneWaypoint &waypoint) {
return waypoint.lane && lane_segment.id() == waypoint.lane->id().id() &&
lane_segment.start_s() - kSegmentationEpsilon <= waypoint.s &&
lane_segment.end_s() + kSegmentationEpsilon >= waypoint.s;
}
bool RouteSegments::WithinLaneSegment(const routing::LaneSegment &lane_segment,
const routing::LaneWaypoint &waypoint) {
return lane_segment.id() == waypoint.id() &&
lane_segment.start_s() - kSegmentationEpsilon <= waypoint.s() &&
lane_segment.end_s() + kSegmentationEpsilon >= waypoint.s();
}
bool RouteSegments::Stitch(const RouteSegments &other) {
auto first_waypoint = FirstWaypoint();
bool has_overlap = IsWaypointOnSegment(other.FirstWaypoint());
if (other.IsWaypointOnSegment(first_waypoint)) {
auto iter = other.begin();
while (iter != other.end() && !WithinLaneSegment(*iter, first_waypoint)) {
++iter;
}
begin()->start_s = std::min(begin()->start_s, iter->start_s);
begin()->end_s = std::max(begin()->end_s, iter->end_s);
insert(begin(), other.begin(), iter);
has_overlap = true;
}
auto last_waypoint = LastWaypoint();
if (other.IsWaypointOnSegment(last_waypoint)) {
auto iter = other.rbegin();
while (iter != other.rend() && !WithinLaneSegment(*iter, last_waypoint)) {
++iter;
}
back().start_s = std::min(back().start_s, iter->start_s);
back().end_s = std::max(back().end_s, iter->end_s);
insert(end(), iter.base(), other.end());
has_overlap = true;
}
return has_overlap;
}
const LaneWaypoint &RouteSegments::RouteEndWaypoint() const {
return route_end_waypoint_;
}
bool RouteSegments::IsOnSegment() const { return is_on_segment_; }
void RouteSegments::SetIsOnSegment(bool on_segment) {
is_on_segment_ = on_segment;
}
bool RouteSegments::IsNeighborSegment() const { return is_neighbor_; }
void RouteSegments::SetIsNeighborSegment(bool is_neighbor) {
is_neighbor_ = is_neighbor;
}
void RouteSegments::SetRouteEndWaypoint(const LaneWaypoint &waypoint) {
route_end_waypoint_ = waypoint;
}
LaneWaypoint RouteSegments::FirstWaypoint() const {
return LaneWaypoint(front().lane, front().start_s, 0.0);
}
LaneWaypoint RouteSegments::LastWaypoint() const {
return LaneWaypoint(back().lane, back().end_s, 0.0);
}
void RouteSegments::SetProperties(const RouteSegments &other) {
route_end_waypoint_ = other.RouteEndWaypoint();
can_exit_ = other.CanExit();
is_on_segment_ = other.IsOnSegment();
next_action_ = other.NextAction();
previous_action_ = other.PreviousAction();
id_ = other.Id();
stop_for_destination_ = other.StopForDestination();
}
double RouteSegments::Length(const RouteSegments &segments) {
double s = 0.0;
for (const auto &seg : segments) {
s += seg.Length();
}
return s;
}
bool RouteSegments::GetProjection(const common::PointENU &point_enu,
common::SLPoint *sl_point,
LaneWaypoint *waypoint) const {
return GetProjection({point_enu.x(), point_enu.y()}, sl_point, waypoint);
}
bool RouteSegments::IsConnectedSegment(const RouteSegments &other) const {
if (empty() || other.empty()) {
return false;
}
if (IsWaypointOnSegment(other.FirstWaypoint())) {
return true;
}
if (IsWaypointOnSegment(other.LastWaypoint())) {
return true;
}
if (other.IsWaypointOnSegment(FirstWaypoint())) {
return true;
}
if (other.IsWaypointOnSegment(LastWaypoint())) {
return true;
}
return false;
}
bool RouteSegments::Shrink(const common::math::Vec2d &point,
const double look_backward,
const double look_forward) {
common::SLPoint sl_point;
LaneWaypoint waypoint;
if (!GetProjection(point, &sl_point, &waypoint)) {
AERROR << "failed to project " << point.DebugString() << " to segment";
return false;
}
return Shrink(sl_point.s(), look_backward, look_forward);
}
bool RouteSegments::Shrink(const double s, const double look_backward,
const double look_forward) {
LaneWaypoint waypoint;
if (!GetWaypoint(s, &waypoint)) {
return false;
}
return Shrink(s, waypoint, look_backward, look_forward);
}
bool RouteSegments::Shrink(const double s, const LaneWaypoint &waypoint,
const double look_backward,
const double look_forward) {
double acc_s = 0.0;
auto iter = begin();
while (iter != end() && acc_s + iter->Length() < s - look_backward) {
acc_s += iter->Length();
++iter;
}
if (iter == end()) {
return true;
}
iter->start_s =
std::max(iter->start_s, s - look_backward - acc_s + iter->start_s);
if (iter->Length() < kSegmentationEpsilon) {
++iter;
}
erase(begin(), iter);
iter = begin();
acc_s = 0.0;
while (iter != end() && !WithinLaneSegment(*iter, waypoint)) {
++iter;
}
if (iter == end()) {
return true;
}
acc_s = iter->end_s - waypoint.s;
if (acc_s >= look_forward) {
iter->end_s = waypoint.s + look_forward;
++iter;
erase(iter, end());
return true;
}
++iter;
while (iter != end() && acc_s + iter->Length() < look_forward) {
acc_s += iter->Length();
++iter;
}
if (iter == end()) {
return true;
}
iter->end_s = std::min(iter->end_s, look_forward - acc_s + iter->start_s);
erase(iter + 1, end());
return true;
}
bool RouteSegments::GetWaypoint(const double s, LaneWaypoint *waypoint) const {
double accumulated_s = 0.0;
bool has_projection = false;
for (auto iter = begin(); iter != end();
accumulated_s += (iter->end_s - iter->start_s), ++iter) {
if (accumulated_s - kSegmentationEpsilon < s &&
s < accumulated_s + iter->end_s - iter->start_s +
kSegmentationEpsilon) {
waypoint->lane = iter->lane;
waypoint->s = s - accumulated_s + iter->start_s;
if (waypoint->s < iter->start_s) {
waypoint->s = iter->start_s;
} else if (waypoint->s > iter->end_s) {
waypoint->s = iter->end_s;
}
has_projection = true;
break;
}
}
return has_projection;
}
bool RouteSegments::GetProjection(const common::math::Vec2d &point,
common::SLPoint *sl_point,
LaneWaypoint *waypoint) const {
double min_l = std::numeric_limits<double>::infinity();
double accumulated_s = 0.0;
bool has_projection = false;
for (auto iter = begin(); iter != end();
accumulated_s += (iter->end_s - iter->start_s), ++iter) {
double lane_s = 0.0;
double lane_l = 0.0;
if (!iter->lane->GetProjection(point, &lane_s, &lane_l)) {
AERROR << "Failed to get projection from point " << point.DebugString()
<< " on lane " << iter->lane->id().id();
return false;
}
if (lane_s < iter->start_s - kSegmentationEpsilon ||
lane_s > iter->end_s + kSegmentationEpsilon) {
continue;
}
if (std::fabs(lane_l) < min_l) {
has_projection = true;
lane_s = std::max(iter->start_s, lane_s);
lane_s = std::min(iter->end_s, lane_s);
min_l = std::fabs(lane_l);
sl_point->set_l(lane_l);
sl_point->set_s(lane_s - iter->start_s + accumulated_s);
waypoint->lane = iter->lane;
waypoint->s = lane_s;
}
}
return has_projection;
}
void RouteSegments::SetPreviousAction(routing::ChangeLaneType action) {
previous_action_ = action;
}
routing::ChangeLaneType RouteSegments::PreviousAction() const {
return previous_action_;
}
void RouteSegments::SetNextAction(routing::ChangeLaneType action) {
next_action_ = action;
}
routing::ChangeLaneType RouteSegments::NextAction() const {
return next_action_;
}
bool RouteSegments::IsWaypointOnSegment(const LaneWaypoint &waypoint) const {
for (auto iter = begin(); iter != end(); ++iter) {
if (WithinLaneSegment(*iter, waypoint)) {
return true;
}
}
return false;
}
bool RouteSegments::CanDriveFrom(const LaneWaypoint &waypoint) const {
auto point = waypoint.lane->GetSmoothPoint(waypoint.s);
// 0 if waypoint is on segment, ok
if (IsWaypointOnSegment(waypoint)) {
return true;
}
// 1. should have valid projection.
LaneWaypoint segment_waypoint;
common::SLPoint route_sl;
bool has_projection = GetProjection(point, &route_sl, &segment_waypoint);
if (!has_projection) {
AERROR << "No projection from waypoint: " << waypoint.DebugString();
return false;
}
static constexpr double kMaxLaneWidth = 10.0;
if (std::fabs(route_sl.l()) > 2 * kMaxLaneWidth) {
return false;
}
// 2. heading should be the same.
double waypoint_heading = waypoint.lane->Heading(waypoint.s);
double segment_heading = segment_waypoint.lane->Heading(segment_waypoint.s);
double heading_diff =
common::math::AngleDiff(waypoint_heading, segment_heading);
if (std::fabs(heading_diff) > M_PI / 2) {
ADEBUG << "Angle diff too large:" << heading_diff;
return false;
}
// 3. the waypoint and the projected lane should not be separated apart.
double waypoint_left_width = 0.0;
double waypoint_right_width = 0.0;
waypoint.lane->GetWidth(waypoint.s, &waypoint_left_width,
&waypoint_right_width);
double segment_left_width = 0.0;
double segment_right_width = 0.0;
segment_waypoint.lane->GetWidth(segment_waypoint.s, &segment_left_width,
&segment_right_width);
auto segment_projected_point =
segment_waypoint.lane->GetSmoothPoint(segment_waypoint.s);
double dist = common::util::DistanceXY(point, segment_projected_point);
const double kLaneSeparationDistance = 0.3;
if (route_sl.l() < 0) { // waypoint at right side
if (dist >
waypoint_left_width + segment_right_width + kLaneSeparationDistance) {
AERROR << "waypoint is too far to reach: " << dist;
return false;
}
} else { // waypoint at left side
if (dist >
waypoint_right_width + segment_left_width + kLaneSeparationDistance) {
AERROR << "waypoint is too far to reach: " << dist;
return false;
}
}
return true;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/pnc_map.h | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
/**
* @file:
**/
#pragma once
#include <list>
#include <string>
#include <unordered_set>
#include <vector>
#include "gtest/gtest_prod.h"
#include "modules/common_msgs/routing_msgs/routing.pb.h"
#include "modules/common/vehicle_state/proto/vehicle_state.pb.h"
#include "modules/map/hdmap/hdmap.h"
#include "modules/map/pnc_map/path.h"
#include "modules/map/pnc_map/route_segments.h"
DECLARE_double(look_backward_distance);
DECLARE_double(look_forward_short_distance);
DECLARE_double(look_forward_long_distance);
namespace apollo {
namespace hdmap {
class PncMap {
public:
virtual ~PncMap() = default;
explicit PncMap(const HDMap *hdmap);
const hdmap::HDMap *hdmap() const;
bool UpdateRoutingResponse(const routing::RoutingResponse &routing_response);
const routing::RoutingResponse &routing_response() const;
static double LookForwardDistance(const double velocity);
bool GetRouteSegments(const common::VehicleState &vehicle_state,
const double backward_length,
const double forward_length,
std::list<RouteSegments> *const route_segments);
/**
* @brief use heuristic forward length and backward length
*/
bool GetRouteSegments(const common::VehicleState &vehicle_state,
std::list<RouteSegments> *const route_segments);
/**
* Check if the routing is the same as existing one in PncMap
*/
bool IsNewRouting(const routing::RoutingResponse &routing_response) const;
static bool IsNewRouting(const routing::RoutingResponse &prev,
const routing::RoutingResponse &routing_response);
bool ExtendSegments(const RouteSegments &segments,
const common::PointENU &point, double look_forward,
double look_backward, RouteSegments *extended_segments);
bool ExtendSegments(const RouteSegments &segments, double start_s,
double end_s,
RouteSegments *const truncated_segments) const;
std::vector<routing::LaneWaypoint> FutureRouteWaypoints() const;
private:
bool UpdateVehicleState(const common::VehicleState &vehicle_state);
/**
* @brief Find the waypoint index of a routing waypoint. It updates
* adc_route_index_
* @return index out of range if cannot find waypoint on routing, otherwise
* an index in range [0, route_indices.size());
*/
int GetWaypointIndex(const LaneWaypoint &waypoint) const;
bool GetNearestPointFromRouting(const common::VehicleState &point,
LaneWaypoint *waypoint) const;
bool PassageToSegments(routing::Passage passage,
RouteSegments *segments) const;
bool ProjectToSegments(const common::PointENU &point_enu,
const RouteSegments &segments,
LaneWaypoint *waypoint) const;
static bool ValidateRouting(const routing::RoutingResponse &routing);
static void AppendLaneToPoints(LaneInfoConstPtr lane, const double start_s,
const double end_s,
std::vector<MapPathPoint> *const points);
LaneInfoConstPtr GetRoutePredecessor(LaneInfoConstPtr lane) const;
LaneInfoConstPtr GetRouteSuccessor(LaneInfoConstPtr lane) const;
/**
* Return the neighbor passages from passage with index start_passage on road.
* @param road the road information from routing
* @param start_passage the passsage index in road
* @return all the indices of the neighboring passages, including
* start_passage.
*/
std::vector<int> GetNeighborPassages(const routing::RoadSegment &road,
int start_passage) const;
/**
* @brief convert a routing waypoint to lane waypoint
* @return empty LaneWaypoint if the lane id cannot be found on map, otherwise
* return a valid LaneWaypoint with lane ptr and s.
*/
LaneWaypoint ToLaneWaypoint(const routing::LaneWaypoint &waypoint) const;
/**
* @brief convert a routing segment to lane segment
* @return empty LaneSegmetn if the lane id cannot be found on map, otherwise
* return a valid LaneSegment with lane ptr, start_s and end_s
*/
LaneSegment ToLaneSegment(const routing::LaneSegment &segment) const;
/**
* @brief Update routing waypoint index to the next waypoint that ADC need to
* pass. The logic is by comparing the current waypoint's route index with
* route_index and adc_waypoint_:
* a. If the waypoint's route_index < route_index_, ADC must have passed
* the waypoint.
* b. If the waypoint's route_index == route_index_, ADC and the waypoint
* is on the same lane, compare the lane_s.
*/
void UpdateNextRoutingWaypointIndex(int cur_index);
/**
* @brief find the index of waypoint by looking forward from index start.
* @return empty vector if not found, otherwise return a vector { road_index,
* passage_index, lane_index}
*/
int SearchForwardWaypointIndex(int start, const LaneWaypoint &waypoint) const;
int SearchBackwardWaypointIndex(int start,
const LaneWaypoint &waypoint) const;
void UpdateRoutingRange(int adc_index);
private:
routing::RoutingResponse routing_;
struct RouteIndex {
LaneSegment segment;
std::array<int, 3> index;
};
std::vector<RouteIndex> route_indices_;
int range_start_ = 0;
int range_end_ = 0;
// routing ids in range
std::unordered_set<std::string> range_lane_ids_;
std::unordered_set<std::string> all_lane_ids_;
/**
* The routing request waypoints
*/
struct WaypointIndex {
LaneWaypoint waypoint;
int index;
WaypointIndex(const LaneWaypoint &waypoint, int index)
: waypoint(waypoint), index(index) {}
};
// return the segment of an index
int NextWaypointIndex(int index) const;
std::vector<WaypointIndex> routing_waypoint_index_;
/**
* The next routing request waypoint index in routing_waypoint_index_
*/
std::size_t next_routing_waypoint_index_ = 0;
const hdmap::HDMap *hdmap_ = nullptr;
bool is_same_routing_ = false;
/**
* The state of the adc
*/
common::VehicleState adc_state_;
/**
* A three element index: {road_index, passage_index, lane_index}
*/
int adc_route_index_ = -1;
/**
* The waypoint of the autonomous driving car
*/
LaneWaypoint adc_waypoint_;
/**
* @brief Indicates whether the adc should start consider destination.
* In a looped routing, the vehicle may need to pass by the destination
* point
* may times on the road, but only need to stop when it encounters
* destination
* for the last time.
*/
bool stop_for_destination_ = false;
FRIEND_TEST(PncMapTest, UpdateRouting);
FRIEND_TEST(PncMapTest, GetNearestPointFromRouting);
FRIEND_TEST(PncMapTest, UpdateWaypointIndex);
FRIEND_TEST(PncMapTest, UpdateNextRoutingWaypointIndex);
FRIEND_TEST(PncMapTest, GetNeighborPassages);
FRIEND_TEST(PncMapTest, NextWaypointIndex);
FRIEND_TEST(PncMapTest, SearchForwardIndex_SearchBackwardIndex);
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/BUILD | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
load("//third_party/gpus:common.bzl", "gpu_library", "if_cuda", "if_rocm")
load("//tools:cpplint.bzl", "cpplint")
load("//tools/install:install.bzl", "install")
package(default_visibility = ["//visibility:public"])
MAP_COPTS = ["-DMODULE_NAME=\\\"map\\\""]
PLANNING_COPTS = ["-DMODULE_NAME=\\\"planning\\\""]
install(
name = "install",
library_dest = "map/lib",
targets = [":libpnc_map.so"],
visibility = ["//visibility:public"],
)
gpu_library(
name = "cuda_pnc_util",
srcs = ["cuda_util.cu"],
hdrs = ["cuda_util.h"],
deps = [
"//cyber",
"//modules/common/math",
] + if_cuda([
"@local_config_cuda//cuda:cudart",
]) + if_rocm([
"@local_config_rocm//rocm:hip",
"@local_config_rocm//rocm:rocm_headers",
"@local_config_rocm//rocm:hipblas",
]),
tags = ["exclude"]
)
cc_test(
name = "cuda_util_test",
size = "small",
srcs = [
"cuda_util.h",
"cuda_util_test.cc",
":cuda_pnc_util",
],
deps = [
"//modules/common/math",
"@com_google_googletest//:gtest_main",
] + if_cuda([
"@local_config_cuda//cuda:cublas",
"@local_config_cuda//cuda:cuda_headers",
"@local_config_cuda//cuda:cudart",
]) + if_rocm([
"@local_config_rocm//rocm:hipblas",
"@local_config_rocm//rocm:rocm_headers",
"@local_config_rocm//rocm:hip",
]),
tags = ["exclude"],
linkstatic = True,
)
cc_library(
name = "path",
srcs = ["path.cc"],
hdrs = ["path.h"],
copts = PLANNING_COPTS,
deps = [
"//cyber",
"//modules/common_msgs/map_msgs:map_lane_cc_proto",
"//modules/common/math",
"//modules/common/util:util_tool",
"//modules/map/hdmap:hdmap_util",
"//modules/map/hdmap",
"@com_google_absl//:absl",
],
)
cc_library(
name = "route_segments",
srcs = ["route_segments.cc"],
hdrs = ["route_segments.h"],
copts = MAP_COPTS,
deps = [
":path",
"//modules/common_msgs/basic_msgs:pnc_point_cc_proto",
"//modules/common_msgs/routing_msgs:routing_cc_proto",
"//modules/common/util",
"//modules/common/vehicle_state/proto:vehicle_state_cc_proto",
"//modules/map/hdmap",
],
)
cc_binary(
name = "libpnc_map.so",
srcs = [
"pnc_map.cc",
"pnc_map.h",
],
linkshared = True,
linkstatic = True,
copts = [
"-DMODULE_NAME=\\\"planning\\\"",
],
deps = [
":path",
":route_segments",
"//cyber",
"//modules/common_msgs/map_msgs:map_id_cc_proto",
"//modules/common_msgs/routing_msgs:routing_cc_proto",
"//modules/common/configs:config_gflags",
"//modules/common/util:util_tool",
"//modules/common/util",
"//modules/common/vehicle_state/proto:vehicle_state_cc_proto",
"//modules/map/hdmap:hdmap_util",
"//modules/map/hdmap",
"@com_google_absl//:absl",
"@com_google_googletest//:gtest",
"@com_google_protobuf//:protobuf",
],
)
cc_library(
name = "pnc_map",
srcs = ["libpnc_map.so"],
hdrs = [
"path.h",
"pnc_map.h",
"route_segments.h",
],
copts = [
"-DMODULE_NAME=\\\"planning\\\"",
],
deps = [
"//cyber",
"//modules/common_msgs/basic_msgs:pnc_point_cc_proto",
"//modules/common_msgs/map_msgs:map_lane_cc_proto",
"//modules/common_msgs/routing_msgs:routing_cc_proto",
"//modules/common/configs:config_gflags",
"//modules/common/math",
"//modules/common/util:util_tool",
"//modules/common/util",
"//modules/common/vehicle_state/proto:vehicle_state_cc_proto",
"//modules/map/hdmap:hdmap_util",
"//modules/map/hdmap",
"@com_google_absl//:absl",
"@com_google_googletest//:gtest",
"@com_google_protobuf//:protobuf",
],
)
filegroup(
name = "testdata",
srcs = glob([
"testdata/**",
]),
)
cc_test(
name = "pnc_path_test",
size = "small",
srcs = ["path_test.cc"],
deps = [
":path",
"//modules/common/util",
"//modules/common_msgs/routing_msgs:routing_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "pnc_map_test",
size = "small",
srcs = ["pnc_map_test.cc"],
data = [
":testdata",
"//modules/map/data:map_sunnyvale_loop",
],
deps = [
":pnc_map",
"//modules/common/util",
"@com_google_googletest//:gtest_main",
],
linkstatic = True,
)
cc_test(
name = "route_segments_test",
size = "small",
srcs = ["route_segments_test.cc"],
data = [
":testdata",
"//modules/map/data:map_sunnyvale_loop",
],
deps = [
":route_segments",
"//modules/common/util",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/path_test.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/path.h"
#include <string>
#include "absl/strings/str_cat.h"
#include "gtest/gtest.h"
#include "modules/map/hdmap/hdmap.h"
#include "modules/common_msgs/routing_msgs/routing.pb.h"
using Point = apollo::common::PointENU;
using AABox2d = apollo::common::math::AABox2d;
using Vec2d = apollo::common::math::Vec2d;
namespace apollo {
namespace hdmap {
namespace {
Point MakePoint(double x, double y, double z) {
Point pt;
pt.set_x(x);
pt.set_y(y);
pt.set_z(z);
return pt;
}
LaneSampleAssociation MakeSample(double s, double width) {
LaneSampleAssociation sample;
sample.set_s(s);
sample.set_width(width);
return sample;
}
MapPathPoint MakeMapPathPoint(double x, double y, double heading = 0) {
return MapPathPoint({x, y}, heading);
}
int RandomInt(int s, int t) {
if (s >= t) {
return s;
}
return s + rand() % (t - s + 1); // NOLINT
}
double RandomDouble(double s, double t) {
return s + (t - s) / 16383.0 * (rand() & 16383); // NOLINT
}
} // namespace
TEST(TestSuite, LaneSegment) {
Lane lane1;
{
lane1.mutable_id()->set_id("lane1");
auto* line_segment =
lane1.mutable_central_curve()->add_segment()->mutable_line_segment();
*line_segment->add_point() = MakePoint(0, 0, 0);
*line_segment->add_point() = MakePoint(0, 3, 0);
lane1.set_length(3.0);
*lane1.add_left_sample() = MakeSample(0.0, 4.0);
*lane1.add_left_sample() = MakeSample(1.0, 5.0);
*lane1.add_left_sample() = MakeSample(3.0, 6.0);
*lane1.add_right_sample() = MakeSample(0.0, 7.0);
*lane1.add_right_sample() = MakeSample(2.0, 8.0);
*lane1.add_right_sample() = MakeSample(3.0, 5.0);
}
LaneInfoConstPtr lane_info1(new LaneInfo(lane1));
Lane lane2;
{
lane2.mutable_id()->set_id("lane2");
auto* line_segment =
lane2.mutable_central_curve()->add_segment()->mutable_line_segment();
*line_segment->add_point() = MakePoint(0, 0, 0);
*line_segment->add_point() = MakePoint(0, 3, 0);
lane2.set_length(3.0);
*lane2.add_left_sample() = MakeSample(0.0, 4.0);
*lane2.add_left_sample() = MakeSample(1.0, 5.0);
*lane2.add_left_sample() = MakeSample(3.0, 6.0);
*lane2.add_right_sample() = MakeSample(0.0, 7.0);
*lane2.add_right_sample() = MakeSample(2.0, 8.0);
*lane2.add_right_sample() = MakeSample(3.0, 5.0);
}
LaneInfoConstPtr lane_info2(new LaneInfo(lane2));
{ // one segment
std::vector<LaneSegment> segments;
segments.emplace_back(LaneSegment(lane_info1, 0, 1));
LaneSegment::Join(&segments);
EXPECT_EQ(1, segments.size());
EXPECT_EQ("lane1", segments[0].lane->id().id());
EXPECT_FLOAT_EQ(0, segments[0].start_s);
EXPECT_FLOAT_EQ(1, segments[0].end_s);
}
{ // two segments
std::vector<LaneSegment> segments;
segments.emplace_back(LaneSegment(lane_info1, 0, 1));
segments.emplace_back(LaneSegment(lane_info1, 2, 3));
LaneSegment::Join(&segments);
EXPECT_EQ(1, segments.size());
EXPECT_EQ("lane1", segments[0].lane->id().id());
EXPECT_FLOAT_EQ(0, segments[0].start_s);
EXPECT_FLOAT_EQ(3, segments[0].end_s);
}
{ // three segments
std::vector<LaneSegment> segments;
segments.emplace_back(LaneSegment(lane_info1, 0, 1));
segments.emplace_back(LaneSegment(lane_info1, 2, 3));
segments.emplace_back(LaneSegment(lane_info2, 0, 2));
LaneSegment::Join(&segments);
EXPECT_EQ(2, segments.size());
EXPECT_EQ("lane1", segments[0].lane->id().id());
EXPECT_FLOAT_EQ(0, segments[0].start_s);
EXPECT_FLOAT_EQ(3, segments[0].end_s);
EXPECT_EQ("lane2", segments[1].lane->id().id());
EXPECT_FLOAT_EQ(0, segments[1].start_s);
EXPECT_FLOAT_EQ(2, segments[1].end_s);
}
}
TEST(TestSuite, hdmap_line_path) {
Lane lane;
lane.mutable_id()->set_id("id");
auto* line_segment =
lane.mutable_central_curve()->add_segment()->mutable_line_segment();
*line_segment->add_point() = MakePoint(0, 0, 0);
*line_segment->add_point() = MakePoint(0, 3, 0);
lane.set_length(3.0);
*lane.add_left_sample() = MakeSample(0.0, 4.0);
*lane.add_left_sample() = MakeSample(1.0, 5.0);
*lane.add_left_sample() = MakeSample(3.0, 6.0);
*lane.add_right_sample() = MakeSample(0.0, 7.0);
*lane.add_right_sample() = MakeSample(2.0, 8.0);
*lane.add_right_sample() = MakeSample(3.0, 5.0);
LaneInfoConstPtr lane_info(new LaneInfo(lane));
std::vector<MapPathPoint> points{
MapPathPoint({0, 0}, M_PI_2, LaneWaypoint(lane_info, 0)),
MapPathPoint({0, 1}, M_PI_2, LaneWaypoint(lane_info, 1)),
MapPathPoint({0, 2}, M_PI_2, LaneWaypoint(lane_info, 2)),
MapPathPoint({0, 3}, M_PI_2, LaneWaypoint(lane_info, 3))};
const Path path(std::move(points), {}, 2.0);
EXPECT_EQ(path.num_points(), 4);
EXPECT_EQ(path.num_segments(), 3);
EXPECT_NEAR(path.path_points()[0].x(), 0, 1e-6);
EXPECT_NEAR(path.path_points()[0].y(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[0].x(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[0].y(), 1, 1e-6);
EXPECT_NEAR(path.accumulated_s()[0], 0, 1e-6);
EXPECT_NEAR(path.path_points()[1].x(), 0, 1e-6);
EXPECT_NEAR(path.path_points()[1].y(), 1, 1e-6);
EXPECT_NEAR(path.unit_directions()[1].x(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[1].y(), 1, 1e-6);
EXPECT_NEAR(path.accumulated_s()[1], 1, 1e-6);
EXPECT_NEAR(path.path_points()[2].x(), 0, 1e-6);
EXPECT_NEAR(path.path_points()[2].y(), 2, 1e-6);
EXPECT_NEAR(path.unit_directions()[2].x(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[2].y(), 1, 1e-6);
EXPECT_NEAR(path.accumulated_s()[2], 2, 1e-6);
EXPECT_NEAR(path.path_points()[3].x(), 0, 1e-6);
EXPECT_NEAR(path.path_points()[3].y(), 3, 1e-6);
EXPECT_NEAR(path.unit_directions()[3].x(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[3].y(), 1, 1e-6);
EXPECT_NEAR(path.accumulated_s()[3], 3, 1e-6);
EXPECT_EQ(path.segments().size(), 3);
const auto* path_approximation = path.approximation();
EXPECT_NEAR(path_approximation->max_error(), 2.0, 1e-6);
EXPECT_EQ(path_approximation->original_ids().size(), 2);
EXPECT_EQ(path_approximation->original_ids()[0], 0);
EXPECT_EQ(path_approximation->original_ids()[1], 3);
EXPECT_EQ(path.lane_segments().size(), 1);
EXPECT_EQ(path.lane_segments_to_next_point().size(), 3);
EXPECT_EQ(path.lane_segments_to_next_point()[0].lane->id().id(), "id");
EXPECT_NEAR(path.lane_segments_to_next_point()[0].start_s, 0.0, 1e-6);
EXPECT_NEAR(path.lane_segments_to_next_point()[0].end_s, 1.0, 1e-6);
EXPECT_EQ(path.lane_segments_to_next_point()[1].lane->id().id(), "id");
EXPECT_NEAR(path.lane_segments_to_next_point()[1].start_s, 1.0, 1e-6);
EXPECT_NEAR(path.lane_segments_to_next_point()[1].end_s, 2.0, 1e-6);
EXPECT_EQ(path.lane_segments_to_next_point()[2].lane->id().id(), "id");
EXPECT_NEAR(path.lane_segments_to_next_point()[2].start_s, 2.0, 1e-6);
EXPECT_NEAR(path.lane_segments_to_next_point()[2].end_s, 3.0, 1e-6);
MapPathPoint point = path.GetSmoothPoint({1, 0.5});
EXPECT_NEAR(point.x(), 0, 1e-6);
EXPECT_NEAR(point.y(), 1.5, 1e-6);
point = path.GetSmoothPoint(2.3);
EXPECT_NEAR(point.x(), 0, 1e-6);
EXPECT_NEAR(point.y(), 2.3, 1e-6);
point = path.GetSmoothPoint(-0.5);
EXPECT_NEAR(point.x(), 0, 1e-6);
EXPECT_NEAR(point.y(), 0, 1e-6);
point = path.GetSmoothPoint(10.0);
EXPECT_NEAR(point.x(), 0, 1e-6);
EXPECT_NEAR(point.y(), 3, 1e-6);
EXPECT_NEAR(path.GetSFromIndex({1, 0.4}), 1.4, 1e-6);
EXPECT_EQ(path.GetIndexFromS(2.6).id, 2);
EXPECT_NEAR(path.GetIndexFromS(2.6).offset, 0.6, 1e-6);
// Test GetLaneIndexFromS
EXPECT_EQ(path.GetLaneIndexFromS(-1.0).id, 0);
EXPECT_NEAR(path.GetLaneIndexFromS(-1.0).offset, 0.0, 1e-8);
EXPECT_EQ(path.GetLaneIndexFromS(1.0).id, 0);
EXPECT_NEAR(path.GetLaneIndexFromS(1.0).offset, 1.0, 1e-8);
EXPECT_EQ(path.GetLaneIndexFromS(5.0).id, 0);
EXPECT_NEAR(path.GetLaneIndexFromS(5.0).offset, 3.0, 1e-8);
double accumulate_s;
double lateral;
double distance;
EXPECT_TRUE(
path.GetNearestPoint({0.3, -1}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 0.0, 1e-6);
EXPECT_NEAR(lateral, -0.3, 1e-6);
EXPECT_NEAR(distance, hypot(0.3, 1.0), 1e-6);
EXPECT_TRUE(
path.GetNearestPoint({-0.5, 1.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.5, 1e-6);
EXPECT_NEAR(lateral, 0.5, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_TRUE(
path.GetNearestPoint({0.0, 3.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 3.0, 1e-6);
EXPECT_NEAR(lateral, 0.0, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_TRUE(
path.GetProjection({0.3, -1}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, -1.0, 1e-6);
EXPECT_NEAR(lateral, -0.3, 1e-6);
EXPECT_NEAR(distance, hypot(0.3, 1.0), 1e-6);
EXPECT_TRUE(
path.GetProjection({-0.5, 1.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.5, 1e-6);
EXPECT_NEAR(lateral, 0.5, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_TRUE(
path.GetProjection({0.0, 3.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 3.5, 1e-6);
EXPECT_NEAR(lateral, 0.0, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(-0.5), 4.0, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(0.0), 4.0, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(0.5), 4.5, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(1.0), 5.0, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(1.5), 5.25, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(2.0), 5.5, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(2.5), 5.75, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(3.0), 6.0, 1e-6);
EXPECT_NEAR(path.GetLaneLeftWidth(3.5), 6.0, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(-0.5), 7.0, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(0.0), 7.0, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(0.5), 7.25, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(1.0), 7.5, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(1.5), 7.75, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(2.0), 8.0, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(2.5), 6.5, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(3.0), 5.0, 1e-6);
EXPECT_NEAR(path.GetLaneRightWidth(3.5), 5.0, 1e-6);
}
TEST(TestSuite, hdmap_curvy_path) {
std::vector<MapPathPoint> points{
MakeMapPathPoint(2, 0), MakeMapPathPoint(2, 1), MakeMapPathPoint(1, 2),
MakeMapPathPoint(0, 2)};
Path path(std::move(points), {}, 2.0);
EXPECT_EQ(path.num_points(), 4);
EXPECT_EQ(path.num_segments(), 3);
EXPECT_NEAR(path.path_points()[0].x(), 2, 1e-6);
EXPECT_NEAR(path.path_points()[0].y(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[0].x(), 0, 1e-6);
EXPECT_NEAR(path.unit_directions()[0].y(), 1, 1e-6);
EXPECT_NEAR(path.accumulated_s()[0], 0, 1e-6);
EXPECT_NEAR(path.path_points()[1].x(), 2, 1e-6);
EXPECT_NEAR(path.path_points()[1].y(), 1, 1e-6);
EXPECT_NEAR(path.unit_directions()[1].x(), -0.5 * sqrt(2.0), 1e-6);
EXPECT_NEAR(path.unit_directions()[1].y(), 0.5 * sqrt(2.0), 1e-6);
EXPECT_NEAR(path.accumulated_s()[1], 1, 1e-6);
EXPECT_NEAR(path.path_points()[2].x(), 1, 1e-6);
EXPECT_NEAR(path.path_points()[2].y(), 2, 1e-6);
EXPECT_NEAR(path.unit_directions()[2].x(), -1, 1e-6);
EXPECT_NEAR(path.unit_directions()[2].y(), 0, 1e-6);
EXPECT_NEAR(path.accumulated_s()[2], 1 + sqrt(2.0), 1e-6);
EXPECT_NEAR(path.path_points()[3].x(), 0, 1e-6);
EXPECT_NEAR(path.path_points()[3].y(), 2, 1e-6);
EXPECT_NEAR(path.unit_directions()[3].x(), -1, 1e-6);
EXPECT_NEAR(path.unit_directions()[3].y(), 0, 1e-6);
EXPECT_NEAR(path.accumulated_s()[3], 2 + sqrt(2.0), 1e-6);
EXPECT_EQ(path.segments().size(), 3);
const auto* path_approximation = path.approximation();
EXPECT_NEAR(path_approximation->max_error(), 2.0, 1e-6);
EXPECT_EQ(path_approximation->original_ids().size(), 2);
EXPECT_EQ(path_approximation->original_ids()[0], 0);
EXPECT_EQ(path_approximation->original_ids()[1], 3);
EXPECT_EQ(path.lane_segments().size(), 0);
double accumulate_s;
double lateral;
double distance;
EXPECT_TRUE(
path.GetNearestPoint({1.5, 0.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 0.5, 1e-6);
EXPECT_NEAR(lateral, 0.5, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_TRUE(
path.GetNearestPoint({2.5, 1.1}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.0, 1e-6);
EXPECT_NEAR(distance, hypot(0.5, 0.1), 1e-6);
EXPECT_TRUE(
path.GetNearestPoint({1.6, 1.6}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.0 + 0.5 * sqrt(2.0), 1e-6);
EXPECT_NEAR(lateral, -0.1 * sqrt(2.0), 1e-6);
EXPECT_NEAR(distance, 0.1 * sqrt(2.0), 1e-6);
EXPECT_TRUE(
path.GetProjection({1.5, 0.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 0.5, 1e-6);
EXPECT_NEAR(lateral, 0.5, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_TRUE(
path.GetProjection({2.5, 1.1}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.0, 1e-6);
EXPECT_NEAR(distance, hypot(0.5, 0.1), 1e-6);
EXPECT_TRUE(
path.GetProjection({1.6, 1.6}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.0 + 0.5 * sqrt(2.0), 1e-6);
EXPECT_NEAR(lateral, -0.1 * sqrt(2.0), 1e-6);
EXPECT_NEAR(distance, 0.1 * sqrt(2.0), 1e-6);
EXPECT_NEAR(path.GetSFromIndex({-1, 0.5}), 0.0, 1e-6);
EXPECT_NEAR(path.GetSFromIndex({0, 0.5}), 0.5, 1e-6);
EXPECT_NEAR(path.GetSFromIndex({1, 0.5}), 1.5, 1e-6);
EXPECT_NEAR(path.GetSFromIndex({2, 0.5}), 1.5 + sqrt(2.0), 1e-6);
EXPECT_NEAR(path.GetSFromIndex({3, 0.0}), 2 + sqrt(2.0), 1e-6);
EXPECT_NEAR(path.GetSFromIndex({4, 0.0}), 2 + sqrt(2.0), 1e-6);
const auto& traj_points = path.path_points();
for (size_t i = 0; i < traj_points.size(); ++i) {
Vec2d point{traj_points[i].x(), traj_points[i].y()};
double heading = 0;
path.GetHeadingAlongPath(point, &heading);
EXPECT_NEAR(heading, traj_points[i].heading(), 1e-5);
}
// Test move constructor.
Path other_path(std::move(path));
const auto* other_path_approximation = other_path.approximation();
EXPECT_NEAR(other_path_approximation->max_error(), 2.0, 1e-6);
EXPECT_EQ(other_path_approximation->original_ids().size(), 2);
EXPECT_EQ(other_path_approximation->original_ids()[0], 0);
EXPECT_EQ(other_path_approximation->original_ids()[1], 3);
EXPECT_TRUE(
other_path.GetProjection({1.5, 0.5}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 0.5, 1e-6);
EXPECT_NEAR(lateral, 0.5, 1e-6);
EXPECT_NEAR(distance, 0.5, 1e-6);
EXPECT_TRUE(
other_path.GetProjection({2.5, 1.1}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.0, 1e-6);
EXPECT_NEAR(distance, hypot(0.5, 0.1), 1e-6);
EXPECT_TRUE(
other_path.GetProjection({1.6, 1.6}, &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 1.0 + 0.5 * sqrt(2.0), 1e-6);
EXPECT_NEAR(lateral, -0.1 * sqrt(2.0), 1e-6);
EXPECT_NEAR(distance, 0.1 * sqrt(2.0), 1e-6);
}
TEST(TestSuite, hdmap_circle_path) {
const double kRadius = 50.0;
const int kNumSegments = 100;
std::vector<MapPathPoint> points;
for (int i = 0; i <= kNumSegments; ++i) {
const double p =
M_PI_2 * static_cast<double>(i) / static_cast<double>(kNumSegments);
points.push_back(MakeMapPathPoint(kRadius * cos(p), kRadius * sin(p)));
}
const Path path(points, {}, 2.0);
EXPECT_EQ(path.num_points(), kNumSegments + 1);
EXPECT_EQ(path.num_segments(), kNumSegments);
EXPECT_EQ(path.path_points().size(), kNumSegments + 1);
EXPECT_EQ(path.lane_segments().size(), 0);
EXPECT_EQ(path.segments().size(), kNumSegments);
const auto* path_approximation = path.approximation();
EXPECT_NEAR(path_approximation->max_error(), 2.0, 1e-6);
EXPECT_EQ(path_approximation->original_ids().size(), 4);
EXPECT_EQ(path_approximation->original_ids()[0], 0);
EXPECT_EQ(path_approximation->original_ids()[1], 36);
EXPECT_EQ(path_approximation->original_ids()[2], 72);
EXPECT_EQ(path_approximation->original_ids()[3], 100);
const double total_length = path.accumulated_s().back();
const double kLargeEps = 0.1;
double accumulate_s;
double lateral;
double distance;
EXPECT_TRUE(path.GetProjection({kRadius + 1, -1}, &accumulate_s, &lateral,
&distance));
EXPECT_NEAR(accumulate_s, -1.0, kLargeEps);
EXPECT_NEAR(lateral, -1.0, kLargeEps);
EXPECT_NEAR(distance, sqrt(2.0), 1e-6);
EXPECT_TRUE(path.GetProjection({-1, kRadius - 1}, &accumulate_s, &lateral,
&distance));
EXPECT_NEAR(accumulate_s, total_length + 1.0, kLargeEps);
EXPECT_NEAR(lateral, 1.0, kLargeEps);
EXPECT_NEAR(distance, sqrt(2.0), 1e-6);
EXPECT_TRUE(
path.GetProjection({kRadius / sqrt(2.0) + 1, kRadius / sqrt(2.0) + 1},
&accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, total_length / 2.0, 1e-6);
EXPECT_NEAR(lateral, -sqrt(2.0), 1e-6);
EXPECT_NEAR(distance, sqrt(2.0), 1e-6);
EXPECT_TRUE(path.GetProjection({kRadius / sqrt(2.0), kRadius / sqrt(2.0)},
&accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, total_length / 2.0, 1e-6);
EXPECT_NEAR(lateral, 0.0, 1e-6);
EXPECT_NEAR(distance, 0.0, 1e-6);
// Randomly generated test cases on path.approximation.
const Path path_no_approximation(points, {});
for (int case_id = 0; case_id < 10000; ++case_id) {
const double x = RandomDouble(-kRadius * 0.5, kRadius * 1.5);
const double y = RandomDouble(-kRadius * 0.5, kRadius * 1.5);
EXPECT_TRUE(
path.GetNearestPoint({x, y}, &accumulate_s, &lateral, &distance));
double other_accumulate_s;
double other_lateral;
double other_distance;
EXPECT_TRUE(path_no_approximation.GetNearestPoint(
{x, y}, &other_accumulate_s, &other_lateral, &other_distance));
EXPECT_NEAR(distance, other_distance, 1e-6);
EXPECT_NEAR(path.GetSmoothPoint(accumulate_s).DistanceTo({x, y}), distance,
1e-6);
}
// Test path.get_smooth_point and get_s_from_index
for (int case_id = -10; case_id <= 80; ++case_id) {
const double ratio = static_cast<double>(case_id) / 70.0;
const double s = path.length() * ratio;
const auto index = path.GetIndexFromS(s);
const double angle = M_PI_2 / static_cast<double>(kNumSegments);
const double length = kRadius * sin(angle / 2.0) * 2.0;
if (s <= 0.0) {
EXPECT_EQ(0, index.id);
EXPECT_NEAR(0.0, index.offset, 1e-6);
} else if (s >= path.length()) {
EXPECT_EQ(kNumSegments, index.id);
EXPECT_NEAR(0.0, index.offset, 1e-6);
} else {
EXPECT_EQ(static_cast<int>(s / length), index.id);
EXPECT_NEAR(fmod(s, length), index.offset, 1e-6);
}
const MapPathPoint point = path.GetSmoothPoint(s);
Vec2d expected_point = points[index.id];
if (index.id + 1 < static_cast<int>(points.size())) {
Vec2d direction = points[index.id + 1] - points[index.id];
direction.Normalize();
expected_point += direction * index.offset;
}
EXPECT_NEAR(expected_point.x(), point.x(), 1e-6);
EXPECT_NEAR(expected_point.y(), point.y(), 1e-6);
}
// Test get_width, GetLaneLeftWidth, GetLaneRightWidth
double delta_s = 0.1;
double cur_s = 0.0;
while (cur_s < path.accumulated_s().back()) {
double lane_left_width = 0.0;
double lane_right_width = 0.0;
EXPECT_TRUE(path.GetLaneWidth(cur_s, &lane_left_width, &lane_right_width));
EXPECT_NEAR(lane_left_width, path.GetLaneLeftWidth(cur_s), 1e-6);
EXPECT_NEAR(lane_right_width, path.GetLaneRightWidth(cur_s), 1e-6);
cur_s += delta_s;
}
}
TEST(TestSuite, hdmap_jerky_path) {
const int kNumPaths = 100;
const int kCasesPerPath = 1000;
for (int path_id = 0; path_id < kNumPaths; ++path_id) {
const int num_segments = RandomInt(50, 100);
const double average_segment_length = RandomDouble(0.5, 5.0);
const double max_y = RandomDouble(0.5, 10.0);
std::vector<MapPathPoint> points;
double sum_x = 0;
for (int i = 0; i <= num_segments; ++i) {
points.push_back(MakeMapPathPoint(sum_x, RandomDouble(-max_y, max_y)));
sum_x += RandomDouble(average_segment_length * 0.1,
average_segment_length * 1.9);
}
const double angle = RandomDouble(0, M_PI);
const double cos_angle = cos(angle);
const double sin_angle = sin(angle);
for (auto& point : points) {
const double new_x = point.x() * cos_angle - point.y() * sin_angle;
const double new_y = point.x() * sin_angle + point.y() * cos_angle;
point.set_x(new_x);
point.set_y(new_y);
}
const Path path(points, {}, 2.0);
EXPECT_EQ(path.num_points(), num_segments + 1);
EXPECT_EQ(path.num_segments(), num_segments);
EXPECT_EQ(path.path_points().size(), num_segments + 1);
EXPECT_EQ(path.lane_segments().size(), 0);
EXPECT_EQ(path.segments().size(), num_segments);
const auto* path_approximation = path.approximation();
EXPECT_NEAR(path_approximation->max_error(), 2.0, 1e-6);
double accumulate_s;
double lateral;
double distance;
EXPECT_TRUE(
path.GetProjection(points[0], &accumulate_s, &lateral, &distance));
EXPECT_NEAR(accumulate_s, 0.0, 1e-6);
EXPECT_NEAR(lateral, 0.0, 1e-6);
EXPECT_NEAR(distance, 0.0, 1e-6);
EXPECT_TRUE(path.GetProjection(points[num_segments], &accumulate_s,
&lateral, &distance));
EXPECT_NEAR(accumulate_s, path.length(), 1e-6);
EXPECT_NEAR(lateral, 0.0, 1e-6);
EXPECT_NEAR(distance, 0.0, 1e-6);
std::vector<Vec2d> original_points;
for (const auto& point : points) {
original_points.push_back(point);
}
const AABox2d box(original_points);
const Path path_no_approximation(points, {});
for (int case_id = 0; case_id < kCasesPerPath; ++case_id) {
const double x = RandomDouble(box.min_x(), box.max_x());
const double y = RandomDouble(box.min_y(), box.max_y());
EXPECT_TRUE(
path.GetNearestPoint({x, y}, &accumulate_s, &lateral, &distance));
double other_accumulate_s;
double other_lateral;
double other_distance;
EXPECT_TRUE(path_no_approximation.GetNearestPoint(
{x, y}, &other_accumulate_s, &other_lateral, &other_distance));
EXPECT_NEAR(distance, other_distance, 1e-6);
EXPECT_NEAR(path.GetSmoothPoint(accumulate_s).DistanceTo({x, y}),
distance, 1e-6);
}
}
}
TEST(TestSuite, hdmap_s_path) {
std::vector<MapPathPoint> points;
const double kRadius = 50.0;
const int kNumSegments = 100;
for (int i = 0; i <= kNumSegments; ++i) {
if (i <= kNumSegments / 2) {
const double p = -M_PI_2 + 2.0 * M_PI * static_cast<double>(i) /
static_cast<double>(kNumSegments);
points.push_back(
MakeMapPathPoint(kRadius * cos(p), kRadius * (sin(p) - 1.0)));
} else {
const double p = M_PI_2 - 2.0 * M_PI * static_cast<double>(i) /
static_cast<double>(kNumSegments);
points.push_back(
MakeMapPathPoint(kRadius * cos(p), kRadius * (sin(p) + 1.0)));
}
}
const Path path(points, {}, 2.0);
EXPECT_EQ(path.num_points(), kNumSegments + 1);
EXPECT_EQ(path.num_segments(), kNumSegments);
EXPECT_EQ(path.path_points().size(), kNumSegments + 1);
EXPECT_EQ(path.lane_segments().size(), 0);
EXPECT_EQ(path.segments().size(), kNumSegments);
const auto* path_approximation = path.approximation();
EXPECT_NEAR(path_approximation->max_error(), 2.0, 1e-6);
EXPECT_EQ(path_approximation->original_ids().size(), 12);
EXPECT_EQ(path_approximation->original_ids()[0], 0);
EXPECT_EQ(path_approximation->original_ids()[1], 9);
EXPECT_EQ(path_approximation->original_ids()[2], 18);
EXPECT_EQ(path_approximation->original_ids()[3], 27);
EXPECT_EQ(path_approximation->original_ids()[4], 36);
EXPECT_EQ(path_approximation->original_ids()[5], 45);
EXPECT_EQ(path_approximation->original_ids()[6], 57);
EXPECT_EQ(path_approximation->original_ids()[7], 66);
EXPECT_EQ(path_approximation->original_ids()[8], 75);
EXPECT_EQ(path_approximation->original_ids()[9], 84);
EXPECT_EQ(path_approximation->original_ids()[10], 93);
EXPECT_EQ(path_approximation->original_ids()[11], 100);
const double total_length = path.accumulated_s().back();
const double kLargeEps = 0.1;
double accumulate_s;
double lateral;
double distance;
EXPECT_TRUE(path.GetProjection({-1, -2.0 * kRadius - 1}, &accumulate_s,
&lateral, &distance));
EXPECT_NEAR(accumulate_s, -1.0, kLargeEps);
EXPECT_NEAR(lateral, -1.0, kLargeEps);
EXPECT_NEAR(distance, sqrt(2.0), 1e-6);
EXPECT_TRUE(path.GetProjection({1, 2.0 * kRadius + 1}, &accumulate_s,
&lateral, &distance));
EXPECT_NEAR(accumulate_s, total_length + 1.0, kLargeEps);
EXPECT_NEAR(lateral, 1.0, kLargeEps);
EXPECT_NEAR(distance, sqrt(2.0), 1e-6);
const Path path_no_approximation(points, {});
for (int case_id = 0; case_id < 10000; ++case_id) {
const double x = RandomDouble(-kRadius * 1.5, kRadius * 1.5);
const double y = RandomDouble(-kRadius * 2.5, kRadius * 2.5);
EXPECT_TRUE(
path.GetNearestPoint({x, y}, &accumulate_s, &lateral, &distance));
double other_accumulate_s;
double other_lateral;
double other_distance;
EXPECT_TRUE(path_no_approximation.GetNearestPoint(
{x, y}, &other_accumulate_s, &other_lateral, &other_distance));
EXPECT_NEAR(distance, other_distance, 1e-6);
EXPECT_NEAR(path.GetSmoothPoint(accumulate_s).DistanceTo({x, y}), distance,
1e-6);
}
}
TEST(TestSuite, hdmap_path_get_smooth_point) {
const double kRadius = 50.0;
const int kNumSegments = 100;
std::vector<MapPathPoint> points;
for (int i = 0; i <= kNumSegments; ++i) {
if (i <= kNumSegments / 2) {
const double p = -M_PI_2 + 2.0 * M_PI * static_cast<double>(i) /
static_cast<double>(kNumSegments);
points.push_back(
MakeMapPathPoint(kRadius * cos(p), kRadius * (sin(p) - 1.0)));
} else {
const double p = M_PI_2 - 2.0 * M_PI * static_cast<double>(i) /
static_cast<double>(kNumSegments);
points.push_back(
MakeMapPathPoint(kRadius * cos(p), kRadius * (sin(p) + 1.0)));
}
}
const double segment_length = points[0].DistanceTo(points[1]);
std::vector<Lane> original_lanes;
std::vector<LaneInfoConstPtr> lanes;
for (int i = 0; i < kNumSegments; ++i) {
Lane lane;
lane.mutable_id()->set_id(std::to_string(i));
auto* segment =
lane.mutable_central_curve()->add_segment()->mutable_line_segment();
auto* point1 = segment->add_point();
point1->set_x(points[i].x());
point1->set_y(points[i].y());
auto* point2 = segment->add_point();
point2->set_x(points[i + 1].x());
point2->set_y(points[i + 1].y());
original_lanes.push_back(lane);
}
for (int i = 0; i < kNumSegments; ++i) {
lanes.push_back(LaneInfoConstPtr(new LaneInfo(original_lanes[i])));
}
for (int i = 0; i <= kNumSegments; ++i) {
points[i].set_heading((i < kNumSegments)
? (points[i + 1] - points[i]).Angle()
: (points[i] - points[i - 1]).Angle());
if (i > 0) {
points[i].add_lane_waypoint(LaneWaypoint(lanes[i - 1], segment_length));
}
if (i < kNumSegments) {
points[i].add_lane_waypoint(LaneWaypoint(lanes[i], 0.0));
}
}
const Path path(points);
EXPECT_EQ(path.num_points(), kNumSegments + 1);
EXPECT_EQ(path.num_segments(), kNumSegments);
EXPECT_EQ(path.path_points().size(), kNumSegments + 1);
EXPECT_EQ(path.segments().size(), kNumSegments);
EXPECT_EQ(path.lane_segments_to_next_point().size(), kNumSegments);
EXPECT_NEAR(path.length(), segment_length * kNumSegments, 1e-6);
for (int i = 0; i <= kNumSegments; ++i) {
MapPathPoint point = path.GetSmoothPoint(segment_length * i);
EXPECT_NEAR(point.x(), points[i].x(), 1e-6);
EXPECT_NEAR(point.y(), points[i].y(), 1e-6);
EXPECT_NEAR(point.heading(), points[i].heading(), 1e-6);
if (i == 0) {
EXPECT_EQ(point.lane_waypoints().size(), 1);
EXPECT_EQ(point.lane_waypoints()[0].lane->id().id(), std::to_string(i));
EXPECT_NEAR(point.lane_waypoints()[0].s, 0.0, 1e-6);
} else if (i == kNumSegments) {
EXPECT_EQ(point.lane_waypoints().size(), 1);
EXPECT_EQ(point.lane_waypoints()[0].lane->id().id(),
std::to_string(i - 1));
EXPECT_NEAR(point.lane_waypoints()[0].s, segment_length, 1e-6);
} else {
EXPECT_EQ(point.lane_waypoints().size(), 2);
EXPECT_EQ(point.lane_waypoints()[0].lane->id().id(),
std::to_string(i - 1));
EXPECT_NEAR(point.lane_waypoints()[0].s, segment_length, 1e-6);
EXPECT_EQ(point.lane_waypoints()[1].lane->id().id(), std::to_string(i));
EXPECT_NEAR(point.lane_waypoints()[1].s, 0.0, 1e-6);
}
if (i < kNumSegments) {
for (int case_id = 0; case_id < 20; ++case_id) {
const double offset = RandomDouble(0.01, 0.99) * segment_length;
const double s = segment_length * i + offset;
point = path.GetSmoothPoint(s);
EXPECT_NEAR(point.x(),
points[i].x() + offset * cos(points[i].heading()), 1e-6);
EXPECT_NEAR(point.y(),
points[i].y() + offset * sin(points[i].heading()), 1e-6);
EXPECT_NEAR(point.heading(), points[i].heading(), 1e-6);
EXPECT_EQ(point.lane_waypoints().size(), 1);
EXPECT_EQ(point.lane_waypoints()[0].lane->id().id(), std::to_string(i));
EXPECT_NEAR(point.lane_waypoints()[0].s, offset, 1e-6);
const InterpolatedIndex index = path.GetIndexFromS(s);
EXPECT_EQ(index.id, i);
EXPECT_NEAR(index.offset, offset, 1e-6);
EXPECT_NEAR(path.GetSFromIndex(index), s, 1e-6);
}
}
}
InterpolatedIndex index = path.GetIndexFromS(0.0);
EXPECT_EQ(index.id, 0);
EXPECT_NEAR(index.offset, 0, 1e-6);
EXPECT_NEAR(path.GetSFromIndex(index), 0.0, 1e-6);
index = path.GetIndexFromS(-0.1);
EXPECT_EQ(index.id, 0);
EXPECT_NEAR(index.offset, 0, 1e-6);
EXPECT_NEAR(path.GetSFromIndex(index), 0.0, 1e-6);
index = path.GetIndexFromS(segment_length * kNumSegments);
EXPECT_EQ(index.id, kNumSegments);
EXPECT_NEAR(index.offset, 0, 1e-6);
EXPECT_NEAR(path.GetSFromIndex(index), segment_length * kNumSegments, 1e-6);
index = path.GetIndexFromS(segment_length * kNumSegments + 0.2);
EXPECT_EQ(index.id, kNumSegments);
EXPECT_NEAR(index.offset, 0, 1e-6);
EXPECT_NEAR(path.GetSFromIndex(index), segment_length * kNumSegments, 1e-6);
}
TEST(TestSuite, compute_lane_segments_from_points) {
std::vector<MapPathPoint> points{
MakeMapPathPoint(2, 0), MakeMapPathPoint(2, 1), MakeMapPathPoint(2, 2)};
Lane lane1;
lane1.mutable_id()->set_id("id1");
auto* curve = lane1.mutable_central_curve();
auto* segment = curve->add_segment()->mutable_line_segment();
*segment->add_point() = MakePoint(0, 0, 0);
*segment->add_point() = MakePoint(1, 0, 0);
LaneInfoConstPtr lane_info1(new LaneInfo(lane1));
Lane lane2 = lane1;
lane2.mutable_id()->set_id("id2");
LaneInfoConstPtr lane_info2(new LaneInfo(lane2));
points[0].add_lane_waypoint(LaneWaypoint(lane_info1, 0.1));
points[1].add_lane_waypoint(LaneWaypoint(lane_info1, 0.7));
points[1].add_lane_waypoint(LaneWaypoint(lane_info2, 0.0));
points[2].add_lane_waypoint(LaneWaypoint(lane_info2, 0.4));
const Path path(std::move(points));
EXPECT_EQ(path.lane_segments().size(), 2);
EXPECT_EQ(path.lane_segments()[0].lane->id().id(), "id1");
EXPECT_NEAR(path.lane_segments()[0].start_s, 0.0, 1e-6);
EXPECT_NEAR(path.lane_segments()[0].end_s, 1.0, 1e-6);
EXPECT_EQ(path.lane_segments()[1].lane->id().id(), "id2");
EXPECT_NEAR(path.lane_segments()[1].start_s, 0.0, 1e-6);
EXPECT_NEAR(path.lane_segments()[1].end_s, 0.4, 1e-6);
}
TEST(TestSuite, lane_info) {
Lane lane;
lane.mutable_id()->set_id("test-id");
auto* curve = lane.mutable_central_curve();
auto* segment1 = curve->add_segment()->mutable_line_segment();
auto* segment2 = curve->add_segment()->mutable_line_segment();
*segment1->add_point() = MakePoint(0, 0, 0);
*segment1->add_point() = MakePoint(1, 0, 0);
*segment1->add_point() = MakePoint(2, 0, 0);
*segment1->add_point() = MakePoint(3, 0, 0);
*segment2->add_point() = MakePoint(3, 0, 0);
*segment2->add_point() = MakePoint(3, 1, 0);
*segment2->add_point() = MakePoint(3, 2, 0);
*lane.add_left_sample() = MakeSample(0.0, 0);
*lane.add_left_sample() = MakeSample(1.0, 10);
*lane.add_left_sample() = MakeSample(2.0, 20);
*lane.add_left_sample() = MakeSample(3.0, 30);
*lane.add_right_sample() = MakeSample(0.0, 30);
*lane.add_right_sample() = MakeSample(1.0, 20);
*lane.add_right_sample() = MakeSample(2.0, 10);
*lane.add_right_sample() = MakeSample(3.0, 0);
// LaneInfo lane_info(lane);
LaneInfoConstPtr lane_info(new LaneInfo(lane));
EXPECT_EQ("test-id", lane_info->id().id());
EXPECT_EQ("test-id", lane_info->lane().id().id());
EXPECT_EQ(6, lane_info->points().size());
EXPECT_EQ(5, lane_info->segments().size());
EXPECT_EQ(6, lane_info->accumulate_s().size());
EXPECT_NEAR(lane_info->accumulate_s()[0], 0.0, 1e-6);
EXPECT_NEAR(lane_info->accumulate_s()[1], 1.0, 1e-6);
EXPECT_NEAR(lane_info->accumulate_s()[2], 2.0, 1e-6);
EXPECT_NEAR(lane_info->accumulate_s()[3], 3.0, 1e-6);
EXPECT_NEAR(lane_info->accumulate_s()[4], 4.0, 1e-6);
EXPECT_NEAR(lane_info->accumulate_s()[5], 5.0, 1e-6);
EXPECT_NEAR(lane_info->total_length(), 5.0, 1e-6);
double left_width = 0.0;
double right_width = 0.0;
double lane_width = 0.0;
double effective_width = 0.0;
lane_info->GetWidth(-0.5, &left_width, &right_width);
lane_width = lane_info->GetWidth(-0.5);
effective_width = lane_info->GetEffectiveWidth(-0.5);
EXPECT_NEAR(left_width, 0.0, 1e-6);
EXPECT_NEAR(right_width, 30.0, 1e-6);
EXPECT_NEAR(lane_width, 30.0, 1e-6);
EXPECT_NEAR(effective_width, 0.0, 1e-6);
lane_info->GetWidth(0.7, &left_width, &right_width);
lane_width = lane_info->GetWidth(0.7);
effective_width = lane_info->GetEffectiveWidth(0.7);
EXPECT_NEAR(left_width, 7.0, 1e-6);
EXPECT_NEAR(right_width, 23.0, 1e-6);
EXPECT_NEAR(lane_width, 30.0, 1e-6);
EXPECT_NEAR(effective_width, 14.0, 1e-6);
lane_info->GetWidth(2.1, &left_width, &right_width);
lane_width = lane_info->GetWidth(2.1);
effective_width = lane_info->GetEffectiveWidth(2.1);
EXPECT_NEAR(left_width, 21.0, 1e-6);
EXPECT_NEAR(right_width, 9.0, 1e-6);
EXPECT_NEAR(lane_width, 30.0, 1e-6);
EXPECT_NEAR(effective_width, 18.0, 1e-6);
lane_info->GetWidth(5.0, &left_width, &right_width);
lane_width = lane_info->GetWidth(5.0);
effective_width = lane_info->GetEffectiveWidth(5);
EXPECT_NEAR(left_width, 30.0, 1e-6);
EXPECT_NEAR(right_width, 0.0, 1e-6);
EXPECT_NEAR(lane_width, 30.0, 1e-6);
EXPECT_NEAR(effective_width, 0.0, 1e-6);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/cuda_util.cu | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/cuda_util.h"
#include "cyber/common/log.h"
namespace apollo {
namespace pnc_map {
constexpr std::size_t kDeviceVecSize = 2000;
CudaNearestSegment::CudaNearestSegment() {
host_seg_ = new CudaLineSegment2d[kDeviceVecSize];
cudaError_t cudaStatus;
cudaStatus = cudaMalloc((void**)&dev_dist_, sizeof(double) * kDeviceVecSize);
CHECK_EQ(cudaStatus, cudaSuccess);
cudaStatus =
cudaMalloc((void**)&dev_seg_, sizeof(CudaLineSegment2d) * kDeviceVecSize);
CHECK_EQ(cudaStatus, cudaSuccess);
cublasCreate(&handle_);
}
CudaNearestSegment::~CudaNearestSegment() {
delete[] host_seg_;
cudaFree(dev_dist_);
cudaFree(dev_seg_);
}
__device__ double distance_square(const CudaLineSegment2d seg, double x,
double y) {
double x1x = x - seg.x1;
double y1y = y - seg.y1;
double x1x2 = seg.x2 - seg.x1;
double y1y2 = seg.y2 - seg.y1;
double dot = x1x * x1x2 + y1y * y1y2;
if (dot < 0) {
return x1x * x1x + y1y * y1y;
} else if (dot > x1x2 * x1x2 + y1y2 * y1y2) {
double x2x = x - seg.x2;
double y2y = y - seg.y2;
return x2x * x2x + y2y * y2y;
} else {
double prod = x1x * y1y2 - y1y * x1x2;
return prod * prod;
}
}
__host__ bool CudaNearestSegment::UpdateLineSegment(
const std::vector<apollo::common::math::LineSegment2d>& segments) {
size_ = std::min(kDeviceVecSize, segments.size());
for (std::size_t i = 0; i < size_; ++i) {
host_seg_[i].x1 = segments[i].start().x();
host_seg_[i].y1 = segments[i].start().y();
host_seg_[i].x2 = segments[i].end().x();
host_seg_[i].y2 = segments[i].end().y();
}
cudaError_t cudaStatus;
cudaStatus =
cudaMemcpy(dev_seg_, host_seg_, size_ * sizeof(CudaLineSegment2d),
cudaMemcpyHostToDevice);
if (cudaStatus != cudaSuccess) {
AERROR << "Failed to copy to cuda device";
return false;
}
return true;
}
__global__ void DistanceSquare(double x, double y, CudaLineSegment2d* dev_seg,
double* dev_dist, int32_t size) {
int32_t index = blockDim.x * blockIdx.x + threadIdx.x;
if (index >= size) {
return;
}
const auto& seg = dev_seg[index];
double x1x = x - seg.x1;
double y1y = y - seg.y1;
double x1x2 = seg.x2 - seg.x1;
double y1y2 = seg.y2 - seg.y1;
double dot = x1x * x1x2 + y1y * y1y2;
if (dot < 0) {
dev_dist[index] = x1x * x1x + y1y * y1y;
} else if (dot > x1x2 * x1x2 + y1y2 * y1y2) {
double x2x = x - seg.x2;
double y2y = y - seg.y2;
dev_dist[index] = x2x * x2x + y2y * y2y;
} else {
double prod = x1x * y1y2 - y1y * x1x2;
dev_dist[index] = prod * prod;
}
}
int CudaNearestSegment::FindNearestSegment(double x, double y) {
DistanceSquare<<<(kDeviceVecSize + 511) / 512, 512>>>(x, y, dev_seg_,
dev_dist_, size_);
cublasStatus_t stat;
int min_index = 0;
stat = cublasIdamin(handle_, size_, dev_dist_, 1, &min_index);
if (stat != CUBLAS_STATUS_SUCCESS) {
AERROR << "Failed to find min element in segments";
return -1;
}
return min_index - 1;
}
} // namespace pnc_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/cuda_util_test.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/cuda_util.h"
#include "gtest/gtest.h"
namespace apollo {
namespace pnc_map {
using apollo::common::math::LineSegment2d;
using apollo::common::math::Vec2d;
TEST(CudaUtil, CudaNearestSegment) {
CudaNearestSegment segment_tool;
Vec2d p1(0, 0);
Vec2d p2(1, 0);
Vec2d p3(2, 0);
Vec2d p4(3, 0);
std::vector<LineSegment2d> segments;
segments.emplace_back(p1, p2);
segments.emplace_back(p2, p3);
segments.emplace_back(p3, p4);
segment_tool.UpdateLineSegment(segments);
int nearest_index = segment_tool.FindNearestSegment(0.5, 1.0);
EXPECT_EQ(0, nearest_index);
nearest_index = segment_tool.FindNearestSegment(1.5, 1.0);
EXPECT_EQ(1, nearest_index);
}
} // namespace pnc_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/pnc_map/pnc_map_test.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/pnc_map/pnc_map.h"
#include "gflags/gflags.h"
#include "gtest/gtest.h"
#include "cyber/common/file.h"
#include "modules/common/util/string_util.h"
#include "modules/map/hdmap/hdmap.h"
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/common_msgs/routing_msgs/routing.pb.h"
DECLARE_double(min_length_for_lane_change);
namespace apollo {
namespace hdmap {
DEFINE_string(test_map_file,
"modules/map/data/sunnyvale_loop/base_map_test.bin",
"The test map file");
DEFINE_string(
test_routing_file,
"modules/map/pnc_map/testdata/sample_sunnyvale_loop_routing.pb.txt",
"The test map file");
class PncMapTest : public ::testing::Test {
public:
static void SetUpTestCase() {
AINFO << "map file: " << FLAGS_test_map_file;
if (hdmap_.LoadMapFromFile(FLAGS_test_map_file) != 0) {
AERROR << "Failed to load map: " << FLAGS_test_map_file;
ACHECK(false);
}
pnc_map_.reset(new PncMap(&hdmap_));
if (!cyber::common::GetProtoFromFile(FLAGS_test_routing_file, &routing_)) {
AERROR << "Failed to load routing: " << FLAGS_test_routing_file;
ACHECK(false);
}
pnc_map_->UpdateRoutingResponse(routing_);
}
static double RouteLength(const RouteSegments& segments) {
double s = 0.0;
for (const auto& seg : segments) {
s += seg.end_s - seg.start_s;
}
return s;
}
static routing::RoutingResponse routing_;
static std::unique_ptr<PncMap> pnc_map_;
static hdmap::HDMap hdmap_;
};
std::unique_ptr<PncMap> PncMapTest::pnc_map_;
hdmap::HDMap PncMapTest::hdmap_;
routing::RoutingResponse PncMapTest::routing_;
TEST_F(PncMapTest, UpdateRouting) {
pnc_map_->routing_.clear_header();
EXPECT_TRUE(pnc_map_->IsNewRouting(routing_));
EXPECT_TRUE(pnc_map_->UpdateRoutingResponse(routing_));
EXPECT_FALSE(pnc_map_->IsNewRouting(routing_));
}
TEST_F(PncMapTest, GetNearestPointFromRouting) {
LaneWaypoint waypoint;
common::VehicleState state;
state.set_x(587174.662136);
state.set_y(4140933.06302); // the lane heading at this spot is about 0.9 PI
state.set_heading(0.0);
// TODO(tianjiao): check false reason
// EXPECT_FALSE(pnc_map_->GetNearestPointFromRouting(state, &waypoint));
state.set_heading(M_PI);
EXPECT_TRUE(pnc_map_->GetNearestPointFromRouting(state, &waypoint));
ASSERT_TRUE(waypoint.lane != nullptr);
EXPECT_EQ("9_1_-1", waypoint.lane->id().id());
EXPECT_FLOAT_EQ(60.757099, waypoint.s);
}
TEST_F(PncMapTest, UpdateWaypointIndex) {
auto lane = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-1"));
ASSERT_TRUE(lane);
LaneWaypoint waypoint(lane, 60.757099);
auto result = pnc_map_->GetWaypointIndex(waypoint);
EXPECT_EQ(14, result);
}
TEST_F(PncMapTest, GetRouteSegments_NoChangeLane) {
auto lane = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-2"));
ASSERT_TRUE(lane);
auto point = lane->GetSmoothPoint(0);
common::VehicleState state;
state.set_x(point.x());
state.set_y(point.y());
state.set_z(point.y());
state.set_heading(M_PI);
std::list<RouteSegments> segments;
ASSERT_TRUE(pnc_map_->GetRouteSegments(state, 10, 30, &segments));
// first time on this passage, should not immediately change lane
ASSERT_EQ(2, segments.size());
EXPECT_NEAR(40, RouteLength(segments.front()), 1e-4);
EXPECT_NEAR(40, RouteLength(segments.back()), 1e-4);
EXPECT_EQ(routing::LEFT, segments.front().NextAction());
EXPECT_TRUE(segments.front().IsOnSegment());
EXPECT_EQ(routing::RIGHT, segments.back().NextAction());
EXPECT_FALSE(segments.back().IsOnSegment());
}
TEST_F(PncMapTest, UpdateNextRoutingWaypointIndex) {
pnc_map_->next_routing_waypoint_index_ = 0;
pnc_map_->adc_waypoint_.s = 0;
pnc_map_->UpdateNextRoutingWaypointIndex(0);
EXPECT_EQ(0, pnc_map_->next_routing_waypoint_index_);
pnc_map_->adc_waypoint_.s = 50;
pnc_map_->UpdateNextRoutingWaypointIndex(0);
EXPECT_EQ(1, pnc_map_->next_routing_waypoint_index_);
pnc_map_->adc_waypoint_.s = 63.6,
pnc_map_->UpdateNextRoutingWaypointIndex(18);
EXPECT_EQ(3, pnc_map_->next_routing_waypoint_index_);
pnc_map_->adc_waypoint_.s = 63.8,
pnc_map_->UpdateNextRoutingWaypointIndex(17);
EXPECT_EQ(3, pnc_map_->next_routing_waypoint_index_);
pnc_map_->adc_waypoint_.s = 50;
pnc_map_->UpdateNextRoutingWaypointIndex(20);
EXPECT_EQ(3, pnc_map_->next_routing_waypoint_index_);
pnc_map_->adc_waypoint_.s = 100;
pnc_map_->UpdateNextRoutingWaypointIndex(14);
EXPECT_EQ(3, pnc_map_->next_routing_waypoint_index_);
pnc_map_->adc_waypoint_.s = 60;
pnc_map_->UpdateNextRoutingWaypointIndex(14);
EXPECT_EQ(2, pnc_map_->next_routing_waypoint_index_);
}
TEST_F(PncMapTest, GetRouteSegments_ChangeLane) {
auto lane = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-2"));
ASSERT_TRUE(lane);
common::VehicleState state;
auto point = lane->GetSmoothPoint(35); // larger than kMinLaneKeepingDistance
state.set_x(point.x());
state.set_y(point.y());
state.set_z(point.y());
state.set_heading(M_PI);
std::list<RouteSegments> segments;
bool result = pnc_map_->GetRouteSegments(state, 10, 30, &segments);
ASSERT_TRUE(result);
ASSERT_EQ(2, segments.size());
const auto& first = segments.front();
const auto& second = segments.back();
EXPECT_NEAR(40, RouteLength(first), 1e-4);
EXPECT_EQ(routing::LEFT, first.NextAction());
EXPECT_TRUE(first.IsOnSegment());
EXPECT_NEAR(40, RouteLength(second), 1e-4);
EXPECT_EQ(routing::RIGHT, second.NextAction());
EXPECT_FALSE(second.IsOnSegment());
}
TEST_F(PncMapTest, NextWaypointIndex) {
EXPECT_EQ(0, pnc_map_->NextWaypointIndex(-2));
EXPECT_EQ(0, pnc_map_->NextWaypointIndex(-1));
EXPECT_EQ(1, pnc_map_->NextWaypointIndex(0));
EXPECT_EQ(2, pnc_map_->NextWaypointIndex(1));
EXPECT_EQ(3, pnc_map_->NextWaypointIndex(2));
EXPECT_EQ(17, pnc_map_->NextWaypointIndex(18));
EXPECT_EQ(17, pnc_map_->NextWaypointIndex(20));
}
TEST_F(PncMapTest, SearchForwardIndex_SearchBackwardIndex) {
auto lane = hdmap_.GetLaneById(hdmap::MakeMapId("9_1_-2"));
LaneWaypoint waypoint(lane, 3.0);
auto result = pnc_map_->SearchForwardWaypointIndex(0, waypoint);
EXPECT_EQ(11, result);
result = pnc_map_->SearchBackwardWaypointIndex(0, waypoint);
EXPECT_EQ(-1, result);
result = pnc_map_->SearchForwardWaypointIndex(11, waypoint);
EXPECT_EQ(11, result);
result = pnc_map_->SearchBackwardWaypointIndex(11, waypoint);
EXPECT_EQ(11, result);
result = pnc_map_->SearchForwardWaypointIndex(12, waypoint);
EXPECT_EQ(18, result);
result = pnc_map_->SearchBackwardWaypointIndex(12, waypoint);
EXPECT_EQ(11, result);
result = pnc_map_->SearchForwardWaypointIndex(10, waypoint);
EXPECT_EQ(11, result);
result = pnc_map_->SearchBackwardWaypointIndex(10, waypoint);
EXPECT_EQ(-1, result);
}
TEST_F(PncMapTest, GetNeighborPassages) {
const auto& road0 = routing_.road(0);
{
auto result = pnc_map_->GetNeighborPassages(road0, 0);
EXPECT_EQ(2, result.size());
EXPECT_EQ(0, result[0]);
EXPECT_EQ(1, result[1]);
}
{
auto result = pnc_map_->GetNeighborPassages(road0, 1);
EXPECT_EQ(3, result.size());
EXPECT_EQ(1, result[0]);
EXPECT_EQ(0, result[1]);
EXPECT_EQ(2, result[2]);
}
{
auto result = pnc_map_->GetNeighborPassages(road0, 2);
EXPECT_EQ(1, result.size());
}
{
auto result = pnc_map_->GetNeighborPassages(road0, 3);
EXPECT_EQ(1, result.size());
EXPECT_EQ(3, result[0]);
}
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/pnc_map | apollo_public_repos/apollo/modules/map/pnc_map/testdata/sample_sunnyvale_loop_routing.pb.txt | header {
timestamp_sec: 1508173542.66
module_name: "routing"
sequence_num: 8
}
road {
id: "13-9-696-171-12-6-153-751-752-7-753-1-151"
passage {
segment {
id: "696_1_-1"
start_s: 47.5174207497
end_s: 299.734
}
change_lane_type: RIGHT
}
passage {
segment {
id: "696_1_-2"
start_s: 47.5139330464
end_s: 299.712
}
segment {
id: "171_1_-1"
start_s: 0.0
end_s: 42.8949
}
segment {
id: "153_1_-4"
start_s: 0.0
end_s: 22.1195
}
segment {
id: "751_1_-1"
start_s: 0.0
end_s: 12.6363
}
segment {
id: "752_1_-1"
start_s: 0.0
end_s: 20.1963
}
segment {
id: "753_1_-1"
start_s: 0.0
end_s: 21.6437
}
segment {
id: "6_1_-2"
start_s: 0.0
end_s: 194.692
}
segment {
id: "7_1_-2"
start_s: 0.0
end_s: 32.89
}
segment {
id: "1_1_-3"
start_s: 0.0
end_s: 65.2454
}
segment {
id: "151_1_-2"
start_s: 0.0
end_s: 43.8648
}
segment {
id: "9_1_-2"
start_s: 0.0
end_s: 84.2850948446
}
segment {
id: "13_1_-2"
start_s: 0.0
end_s: 35.3398
}
segment {
id: "12_1_-3"
start_s: 0.0
end_s: 63.7359305757
}
change_lane_type: LEFT
}
passage {
segment {
id: "9_1_-1"
start_s: 0.0
end_s: 161.99
}
segment {
id: "13_1_-1"
start_s: 0.0
end_s: 35.237
}
segment {
id: "12_1_-2"
start_s: 0.0
end_s: 63.7265648374
}
change_lane_type: RIGHT
}
passage {
segment {
id: "12_1_-3"
start_s: 0.0
end_s: 63.7359305757
}
can_exit: true
change_lane_type: FORWARD
}
}
measurement {
distance: 868.129638
}
routing_request {
header {
timestamp_sec: 1508173542.66
module_name: "dreamview"
sequence_num: 11
}
waypoint {
id: "696_1_-1"
s: 47.5174207497
pose {
x: 587617.970437
y: 4141036.81869
}
}
waypoint {
id: "7_1_-2"
s: 31.0353727109
pose {
x: 587338.801489
y: 4140884.97963
}
}
waypoint {
id: "9_1_-1"
s: 60.757098986
pose {
x: 587174.662136
y: 4140933.06302
}
}
waypoint {
id: "12_1_-3"
s: 63.7359305757
pose {
x: 586981.555312
y: 4140986.16722
}
}
}
map_version: "1.000000"
status {
error_code: OK
msg: "Success!"
}
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/relative_map_component.h | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <memory>
#include "cyber/component/timer_component.h"
#include "cyber/cyber.h"
#include "modules/common/vehicle_state/vehicle_state_provider.h"
#include "modules/map/relative_map/relative_map.h"
namespace apollo {
namespace relative_map {
class RelativeMapComponent final : public ::apollo::cyber::TimerComponent {
public:
bool Init() override;
bool Proc() override;
private:
bool InitReaders();
std::shared_ptr<::apollo::cyber::Writer<MapMsg>> relative_map_writer_ =
nullptr;
std::shared_ptr<cyber::Reader<perception::PerceptionObstacles>>
perception_reader_ = nullptr;
std::shared_ptr<cyber::Reader<canbus::Chassis>> chassis_reader_ = nullptr;
std::shared_ptr<cyber::Reader<localization::LocalizationEstimate>>
localization_reader_ = nullptr;
std::shared_ptr<cyber::Reader<NavigationInfo>> navigation_reader_ = nullptr;
std::shared_ptr<common::VehicleStateProvider> vehicle_state_provider_;
RelativeMap relative_map_;
};
CYBER_REGISTER_COMPONENT(RelativeMapComponent)
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/relative_map.h | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <string>
#include "modules/common/monitor_log/monitor_log_buffer.h"
#include "modules/common/status/status.h"
#include "modules/common/vehicle_state/vehicle_state_provider.h"
#include "modules/map/relative_map/navigation_lane.h"
#include "modules/common_msgs/planning_msgs/navigation.pb.h"
#include "modules/map/relative_map/proto/relative_map_config.pb.h"
#include "modules/common_msgs/perception_msgs/perception_obstacle.pb.h"
namespace apollo {
namespace relative_map {
class RelativeMap {
public:
RelativeMap();
/**
* @brief module name
*/
std::string Name() const { return "RelativeMap"; }
/**
* @brief module initialization function
* @return initialization status
*/
apollo::common::Status Init(
common::VehicleStateProvider* vehicle_state_provider);
/**
* @brief module start function
* @return start status
*/
apollo::common::Status Start();
/**
* @brief module stop function
*/
void Stop();
/**
* @brief destructor
*/
virtual ~RelativeMap() = default;
/**
* @brief main logic of the relative_map module, runs periodically triggered
* by timer.
*/
bool Process(MapMsg* const map_msg);
void OnPerception(
const perception::PerceptionObstacles& perception_obstacles);
void OnChassis(const canbus::Chassis& chassis);
void OnLocalization(const localization::LocalizationEstimate& localization);
void OnNavigationInfo(const NavigationInfo& navigation_info);
private:
bool CreateMapFromNavigationLane(MapMsg* map_msg);
RelativeMapConfig config_;
apollo::common::monitor::MonitorLogBuffer monitor_logger_buffer_;
NavigationLane navigation_lane_;
perception::PerceptionObstacles perception_obstacles_;
canbus::Chassis chassis_;
localization::LocalizationEstimate localization_;
std::mutex navigation_lane_mutex_;
common::VehicleStateProvider* vehicle_state_provider_;
};
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/navigation_lane_test.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
/**
* @file
* @brief This file provides several unit tests for the class "NavigationLane".
*/
#include "modules/map/relative_map/navigation_lane.h"
#include "cyber/common/file.h"
#include "gtest/gtest.h"
#include "modules/common_msgs/chassis_msgs/chassis.pb.h"
#include "modules/common/vehicle_state/vehicle_state_provider.h"
#include "modules/map/relative_map/common/relative_map_gflags.h"
#include "modules/common_msgs/planning_msgs/navigation.pb.h"
#include "modules/map/relative_map/proto/relative_map_config.pb.h"
#include "nlohmann/json.hpp"
namespace apollo {
namespace relative_map {
using apollo::common::VehicleStateProvider;
using apollo::relative_map::NavigationInfo;
using apollo::relative_map::NavigationLane;
using apollo::relative_map::NavigationPath;
using nlohmann::json;
namespace {
bool GetNavigationPathFromFile(const std::string& filename,
NavigationPath* navigation_path) {
CHECK_NOTNULL(navigation_path);
std::ifstream ifs(filename, std::ios::in);
if (!ifs.is_open()) {
AERROR << "Failed to open " << filename;
return false;
}
std::string line_str;
while (std::getline(ifs, line_str)) {
try {
auto json_obj = json::parse(line_str);
auto* point = navigation_path->mutable_path()->add_path_point();
point->set_x(json_obj["x"]);
point->set_y(json_obj["y"]);
point->set_s(json_obj["s"]);
point->set_theta(json_obj["theta"]);
point->set_kappa(json_obj["kappa"]);
point->set_dkappa(json_obj["dkappa"]);
} catch (const std::exception& e) {
AERROR << "Failed to parse JSON data: " << e.what();
return false;
}
}
return true;
}
bool GenerateNavigationInfo(
const std::vector<std::string>& navigation_line_filenames,
NavigationInfo* navigation_info) {
CHECK_NOTNULL(navigation_info);
int i = 0;
for (const std::string& filename : navigation_line_filenames) {
auto* navigation_path = navigation_info->add_navigation_path();
if (!GetNavigationPathFromFile(filename, navigation_path)) {
continue;
}
navigation_path->set_path_priority(i);
navigation_path->mutable_path()->set_name("Navigation path " + i);
++i;
}
return navigation_info->navigation_path_size() > 0;
}
} // namespace
class NavigationLaneTest : public testing::Test {
public:
virtual void SetUp() {
vehicle_state_provider_ = std::make_shared<VehicleStateProvider>();
RelativeMapConfig config;
EXPECT_TRUE(cyber::common::GetProtoFromFile(
FLAGS_relative_map_config_filename, &config));
navigation_lane_.SetConfig(config.navigation_lane());
navigation_lane_.SetVehicleStateProvider(vehicle_state_provider_.get());
map_param_ = config.map_param();
navigation_lane_.SetDefaultWidth(map_param_.default_left_width(),
map_param_.default_right_width());
data_file_dir_ = "modules/map/relative_map/testdata/multi_lane_map/";
localization::LocalizationEstimate localization;
canbus::Chassis chassis;
EXPECT_TRUE(cyber::common::GetProtoFromFile(
data_file_dir_ + "localization_info.pb.txt", &localization));
EXPECT_TRUE(cyber::common::GetProtoFromFile(
data_file_dir_ + "chassis_info.pb.txt", &chassis));
vehicle_state_provider_->Update(localization, chassis);
}
protected:
NavigationLane navigation_lane_;
NavigationInfo navigation_info_;
MapGenerationParam map_param_;
std::vector<std::string> navigation_line_filenames_;
std::string data_file_dir_;
std::shared_ptr<VehicleStateProvider> vehicle_state_provider_ = nullptr;
};
TEST_F(NavigationLaneTest, GenerateOneLaneMap) {
navigation_line_filenames_.emplace_back(data_file_dir_ + "left.smoothed");
EXPECT_TRUE(
GenerateNavigationInfo(navigation_line_filenames_, &navigation_info_));
navigation_lane_.UpdateNavigationInfo(navigation_info_);
EXPECT_TRUE(navigation_lane_.GeneratePath());
EXPECT_GT(navigation_lane_.Path().path().path_point_size(), 0);
MapMsg map_msg;
EXPECT_TRUE(navigation_lane_.CreateMap(map_param_, &map_msg));
EXPECT_EQ(1, map_msg.hdmap().lane_size());
auto iter = map_msg.navigation_path().begin();
EXPECT_EQ(0, iter->second.path_priority());
const auto& path = iter->second.path();
EXPECT_DOUBLE_EQ(-1.1603367640051669, path.path_point(0).x())
<< "Path 0: actual x: " << path.path_point(0).x();
EXPECT_DOUBLE_EQ(2.760810222539626, path.path_point(0).y())
<< "Path 0: actual y: " << path.path_point(0).y();
}
TEST_F(NavigationLaneTest, GenerateTwoLaneMap) {
navigation_line_filenames_.emplace_back(data_file_dir_ + "left.smoothed");
navigation_line_filenames_.emplace_back(data_file_dir_ + "right.smoothed");
EXPECT_TRUE(
GenerateNavigationInfo(navigation_line_filenames_, &navigation_info_));
navigation_lane_.UpdateNavigationInfo(navigation_info_);
EXPECT_TRUE(navigation_lane_.GeneratePath());
EXPECT_GT(navigation_lane_.Path().path().path_point_size(), 0);
MapMsg map_msg;
EXPECT_TRUE(navigation_lane_.CreateMap(map_param_, &map_msg));
EXPECT_EQ(2, map_msg.hdmap().lane_size());
for (auto iter = map_msg.navigation_path().begin();
iter != map_msg.navigation_path().end(); ++iter) {
const auto& path = iter->second.path();
switch (iter->second.path_priority()) {
case 0:
EXPECT_DOUBLE_EQ(-1.1603367640051669, path.path_point(0).x())
<< "Path 0: actual x: " << path.path_point(0).x();
EXPECT_DOUBLE_EQ(2.760810222539626, path.path_point(0).y())
<< "Path 0: actual y: " << path.path_point(0).y();
break;
case 1:
EXPECT_DOUBLE_EQ(-1.3377519530092672, path.path_point(0).x())
<< "Path 1: actual x: " << path.path_point(0).x();
EXPECT_DOUBLE_EQ(-3.1906635795653755, path.path_point(0).y())
<< "Path 1: actual y: " << path.path_point(0).y();
break;
default:
FAIL() << "We shouldn't get here.";
}
}
}
TEST_F(NavigationLaneTest, GenerateThreeLaneMap) {
navigation_line_filenames_.emplace_back(data_file_dir_ + "left.smoothed");
navigation_line_filenames_.emplace_back(data_file_dir_ + "middle.smoothed");
navigation_line_filenames_.emplace_back(data_file_dir_ + "right.smoothed");
EXPECT_TRUE(
GenerateNavigationInfo(navigation_line_filenames_, &navigation_info_));
navigation_lane_.UpdateNavigationInfo(navigation_info_);
EXPECT_TRUE(navigation_lane_.GeneratePath());
EXPECT_GT(navigation_lane_.Path().path().path_point_size(), 0);
MapMsg map_msg;
EXPECT_TRUE(navigation_lane_.CreateMap(map_param_, &map_msg));
EXPECT_EQ(3, map_msg.hdmap().lane_size());
for (auto iter = map_msg.navigation_path().begin();
iter != map_msg.navigation_path().end(); ++iter) {
const auto& path = iter->second.path();
switch (iter->second.path_priority()) {
case 0:
EXPECT_DOUBLE_EQ(-1.2892630711168522, path.path_point(0).x())
<< "Path 0: actual x: " << path.path_point(0).x();
EXPECT_DOUBLE_EQ(3.0675669139329176, path.path_point(0).y())
<< "Path 0: actual y: " << path.path_point(0).y();
break;
case 1:
EXPECT_DOUBLE_EQ(-1.1466795765610884, path.path_point(0).x())
<< "Path 1: actual x: " << path.path_point(0).x();
EXPECT_DOUBLE_EQ(-0.092193218761606729, path.path_point(0).y())
<< "Path 1: actual y: " << path.path_point(0).y();
break;
case 2:
EXPECT_DOUBLE_EQ(-1.3377519530092672, path.path_point(0).x())
<< "Path 2: actual x: " << path.path_point(0).x();
EXPECT_DOUBLE_EQ(-3.1906635795653755, path.path_point(0).y())
<< "Path 2: actual y: " << path.path_point(0).y();
break;
default:
FAIL() << "We shouldn't get here.";
}
}
}
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/relative_map.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/relative_map/relative_map.h"
#include "cyber/common/file.h"
#include "modules/common/math/vec2d.h"
#include "modules/common/util/util.h"
#include "modules/common/vehicle_state/vehicle_state_provider.h"
#include "modules/map/relative_map/common/relative_map_gflags.h"
namespace apollo {
namespace relative_map {
using apollo::canbus::Chassis;
using apollo::common::ErrorCode;
using apollo::common::Status;
using apollo::common::VehicleStateProvider;
using apollo::common::monitor::MonitorMessageItem;
using apollo::localization::LocalizationEstimate;
using apollo::perception::PerceptionObstacles;
RelativeMap::RelativeMap()
: monitor_logger_buffer_(MonitorMessageItem::RELATIVE_MAP),
vehicle_state_provider_(nullptr) {}
Status RelativeMap::Init(common::VehicleStateProvider* vehicle_state_provider) {
vehicle_state_provider_ = vehicle_state_provider;
if (!FLAGS_use_navigation_mode) {
AERROR << "FLAGS_use_navigation_mode is false, system is not configured "
"for relative map mode";
return Status(ErrorCode::RELATIVE_MAP_ERROR,
"FLAGS_use_navigation_mode is not true.");
}
config_.Clear();
if (!cyber::common::GetProtoFromFile(FLAGS_relative_map_config_filename,
&config_)) {
return Status(ErrorCode::RELATIVE_MAP_ERROR,
"Unable to load relative map conf file: " +
FLAGS_relative_map_config_filename);
}
navigation_lane_.SetConfig(config_.navigation_lane());
navigation_lane_.SetVehicleStateProvider(vehicle_state_provider);
const auto& map_param = config_.map_param();
navigation_lane_.SetDefaultWidth(map_param.default_left_width(),
map_param.default_right_width());
return Status::OK();
}
void LogErrorStatus(MapMsg* map_msg, const std::string& error_msg) {
auto* status = map_msg->mutable_header()->mutable_status();
status->set_msg(error_msg);
status->set_error_code(ErrorCode::RELATIVE_MAP_ERROR);
}
apollo::common::Status RelativeMap::Start() {
monitor_logger_buffer_.INFO("RelativeMap started");
return Status::OK();
}
bool RelativeMap::Process(MapMsg* const map_msg) {
{
std::lock_guard<std::mutex> lock(navigation_lane_mutex_);
CreateMapFromNavigationLane(map_msg);
}
return true;
}
void RelativeMap::OnNavigationInfo(const NavigationInfo& navigation_info) {
{
std::lock_guard<std::mutex> lock(navigation_lane_mutex_);
navigation_lane_.UpdateNavigationInfo(navigation_info);
}
}
void RelativeMap::OnPerception(
const PerceptionObstacles& perception_obstacles) {
{
std::lock_guard<std::mutex> lock(navigation_lane_mutex_);
perception_obstacles_.CopyFrom(perception_obstacles);
}
}
void RelativeMap::OnChassis(const Chassis& chassis) {
{
std::lock_guard<std::mutex> lock(navigation_lane_mutex_);
chassis_.CopyFrom(chassis);
}
}
void RelativeMap::OnLocalization(const LocalizationEstimate& localization) {
{
std::lock_guard<std::mutex> lock(navigation_lane_mutex_);
localization_.CopyFrom(localization);
}
}
bool RelativeMap::CreateMapFromNavigationLane(MapMsg* map_msg) {
CHECK_NOTNULL(map_msg);
// update vehicle state from localization and chassis
LocalizationEstimate const& localization = localization_;
Chassis const& chassis = chassis_;
vehicle_state_provider_->Update(localization, chassis);
map_msg->mutable_localization()->CopyFrom(localization_);
// update navigation_lane from perception_obstacles (lane marker)
PerceptionObstacles const& perception = perception_obstacles_;
navigation_lane_.UpdatePerception(perception);
map_msg->mutable_lane_marker()->CopyFrom(perception_obstacles_.lane_marker());
if (!navigation_lane_.GeneratePath()) {
LogErrorStatus(map_msg, "Failed to generate a navigation path.");
return false;
}
if (navigation_lane_.Path().path().path_point().empty()) {
LogErrorStatus(map_msg,
"There is no path point in currnet navigation path.");
return false;
}
// create map proto from navigation_path
if (!navigation_lane_.CreateMap(config_.map_param(), map_msg)) {
LogErrorStatus(map_msg,
"Failed to create map from current navigation path.");
AERROR << "Failed to create map from navigation path.";
return false;
}
ADEBUG << "There is/are " << map_msg->navigation_path().size()
<< " navigation path(s) in the current reltative map.";
return true;
}
void RelativeMap::Stop() { monitor_logger_buffer_.INFO("RelativeMap stopped"); }
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/navigation_lane.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
/**
* @file
* @brief This file provides the implementation of the class `NavigationLane`.
*/
#include "modules/map/relative_map/navigation_lane.h"
#include <algorithm>
#include <limits>
#include <string>
#include "absl/strings/str_cat.h"
#include "cyber/common/log.h"
#include "modules/common/math/math_utils.h"
#include "modules/common/math/vec2d.h"
#include "modules/common/util/util.h"
#include "modules/common_msgs/map_msgs/map_lane.pb.h"
#include "modules/map/relative_map/common/relative_map_gflags.h"
namespace apollo {
namespace relative_map {
using apollo::common::VehicleStateProvider;
using apollo::common::math::Vec2d;
using apollo::common::util::DistanceXY;
using apollo::hdmap::Lane;
using apollo::common::util::operator+;
using apollo::common::util::IsFloatEqual;
namespace {
/**
* @brief Create a single lane map.
* @param navi_path_tuple A navigation path tuple.
* @param map_config Map generation configuration information.
* @param perception_obstacles The Perceived obstacle information and the lane
* markings are used here.
* @param hdmap The output single lane map in high-definition map format in the
* relative map.
* @param navigation_path The output navigation path map in the relative map.
* @return True if the map is created; false otherwise.
*/
bool CreateSingleLaneMap(
const NaviPathTuple &navi_path_tuple, const MapGenerationParam &map_config,
const perception::PerceptionObstacles &perception_obstacles,
hdmap::Map *const hdmap,
google::protobuf::Map<std::string, NavigationPath> *const navigation_path) {
CHECK_NOTNULL(hdmap);
CHECK_NOTNULL(navigation_path);
const auto &navi_path = std::get<3>(navi_path_tuple);
const auto &path = navi_path->path();
if (path.path_point_size() < 2) {
AERROR << "The path length of line index is invalid";
return false;
}
auto *lane = hdmap->add_lane();
lane->mutable_id()->set_id(
absl::StrCat(navi_path->path_priority(), "_", path.name()));
(*navigation_path)[lane->id().id()] = *navi_path;
// lane types
lane->set_type(Lane::CITY_DRIVING);
lane->set_turn(Lane::NO_TURN);
// speed limit
lane->set_speed_limit(map_config.default_speed_limit());
// center line
auto *curve_segment = lane->mutable_central_curve()->add_segment();
curve_segment->set_heading(path.path_point(0).theta());
auto *line_segment = curve_segment->mutable_line_segment();
// left boundary
hdmap::LineSegment *left_segment = nullptr;
if (FLAGS_relative_map_generate_left_boundray) {
auto *left_boundary = lane->mutable_left_boundary();
auto *left_boundary_type = left_boundary->add_boundary_type();
left_boundary->set_virtual_(false);
left_boundary_type->set_s(0.0);
left_boundary_type->add_types(
perception_obstacles.lane_marker().left_lane_marker().lane_type());
left_segment =
left_boundary->mutable_curve()->add_segment()->mutable_line_segment();
}
// right boundary
auto *right_boundary = lane->mutable_right_boundary();
auto *right_boundary_type = right_boundary->add_boundary_type();
right_boundary->set_virtual_(false);
right_boundary_type->set_s(0.0);
right_boundary_type->add_types(
perception_obstacles.lane_marker().right_lane_marker().lane_type());
auto *right_segment =
right_boundary->mutable_curve()->add_segment()->mutable_line_segment();
const double lane_left_width = std::get<1>(navi_path_tuple);
const double lane_right_width = std::get<2>(navi_path_tuple);
for (const auto &path_point : path.path_point()) {
auto *point = line_segment->add_point();
point->set_x(path_point.x());
point->set_y(path_point.y());
point->set_z(path_point.z());
if (FLAGS_relative_map_generate_left_boundray) {
auto *left_sample = lane->add_left_sample();
left_sample->set_s(path_point.s());
left_sample->set_width(lane_left_width);
left_segment->add_point()->CopyFrom(
*point + lane_left_width *
Vec2d::CreateUnitVec2d(path_point.theta() + M_PI_2));
}
auto *right_sample = lane->add_right_sample();
right_sample->set_s(path_point.s());
right_sample->set_width(lane_right_width);
right_segment->add_point()->CopyFrom(
*point +
lane_right_width * Vec2d::CreateUnitVec2d(path_point.theta() - M_PI_2));
}
return true;
}
} // namespace
NavigationLane::NavigationLane(const NavigationLaneConfig &config)
: config_(config) {}
void NavigationLane::SetConfig(const NavigationLaneConfig &config) {
config_ = config;
}
void NavigationLane::SetVehicleStateProvider(
common::VehicleStateProvider *vehicle_state_provider) {
vehicle_state_provider_ = vehicle_state_provider;
}
void NavigationLane::UpdateNavigationInfo(
const NavigationInfo &navigation_path) {
navigation_info_ = navigation_path;
last_project_index_map_.clear();
navigation_path_list_.clear();
current_navi_path_tuple_ = std::make_tuple(-1, -1.0, -1.0, nullptr);
if (FLAGS_enable_cyclic_rerouting) {
UpdateStitchIndexInfo();
}
}
bool NavigationLane::GeneratePath() {
navigation_path_list_.clear();
current_navi_path_tuple_ = std::make_tuple(-1, -1.0, -1.0, nullptr);
// original_pose is in world coordination: ENU
original_pose_ = vehicle_state_provider_->original_pose();
int navigation_line_num = navigation_info_.navigation_path_size();
const auto &lane_marker = perception_obstacles_.lane_marker();
auto generate_path_on_perception_func = [this, &lane_marker]() {
auto current_navi_path = std::make_shared<NavigationPath>();
auto *path = current_navi_path->mutable_path();
ConvertLaneMarkerToPath(lane_marker, path);
current_navi_path->set_path_priority(0);
double left_width = perceived_left_width_ > 0.0 ? perceived_left_width_
: default_left_width_;
double right_width = perceived_right_width_ > 0.0 ? perceived_right_width_
: default_right_width_;
current_navi_path_tuple_ =
std::make_tuple(0, left_width, right_width, current_navi_path);
};
ADEBUG << "Beginning of NavigationLane::GeneratePath().";
ADEBUG << "navigation_line_num: " << navigation_line_num;
// priority: merge > navigation line > perception lane marker
if (config_.lane_source() == NavigationLaneConfig::OFFLINE_GENERATED &&
navigation_line_num > 0) {
// Generate multiple navigation paths based on navigation lines.
// Don't worry about efficiency because the total number of navigation lines
// will not exceed 10 at most.
for (int i = 0; i < navigation_line_num; ++i) {
auto current_navi_path = std::make_shared<NavigationPath>();
auto *path = current_navi_path->mutable_path();
if (ConvertNavigationLineToPath(i, path)) {
current_navi_path->set_path_priority(
navigation_info_.navigation_path(i).path_priority());
navigation_path_list_.emplace_back(
i, default_left_width_, default_right_width_, current_navi_path);
}
}
// If no navigation path is generated based on navigation lines, we generate
// one where the vehicle is located based on perceived lane markers.
if (navigation_path_list_.empty()) {
generate_path_on_perception_func();
return true;
}
// Sort navigation paths from left to right according to the vehicle's
// direction.
// In the FLU vehicle coordinate system, the y-coordinate on the left side
// of the vehicle is positive, and the right value is negative. Therefore,
// the navigation paths can be sorted from left to right according to its
// y-coordinate.
navigation_path_list_.sort(
[](const NaviPathTuple &left, const NaviPathTuple &right) {
double left_y = std::get<3>(left)->path().path_point(0).y();
double right_y = std::get<3>(right)->path().path_point(0).y();
return left_y > right_y;
});
// Get which navigation path the vehicle is currently on.
double min_d = std::numeric_limits<double>::max();
for (const auto &navi_path_tuple : navigation_path_list_) {
int current_line_index = std::get<0>(navi_path_tuple);
ADEBUG << "Current navigation path index is: " << current_line_index;
double current_d = std::numeric_limits<double>::max();
auto item_iter = last_project_index_map_.find(current_line_index);
if (item_iter != last_project_index_map_.end()) {
current_d = item_iter->second.second;
}
if (current_d < min_d) {
min_d = current_d;
current_navi_path_tuple_ = navi_path_tuple;
}
}
// Merge current navigation path where the vehicle is located with perceived
// lane markers.
auto *path = std::get<3>(current_navi_path_tuple_)->mutable_path();
MergeNavigationLineAndLaneMarker(std::get<0>(current_navi_path_tuple_),
path);
// Set the width for the navigation path which the vehicle is currently on.
double left_width = perceived_left_width_ > 0.0 ? perceived_left_width_
: default_left_width_;
double right_width = perceived_right_width_ > 0.0 ? perceived_right_width_
: default_right_width_;
if (!IsFloatEqual(left_width, default_left_width_) &&
!IsFloatEqual(right_width, default_right_width_)) {
left_width = left_width > default_left_width_ ? left_width - min_d
: left_width + min_d;
right_width = right_width > default_right_width_ ? right_width - min_d
: right_width + min_d;
}
ADEBUG << "The left width of current lane is: " << left_width
<< " and the right width of current lane is: " << right_width;
std::get<1>(current_navi_path_tuple_) = left_width;
std::get<2>(current_navi_path_tuple_) = right_width;
auto curr_navi_path_iter = std::find_if(
std::begin(navigation_path_list_), std::end(navigation_path_list_),
[this](const NaviPathTuple &item) {
return std::get<0>(item) == std::get<0>(current_navi_path_tuple_);
});
if (curr_navi_path_iter != std::end(navigation_path_list_)) {
std::get<1>(*curr_navi_path_iter) = left_width;
std::get<2>(*curr_navi_path_iter) = right_width;
}
// Set the width between each navigation path and its adjacent path.
// The reason for using average of multiple points is to prevent too much
// interference from a singularity.
// If current navigation path is the path which the vehicle is currently
// on, the current lane width uses the perceived width.
int average_point_size = 5;
for (auto iter = navigation_path_list_.begin();
iter != navigation_path_list_.end(); ++iter) {
const auto &curr_path = std::get<3>(*iter)->path();
// Left neighbor
auto prev_iter = std::prev(iter);
if (prev_iter != navigation_path_list_.end()) {
const auto &prev_path = std::get<3>(*prev_iter)->path();
average_point_size = std::min(
average_point_size,
std::min(curr_path.path_point_size(), prev_path.path_point_size()));
double lateral_distance_sum = 0.0;
for (int i = 0; i < average_point_size; ++i) {
lateral_distance_sum +=
fabs(curr_path.path_point(i).y() - prev_path.path_point(i).y());
}
double width = lateral_distance_sum /
static_cast<double>(average_point_size) / 2.0;
width = common::math::Clamp(width, config_.min_lane_half_width(),
config_.max_lane_half_width());
auto &curr_left_width = std::get<1>(*iter);
auto &prev_right_width = std::get<2>(*prev_iter);
if (std::get<0>(*iter) == std::get<0>(current_navi_path_tuple_)) {
prev_right_width = 2.0 * width - curr_left_width;
} else {
curr_left_width = width;
prev_right_width = width;
}
}
// Right neighbor
auto next_iter = std::next(iter);
if (next_iter != navigation_path_list_.end()) {
const auto &next_path = std::get<3>(*next_iter)->path();
average_point_size = std::min(
average_point_size,
std::min(curr_path.path_point_size(), next_path.path_point_size()));
double lateral_distance_sum = 0.0;
for (int i = 0; i < average_point_size; ++i) {
lateral_distance_sum +=
fabs(curr_path.path_point(i).y() - next_path.path_point(i).y());
}
double width = lateral_distance_sum /
static_cast<double>(average_point_size) / 2.0;
width = common::math::Clamp(width, config_.min_lane_half_width(),
config_.max_lane_half_width());
auto &curr_right_width = std::get<2>(*iter);
auto &next_left_width = std::get<1>(*next_iter);
if (std::get<0>(*iter) == std::get<0>(current_navi_path_tuple_)) {
next_left_width = 2.0 * width - curr_right_width;
} else {
next_left_width = width;
curr_right_width = width;
}
}
}
return true;
}
// Generate a navigation path where the vehicle is located based on perceived
// lane markers.
generate_path_on_perception_func();
return true;
}
double NavigationLane::EvaluateCubicPolynomial(const double c0, const double c1,
const double c2, const double c3,
const double x) const {
return ((c3 * x + c2) * x + c1) * x + c0;
}
void NavigationLane::MergeNavigationLineAndLaneMarker(
const int line_index, common::Path *const path) {
CHECK_NOTNULL(path);
// If the size of "path" points is smaller than 2, it indicates that a
// navigation path needs to be generated firstly.
if (path->path_point_size() < 2) {
path->Clear();
ConvertNavigationLineToPath(line_index, path);
}
// If the size of "path" points is still smaller than 2, just generate a
// navigation path based on perceived lane markers.
if (path->path_point_size() < 2) {
path->Clear();
ConvertLaneMarkerToPath(perception_obstacles_.lane_marker(), path);
return;
}
common::Path lane_marker_path;
ConvertLaneMarkerToPath(perception_obstacles_.lane_marker(),
&lane_marker_path);
// If the size of lane marker path points is smaller than 2, merging is not
// required.
if (lane_marker_path.path_point_size() < 2) {
return;
}
int lane_marker_index = 0;
double navigation_line_weight = 1.0 - config_.lane_marker_weight();
for (int i = 0; i < path->path_point_size(); ++i) {
auto *point = path->mutable_path_point(i);
double s = point->s();
auto lane_maker_point = GetPathPointByS(lane_marker_path, lane_marker_index,
s, &lane_marker_index);
// For the beginning and ending portions of a navigation path beyond the
// perceived path, only the y-coordinates in the FLU coordinate system are
// used for merging.
const int marker_size = lane_marker_path.path_point_size();
if (lane_marker_index < 0 || lane_marker_index > (marker_size - 1)) {
point->set_y(navigation_line_weight * point->y() +
(1 - navigation_line_weight) * lane_maker_point.y());
lane_marker_index = 0;
continue;
}
*point = common::util::GetWeightedAverageOfTwoPathPoints(
*point, lane_maker_point, navigation_line_weight,
1 - navigation_line_weight);
}
}
common::PathPoint NavigationLane::GetPathPointByS(const common::Path &path,
const int start_index,
const double s,
int *const matched_index) {
CHECK_NOTNULL(matched_index);
const int size = path.path_point_size();
if (start_index < 0 || s < path.path_point(start_index).s()) {
*matched_index = -1;
return path.path_point(0);
}
if (s > path.path_point(size - 1).s() || start_index > (size - 1)) {
*matched_index = size;
return path.path_point(size - 1);
}
static constexpr double kEpsilon = 1e-9;
if (std::fabs(path.path_point(start_index).s() - s) < kEpsilon) {
*matched_index = start_index;
return path.path_point(start_index);
}
int i = start_index;
while (i + 1 < size && path.path_point(i + 1).s() < s) {
++i;
}
*matched_index = i;
// x, y, z, theta, kappa, s, dkappa, ddkappa
const double r = (s - path.path_point(i).s()) /
(path.path_point(i + 1).s() - path.path_point(i).s());
auto p = common::util::GetWeightedAverageOfTwoPathPoints(
path.path_point(i), path.path_point(i + 1), 1 - r, r);
return p;
}
bool NavigationLane::ConvertNavigationLineToPath(const int line_index,
common::Path *const path) {
CHECK_NOTNULL(path);
if (!navigation_info_.navigation_path(line_index).has_path() ||
navigation_info_.navigation_path(line_index).path().path_point_size() ==
0) {
// path is empty
return false;
}
path->set_name(absl::StrCat("Path from navigation line index ", line_index));
const auto &navigation_path =
navigation_info_.navigation_path(line_index).path();
auto proj_index_pair = UpdateProjectionIndex(navigation_path, line_index);
// Can't find a proper projection index in the "line_index" lane according to
// current vehicle position.
int current_project_index = proj_index_pair.first;
if (current_project_index < 0 ||
current_project_index >= navigation_path.path_point_size()) {
AERROR << "Invalid projection index " << current_project_index
<< " in line " << line_index;
last_project_index_map_.erase(line_index);
return false;
} else {
last_project_index_map_[line_index] = proj_index_pair;
}
// offset between the current vehicle state and navigation line
const double dx = -original_pose_.position().x();
const double dy = -original_pose_.position().y();
auto enu_to_flu_func = [this, dx, dy](const double enu_x, const double enu_y,
const double enu_theta, double *flu_x,
double *flu_y, double *flu_theta) {
if (flu_x != nullptr && flu_y != nullptr) {
Eigen::Vector2d flu_coordinate = common::math::RotateVector2d(
{enu_x + dx, enu_y + dy}, -original_pose_.heading());
*flu_x = flu_coordinate.x();
*flu_y = flu_coordinate.y();
}
if (flu_theta != nullptr) {
*flu_theta = common::math::NormalizeAngle(
common::math::NormalizeAngle(enu_theta) - original_pose_.heading());
}
};
auto gen_navi_path_loop_func =
[this, &navigation_path, &enu_to_flu_func](
const int start, const int end, const double ref_s_base,
const double max_length, common::Path *path) {
CHECK_NOTNULL(path);
const double ref_s = navigation_path.path_point(start).s();
for (int i = start; i < end; ++i) {
auto *point = path->add_path_point();
point->CopyFrom(navigation_path.path_point(i));
double flu_x = 0.0;
double flu_y = 0.0;
double flu_theta = 0.0;
enu_to_flu_func(point->x(), point->y(), point->theta(), &flu_x,
&flu_y, &flu_theta);
point->set_x(flu_x);
point->set_y(flu_y);
point->set_theta(flu_theta);
const double accumulated_s =
navigation_path.path_point(i).s() - ref_s + ref_s_base;
point->set_s(accumulated_s);
if (accumulated_s > max_length) {
break;
}
}
};
double dist = navigation_path.path_point().rbegin()->s() -
navigation_path.path_point(current_project_index).s();
// Stitch current position to the beginning for a cyclic/circular route.
if (FLAGS_enable_cyclic_rerouting &&
dist < config_.max_len_from_navigation_line()) {
auto item_iter = stitch_index_map_.find(line_index);
if (item_iter != stitch_index_map_.end()) {
int stitch_start_index =
std::max(item_iter->second.first, item_iter->second.second);
stitch_start_index = std::max(current_project_index, stitch_start_index);
stitch_start_index =
std::min(navigation_path.path_point_size() - 1, stitch_start_index);
int stitch_end_index =
std::min(item_iter->second.first, item_iter->second.second);
stitch_end_index = std::max(0, stitch_end_index);
stitch_end_index = std::min(current_project_index, stitch_end_index);
ADEBUG << "The stitch_start_index is: " << stitch_start_index << "; "
<< "the stitch_end_index is: " << stitch_end_index << "; "
<< "the current_project_index is: " << current_project_index
<< " for the navigation line: " << line_index;
double length = navigation_path.path_point(stitch_start_index).s() -
navigation_path.path_point(current_project_index).s();
gen_navi_path_loop_func(std::max(0, current_project_index - 3),
stitch_start_index + 1, 0.0, length, path);
if (length > config_.max_len_from_navigation_line()) {
return true;
}
gen_navi_path_loop_func(stitch_end_index,
navigation_path.path_point_size(), length,
config_.max_len_from_navigation_line(), path);
return true;
}
}
if (dist < 20) {
return false;
}
gen_navi_path_loop_func(std::max(0, current_project_index - 3),
navigation_path.path_point_size(), 0.0,
config_.max_len_from_navigation_line(), path);
return true;
}
// project adc_state_ onto path
ProjIndexPair NavigationLane::UpdateProjectionIndex(const common::Path &path,
const int line_index) {
if (path.path_point_size() < 2) {
return std::make_pair(-1, std::numeric_limits<double>::max());
}
double min_d = std::numeric_limits<double>::max();
const int path_size = path.path_point_size();
int current_project_index = 0;
auto item_iter = last_project_index_map_.find(line_index);
if (item_iter != last_project_index_map_.end()) {
current_project_index = std::max(0, item_iter->second.first);
}
// A lambda expression for checking the distance between the vehicle's initial
// position and the starting point of the current navigation line.
auto check_distance_func = [this, &path, &path_size](
const int project_index,
double *project_distance) {
// Convert the starting point of the current navigation line from the
// ENU coordinates to the FLU coordinates. For the multi-lane situation,
// the distance in the Y-axis direction can be appropriately enlarged,
// but the distance in the X-axis direction should be small.
// flu_x = (enu_x - x_shift) * cos(angle) + (enu_y - y_shift) *
// sin(angle)
// flu_y = (enu_y - y_shift) * cos(angle) - (enu_x - x_shift) *
// sin(angle)
if (project_index < 0 || project_index > path_size - 1) {
return false;
}
double enu_x = path.path_point(project_index).x();
double enu_y = path.path_point(project_index).y();
double x_shift = original_pose_.position().x();
double y_shift = original_pose_.position().y();
double cos_angle = std::cos(original_pose_.heading());
double sin_angle = std::sin(original_pose_.heading());
double flu_x =
(enu_x - x_shift) * cos_angle + (enu_y - y_shift) * sin_angle;
double flu_y =
(enu_y - y_shift) * cos_angle - (enu_x - x_shift) * sin_angle;
if (project_distance != nullptr) {
*project_distance = std::fabs(flu_y);
}
if (std::fabs(flu_x) < config_.max_distance_to_navigation_line() / 2.0 &&
std::fabs(flu_y) < config_.max_distance_to_navigation_line() * 2.0) {
return true;
}
return false;
};
int index = 0;
for (int i = current_project_index; i + 1 < path_size; ++i) {
const double d = DistanceXY(original_pose_.position(), path.path_point(i));
if (d < min_d) {
min_d = d;
index = i;
}
const double kMaxDistance = 50.0;
if (current_project_index != 0 && d > kMaxDistance) {
break;
}
}
if (check_distance_func(index, &min_d)) {
if (FLAGS_enable_cyclic_rerouting) {
// We create a condition here that sets the "current_project_index" to
// 0, should the vehicle reach the end point of a cyclic/circular
// route. For cyclic/circular navigation lines where the distance
// between their start and end points is very small, it is tedious
// and unnecessary to re-send navigation lines every time.
auto item_iter = stitch_index_map_.find(line_index);
if (item_iter != stitch_index_map_.end()) {
int start_index =
std::max(item_iter->second.first, item_iter->second.second);
int end_index =
std::min(item_iter->second.first, item_iter->second.second);
int index_diff = index - start_index;
if (index_diff >= 0) {
index = std::min(end_index + index_diff, start_index);
min_d = DistanceXY(original_pose_.position(), path.path_point(index));
}
}
}
return std::make_pair(index, min_d);
}
return std::make_pair(-1, std::numeric_limits<double>::max());
}
double NavigationLane::GetKappa(const double c1, const double c2,
const double c3, const double x) {
const double dy = 3 * c3 * x * x + 2 * c2 * x + c1;
const double d2y = 6 * c3 * x + 2 * c2;
return d2y / std::pow((1 + dy * dy), 1.5);
}
void NavigationLane::ConvertLaneMarkerToPath(
const perception::LaneMarkers &lane_marker, common::Path *const path) {
CHECK_NOTNULL(path);
path->set_name("Path from lane markers.");
const auto &left_lane = lane_marker.left_lane_marker();
const auto &right_lane = lane_marker.right_lane_marker();
double path_c0 = (left_lane.c0_position() + right_lane.c0_position()) / 2.0;
double path_c1 =
(left_lane.c1_heading_angle() + right_lane.c1_heading_angle()) / 2.0;
double path_c2 = (left_lane.c2_curvature() + right_lane.c2_curvature()) / 2.0;
double path_c3 = (left_lane.c3_curvature_derivative() +
right_lane.c3_curvature_derivative()) /
2.0;
const double current_speed =
vehicle_state_provider_->vehicle_state().linear_velocity();
double path_range =
current_speed * config_.ratio_navigation_lane_len_to_speed();
if (path_range <= config_.min_len_for_navigation_lane()) {
path_range = config_.min_len_for_navigation_lane();
} else {
path_range = config_.max_len_for_navigation_lane();
}
const double unit_z = 1.0;
const double start_s = -2.0;
double accumulated_s = start_s;
for (double z = start_s; z <= path_range; z += unit_z) {
double x1 = z;
double y1 = 0;
if (left_lane.view_range() > config_.min_view_range_to_use_lane_marker() ||
right_lane.view_range() > config_.min_view_range_to_use_lane_marker()) {
y1 = EvaluateCubicPolynomial(path_c0, path_c1, path_c2, path_c3, z);
}
auto *point = path->add_path_point();
point->set_x(x1);
point->set_y(y1);
if (path->path_point_size() > 1) {
auto &pre_point = path->path_point(path->path_point_size() - 2);
accumulated_s += std::hypot(x1 - pre_point.x(), y1 - pre_point.y());
}
point->set_s(accumulated_s);
point->set_theta(
std::atan2(3 * path_c3 * x1 * x1 + 2 * path_c2 * x1 + path_c1, 1));
point->set_kappa(GetKappa(path_c1, path_c2, path_c3, x1));
const double k1 = GetKappa(path_c1, path_c2, path_c3, x1 - 0.0001);
const double k2 = GetKappa(path_c1, path_c2, path_c3, x1 + 0.0001);
point->set_dkappa((k2 - k1) / 0.0002);
}
perceived_left_width_ = std::fabs(left_lane.c0_position());
perceived_right_width_ = std::fabs(right_lane.c0_position());
// If the perceived lane width is incorrect, use the default lane width
// directly.
double perceived_lane_width = perceived_left_width_ + perceived_right_width_;
if (perceived_lane_width < 2.0 * config_.min_lane_half_width() ||
perceived_lane_width > 2.0 * config_.max_lane_half_width()) {
perceived_left_width_ = default_left_width_;
perceived_right_width_ = default_right_width_;
}
}
bool NavigationLane::CreateMap(const MapGenerationParam &map_config,
MapMsg *const map_msg) const {
auto *navigation_path = map_msg->mutable_navigation_path();
auto *hdmap = map_msg->mutable_hdmap();
auto *lane_marker = map_msg->mutable_lane_marker();
lane_marker->CopyFrom(perception_obstacles_.lane_marker());
// If no navigation path is generated based on navigation lines, we try to
// create map with "current_navi_path_tuple_" which is generated based on
// perceived lane markers.
if (navigation_path_list_.empty()) {
if (std::get<3>(current_navi_path_tuple_) != nullptr) {
FLAGS_relative_map_generate_left_boundray = true;
return CreateSingleLaneMap(current_navi_path_tuple_, map_config,
perception_obstacles_, hdmap, navigation_path);
} else {
return false;
}
}
int fail_num = 0;
FLAGS_relative_map_generate_left_boundray = true;
for (auto iter = navigation_path_list_.cbegin();
iter != navigation_path_list_.cend(); ++iter) {
std::size_t index = std::distance(navigation_path_list_.cbegin(), iter);
if (!CreateSingleLaneMap(*iter, map_config, perception_obstacles_, hdmap,
navigation_path)) {
AWARN << "Failed to generate lane: " << index;
++fail_num;
FLAGS_relative_map_generate_left_boundray = true;
continue;
}
FLAGS_relative_map_generate_left_boundray = false;
// The left border of the middle lane uses the right border of the left
// lane.
int lane_index = static_cast<int>(index) - fail_num;
if (lane_index > 0) {
auto *left_boundary =
hdmap->mutable_lane(lane_index)->mutable_left_boundary();
left_boundary->CopyFrom(hdmap->lane(lane_index - 1).right_boundary());
auto *left_sample =
hdmap->mutable_lane(lane_index)->mutable_left_sample();
left_sample->CopyFrom(hdmap->lane(lane_index - 1).right_sample());
}
}
int lane_num = hdmap->lane_size();
ADEBUG << "The Lane number is: " << lane_num;
// Set road boundary
auto *road = hdmap->add_road();
road->mutable_id()->set_id("road_" + hdmap->lane(0).id().id());
auto *section = road->add_section();
for (int i = 0; i < lane_num; ++i) {
auto *lane_id = section->add_lane_id();
lane_id->CopyFrom(hdmap->lane(0).id());
}
auto *outer_polygon = section->mutable_boundary()->mutable_outer_polygon();
auto *left_edge = outer_polygon->add_edge();
left_edge->set_type(apollo::hdmap::BoundaryEdge::LEFT_BOUNDARY);
left_edge->mutable_curve()->CopyFrom(hdmap->lane(0).left_boundary().curve());
auto *right_edge = outer_polygon->add_edge();
right_edge->set_type(apollo::hdmap::BoundaryEdge::RIGHT_BOUNDARY);
right_edge->mutable_curve()->CopyFrom(
hdmap->lane(lane_num - 1).right_boundary().curve());
// Set neighbor information for each lane
if (lane_num < 2) {
return true;
}
for (int i = 0; i < lane_num; ++i) {
auto *lane = hdmap->mutable_lane(i);
if (i > 0) {
lane->add_left_neighbor_forward_lane_id()->CopyFrom(
hdmap->lane(i - 1).id());
ADEBUG << "Left neighbor is: " << hdmap->lane(i - 1).id().id();
}
if (i < lane_num - 1) {
lane->add_right_neighbor_forward_lane_id()->CopyFrom(
hdmap->lane(i + 1).id());
ADEBUG << "Right neighbor is: " << hdmap->lane(i + 1).id().id();
}
}
return true;
}
void NavigationLane::UpdateStitchIndexInfo() {
stitch_index_map_.clear();
int navigation_line_num = navigation_info_.navigation_path_size();
if (navigation_line_num <= 0) {
return;
}
static constexpr int kMinPathPointSize = 10;
for (int i = 0; i < navigation_line_num; ++i) {
const auto &navigation_path = navigation_info_.navigation_path(i).path();
if (!navigation_info_.navigation_path(i).has_path() ||
navigation_path.path_point_size() < kMinPathPointSize) {
continue;
}
double min_distance = std::numeric_limits<double>::max();
StitchIndexPair min_index_pair = std::make_pair(-1, -1);
int path_size = navigation_path.path_point_size();
const double start_s = navigation_path.path_point(0).s();
const double end_s = navigation_path.path_point(path_size - 1).s();
for (int m = 0; m < path_size; ++m) {
double forward_s = navigation_path.path_point(m).s() - start_s;
if (forward_s > config_.max_len_from_navigation_line()) {
break;
}
for (int n = path_size - 1; n >= 0; --n) {
double reverse_s = end_s - navigation_path.path_point(n).s();
if (reverse_s > config_.max_len_from_navigation_line()) {
break;
}
if (m == n) {
break;
}
double current_distance = DistanceXY(navigation_path.path_point(m),
navigation_path.path_point(n));
if (current_distance < min_distance) {
min_distance = current_distance;
min_index_pair = std::make_pair(m, n);
}
}
}
if (min_distance < config_.min_lane_half_width()) {
AINFO << "The stitching pair is: (" << min_index_pair.first << ", "
<< min_index_pair.second << ") for the navigation line: " << i;
stitch_index_map_[i] = min_index_pair;
}
}
}
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/README.md | # Relative Map
## Introduction
Relative map module is a middle layer connecting HDMap/Perception module and planning module. This module generates real-time relative map in the body coordinate system (FLU) and a reference line for planning. The inputs for relative map module have two parts: offline and online. The offline part is navigation line (human driving path) and the HDMap information on and near navigation line. And the online part is the traffic sign related information from perception module, e.g., lane marker, crosswalk, traffic light etc. The generation of relative map can leverage both online and offline parts. It also works with either online or offline part only.
## Inputs
* NavigationInfo from dreamview module
* LaneMarker from perception module
* Localization from localization module
## Output
* Relative map follows map format defined in modules/map/proto/map.proto
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/relative_map_component.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/relative_map/relative_map_component.h"
#include "modules/common/adapters/adapter_gflags.h"
namespace apollo {
namespace relative_map {
using apollo::canbus::Chassis;
using apollo::localization::LocalizationEstimate;
using apollo::perception::PerceptionObstacles;
bool RelativeMapComponent::Init() {
vehicle_state_provider_ = std::make_shared<common::VehicleStateProvider>();
InitReaders();
return relative_map_.Init(vehicle_state_provider_.get()).ok() &&
relative_map_.Start().ok();
}
bool RelativeMapComponent::Proc() {
auto map_msg = std::make_shared<MapMsg>();
if (!relative_map_.Process(map_msg.get())) {
return false;
}
common::util::FillHeader(node_->Name(), map_msg.get());
relative_map_writer_->Write(map_msg);
return true;
}
bool RelativeMapComponent::InitReaders() {
perception_reader_ = node_->CreateReader<PerceptionObstacles>(
FLAGS_perception_obstacle_topic,
[this](const std::shared_ptr<PerceptionObstacles>& perception_obstacles) {
ADEBUG << "Received perception data: run perception callback.";
relative_map_.OnPerception(*perception_obstacles.get());
});
chassis_reader_ = node_->CreateReader<Chassis>(
FLAGS_chassis_topic, [this](const std::shared_ptr<Chassis>& chassis) {
ADEBUG << "Received chassis data: run chassis callback.";
relative_map_.OnChassis(*chassis.get());
});
localization_reader_ = node_->CreateReader<LocalizationEstimate>(
FLAGS_localization_topic,
[this](const std::shared_ptr<LocalizationEstimate>& localization) {
ADEBUG << "Received chassis data: run chassis callback.";
relative_map_.OnLocalization(*localization.get());
});
navigation_reader_ = node_->CreateReader<NavigationInfo>(
FLAGS_navigation_topic,
[this](const std::shared_ptr<NavigationInfo>& navigation_info) {
ADEBUG << "Received chassis data: run chassis callback.";
relative_map_.OnNavigationInfo(*navigation_info.get());
});
relative_map_writer_ = node_->CreateWriter<MapMsg>(FLAGS_relative_map_topic);
return true;
}
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/navigation_lane.h | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
/**
* @file
* @brief This file provides the declaration of the class `NavigationLane`.
*/
#pragma once
#include <list>
#include <memory>
#include <tuple>
#include <unordered_map>
#include <utility>
#include "modules/common/vehicle_state/proto/vehicle_state.pb.h"
#include "modules/common/vehicle_state/vehicle_state_provider.h"
#include "modules/common_msgs/localization_msgs/localization.pb.h"
#include "modules/common_msgs/planning_msgs/navigation.pb.h"
#include "modules/map/relative_map/proto/relative_map_config.pb.h"
#include "modules/common_msgs/perception_msgs/perception_obstacle.pb.h"
/**
* @namespace apollo::relative_map
* @brief apollo::relative_map
*/
namespace apollo {
namespace relative_map {
// A navigation path tuple.
//
// first element: original navigation line index of the current navigation path.
// A negative value indicates illegal.
//
// second element: half of the lateral distance to the left adjacent navigation
// path, that is, the left width of the lane generated by this navigation path.
// If the navigation path is generated based on lane markers, the value is the
// perceived left lane width. If there is no left adjacent navigation path, the
// value is "default_left_width_". A negative value indicates illegal.
//
// third element: half of the lateral distance to the right adjacent navigation
// path, that is, the right width of the lane generated by this navigation path.
// If the navigation path is generated based on lane markers, the value is the
// perceived right lane width. If there is no right adjacent navigation path,
// the value is "default_right_width_". A negative value indicates illegal.
//
// fourth element : a shared pointer of the current navigation path.
typedef std::tuple<int, double, double, std::shared_ptr<NavigationPath>>
NaviPathTuple;
// A stitching index pair.
// pair.first: the start stitching index of the current navigation line.
// pair.second: the end stitching index of the current navigation line.
typedef std::pair<int, int> StitchIndexPair;
// A projection index pair.
// pair.first: projection index of the vehicle in the current navigation line.
// pair.second: the distance between the vehicle's initial position and the
// projection position in the current navigation line.
typedef std::pair<int, double> ProjIndexPair;
/**
* @class NavigationLane
* @brief NavigationLane generates a real-time relative map based on navagation
* lines.
*
* First, several navigation lines are received from the `NavigationInfo`
* object;
*
* Second, several navigation line segments with the length of about 250 m are
* cut from the whole navigation lines and the UTM coordinates are converted
* into local coordinates with the current position of the vehicle as the
* origin;
*
* Third, the navigation line segment of the vehicle's current lane is merged
* with the perceived lane centerline.
*
* Fourth, a real-time relative map is dynamically created based on navigation
* line segments and perceived lane width;
*
* Fifth, the relative map is output as a `MapMsg` object pointer.
*/
class NavigationLane {
public:
NavigationLane() = default;
explicit NavigationLane(const NavigationLaneConfig& config);
~NavigationLane() = default;
/**
* @brief Set the configuration information required by the `NavigationLane`.
* @param config Configuration object.
* @return None.
*/
void SetConfig(const NavigationLaneConfig& config);
void SetVehicleStateProvider(
common::VehicleStateProvider* vehicle_state_provider);
/**
* @brief Update navigation line information.
* @param navigation_info Navigation line information to be updated.
* @return None.
*/
void UpdateNavigationInfo(const NavigationInfo& navigation_info);
/**
* @brief Set the default width of a lane.
* @param left_width Left half width of a lane.
* @param right_width Right half width of a lane.
* @return None.
*/
void SetDefaultWidth(const double left_width, const double right_width) {
default_left_width_ = left_width;
default_right_width_ = right_width;
}
/**
* @brief Generate a suitable path (i.e. a navigation line segment).
* @param
* @return True if a suitable path is created; false otherwise.
*/
bool GeneratePath();
/**
* @brief Update perceived lane line information.
* @param perception_obstacles Perceived lane line information to be updated.
* @return None.
*/
void UpdatePerception(
const perception::PerceptionObstacles& perception_obstacles) {
perception_obstacles_ = perception_obstacles;
}
/**
* @brief Get the generated lane segment where the vehicle is currently
* located.
* @param
* @return The generated lane segment where the vehicle is currently located.
*/
NavigationPath Path() const {
const auto& current_navi_path = std::get<3>(current_navi_path_tuple_);
if (current_navi_path) {
return *current_navi_path;
}
return NavigationPath();
}
/**
* @brief Generate a real-time relative map of approximately 250 m in length
* based on several navigation line segments and map generation configuration
* information.
* @param map_config Map generation configuration information.
* @param map_msg A pointer which outputs the real-time relative map.
* @return True if the real-time relative map is created; false otherwise.
*/
bool CreateMap(const MapGenerationParam& map_config,
MapMsg* const map_msg) const;
private:
/**
* @brief Calculate the value of a cubic polynomial according to the given
* coefficients and an independent variable.
* @param c0 Cubic polynomial coefficient.
* @param c1 Cubic polynomial coefficient.
* @param c2 Cubic polynomial coefficient.
* @param c3 Cubic polynomial coefficient.
* @param x Independent variable.
* @return Calculated value of the cubic polynomial.
*/
double EvaluateCubicPolynomial(const double c0, const double c1,
const double c2, const double c3,
const double x) const;
/**
* @brief Calculate the curvature value based on the cubic polynomial's
* coefficients and an independent variable.
* @param c1 Cubic polynomial coefficient.
* @param c2 Cubic polynomial coefficient.
* @param c3 Cubic polynomial coefficient.
* @param x Independent variable.
* @return Calculated curvature value.
*/
double GetKappa(const double c1, const double c2, const double c3,
const double x);
/**
* @brief In a navigation line segment, starting from the point given by
* `start_index`, the matched point after the distance `s` is calculated, and
* the index of the matched point is given.
* @param path The specific navigation line segment.
* @param start_index The index of the starting point.
* @param s The distance from the starting point.
* @param matched_index The pointer storing the index of the matched point.
* @return The matched point after the distance `s`.
*/
common::PathPoint GetPathPointByS(const common::Path& path,
const int start_index, const double s,
int* const matched_index);
/**
* @brief Generate a lane centerline from the perceived lane markings and
* convert it to a navigation line segment.
* @param lane_marker The perceived lane markings.
* @param path The converted navigation line segment.
* @return None.
*/
void ConvertLaneMarkerToPath(const perception::LaneMarkers& lane_marker,
common::Path* const path);
/**
* @brief A navigation line segment with the length of about 250 m are cut
* from the whole navigation lines and the UTM coordinates are converted
* into local coordinates with the current position of the vehicle as the
* origin.
* @param line_index The index of the navigation line segment vector.
* @param path The converted navigation line segment.
* @return True if a suitable path is created; false otherwise.
*/
bool ConvertNavigationLineToPath(const int line_index,
common::Path* const path);
/**
* @brief Merge the navigation line segment of the vehicle's current lane and
* the perceived lane centerline.
* @param line_index The index of the navigation line segment vector.
* @param path The merged navigation line segment.
* @return None.
*/
void MergeNavigationLineAndLaneMarker(const int line_index,
common::Path* const path);
/**
* @brief Update the index of the vehicle's current location in an entire
* navigation line.
* @param path The entire navigation line. Note that the path here refers to
* the entire navigation line stored in UTM coordinates.
* @param line_index The index of the whole navigation line vector stored in a
* `NavigationInfo` object.
* @return Updated projection index pair.
*/
ProjIndexPair UpdateProjectionIndex(const common::Path& path,
const int line_index);
/**
* @brief If an entire navigation line is a cyclic/circular
* route, the closest matching point at the starting and end positions is
* recorded so that the vehicle can drive cyclically.
* @param
* @return None.
*/
void UpdateStitchIndexInfo();
private:
// the configuration information required by the `NavigationLane`
NavigationLaneConfig config_;
// received from topic: /apollo/perception_obstacles
perception::PerceptionObstacles perception_obstacles_;
// received from topic: /apollo/navigation
NavigationInfo navigation_info_;
// navigation_path_list_ is a list of navigation paths. The internal paths
// are arranged from left to right based on the vehicle's driving direction.
// A navigation path is the combined results from perception and navigation.
std::list<NaviPathTuple> navigation_path_list_;
// the navigation path which the vehicle is currently on.
NaviPathTuple current_navi_path_tuple_;
// when invalid, left_width_ < 0
double perceived_left_width_ = -1.0;
// when invalid, right_width_ < 0
double perceived_right_width_ = -1.0;
// The standard lane width of China's expressway is 3.75 meters.
double default_left_width_ = 1.875;
double default_right_width_ = 1.875;
// key: line index,
// value: last projection index pair in the "key" line.
std::unordered_map<int, ProjIndexPair> last_project_index_map_;
// key: line index,
// value: stitching index pair in the "key" line.
std::unordered_map<int, StitchIndexPair> stitch_index_map_;
// in world coordination: ENU
localization::Pose original_pose_;
common::VehicleStateProvider* vehicle_state_provider_ = nullptr;
};
} // namespace relative_map
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/relative_map/BUILD | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
load("//tools/install:install.bzl", "install")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
MAP_COPTS = ["-DMODULE_NAME=\\\"map\\\""]
install(
name = "install",
data_dest = "map/addition_data/relative_map",
library_dest = "map/lib",
data = [
":relative_map_conf",
":testdata",
],
targets = [
":librelative_map_component.so",
],
deps = [
"//modules/map/relative_map/proto:py_pb_map"
]
)
filegroup(
name = "relative_map_conf",
srcs = glob([
"conf/**",
"dag/*.dag",
"launch/*.launch",
]),
)
cc_library(
name = "relative_map_lib",
srcs = ["relative_map.cc"],
hdrs = ["relative_map.h"],
copts = MAP_COPTS,
data = [
":relative_map_conf",
],
deps = [
":navigation_lane_lib",
"//modules/common/math",
"//modules/common/monitor_log",
"//modules/common/status",
"//modules/common/util",
"//modules/map/relative_map/common:relative_map_gflags",
"//modules/common_msgs/planning_msgs:navigation_cc_proto",
"//modules/map/relative_map/proto:relative_map_config_cc_proto",
"//modules/common_msgs/perception_msgs:perception_obstacle_cc_proto",
],
)
cc_library(
name = "navigation_lane_lib",
srcs = ["navigation_lane.cc"],
hdrs = ["navigation_lane.h"],
copts = MAP_COPTS,
deps = [
"//cyber",
"//modules/common_msgs/localization_msgs:localization_cc_proto",
"//modules/common_msgs/map_msgs:map_lane_cc_proto",
"//modules/common_msgs/perception_msgs:perception_obstacle_cc_proto",
"//modules/common_msgs/planning_msgs:navigation_cc_proto",
"//modules/common/math",
"//modules/common/util",
"//modules/common/vehicle_state:vehicle_state_provider",
"//modules/common/vehicle_state/proto:vehicle_state_cc_proto",
"//modules/map/relative_map/common:relative_map_gflags",
"//modules/map/relative_map/proto:relative_map_config_cc_proto",
"@com_google_absl//:absl",
],
)
cc_library(
name = "relative_map_component_lib",
srcs = ["relative_map_component.cc"],
hdrs = ["relative_map_component.h"],
copts = MAP_COPTS,
deps = [
":relative_map_lib",
"//cyber",
"//modules/common/adapters:adapter_gflags",
"@com_github_gflags_gflags//:gflags",
],
)
cc_binary(
name = "librelative_map_component.so",
copts = MAP_COPTS,
linkshared = True,
linkstatic = True,
deps = [":relative_map_component_lib"],
)
filegroup(
name = "testdata",
srcs = glob([
"testdata/**",
]),
)
cc_test(
name = "navigation_lane_test",
size = "small",
srcs = ["navigation_lane_test.cc"],
data = [
":relative_map_conf",
":testdata",
],
deps = [
":relative_map_component_lib",
"@com_github_nlohmann_json//:json",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map/relative_map/testdata | apollo_public_repos/apollo/modules/map/relative_map/testdata/multi_lane_map/right.smoothed | {"kappa": -0.000388, "s": 0.000000, "theta": 1.538428, "x":691192.398107, "y":3118152.809103, "dkappa":0.000000}
{"kappa": -0.000388, "s": 0.400533, "theta": 1.538273, "x":691192.411100, "y":3118153.209425, "dkappa":0.000000}
{"kappa": -0.000388, "s": 0.801065, "theta": 1.538118, "x":691192.424156, "y":3118153.609745, "dkappa":0.000000}
{"kappa": -0.000388, "s": 1.201599, "theta": 1.537962, "x":691192.437274, "y":3118154.010064, "dkappa":0.000000}
{"kappa": -0.000388, "s": 1.602132, "theta": 1.537807, "x":691192.450453, "y":3118154.410380, "dkappa":0.000000}
{"kappa": -0.000387, "s": 2.002666, "theta": 1.537652, "x":691192.463695, "y":3118154.810695, "dkappa":0.000000}
{"kappa": -0.000387, "s": 2.403200, "theta": 1.537497, "x":691192.476999, "y":3118155.211008, "dkappa":0.000000}
{"kappa": -0.000387, "s": 2.803735, "theta": 1.537342, "x":691192.490366, "y":3118155.611320, "dkappa":0.000000}
{"kappa": -0.000387, "s": 3.204270, "theta": 1.537187, "x":691192.503794, "y":3118156.011630, "dkappa":0.000000}
{"kappa": -0.000387, "s": 3.604805, "theta": 1.537031, "x":691192.517284, "y":3118156.411938, "dkappa":0.000000}
{"kappa": -0.000387, "s": 4.005341, "theta": 1.536876, "x":691192.530837, "y":3118156.812244, "dkappa":0.000000}
{"kappa": -0.000387, "s": 4.405877, "theta": 1.536721, "x":691192.544451, "y":3118157.212549, "dkappa":0.000000}
{"kappa": -0.000387, "s": 4.806414, "theta": 1.536566, "x":691192.558128, "y":3118157.612852, "dkappa":0.000000}
{"kappa": -0.000387, "s": 5.206951, "theta": 1.536412, "x":691192.571867, "y":3118158.013153, "dkappa":0.000000}
{"kappa": -0.000387, "s": 5.607488, "theta": 1.536257, "x":691192.585667, "y":3118158.413453, "dkappa":0.000000}
{"kappa": -0.000386, "s": 6.008026, "theta": 1.536102, "x":691192.599530, "y":3118158.813751, "dkappa":0.000000}
{"kappa": -0.000386, "s": 6.408564, "theta": 1.535947, "x":691192.613455, "y":3118159.214047, "dkappa":0.000000}
{"kappa": -0.000386, "s": 6.809103, "theta": 1.535793, "x":691192.627441, "y":3118159.614341, "dkappa":0.000000}
{"kappa": -0.000386, "s": 7.209642, "theta": 1.535638, "x":691192.641490, "y":3118160.014634, "dkappa":0.000000}
{"kappa": -0.000386, "s": 7.610182, "theta": 1.535483, "x":691192.655600, "y":3118160.414925, "dkappa":0.000000}
{"kappa": -0.000385, "s": 8.010722, "theta": 1.535329, "x":691192.669772, "y":3118160.815215, "dkappa":0.000001}
{"kappa": -0.000385, "s": 8.411263, "theta": 1.535175, "x":691192.684006, "y":3118161.215503, "dkappa":0.000001}
{"kappa": -0.000385, "s": 8.811804, "theta": 1.535020, "x":691192.698302, "y":3118161.615789, "dkappa":0.000001}
{"kappa": -0.000385, "s": 9.212346, "theta": 1.534866, "x":691192.712660, "y":3118162.016073, "dkappa":0.000001}
{"kappa": -0.000385, "s": 9.612888, "theta": 1.534712, "x":691192.727079, "y":3118162.416356, "dkappa":0.000001}
{"kappa": -0.000384, "s": 10.013431, "theta": 1.534558, "x":691192.741560, "y":3118162.816637, "dkappa":0.000001}
{"kappa": -0.000384, "s": 10.413975, "theta": 1.534404, "x":691192.756102, "y":3118163.216916, "dkappa":0.000001}
{"kappa": -0.000384, "s": 10.814519, "theta": 1.534251, "x":691192.770707, "y":3118163.617194, "dkappa":0.000001}
{"kappa": -0.000384, "s": 11.215063, "theta": 1.534097, "x":691192.785372, "y":3118164.017470, "dkappa":0.000001}
{"kappa": -0.000383, "s": 11.615608, "theta": 1.533943, "x":691192.800100, "y":3118164.417744, "dkappa":0.000001}
{"kappa": -0.000383, "s": 12.016154, "theta": 1.533790, "x":691192.814888, "y":3118164.818017, "dkappa":0.000001}
{"kappa": -0.000383, "s": 12.416700, "theta": 1.533637, "x":691192.829738, "y":3118165.218287, "dkappa":0.000001}
{"kappa": -0.000382, "s": 12.817247, "theta": 1.533483, "x":691192.844650, "y":3118165.618557, "dkappa":0.000001}
{"kappa": -0.000382, "s": 13.217795, "theta": 1.533330, "x":691192.859623, "y":3118166.018824, "dkappa":0.000001}
{"kappa": -0.000382, "s": 13.618343, "theta": 1.533177, "x":691192.874657, "y":3118166.419090, "dkappa":0.000001}
{"kappa": -0.000381, "s": 14.018892, "theta": 1.533024, "x":691192.889752, "y":3118166.819355, "dkappa":0.000001}
{"kappa": -0.000381, "s": 14.419441, "theta": 1.532872, "x":691192.904909, "y":3118167.219617, "dkappa":0.000001}
{"kappa": -0.000381, "s": 14.819991, "theta": 1.532719, "x":691192.920126, "y":3118167.619878, "dkappa":0.000001}
{"kappa": -0.000380, "s": 15.220542, "theta": 1.532567, "x":691192.935405, "y":3118168.020137, "dkappa":0.000001}
{"kappa": -0.000380, "s": 15.621094, "theta": 1.532414, "x":691192.950745, "y":3118168.420395, "dkappa":0.000001}
{"kappa": -0.000380, "s": 16.021646, "theta": 1.532262, "x":691192.966145, "y":3118168.820651, "dkappa":0.000001}
{"kappa": -0.000379, "s": 16.422199, "theta": 1.532110, "x":691192.981607, "y":3118169.220905, "dkappa":0.000001}
{"kappa": -0.000379, "s": 16.822752, "theta": 1.531958, "x":691192.997129, "y":3118169.621158, "dkappa":0.000001}
{"kappa": -0.000378, "s": 17.223307, "theta": 1.531807, "x":691193.012712, "y":3118170.021409, "dkappa":0.000001}
{"kappa": -0.000378, "s": 17.623861, "theta": 1.531655, "x":691193.028356, "y":3118170.421658, "dkappa":0.000001}
{"kappa": -0.000378, "s": 18.024417, "theta": 1.531504, "x":691193.044061, "y":3118170.821906, "dkappa":0.000001}
{"kappa": -0.000377, "s": 18.424974, "theta": 1.531353, "x":691193.059826, "y":3118171.222152, "dkappa":0.000001}
{"kappa": -0.000377, "s": 18.825531, "theta": 1.531202, "x":691193.075651, "y":3118171.622397, "dkappa":0.000001}
{"kappa": -0.000376, "s": 19.226089, "theta": 1.531051, "x":691193.091537, "y":3118172.022640, "dkappa":0.000001}
{"kappa": -0.000376, "s": 19.626648, "theta": 1.530900, "x":691193.107484, "y":3118172.422881, "dkappa":0.000001}
{"kappa": -0.000376, "s": 20.027207, "theta": 1.530750, "x":691193.123490, "y":3118172.823120, "dkappa":0.000001}
{"kappa": -0.000375, "s": 20.427767, "theta": 1.530599, "x":691193.139557, "y":3118173.223358, "dkappa":0.000001}
{"kappa": -0.000375, "s": 20.828329, "theta": 1.530449, "x":691193.155684, "y":3118173.623595, "dkappa":0.000001}
{"kappa": -0.000374, "s": 21.228890, "theta": 1.530299, "x":691193.171872, "y":3118174.023829, "dkappa":0.000001}
{"kappa": -0.000374, "s": 21.629453, "theta": 1.530149, "x":691193.188119, "y":3118174.424062, "dkappa":0.000001}
{"kappa": -0.000373, "s": 22.030017, "theta": 1.530000, "x":691193.204426, "y":3118174.824294, "dkappa":0.000001}
{"kappa": -0.000373, "s": 22.430581, "theta": 1.529850, "x":691193.220793, "y":3118175.224524, "dkappa":0.000001}
{"kappa": -0.000372, "s": 22.831146, "theta": 1.529701, "x":691193.237220, "y":3118175.624752, "dkappa":0.000001}
{"kappa": -0.000372, "s": 23.231712, "theta": 1.529552, "x":691193.253707, "y":3118176.024979, "dkappa":0.000001}
{"kappa": -0.000371, "s": 23.632279, "theta": 1.529403, "x":691193.270253, "y":3118176.425204, "dkappa":0.000001}
{"kappa": -0.000371, "s": 24.032847, "theta": 1.529254, "x":691193.286859, "y":3118176.825427, "dkappa":0.000001}
{"kappa": -0.000370, "s": 24.433416, "theta": 1.529106, "x":691193.303524, "y":3118177.225649, "dkappa":0.000001}
{"kappa": -0.000370, "s": 24.833985, "theta": 1.528958, "x":691193.320249, "y":3118177.625869, "dkappa":0.000001}
{"kappa": -0.000369, "s": 25.234556, "theta": 1.528810, "x":691193.337033, "y":3118178.026088, "dkappa":0.000001}
{"kappa": -0.000369, "s": 25.635127, "theta": 1.528662, "x":691193.353876, "y":3118178.426305, "dkappa":0.000001}
{"kappa": -0.000368, "s": 26.035700, "theta": 1.528514, "x":691193.370779, "y":3118178.826521, "dkappa":0.000001}
{"kappa": -0.000368, "s": 26.436273, "theta": 1.528367, "x":691193.387740, "y":3118179.226735, "dkappa":0.000001}
{"kappa": -0.000367, "s": 26.836847, "theta": 1.528220, "x":691193.404760, "y":3118179.626947, "dkappa":0.000001}
{"kappa": -0.000367, "s": 27.237422, "theta": 1.528073, "x":691193.421840, "y":3118180.027158, "dkappa":0.000001}
{"kappa": -0.000366, "s": 27.637998, "theta": 1.527926, "x":691193.438978, "y":3118180.427367, "dkappa":0.000001}
{"kappa": -0.000365, "s": 28.038575, "theta": 1.527780, "x":691193.456175, "y":3118180.827575, "dkappa":0.000001}
{"kappa": -0.000365, "s": 28.439153, "theta": 1.527633, "x":691193.473430, "y":3118181.227781, "dkappa":0.000001}
{"kappa": -0.000364, "s": 28.839732, "theta": 1.527487, "x":691193.490744, "y":3118181.627985, "dkappa":0.000001}
{"kappa": -0.000364, "s": 29.240312, "theta": 1.527342, "x":691193.508117, "y":3118182.028188, "dkappa":0.000001}
{"kappa": -0.000363, "s": 29.640893, "theta": 1.527196, "x":691193.525547, "y":3118182.428390, "dkappa":0.000001}
{"kappa": -0.000362, "s": 30.041474, "theta": 1.527051, "x":691193.543036, "y":3118182.828590, "dkappa":0.000001}
{"kappa": -0.000362, "s": 30.442057, "theta": 1.526906, "x":691193.560584, "y":3118183.228788, "dkappa":0.000002}
{"kappa": -0.000361, "s": 30.842641, "theta": 1.526761, "x":691193.578189, "y":3118183.628985, "dkappa":0.000002}
{"kappa": -0.000361, "s": 31.243226, "theta": 1.526616, "x":691193.595852, "y":3118184.029180, "dkappa":0.000002}
{"kappa": -0.000360, "s": 31.643812, "theta": 1.526472, "x":691193.613573, "y":3118184.429374, "dkappa":0.000002}
{"kappa": -0.000359, "s": 32.044399, "theta": 1.526328, "x":691193.631352, "y":3118184.829566, "dkappa":0.000002}
{"kappa": -0.000359, "s": 32.444987, "theta": 1.526184, "x":691193.649188, "y":3118185.229757, "dkappa":0.000002}
{"kappa": -0.000358, "s": 32.845576, "theta": 1.526040, "x":691193.667082, "y":3118185.629946, "dkappa":0.000002}
{"kappa": -0.000358, "s": 33.246166, "theta": 1.525897, "x":691193.685034, "y":3118186.030134, "dkappa":0.000002}
{"kappa": -0.000357, "s": 33.646758, "theta": 1.525754, "x":691193.703043, "y":3118186.430320, "dkappa":0.000002}
{"kappa": -0.000356, "s": 34.047350, "theta": 1.525611, "x":691193.721109, "y":3118186.830505, "dkappa":0.000002}
{"kappa": -0.000356, "s": 34.447943, "theta": 1.525469, "x":691193.739232, "y":3118187.230688, "dkappa":0.000002}
{"kappa": -0.000355, "s": 34.848538, "theta": 1.525326, "x":691193.757413, "y":3118187.630870, "dkappa":0.000002}
{"kappa": -0.000354, "s": 35.249133, "theta": 1.525184, "x":691193.775650, "y":3118188.031050, "dkappa":0.000002}
{"kappa": -0.000354, "s": 35.649730, "theta": 1.525042, "x":691193.793944, "y":3118188.431229, "dkappa":0.000002}
{"kappa": -0.000353, "s": 36.050328, "theta": 1.524901, "x":691193.812295, "y":3118188.831406, "dkappa":0.000002}
{"kappa": -0.000352, "s": 36.450927, "theta": 1.524760, "x":691193.830702, "y":3118189.231582, "dkappa":0.000002}
{"kappa": -0.000352, "s": 36.851527, "theta": 1.524619, "x":691193.849166, "y":3118189.631756, "dkappa":0.000002}
{"kappa": -0.000351, "s": 37.252128, "theta": 1.524478, "x":691193.867687, "y":3118190.031929, "dkappa":0.000002}
{"kappa": -0.000350, "s": 37.652730, "theta": 1.524338, "x":691193.886263, "y":3118190.432100, "dkappa":0.000002}
{"kappa": -0.000349, "s": 38.053334, "theta": 1.524197, "x":691193.904896, "y":3118190.832270, "dkappa":0.000002}
{"kappa": -0.000349, "s": 38.453938, "theta": 1.524058, "x":691193.923585, "y":3118191.232439, "dkappa":0.000002}
{"kappa": -0.000348, "s": 38.854544, "theta": 1.523918, "x":691193.942330, "y":3118191.632606, "dkappa":0.000002}
{"kappa": -0.000347, "s": 39.255151, "theta": 1.523779, "x":691193.961131, "y":3118192.032771, "dkappa":0.000002}
{"kappa": -0.000347, "s": 39.655759, "theta": 1.523640, "x":691193.979987, "y":3118192.432935, "dkappa":0.000002}
{"kappa": -0.000346, "s": 40.056369, "theta": 1.523501, "x":691193.998900, "y":3118192.833098, "dkappa":0.000002}
{"kappa": -0.000345, "s": 40.456979, "theta": 1.523363, "x":691194.017867, "y":3118193.233259, "dkappa":0.000002}
{"kappa": -0.000344, "s": 40.857591, "theta": 1.523224, "x":691194.036890, "y":3118193.633419, "dkappa":0.000002}
{"kappa": -0.000344, "s": 41.258204, "theta": 1.523087, "x":691194.055969, "y":3118194.033578, "dkappa":0.000002}
{"kappa": -0.000343, "s": 41.658818, "theta": 1.522949, "x":691194.075102, "y":3118194.433735, "dkappa":0.000002}
{"kappa": -0.000342, "s": 42.059433, "theta": 1.522812, "x":691194.094290, "y":3118194.833890, "dkappa":0.000002}
{"kappa": -0.000341, "s": 42.460050, "theta": 1.522675, "x":691194.113534, "y":3118195.234044, "dkappa":0.000002}
{"kappa": -0.000341, "s": 42.860668, "theta": 1.522538, "x":691194.132832, "y":3118195.634197, "dkappa":0.000002}
{"kappa": -0.000340, "s": 43.261287, "theta": 1.522402, "x":691194.152185, "y":3118196.034348, "dkappa":0.000002}
{"kappa": -0.000339, "s": 43.661907, "theta": 1.522266, "x":691194.171593, "y":3118196.434498, "dkappa":0.000002}
{"kappa": -0.000338, "s": 44.062529, "theta": 1.522130, "x":691194.191054, "y":3118196.834647, "dkappa":0.000002}
{"kappa": -0.000338, "s": 44.463152, "theta": 1.521995, "x":691194.210571, "y":3118197.234794, "dkappa":0.000002}
{"kappa": -0.000337, "s": 44.863776, "theta": 1.521859, "x":691194.230141, "y":3118197.634940, "dkappa":0.000002}
{"kappa": -0.000336, "s": 45.264401, "theta": 1.521725, "x":691194.249766, "y":3118198.035084, "dkappa":0.000002}
{"kappa": -0.000335, "s": 45.665028, "theta": 1.521590, "x":691194.269444, "y":3118198.435228, "dkappa":0.000002}
{"kappa": -0.000335, "s": 46.065656, "theta": 1.521456, "x":691194.289176, "y":3118198.835369, "dkappa":0.000002}
{"kappa": -0.000334, "s": 46.466285, "theta": 1.521322, "x":691194.308962, "y":3118199.235510, "dkappa":0.000002}
{"kappa": -0.000333, "s": 46.866916, "theta": 1.521188, "x":691194.328802, "y":3118199.635649, "dkappa":0.000002}
{"kappa": -0.000332, "s": 47.267547, "theta": 1.521055, "x":691194.348695, "y":3118200.035786, "dkappa":0.000002}
{"kappa": -0.000331, "s": 47.668181, "theta": 1.520922, "x":691194.368641, "y":3118200.435923, "dkappa":0.000002}
{"kappa": -0.000331, "s": 48.068815, "theta": 1.520790, "x":691194.388641, "y":3118200.836058, "dkappa":0.000002}
{"kappa": -0.000330, "s": 48.469451, "theta": 1.520657, "x":691194.408693, "y":3118201.236191, "dkappa":0.000002}
{"kappa": -0.000329, "s": 48.870088, "theta": 1.520525, "x":691194.428799, "y":3118201.636324, "dkappa":0.000002}
{"kappa": -0.000328, "s": 49.270727, "theta": 1.520394, "x":691194.448957, "y":3118202.036455, "dkappa":0.000002}
{"kappa": -0.000327, "s": 49.671366, "theta": 1.520262, "x":691194.469168, "y":3118202.436584, "dkappa":0.000002}
{"kappa": -0.000327, "s": 50.072007, "theta": 1.520131, "x":691194.489432, "y":3118202.836713, "dkappa":0.000002}
{"kappa": -0.000326, "s": 50.472650, "theta": 1.520001, "x":691194.509748, "y":3118203.236840, "dkappa":0.000002}
{"kappa": -0.000325, "s": 50.873294, "theta": 1.519870, "x":691194.530116, "y":3118203.636965, "dkappa":0.000002}
{"kappa": -0.000324, "s": 51.273939, "theta": 1.519740, "x":691194.550537, "y":3118204.037090, "dkappa":0.000002}
{"kappa": -0.000323, "s": 51.674586, "theta": 1.519610, "x":691194.571010, "y":3118204.437213, "dkappa":0.000002}
{"kappa": -0.000322, "s": 52.075234, "theta": 1.519481, "x":691194.591534, "y":3118204.837335, "dkappa":0.000002}
{"kappa": -0.000322, "s": 52.475883, "theta": 1.519352, "x":691194.612110, "y":3118205.237456, "dkappa":0.000002}
{"kappa": -0.000321, "s": 52.876534, "theta": 1.519223, "x":691194.632738, "y":3118205.637575, "dkappa":0.000002}
{"kappa": -0.000320, "s": 53.277186, "theta": 1.519095, "x":691194.653417, "y":3118206.037693, "dkappa":0.000002}
{"kappa": -0.000319, "s": 53.677839, "theta": 1.518967, "x":691194.674148, "y":3118206.437810, "dkappa":0.000002}
{"kappa": -0.000318, "s": 54.078494, "theta": 1.518839, "x":691194.694930, "y":3118206.837925, "dkappa":0.000002}
{"kappa": -0.000317, "s": 54.479150, "theta": 1.518712, "x":691194.715763, "y":3118207.238040, "dkappa":0.000002}
{"kappa": -0.000317, "s": 54.879808, "theta": 1.518585, "x":691194.736647, "y":3118207.638153, "dkappa":0.000002}
{"kappa": -0.000316, "s": 55.280467, "theta": 1.518458, "x":691194.757582, "y":3118208.038264, "dkappa":0.000002}
{"kappa": -0.000315, "s": 55.681128, "theta": 1.518332, "x":691194.778567, "y":3118208.438375, "dkappa":0.000002}
{"kappa": -0.000314, "s": 56.081790, "theta": 1.518206, "x":691194.799604, "y":3118208.838484, "dkappa":0.000002}
{"kappa": -0.000313, "s": 56.482453, "theta": 1.518080, "x":691194.820690, "y":3118209.238592, "dkappa":0.000002}
{"kappa": -0.000312, "s": 56.883118, "theta": 1.517955, "x":691194.841827, "y":3118209.638699, "dkappa":0.000002}
{"kappa": -0.000311, "s": 57.283784, "theta": 1.517830, "x":691194.863014, "y":3118210.038805, "dkappa":0.000002}
{"kappa": -0.000311, "s": 57.684452, "theta": 1.517705, "x":691194.884251, "y":3118210.438910, "dkappa":0.000002}
{"kappa": -0.000310, "s": 58.085121, "theta": 1.517581, "x":691194.905537, "y":3118210.839013, "dkappa":0.000002}
{"kappa": -0.000309, "s": 58.485791, "theta": 1.517457, "x":691194.926874, "y":3118211.239115, "dkappa":0.000002}
{"kappa": -0.000308, "s": 58.886463, "theta": 1.517334, "x":691194.948260, "y":3118211.639216, "dkappa":0.000002}
{"kappa": -0.000307, "s": 59.287137, "theta": 1.517210, "x":691194.969695, "y":3118212.039315, "dkappa":0.000002}
{"kappa": -0.000306, "s": 59.687812, "theta": 1.517088, "x":691194.991180, "y":3118212.439414, "dkappa":0.000002}
{"kappa": -0.000305, "s": 60.088488, "theta": 1.516965, "x":691195.012714, "y":3118212.839511, "dkappa":0.000002}
{"kappa": -0.000304, "s": 60.489166, "theta": 1.516843, "x":691195.034297, "y":3118213.239607, "dkappa":0.000002}
{"kappa": -0.000304, "s": 60.889846, "theta": 1.516721, "x":691195.055929, "y":3118213.639702, "dkappa":0.000002}
{"kappa": -0.000303, "s": 61.290526, "theta": 1.516600, "x":691195.077610, "y":3118214.039796, "dkappa":0.000002}
{"kappa": -0.000302, "s": 61.691209, "theta": 1.516479, "x":691195.099339, "y":3118214.439889, "dkappa":0.000002}
{"kappa": -0.000301, "s": 62.091892, "theta": 1.516358, "x":691195.121117, "y":3118214.839980, "dkappa":0.000002}
{"kappa": -0.000300, "s": 62.492578, "theta": 1.516238, "x":691195.142942, "y":3118215.240071, "dkappa":0.000002}
{"kappa": -0.000299, "s": 62.893265, "theta": 1.516118, "x":691195.164817, "y":3118215.640160, "dkappa":0.000002}
{"kappa": -0.000298, "s": 63.293953, "theta": 1.515998, "x":691195.186739, "y":3118216.040248, "dkappa":0.000002}
{"kappa": -0.000297, "s": 63.694643, "theta": 1.515879, "x":691195.208709, "y":3118216.440335, "dkappa":0.000002}
{"kappa": -0.000296, "s": 64.095334, "theta": 1.515760, "x":691195.230727, "y":3118216.840421, "dkappa":0.000002}
{"kappa": -0.000295, "s": 64.496027, "theta": 1.515641, "x":691195.252792, "y":3118217.240506, "dkappa":0.000002}
{"kappa": -0.000295, "s": 64.896721, "theta": 1.515523, "x":691195.274905, "y":3118217.640590, "dkappa":0.000002}
{"kappa": -0.000294, "s": 65.297417, "theta": 1.515405, "x":691195.297065, "y":3118218.040672, "dkappa":0.000002}
{"kappa": -0.000293, "s": 65.698114, "theta": 1.515288, "x":691195.319272, "y":3118218.440754, "dkappa":0.000002}
{"kappa": -0.000292, "s": 66.098813, "theta": 1.515171, "x":691195.341526, "y":3118218.840834, "dkappa":0.000002}
{"kappa": -0.000291, "s": 66.499513, "theta": 1.515054, "x":691195.363827, "y":3118219.240913, "dkappa":0.000002}
{"kappa": -0.000290, "s": 66.900215, "theta": 1.514938, "x":691195.386175, "y":3118219.640992, "dkappa":0.000002}
{"kappa": -0.000289, "s": 67.300919, "theta": 1.514822, "x":691195.408570, "y":3118220.041069, "dkappa":0.000002}
{"kappa": -0.000288, "s": 67.701624, "theta": 1.514706, "x":691195.431010, "y":3118220.441145, "dkappa":0.000002}
{"kappa": -0.000287, "s": 68.102330, "theta": 1.514591, "x":691195.453497, "y":3118220.841220, "dkappa":0.000002}
{"kappa": -0.000286, "s": 68.503038, "theta": 1.514476, "x":691195.476031, "y":3118221.241294, "dkappa":0.000002}
{"kappa": -0.000285, "s": 68.903748, "theta": 1.514361, "x":691195.498610, "y":3118221.641367, "dkappa":0.000002}
{"kappa": -0.000284, "s": 69.304459, "theta": 1.514247, "x":691195.521235, "y":3118222.041439, "dkappa":0.000002}
{"kappa": -0.000283, "s": 69.705172, "theta": 1.514133, "x":691195.543906, "y":3118222.441510, "dkappa":0.000002}
{"kappa": -0.000283, "s": 70.105886, "theta": 1.514020, "x":691195.566622, "y":3118222.841579, "dkappa":0.000002}
{"kappa": -0.000282, "s": 70.506602, "theta": 1.513907, "x":691195.589383, "y":3118223.241648, "dkappa":0.000002}
{"kappa": -0.000281, "s": 70.907319, "theta": 1.513794, "x":691195.612190, "y":3118223.641716, "dkappa":0.000002}
{"kappa": -0.000280, "s": 71.308038, "theta": 1.513682, "x":691195.635042, "y":3118224.041783, "dkappa":0.000002}
{"kappa": -0.000279, "s": 71.708758, "theta": 1.513570, "x":691195.657939, "y":3118224.441849, "dkappa":0.000002}
{"kappa": -0.000278, "s": 72.109480, "theta": 1.513458, "x":691195.680881, "y":3118224.841913, "dkappa":0.000002}
{"kappa": -0.000277, "s": 72.510204, "theta": 1.513347, "x":691195.703867, "y":3118225.241977, "dkappa":0.000002}
{"kappa": -0.000276, "s": 72.910929, "theta": 1.513236, "x":691195.726898, "y":3118225.642040, "dkappa":0.000002}
{"kappa": -0.000275, "s": 73.311656, "theta": 1.513126, "x":691195.749973, "y":3118226.042102, "dkappa":0.000002}
{"kappa": -0.000274, "s": 73.712384, "theta": 1.513016, "x":691195.773092, "y":3118226.442162, "dkappa":0.000002}
{"kappa": -0.000273, "s": 74.113114, "theta": 1.512906, "x":691195.796256, "y":3118226.842222, "dkappa":0.000002}
{"kappa": -0.000272, "s": 74.513845, "theta": 1.512797, "x":691195.819463, "y":3118227.242281, "dkappa":0.000002}
{"kappa": -0.000271, "s": 74.914578, "theta": 1.512688, "x":691195.842714, "y":3118227.642339, "dkappa":0.000002}
{"kappa": -0.000270, "s": 75.315313, "theta": 1.512580, "x":691195.866008, "y":3118228.042396, "dkappa":0.000002}
{"kappa": -0.000269, "s": 75.716049, "theta": 1.512471, "x":691195.889346, "y":3118228.442452, "dkappa":0.000002}
{"kappa": -0.000268, "s": 76.116787, "theta": 1.512364, "x":691195.912728, "y":3118228.842507, "dkappa":0.000002}
{"kappa": -0.000268, "s": 76.517526, "theta": 1.512256, "x":691195.936152, "y":3118229.242561, "dkappa":0.000002}
{"kappa": -0.000267, "s": 76.918267, "theta": 1.512149, "x":691195.959620, "y":3118229.642615, "dkappa":0.000002}
{"kappa": -0.000266, "s": 77.319010, "theta": 1.512043, "x":691195.983130, "y":3118230.042667, "dkappa":0.000002}
{"kappa": -0.000265, "s": 77.719754, "theta": 1.511936, "x":691196.006683, "y":3118230.442718, "dkappa":0.000002}
{"kappa": -0.000264, "s": 78.120500, "theta": 1.511831, "x":691196.030278, "y":3118230.842769, "dkappa":0.000002}
{"kappa": -0.000263, "s": 78.521247, "theta": 1.511725, "x":691196.053916, "y":3118231.242818, "dkappa":0.000002}
{"kappa": -0.000262, "s": 78.921996, "theta": 1.511620, "x":691196.077596, "y":3118231.642867, "dkappa":0.000002}
{"kappa": -0.000261, "s": 79.322746, "theta": 1.511515, "x":691196.101318, "y":3118232.042915, "dkappa":0.000002}
{"kappa": -0.000260, "s": 79.723498, "theta": 1.511411, "x":691196.125082, "y":3118232.442962, "dkappa":0.000002}
{"kappa": -0.000259, "s": 80.124252, "theta": 1.511307, "x":691196.148888, "y":3118232.843008, "dkappa":0.000002}
{"kappa": -0.000258, "s": 80.525007, "theta": 1.511203, "x":691196.172735, "y":3118233.243053, "dkappa":0.000002}
{"kappa": -0.000257, "s": 80.925764, "theta": 1.511100, "x":691196.196624, "y":3118233.643097, "dkappa":0.000002}
{"kappa": -0.000256, "s": 81.326523, "theta": 1.510997, "x":691196.220554, "y":3118234.043140, "dkappa":0.000002}
{"kappa": -0.000255, "s": 81.727283, "theta": 1.510895, "x":691196.244526, "y":3118234.443183, "dkappa":0.000002}
{"kappa": -0.000254, "s": 82.128045, "theta": 1.510793, "x":691196.268538, "y":3118234.843225, "dkappa":0.000002}
{"kappa": -0.000253, "s": 82.528808, "theta": 1.510691, "x":691196.292591, "y":3118235.243265, "dkappa":0.000002}
{"kappa": -0.000252, "s": 82.929573, "theta": 1.510590, "x":691196.316685, "y":3118235.643305, "dkappa":0.000002}
{"kappa": -0.000251, "s": 83.330339, "theta": 1.510489, "x":691196.340819, "y":3118236.043345, "dkappa":0.000002}
{"kappa": -0.000250, "s": 83.731107, "theta": 1.510388, "x":691196.364994, "y":3118236.443383, "dkappa":0.000002}
{"kappa": -0.000249, "s": 84.131877, "theta": 1.510288, "x":691196.389209, "y":3118236.843420, "dkappa":0.000002}
{"kappa": -0.000248, "s": 84.532648, "theta": 1.510188, "x":691196.413464, "y":3118237.243457, "dkappa":0.000002}
{"kappa": -0.000248, "s": 84.933421, "theta": 1.510089, "x":691196.437759, "y":3118237.643493, "dkappa":0.000002}
{"kappa": -0.000247, "s": 85.334196, "theta": 1.509990, "x":691196.462094, "y":3118238.043528, "dkappa":0.000002}
{"kappa": -0.000246, "s": 85.734972, "theta": 1.509891, "x":691196.486469, "y":3118238.443562, "dkappa":0.000002}
{"kappa": -0.000245, "s": 86.135750, "theta": 1.509793, "x":691196.510883, "y":3118238.843596, "dkappa":0.000002}
{"kappa": -0.000244, "s": 86.536529, "theta": 1.509695, "x":691196.535336, "y":3118239.243629, "dkappa":0.000002}
{"kappa": -0.000243, "s": 86.937310, "theta": 1.509598, "x":691196.559828, "y":3118239.643661, "dkappa":0.000002}
{"kappa": -0.000242, "s": 87.338093, "theta": 1.509501, "x":691196.584360, "y":3118240.043692, "dkappa":0.000002}
{"kappa": -0.000241, "s": 87.738877, "theta": 1.509404, "x":691196.608930, "y":3118240.443722, "dkappa":0.000002}
{"kappa": -0.000240, "s": 88.139663, "theta": 1.509308, "x":691196.633539, "y":3118240.843752, "dkappa":0.000002}
{"kappa": -0.000239, "s": 88.540451, "theta": 1.509212, "x":691196.658187, "y":3118241.243781, "dkappa":0.000002}
{"kappa": -0.000238, "s": 88.941240, "theta": 1.509116, "x":691196.682873, "y":3118241.643809, "dkappa":0.000002}
{"kappa": -0.000237, "s": 89.342030, "theta": 1.509021, "x":691196.707597, "y":3118242.043836, "dkappa":0.000002}
{"kappa": -0.000236, "s": 89.742823, "theta": 1.508926, "x":691196.732359, "y":3118242.443863, "dkappa":0.000002}
{"kappa": -0.000235, "s": 90.143617, "theta": 1.508832, "x":691196.757159, "y":3118242.843889, "dkappa":0.000002}
{"kappa": -0.000234, "s": 90.544412, "theta": 1.508738, "x":691196.781997, "y":3118243.243914, "dkappa":0.000002}
{"kappa": -0.000233, "s": 90.945209, "theta": 1.508644, "x":691196.806873, "y":3118243.643938, "dkappa":0.000002}
{"kappa": -0.000232, "s": 91.346008, "theta": 1.508551, "x":691196.831786, "y":3118244.043962, "dkappa":0.000002}
{"kappa": -0.000231, "s": 91.746809, "theta": 1.508458, "x":691196.856737, "y":3118244.443985, "dkappa":0.000002}
{"kappa": -0.000230, "s": 92.147611, "theta": 1.508366, "x":691196.881724, "y":3118244.844007, "dkappa":0.000002}
{"kappa": -0.000229, "s": 92.548414, "theta": 1.508273, "x":691196.906749, "y":3118245.244029, "dkappa":0.000002}
{"kappa": -0.000228, "s": 92.949219, "theta": 1.508182, "x":691196.931811, "y":3118245.644050, "dkappa":0.000002}
{"kappa": -0.000227, "s": 93.350026, "theta": 1.508090, "x":691196.956909, "y":3118246.044070, "dkappa":0.000002}
{"kappa": -0.000226, "s": 93.750835, "theta": 1.507999, "x":691196.982044, "y":3118246.444090, "dkappa":0.000002}
{"kappa": -0.000226, "s": 94.151645, "theta": 1.507909, "x":691197.007215, "y":3118246.844109, "dkappa":0.000002}
{"kappa": -0.000225, "s": 94.552456, "theta": 1.507819, "x":691197.032422, "y":3118247.244127, "dkappa":0.000002}
{"kappa": -0.000224, "s": 94.953270, "theta": 1.507729, "x":691197.057666, "y":3118247.644145, "dkappa":0.000002}
{"kappa": -0.000223, "s": 95.354085, "theta": 1.507639, "x":691197.082946, "y":3118248.044162, "dkappa":0.000002}
{"kappa": -0.000222, "s": 95.754901, "theta": 1.507550, "x":691197.108261, "y":3118248.444178, "dkappa":0.000002}
{"kappa": -0.000221, "s": 96.155719, "theta": 1.507461, "x":691197.133612, "y":3118248.844193, "dkappa":0.000002}
{"kappa": -0.000220, "s": 96.556539, "theta": 1.507373, "x":691197.158999, "y":3118249.244208, "dkappa":0.000002}
{"kappa": -0.000219, "s": 96.957360, "theta": 1.507285, "x":691197.184421, "y":3118249.644223, "dkappa":0.000002}
{"kappa": -0.000218, "s": 97.358183, "theta": 1.507198, "x":691197.209878, "y":3118250.044236, "dkappa":0.000002}
{"kappa": -0.000217, "s": 97.759008, "theta": 1.507110, "x":691197.235370, "y":3118250.444250, "dkappa":0.000002}
{"kappa": -0.000216, "s": 98.159834, "theta": 1.507024, "x":691197.260897, "y":3118250.844262, "dkappa":0.000002}
{"kappa": -0.000215, "s": 98.560662, "theta": 1.506937, "x":691197.286459, "y":3118251.244274, "dkappa":0.000002}
{"kappa": -0.000121, "s": 98.961491, "theta": 1.506851, "x":691197.312055, "y":3118251.644285, "dkappa":0.000000}
{"kappa": -0.000121, "s": 99.363707, "theta": 1.506803, "x":691197.337767, "y":3118252.045678, "dkappa":0.000000}
{"kappa": -0.000121, "s": 99.765922, "theta": 1.506754, "x":691197.363499, "y":3118252.447069, "dkappa":0.000000}
{"kappa": -0.000121, "s": 100.168137, "theta": 1.506705, "x":691197.389250, "y":3118252.848460, "dkappa":0.000000}
{"kappa": -0.000121, "s": 100.570353, "theta": 1.506657, "x":691197.415020, "y":3118253.249849, "dkappa":0.000000}
{"kappa": -0.000121, "s": 100.972568, "theta": 1.506608, "x":691197.440810, "y":3118253.651236, "dkappa":0.000000}
{"kappa": -0.000121, "s": 101.374784, "theta": 1.506559, "x":691197.466620, "y":3118254.052623, "dkappa":0.000000}
{"kappa": -0.000121, "s": 101.777000, "theta": 1.506511, "x":691197.492449, "y":3118254.454009, "dkappa":0.000000}
{"kappa": -0.000121, "s": 102.179216, "theta": 1.506462, "x":691197.518298, "y":3118254.855393, "dkappa":0.000000}
{"kappa": -0.000121, "s": 102.581431, "theta": 1.506413, "x":691197.544166, "y":3118255.256776, "dkappa":0.000000}
{"kappa": -0.000121, "s": 102.983647, "theta": 1.506365, "x":691197.570054, "y":3118255.658158, "dkappa":0.000000}
{"kappa": -0.000121, "s": 103.385863, "theta": 1.506316, "x":691197.595961, "y":3118256.059539, "dkappa":0.000000}
{"kappa": -0.000121, "s": 103.788079, "theta": 1.506268, "x":691197.621887, "y":3118256.460918, "dkappa":0.000000}
{"kappa": -0.000121, "s": 104.190295, "theta": 1.506219, "x":691197.647834, "y":3118256.862297, "dkappa":0.000000}
{"kappa": -0.000121, "s": 104.592512, "theta": 1.506171, "x":691197.673799, "y":3118257.263674, "dkappa":0.000000}
{"kappa": -0.000120, "s": 104.994728, "theta": 1.506122, "x":691197.699784, "y":3118257.665050, "dkappa":0.000000}
{"kappa": -0.000120, "s": 105.396944, "theta": 1.506074, "x":691197.725789, "y":3118258.066425, "dkappa":0.000000}
{"kappa": -0.000120, "s": 105.799160, "theta": 1.506026, "x":691197.751813, "y":3118258.467798, "dkappa":0.000000}
{"kappa": -0.000120, "s": 106.201377, "theta": 1.505977, "x":691197.777856, "y":3118258.869171, "dkappa":0.000000}
{"kappa": -0.000120, "s": 106.603593, "theta": 1.505929, "x":691197.803919, "y":3118259.270542, "dkappa":0.000000}
{"kappa": -0.000120, "s": 107.005810, "theta": 1.505881, "x":691197.830001, "y":3118259.671912, "dkappa":0.000000}
{"kappa": -0.000120, "s": 107.408027, "theta": 1.505832, "x":691197.856103, "y":3118260.073281, "dkappa":0.000000}
{"kappa": -0.000120, "s": 107.810244, "theta": 1.505784, "x":691197.882224, "y":3118260.474649, "dkappa":0.000000}
{"kappa": -0.000120, "s": 108.212460, "theta": 1.505736, "x":691197.908364, "y":3118260.876015, "dkappa":0.000000}
{"kappa": -0.000120, "s": 108.614677, "theta": 1.505688, "x":691197.934523, "y":3118261.277380, "dkappa":0.000000}
{"kappa": -0.000120, "s": 109.016894, "theta": 1.505640, "x":691197.960702, "y":3118261.678745, "dkappa":0.000000}
{"kappa": -0.000119, "s": 109.419111, "theta": 1.505592, "x":691197.986901, "y":3118262.080107, "dkappa":0.000000}
{"kappa": -0.000119, "s": 109.821329, "theta": 1.505544, "x":691198.013118, "y":3118262.481469, "dkappa":0.000000}
{"kappa": -0.000119, "s": 110.223546, "theta": 1.505496, "x":691198.039355, "y":3118262.882830, "dkappa":0.000000}
{"kappa": -0.000119, "s": 110.625763, "theta": 1.505448, "x":691198.065611, "y":3118263.284189, "dkappa":0.000000}
{"kappa": -0.000119, "s": 111.027981, "theta": 1.505400, "x":691198.091886, "y":3118263.685548, "dkappa":0.000000}
{"kappa": -0.000119, "s": 111.430198, "theta": 1.505352, "x":691198.118181, "y":3118264.086905, "dkappa":0.000000}
{"kappa": -0.000119, "s": 111.832416, "theta": 1.505304, "x":691198.144494, "y":3118264.488261, "dkappa":0.000000}
{"kappa": -0.000118, "s": 112.234633, "theta": 1.505257, "x":691198.170827, "y":3118264.889616, "dkappa":0.000000}
{"kappa": -0.000118, "s": 112.636851, "theta": 1.505209, "x":691198.197179, "y":3118265.290969, "dkappa":0.000000}
{"kappa": -0.000118, "s": 113.039069, "theta": 1.505161, "x":691198.223550, "y":3118265.692322, "dkappa":0.000000}
{"kappa": -0.000118, "s": 113.441287, "theta": 1.505114, "x":691198.249940, "y":3118266.093673, "dkappa":0.000000}
{"kappa": -0.000118, "s": 113.843505, "theta": 1.505067, "x":691198.276349, "y":3118266.495023, "dkappa":0.000000}
{"kappa": -0.000118, "s": 114.245723, "theta": 1.505019, "x":691198.302777, "y":3118266.896372, "dkappa":0.000000}
{"kappa": -0.000118, "s": 114.647942, "theta": 1.504972, "x":691198.329225, "y":3118267.297720, "dkappa":0.000000}
{"kappa": -0.000117, "s": 115.050160, "theta": 1.504925, "x":691198.355691, "y":3118267.699066, "dkappa":0.000000}
{"kappa": -0.000117, "s": 115.452378, "theta": 1.504877, "x":691198.382176, "y":3118268.100412, "dkappa":0.000000}
{"kappa": -0.000117, "s": 115.854597, "theta": 1.504830, "x":691198.408680, "y":3118268.501756, "dkappa":0.000000}
{"kappa": -0.000117, "s": 116.256816, "theta": 1.504783, "x":691198.435203, "y":3118268.903100, "dkappa":0.000000}
{"kappa": -0.000117, "s": 116.659034, "theta": 1.504736, "x":691198.461745, "y":3118269.304442, "dkappa":0.000000}
{"kappa": -0.000116, "s": 117.061253, "theta": 1.504689, "x":691198.488305, "y":3118269.705783, "dkappa":0.000000}
{"kappa": -0.000116, "s": 117.463472, "theta": 1.504643, "x":691198.514885, "y":3118270.107122, "dkappa":0.000000}
{"kappa": -0.000116, "s": 117.865691, "theta": 1.504596, "x":691198.541483, "y":3118270.508461, "dkappa":0.000000}
{"kappa": -0.000116, "s": 118.267910, "theta": 1.504549, "x":691198.568100, "y":3118270.909798, "dkappa":0.000000}
{"kappa": -0.000116, "s": 118.670130, "theta": 1.504503, "x":691198.594736, "y":3118271.311135, "dkappa":0.000001}
{"kappa": -0.000115, "s": 119.072349, "theta": 1.504456, "x":691198.621390, "y":3118271.712470, "dkappa":0.000001}
{"kappa": -0.000115, "s": 119.474568, "theta": 1.504410, "x":691198.648063, "y":3118272.113804, "dkappa":0.000001}
{"kappa": -0.000115, "s": 119.876788, "theta": 1.504363, "x":691198.674755, "y":3118272.515137, "dkappa":0.000001}
{"kappa": -0.000115, "s": 120.279008, "theta": 1.504317, "x":691198.701465, "y":3118272.916469, "dkappa":0.000001}
{"kappa": -0.000115, "s": 120.681227, "theta": 1.504271, "x":691198.728194, "y":3118273.317800, "dkappa":0.000001}
{"kappa": -0.000114, "s": 121.083447, "theta": 1.504225, "x":691198.754941, "y":3118273.719129, "dkappa":0.000001}
{"kappa": -0.000114, "s": 121.485667, "theta": 1.504179, "x":691198.781707, "y":3118274.120458, "dkappa":0.000001}
{"kappa": -0.000114, "s": 121.887887, "theta": 1.504133, "x":691198.808491, "y":3118274.521785, "dkappa":0.000001}
{"kappa": -0.000114, "s": 122.290108, "theta": 1.504087, "x":691198.835294, "y":3118274.923111, "dkappa":0.000001}
{"kappa": -0.000114, "s": 122.692328, "theta": 1.504042, "x":691198.862115, "y":3118275.324436, "dkappa":0.000001}
{"kappa": -0.000113, "s": 123.094549, "theta": 1.503996, "x":691198.888954, "y":3118275.725760, "dkappa":0.000001}
{"kappa": -0.000113, "s": 123.496769, "theta": 1.503950, "x":691198.915812, "y":3118276.127083, "dkappa":0.000001}
{"kappa": -0.000113, "s": 123.898990, "theta": 1.503905, "x":691198.942688, "y":3118276.528405, "dkappa":0.000001}
{"kappa": -0.000113, "s": 124.301211, "theta": 1.503860, "x":691198.969582, "y":3118276.929726, "dkappa":0.000001}
{"kappa": -0.000112, "s": 124.703432, "theta": 1.503815, "x":691198.996494, "y":3118277.331045, "dkappa":0.000001}
{"kappa": -0.000112, "s": 125.105653, "theta": 1.503769, "x":691199.023425, "y":3118277.732364, "dkappa":0.000001}
{"kappa": -0.000112, "s": 125.507874, "theta": 1.503724, "x":691199.050373, "y":3118278.133681, "dkappa":0.000001}
{"kappa": -0.000112, "s": 125.910095, "theta": 1.503679, "x":691199.077340, "y":3118278.534997, "dkappa":0.000001}
{"kappa": -0.000111, "s": 126.312316, "theta": 1.503635, "x":691199.104324, "y":3118278.936313, "dkappa":0.000001}
{"kappa": -0.000111, "s": 126.714538, "theta": 1.503590, "x":691199.131327, "y":3118279.337627, "dkappa":0.000001}
{"kappa": -0.000111, "s": 127.116760, "theta": 1.503545, "x":691199.158347, "y":3118279.738940, "dkappa":0.000001}
{"kappa": -0.000111, "s": 127.518981, "theta": 1.503501, "x":691199.185386, "y":3118280.140252, "dkappa":0.000001}
{"kappa": -0.000110, "s": 127.921203, "theta": 1.503456, "x":691199.212442, "y":3118280.541563, "dkappa":0.000001}
{"kappa": -0.000110, "s": 128.323425, "theta": 1.503412, "x":691199.239516, "y":3118280.942872, "dkappa":0.000001}
{"kappa": -0.000110, "s": 128.725647, "theta": 1.503368, "x":691199.266608, "y":3118281.344181, "dkappa":0.000001}
{"kappa": -0.000109, "s": 129.127870, "theta": 1.503324, "x":691199.293717, "y":3118281.745489, "dkappa":0.000001}
{"kappa": -0.000109, "s": 129.530092, "theta": 1.503280, "x":691199.320844, "y":3118282.146795, "dkappa":0.000001}
{"kappa": -0.000109, "s": 129.932315, "theta": 1.503236, "x":691199.347989, "y":3118282.548101, "dkappa":0.000001}
{"kappa": -0.000109, "s": 130.334537, "theta": 1.503192, "x":691199.375152, "y":3118282.949405, "dkappa":0.000001}
{"kappa": -0.000108, "s": 130.736760, "theta": 1.503149, "x":691199.402332, "y":3118283.350709, "dkappa":0.000001}
{"kappa": -0.000108, "s": 131.138983, "theta": 1.503105, "x":691199.429529, "y":3118283.752011, "dkappa":0.000001}
{"kappa": -0.000108, "s": 131.541206, "theta": 1.503062, "x":691199.456744, "y":3118284.153312, "dkappa":0.000001}
{"kappa": -0.000107, "s": 131.943429, "theta": 1.503018, "x":691199.483976, "y":3118284.554613, "dkappa":0.000001}
{"kappa": -0.000107, "s": 132.345653, "theta": 1.502975, "x":691199.511226, "y":3118284.955912, "dkappa":0.000001}
{"kappa": -0.000107, "s": 132.747876, "theta": 1.502932, "x":691199.538493, "y":3118285.357210, "dkappa":0.000001}
{"kappa": -0.000107, "s": 133.150100, "theta": 1.502889, "x":691199.565777, "y":3118285.758507, "dkappa":0.000001}
{"kappa": -0.000106, "s": 133.552323, "theta": 1.502846, "x":691199.593079, "y":3118286.159803, "dkappa":0.000001}
{"kappa": -0.000106, "s": 133.954547, "theta": 1.502804, "x":691199.620397, "y":3118286.561098, "dkappa":0.000001}
{"kappa": -0.000106, "s": 134.356771, "theta": 1.502761, "x":691199.647733, "y":3118286.962392, "dkappa":0.000001}
{"kappa": -0.000105, "s": 134.758995, "theta": 1.502719, "x":691199.675086, "y":3118287.363685, "dkappa":0.000001}
{"kappa": -0.000105, "s": 135.161220, "theta": 1.502676, "x":691199.702456, "y":3118287.764977, "dkappa":0.000001}
{"kappa": -0.000105, "s": 135.563444, "theta": 1.502634, "x":691199.729842, "y":3118288.166268, "dkappa":0.000001}
{"kappa": -0.000104, "s": 135.965669, "theta": 1.502592, "x":691199.757246, "y":3118288.567558, "dkappa":0.000001}
{"kappa": -0.000104, "s": 136.367893, "theta": 1.502550, "x":691199.784667, "y":3118288.968847, "dkappa":0.000001}
{"kappa": -0.000104, "s": 136.770118, "theta": 1.502508, "x":691199.812104, "y":3118289.370135, "dkappa":0.000001}
{"kappa": -0.000103, "s": 137.172343, "theta": 1.502467, "x":691199.839558, "y":3118289.771422, "dkappa":0.000001}
{"kappa": -0.000103, "s": 137.574568, "theta": 1.502425, "x":691199.867029, "y":3118290.172708, "dkappa":0.000001}
{"kappa": -0.000103, "s": 137.976793, "theta": 1.502384, "x":691199.894517, "y":3118290.573993, "dkappa":0.000001}
{"kappa": -0.000103, "s": 138.379019, "theta": 1.502342, "x":691199.922021, "y":3118290.975277, "dkappa":0.000001}
{"kappa": -0.000102, "s": 138.781244, "theta": 1.502301, "x":691199.949541, "y":3118291.376560, "dkappa":0.000001}
{"kappa": -0.000102, "s": 139.183470, "theta": 1.502260, "x":691199.977079, "y":3118291.777842, "dkappa":0.000001}
{"kappa": -0.000102, "s": 139.585696, "theta": 1.502219, "x":691200.004632, "y":3118292.179122, "dkappa":0.000001}
{"kappa": -0.000101, "s": 139.987922, "theta": 1.502178, "x":691200.032202, "y":3118292.580402, "dkappa":0.000001}
{"kappa": -0.000101, "s": 140.390148, "theta": 1.502138, "x":691200.059789, "y":3118292.981681, "dkappa":0.000001}
{"kappa": -0.000101, "s": 140.792374, "theta": 1.502097, "x":691200.087391, "y":3118293.382959, "dkappa":0.000001}
{"kappa": -0.000100, "s": 141.194600, "theta": 1.502057, "x":691200.115010, "y":3118293.784237, "dkappa":0.000001}
{"kappa": -0.000100, "s": 141.596827, "theta": 1.502017, "x":691200.142645, "y":3118294.185513, "dkappa":0.000001}
{"kappa": -0.000100, "s": 141.999054, "theta": 1.501977, "x":691200.170297, "y":3118294.586788, "dkappa":0.000001}
{"kappa": -0.000099, "s": 142.401281, "theta": 1.501937, "x":691200.197964, "y":3118294.988062, "dkappa":0.000001}
{"kappa": -0.000099, "s": 142.803508, "theta": 1.501897, "x":691200.225647, "y":3118295.389335, "dkappa":0.000001}
{"kappa": -0.000099, "s": 143.205735, "theta": 1.501857, "x":691200.253347, "y":3118295.790607, "dkappa":0.000001}
{"kappa": -0.000098, "s": 143.607962, "theta": 1.501818, "x":691200.281062, "y":3118296.191879, "dkappa":0.000001}
{"kappa": -0.000098, "s": 144.010189, "theta": 1.501778, "x":691200.308793, "y":3118296.593149, "dkappa":0.000001}
{"kappa": -0.000097, "s": 144.412417, "theta": 1.501739, "x":691200.336540, "y":3118296.994418, "dkappa":0.000001}
{"kappa": -0.000097, "s": 144.814645, "theta": 1.501700, "x":691200.364302, "y":3118297.395687, "dkappa":0.000001}
{"kappa": -0.000097, "s": 145.216873, "theta": 1.501661, "x":691200.392081, "y":3118297.796955, "dkappa":0.000001}
{"kappa": -0.000096, "s": 145.619101, "theta": 1.501622, "x":691200.419875, "y":3118298.198221, "dkappa":0.000001}
{"kappa": -0.000096, "s": 146.021329, "theta": 1.501583, "x":691200.447684, "y":3118298.599487, "dkappa":0.000001}
{"kappa": -0.000096, "s": 146.423557, "theta": 1.501545, "x":691200.475509, "y":3118299.000752, "dkappa":0.000001}
{"kappa": -0.000095, "s": 146.825786, "theta": 1.501506, "x":691200.503350, "y":3118299.402016, "dkappa":0.000001}
{"kappa": -0.000095, "s": 147.228015, "theta": 1.501468, "x":691200.531206, "y":3118299.803278, "dkappa":0.000001}
{"kappa": -0.000095, "s": 147.630243, "theta": 1.501430, "x":691200.559077, "y":3118300.204540, "dkappa":0.000001}
{"kappa": -0.000094, "s": 148.032472, "theta": 1.501392, "x":691200.586963, "y":3118300.605802, "dkappa":0.000001}
{"kappa": -0.000094, "s": 148.434701, "theta": 1.501354, "x":691200.614865, "y":3118301.007062, "dkappa":0.000001}
{"kappa": -0.000094, "s": 148.836931, "theta": 1.501316, "x":691200.642782, "y":3118301.408321, "dkappa":0.000001}
{"kappa": -0.000093, "s": 149.239160, "theta": 1.501279, "x":691200.670714, "y":3118301.809580, "dkappa":0.000001}
{"kappa": -0.000093, "s": 149.641390, "theta": 1.501241, "x":691200.698661, "y":3118302.210837, "dkappa":0.000001}
{"kappa": -0.000092, "s": 150.043620, "theta": 1.501204, "x":691200.726623, "y":3118302.612094, "dkappa":0.000001}
{"kappa": -0.000092, "s": 150.445850, "theta": 1.501167, "x":691200.754600, "y":3118303.013350, "dkappa":0.000001}
{"kappa": -0.000092, "s": 150.848080, "theta": 1.501130, "x":691200.782592, "y":3118303.414604, "dkappa":0.000001}
{"kappa": -0.000091, "s": 151.250310, "theta": 1.501093, "x":691200.810599, "y":3118303.815859, "dkappa":0.000001}
{"kappa": -0.000091, "s": 151.652540, "theta": 1.501056, "x":691200.838621, "y":3118304.217112, "dkappa":0.000001}
{"kappa": -0.000091, "s": 152.054771, "theta": 1.501020, "x":691200.866657, "y":3118304.618364, "dkappa":0.000001}
{"kappa": -0.000090, "s": 152.457002, "theta": 1.500983, "x":691200.894707, "y":3118305.019615, "dkappa":0.000001}
{"kappa": -0.000090, "s": 152.859232, "theta": 1.500947, "x":691200.922773, "y":3118305.420866, "dkappa":0.000001}
{"kappa": -0.000090, "s": 153.261463, "theta": 1.500911, "x":691200.950853, "y":3118305.822116, "dkappa":0.000001}
{"kappa": -0.000089, "s": 153.663695, "theta": 1.500875, "x":691200.978947, "y":3118306.223365, "dkappa":0.000001}
{"kappa": -0.000089, "s": 154.065926, "theta": 1.500839, "x":691201.007056, "y":3118306.624613, "dkappa":0.000001}
{"kappa": -0.000088, "s": 154.468158, "theta": 1.500804, "x":691201.035179, "y":3118307.025860, "dkappa":0.000001}
{"kappa": -0.000088, "s": 154.870389, "theta": 1.500768, "x":691201.063316, "y":3118307.427106, "dkappa":0.000001}
{"kappa": -0.000088, "s": 155.272621, "theta": 1.500733, "x":691201.091468, "y":3118307.828352, "dkappa":0.000001}
{"kappa": -0.000087, "s": 155.674853, "theta": 1.500698, "x":691201.119634, "y":3118308.229596, "dkappa":0.000001}
{"kappa": -0.000087, "s": 156.077085, "theta": 1.500663, "x":691201.147814, "y":3118308.630840, "dkappa":0.000001}
{"kappa": -0.000086, "s": 156.479318, "theta": 1.500628, "x":691201.176007, "y":3118309.032083, "dkappa":0.000001}
{"kappa": -0.000086, "s": 156.881550, "theta": 1.500593, "x":691201.204215, "y":3118309.433325, "dkappa":0.000001}
{"kappa": -0.000086, "s": 157.283783, "theta": 1.500559, "x":691201.232437, "y":3118309.834567, "dkappa":0.000001}
{"kappa": -0.000085, "s": 157.686016, "theta": 1.500524, "x":691201.260673, "y":3118310.235807, "dkappa":0.000001}
{"kappa": -0.000085, "s": 158.088249, "theta": 1.500490, "x":691201.288922, "y":3118310.637047, "dkappa":0.000001}
{"kappa": -0.000085, "s": 158.490482, "theta": 1.500456, "x":691201.317185, "y":3118311.038286, "dkappa":0.000001}
{"kappa": -0.000084, "s": 158.892715, "theta": 1.500422, "x":691201.345462, "y":3118311.439524, "dkappa":0.000001}
{"kappa": -0.000084, "s": 159.294949, "theta": 1.500388, "x":691201.373752, "y":3118311.840762, "dkappa":0.000001}
{"kappa": -0.000083, "s": 159.697182, "theta": 1.500355, "x":691201.402056, "y":3118312.241998, "dkappa":0.000001}
{"kappa": -0.000083, "s": 160.099416, "theta": 1.500321, "x":691201.430374, "y":3118312.643234, "dkappa":0.000001}
{"kappa": -0.000083, "s": 160.501650, "theta": 1.500288, "x":691201.458704, "y":3118313.044469, "dkappa":0.000001}
{"kappa": -0.000082, "s": 160.903884, "theta": 1.500255, "x":691201.487048, "y":3118313.445703, "dkappa":0.000001}
{"kappa": -0.000082, "s": 161.306119, "theta": 1.500222, "x":691201.515406, "y":3118313.846937, "dkappa":0.000001}
{"kappa": -0.000081, "s": 161.708353, "theta": 1.500189, "x":691201.543777, "y":3118314.248169, "dkappa":0.000001}
{"kappa": -0.000081, "s": 162.110588, "theta": 1.500156, "x":691201.572160, "y":3118314.649401, "dkappa":0.000001}
{"kappa": -0.000081, "s": 162.512823, "theta": 1.500123, "x":691201.600557, "y":3118315.050633, "dkappa":0.000001}
{"kappa": -0.000080, "s": 162.915058, "theta": 1.500091, "x":691201.628967, "y":3118315.451863, "dkappa":0.000001}
{"kappa": -0.000080, "s": 163.317293, "theta": 1.500059, "x":691201.657390, "y":3118315.853093, "dkappa":0.000001}
{"kappa": -0.000080, "s": 163.719528, "theta": 1.500027, "x":691201.685826, "y":3118316.254322, "dkappa":0.000001}
{"kappa": -0.000079, "s": 164.121764, "theta": 1.499995, "x":691201.714275, "y":3118316.655550, "dkappa":0.000001}
{"kappa": -0.000079, "s": 164.523999, "theta": 1.499963, "x":691201.742736, "y":3118317.056777, "dkappa":0.000001}
{"kappa": -0.000078, "s": 164.926235, "theta": 1.499931, "x":691201.771210, "y":3118317.458004, "dkappa":0.000001}
{"kappa": -0.000078, "s": 165.328471, "theta": 1.499900, "x":691201.799697, "y":3118317.859230, "dkappa":0.000001}
{"kappa": -0.000078, "s": 165.730707, "theta": 1.499869, "x":691201.828197, "y":3118318.260455, "dkappa":0.000001}
{"kappa": -0.000077, "s": 166.132944, "theta": 1.499838, "x":691201.856709, "y":3118318.661680, "dkappa":0.000001}
{"kappa": -0.000077, "s": 166.535180, "theta": 1.499807, "x":691201.885233, "y":3118319.062904, "dkappa":0.000001}
{"kappa": -0.000076, "s": 166.937417, "theta": 1.499776, "x":691201.913770, "y":3118319.464127, "dkappa":0.000001}
{"kappa": -0.000076, "s": 167.339654, "theta": 1.499745, "x":691201.942319, "y":3118319.865349, "dkappa":0.000001}
{"kappa": -0.000076, "s": 167.741891, "theta": 1.499715, "x":691201.970881, "y":3118320.266571, "dkappa":0.000001}
{"kappa": -0.000075, "s": 168.144128, "theta": 1.499684, "x":691201.999455, "y":3118320.667792, "dkappa":0.000001}
{"kappa": -0.000075, "s": 168.546365, "theta": 1.499654, "x":691202.028040, "y":3118321.069012, "dkappa":0.000001}
{"kappa": -0.000074, "s": 168.948603, "theta": 1.499624, "x":691202.056638, "y":3118321.470232, "dkappa":0.000001}
{"kappa": -0.000074, "s": 169.350840, "theta": 1.499594, "x":691202.085248, "y":3118321.871451, "dkappa":0.000001}
{"kappa": -0.000074, "s": 169.753078, "theta": 1.499564, "x":691202.113870, "y":3118322.272669, "dkappa":0.000001}
{"kappa": -0.000073, "s": 170.155316, "theta": 1.499535, "x":691202.142504, "y":3118322.673886, "dkappa":0.000001}
{"kappa": -0.000073, "s": 170.557554, "theta": 1.499506, "x":691202.171150, "y":3118323.075103, "dkappa":0.000001}
{"kappa": -0.000073, "s": 170.959793, "theta": 1.499476, "x":691202.199807, "y":3118323.476320, "dkappa":0.000001}
{"kappa": -0.000072, "s": 171.362031, "theta": 1.499447, "x":691202.228477, "y":3118323.877535, "dkappa":0.000001}
{"kappa": -0.000072, "s": 171.764270, "theta": 1.499418, "x":691202.257157, "y":3118324.278750, "dkappa":0.000001}
{"kappa": -0.000071, "s": 172.166509, "theta": 1.499390, "x":691202.285850, "y":3118324.679964, "dkappa":0.000001}
{"kappa": -0.000071, "s": 172.568748, "theta": 1.499361, "x":691202.314554, "y":3118325.081178, "dkappa":0.000001}
{"kappa": -0.000071, "s": 172.970987, "theta": 1.499332, "x":691202.343269, "y":3118325.482391, "dkappa":0.000001}
{"kappa": -0.000070, "s": 173.373226, "theta": 1.499304, "x":691202.371996, "y":3118325.883603, "dkappa":0.000001}
{"kappa": -0.000070, "s": 173.775466, "theta": 1.499276, "x":691202.400734, "y":3118326.284815, "dkappa":0.000001}
{"kappa": -0.000069, "s": 174.177706, "theta": 1.499248, "x":691202.429484, "y":3118326.686026, "dkappa":0.000001}
{"kappa": -0.000069, "s": 174.579946, "theta": 1.499220, "x":691202.458244, "y":3118327.087236, "dkappa":0.000001}
{"kappa": -0.000069, "s": 174.982186, "theta": 1.499193, "x":691202.487016, "y":3118327.488446, "dkappa":0.000001}
{"kappa": -0.000068, "s": 175.384426, "theta": 1.499165, "x":691202.515799, "y":3118327.889655, "dkappa":0.000001}
{"kappa": -0.000068, "s": 175.786666, "theta": 1.499138, "x":691202.544593, "y":3118328.290863, "dkappa":0.000001}
{"kappa": -0.000067, "s": 176.188907, "theta": 1.499110, "x":691202.573398, "y":3118328.692071, "dkappa":0.000001}
{"kappa": -0.000067, "s": 176.591148, "theta": 1.499083, "x":691202.602213, "y":3118329.093278, "dkappa":0.000001}
{"kappa": -0.000067, "s": 176.993388, "theta": 1.499057, "x":691202.631040, "y":3118329.494485, "dkappa":0.000001}
{"kappa": -0.000066, "s": 177.395630, "theta": 1.499030, "x":691202.659877, "y":3118329.895691, "dkappa":0.000001}
{"kappa": -0.000066, "s": 177.797871, "theta": 1.499003, "x":691202.688725, "y":3118330.296897, "dkappa":0.000001}
{"kappa": -0.000065, "s": 178.200112, "theta": 1.498977, "x":691202.717584, "y":3118330.698101, "dkappa":0.000001}
{"kappa": -0.000065, "s": 178.602354, "theta": 1.498951, "x":691202.746453, "y":3118331.099306, "dkappa":0.000001}
{"kappa": -0.000065, "s": 179.004595, "theta": 1.498924, "x":691202.775333, "y":3118331.500509, "dkappa":0.000001}
{"kappa": -0.000064, "s": 179.406837, "theta": 1.498898, "x":691202.804223, "y":3118331.901712, "dkappa":0.000001}
{"kappa": -0.000064, "s": 179.809079, "theta": 1.498873, "x":691202.833124, "y":3118332.302915, "dkappa":0.000001}
{"kappa": -0.000064, "s": 180.211322, "theta": 1.498847, "x":691202.862035, "y":3118332.704117, "dkappa":0.000001}
{"kappa": -0.000063, "s": 180.613564, "theta": 1.498822, "x":691202.890956, "y":3118333.105318, "dkappa":0.000001}
{"kappa": -0.000063, "s": 181.015807, "theta": 1.498796, "x":691202.919887, "y":3118333.506519, "dkappa":0.000001}
{"kappa": -0.000062, "s": 181.418050, "theta": 1.498771, "x":691202.948829, "y":3118333.907719, "dkappa":0.000001}
{"kappa": -0.000062, "s": 181.820292, "theta": 1.498746, "x":691202.977781, "y":3118334.308919, "dkappa":0.000001}
{"kappa": -0.000062, "s": 182.222536, "theta": 1.498721, "x":691203.006742, "y":3118334.710118, "dkappa":0.000001}
{"kappa": -0.000061, "s": 182.624779, "theta": 1.498696, "x":691203.035714, "y":3118335.111317, "dkappa":0.000001}
{"kappa": -0.000061, "s": 183.027022, "theta": 1.498672, "x":691203.064696, "y":3118335.512515, "dkappa":0.000001}
{"kappa": -0.000061, "s": 183.429266, "theta": 1.498647, "x":691203.093687, "y":3118335.913712, "dkappa":0.000001}
{"kappa": -0.000060, "s": 183.831510, "theta": 1.498623, "x":691203.122688, "y":3118336.314909, "dkappa":0.000001}
{"kappa": -0.000060, "s": 184.233754, "theta": 1.498599, "x":691203.151699, "y":3118336.716105, "dkappa":0.000001}
{"kappa": -0.000059, "s": 184.635998, "theta": 1.498575, "x":691203.180720, "y":3118337.117301, "dkappa":0.000001}
{"kappa": -0.000059, "s": 185.038242, "theta": 1.498551, "x":691203.209750, "y":3118337.518497, "dkappa":0.000001}
{"kappa": -0.000059, "s": 185.440486, "theta": 1.498527, "x":691203.238789, "y":3118337.919691, "dkappa":0.000001}
{"kappa": -0.000058, "s": 185.842731, "theta": 1.498504, "x":691203.267839, "y":3118338.320886, "dkappa":0.000001}
{"kappa": -0.000058, "s": 186.244976, "theta": 1.498481, "x":691203.296897, "y":3118338.722079, "dkappa":0.000001}
{"kappa": -0.000058, "s": 186.647221, "theta": 1.498457, "x":691203.325965, "y":3118339.123273, "dkappa":0.000001}
{"kappa": -0.000057, "s": 187.049466, "theta": 1.498434, "x":691203.355042, "y":3118339.524466, "dkappa":0.000001}
{"kappa": -0.000057, "s": 187.451711, "theta": 1.498411, "x":691203.384129, "y":3118339.925658, "dkappa":0.000001}
{"kappa": -0.000056, "s": 187.853956, "theta": 1.498389, "x":691203.413224, "y":3118340.326850, "dkappa":0.000001}
{"kappa": -0.000056, "s": 188.256202, "theta": 1.498366, "x":691203.442329, "y":3118340.728041, "dkappa":0.000001}
{"kappa": -0.000056, "s": 188.658448, "theta": 1.498344, "x":691203.471443, "y":3118341.129232, "dkappa":0.000001}
{"kappa": -0.000055, "s": 189.060694, "theta": 1.498321, "x":691203.500566, "y":3118341.530422, "dkappa":0.000001}
{"kappa": -0.000055, "s": 189.462940, "theta": 1.498299, "x":691203.529698, "y":3118341.931612, "dkappa":0.000001}
{"kappa": -0.000055, "s": 189.865186, "theta": 1.498277, "x":691203.558838, "y":3118342.332801, "dkappa":0.000001}
{"kappa": -0.000054, "s": 190.267433, "theta": 1.498255, "x":691203.587988, "y":3118342.733990, "dkappa":0.000001}
{"kappa": -0.000054, "s": 190.669679, "theta": 1.498233, "x":691203.617146, "y":3118343.135178, "dkappa":0.000001}
{"kappa": -0.000054, "s": 191.071926, "theta": 1.498212, "x":691203.646313, "y":3118343.536366, "dkappa":0.000001}
{"kappa": -0.000053, "s": 191.474173, "theta": 1.498190, "x":691203.675489, "y":3118343.937554, "dkappa":0.000001}
{"kappa": -0.000053, "s": 191.876420, "theta": 1.498169, "x":691203.704673, "y":3118344.338741, "dkappa":0.000001}
{"kappa": -0.000052, "s": 192.278667, "theta": 1.498148, "x":691203.733866, "y":3118344.739927, "dkappa":0.000001}
{"kappa": -0.000052, "s": 192.680915, "theta": 1.498127, "x":691203.763067, "y":3118345.141113, "dkappa":0.000001}
{"kappa": -0.000052, "s": 193.083162, "theta": 1.498106, "x":691203.792277, "y":3118345.542299, "dkappa":0.000001}
{"kappa": -0.000051, "s": 193.485410, "theta": 1.498085, "x":691203.821495, "y":3118345.943484, "dkappa":0.000001}
{"kappa": -0.000051, "s": 193.887658, "theta": 1.498064, "x":691203.850721, "y":3118346.344669, "dkappa":0.000001}
{"kappa": -0.000051, "s": 194.289906, "theta": 1.498044, "x":691203.879955, "y":3118346.745853, "dkappa":0.000001}
{"kappa": -0.000050, "s": 194.692154, "theta": 1.498024, "x":691203.909198, "y":3118347.147037, "dkappa":0.000001}
{"kappa": -0.000050, "s": 195.094402, "theta": 1.498003, "x":691203.938449, "y":3118347.548220, "dkappa":0.000001}
{"kappa": -0.000050, "s": 195.496651, "theta": 1.497983, "x":691203.967708, "y":3118347.949403, "dkappa":0.000001}
{"kappa": -0.000049, "s": 195.898900, "theta": 1.497964, "x":691203.996975, "y":3118348.350586, "dkappa":0.000001}
{"kappa": -0.000049, "s": 196.301149, "theta": 1.497944, "x":691204.026250, "y":3118348.751768, "dkappa":0.000001}
{"kappa": -0.000049, "s": 196.703398, "theta": 1.497924, "x":691204.055533, "y":3118349.152950, "dkappa":0.000001}
{"kappa": -0.000048, "s": 197.105647, "theta": 1.497905, "x":691204.084824, "y":3118349.554131, "dkappa":0.000001}
{"kappa": -0.000048, "s": 197.507896, "theta": 1.497885, "x":691204.114122, "y":3118349.955312, "dkappa":0.000001}
{"kappa": -0.000048, "s": 197.910146, "theta": 1.497866, "x":691204.143429, "y":3118350.356493, "dkappa":0.000001}
{"kappa": -0.000047, "s": 198.312395, "theta": 1.497847, "x":691204.172743, "y":3118350.757673, "dkappa":0.000001}
{"kappa": -0.000047, "s": 198.714645, "theta": 1.497828, "x":691204.202064, "y":3118351.158852, "dkappa":0.000001}
{"kappa": -0.000108, "s": 199.116895, "theta": 1.497809, "x":691204.231394, "y":3118351.560032, "dkappa":0.000000}
{"kappa": -0.000108, "s": 199.519668, "theta": 1.497765, "x":691204.260774, "y":3118351.961732, "dkappa":0.000000}
{"kappa": -0.000108, "s": 199.922440, "theta": 1.497722, "x":691204.290171, "y":3118352.363430, "dkappa":0.000000}
{"kappa": -0.000108, "s": 200.325211, "theta": 1.497678, "x":691204.319586, "y":3118352.765125, "dkappa":0.000000}
{"kappa": -0.000108, "s": 200.727981, "theta": 1.497635, "x":691204.349018, "y":3118353.166818, "dkappa":0.000000}
{"kappa": -0.000108, "s": 201.130749, "theta": 1.497591, "x":691204.378468, "y":3118353.568508, "dkappa":0.000000}
{"kappa": -0.000108, "s": 201.533516, "theta": 1.497547, "x":691204.407935, "y":3118353.970196, "dkappa":0.000000}
{"kappa": -0.000108, "s": 201.936282, "theta": 1.497504, "x":691204.437420, "y":3118354.371881, "dkappa":0.000000}
{"kappa": -0.000108, "s": 202.339047, "theta": 1.497461, "x":691204.466922, "y":3118354.773564, "dkappa":0.000000}
{"kappa": -0.000108, "s": 202.741811, "theta": 1.497417, "x":691204.496441, "y":3118355.175245, "dkappa":0.000000}
{"kappa": -0.000107, "s": 203.144574, "theta": 1.497374, "x":691204.525977, "y":3118355.576923, "dkappa":0.000000}
{"kappa": -0.000107, "s": 203.547335, "theta": 1.497331, "x":691204.555531, "y":3118355.978599, "dkappa":0.000001}
{"kappa": -0.000107, "s": 203.950096, "theta": 1.497288, "x":691204.585102, "y":3118356.380272, "dkappa":0.000001}
{"kappa": -0.000107, "s": 204.352855, "theta": 1.497245, "x":691204.614690, "y":3118356.781943, "dkappa":0.000001}
{"kappa": -0.000106, "s": 204.755613, "theta": 1.497202, "x":691204.644296, "y":3118357.183611, "dkappa":0.000001}
{"kappa": -0.000106, "s": 205.158370, "theta": 1.497159, "x":691204.673919, "y":3118357.585277, "dkappa":0.000001}
{"kappa": -0.000106, "s": 205.561125, "theta": 1.497116, "x":691204.703558, "y":3118357.986941, "dkappa":0.000001}
{"kappa": -0.000106, "s": 205.963880, "theta": 1.497074, "x":691204.733215, "y":3118358.388602, "dkappa":0.000001}
{"kappa": -0.000105, "s": 206.366633, "theta": 1.497031, "x":691204.762889, "y":3118358.790261, "dkappa":0.000001}
{"kappa": -0.000105, "s": 206.769385, "theta": 1.496989, "x":691204.792579, "y":3118359.191917, "dkappa":0.000001}
{"kappa": -0.000105, "s": 207.172136, "theta": 1.496947, "x":691204.822287, "y":3118359.593571, "dkappa":0.000001}
{"kappa": -0.000104, "s": 207.574886, "theta": 1.496905, "x":691204.852011, "y":3118359.995222, "dkappa":0.000001}
{"kappa": -0.000104, "s": 207.977635, "theta": 1.496863, "x":691204.881753, "y":3118360.396871, "dkappa":0.000001}
{"kappa": -0.000103, "s": 208.380382, "theta": 1.496821, "x":691204.911510, "y":3118360.798518, "dkappa":0.000001}
{"kappa": -0.000103, "s": 208.783129, "theta": 1.496779, "x":691204.941285, "y":3118361.200162, "dkappa":0.000001}
{"kappa": -0.000102, "s": 209.185874, "theta": 1.496738, "x":691204.971076, "y":3118361.601804, "dkappa":0.000001}
{"kappa": -0.000102, "s": 209.588618, "theta": 1.496697, "x":691205.000883, "y":3118362.003443, "dkappa":0.000001}
{"kappa": -0.000102, "s": 209.991361, "theta": 1.496656, "x":691205.030707, "y":3118362.405081, "dkappa":0.000001}
{"kappa": -0.000101, "s": 210.394102, "theta": 1.496615, "x":691205.060548, "y":3118362.806715, "dkappa":0.000001}
{"kappa": -0.000101, "s": 210.796843, "theta": 1.496574, "x":691205.090404, "y":3118363.208347, "dkappa":0.000001}
{"kappa": -0.000100, "s": 211.199582, "theta": 1.496534, "x":691205.120277, "y":3118363.609977, "dkappa":0.000001}
{"kappa": -0.000099, "s": 211.602320, "theta": 1.496494, "x":691205.150166, "y":3118364.011605, "dkappa":0.000001}
{"kappa": -0.000099, "s": 212.005057, "theta": 1.496454, "x":691205.180071, "y":3118364.413230, "dkappa":0.000001}
{"kappa": -0.000098, "s": 212.407793, "theta": 1.496414, "x":691205.209992, "y":3118364.814853, "dkappa":0.000001}
{"kappa": -0.000098, "s": 212.810528, "theta": 1.496375, "x":691205.239928, "y":3118365.216473, "dkappa":0.000001}
{"kappa": -0.000097, "s": 213.213261, "theta": 1.496335, "x":691205.269880, "y":3118365.618091, "dkappa":0.000002}
{"kappa": -0.000097, "s": 213.615993, "theta": 1.496296, "x":691205.299848, "y":3118366.019707, "dkappa":0.000002}
{"kappa": -0.000096, "s": 214.018724, "theta": 1.496258, "x":691205.329832, "y":3118366.421321, "dkappa":0.000002}
{"kappa": -0.000095, "s": 214.421454, "theta": 1.496219, "x":691205.359831, "y":3118366.822932, "dkappa":0.000002}
{"kappa": -0.000095, "s": 214.824183, "theta": 1.496181, "x":691205.389845, "y":3118367.224540, "dkappa":0.000002}
{"kappa": -0.000094, "s": 215.226911, "theta": 1.496143, "x":691205.419874, "y":3118367.626147, "dkappa":0.000002}
{"kappa": -0.000093, "s": 215.629637, "theta": 1.496105, "x":691205.449919, "y":3118368.027751, "dkappa":0.000002}
{"kappa": -0.000092, "s": 216.032362, "theta": 1.496068, "x":691205.479978, "y":3118368.429353, "dkappa":0.000002}
{"kappa": -0.000092, "s": 216.435086, "theta": 1.496031, "x":691205.510053, "y":3118368.830952, "dkappa":0.000002}
{"kappa": -0.000091, "s": 216.837809, "theta": 1.495994, "x":691205.540142, "y":3118369.232549, "dkappa":0.000002}
{"kappa": -0.000090, "s": 217.240531, "theta": 1.495958, "x":691205.570246, "y":3118369.634144, "dkappa":0.000002}
{"kappa": -0.000090, "s": 217.643251, "theta": 1.495921, "x":691205.600364, "y":3118370.035737, "dkappa":0.000002}
{"kappa": -0.000089, "s": 218.045970, "theta": 1.495885, "x":691205.630496, "y":3118370.437327, "dkappa":0.000002}
{"kappa": -0.000088, "s": 218.448688, "theta": 1.495850, "x":691205.660643, "y":3118370.838915, "dkappa":0.000002}
{"kappa": -0.000087, "s": 218.851405, "theta": 1.495815, "x":691205.690804, "y":3118371.240501, "dkappa":0.000002}
{"kappa": -0.000086, "s": 219.254121, "theta": 1.495780, "x":691205.720979, "y":3118371.642085, "dkappa":0.000002}
{"kappa": -0.000085, "s": 219.656835, "theta": 1.495745, "x":691205.751168, "y":3118372.043666, "dkappa":0.000002}
{"kappa": -0.000085, "s": 220.059548, "theta": 1.495711, "x":691205.781371, "y":3118372.445245, "dkappa":0.000002}
{"kappa": -0.000084, "s": 220.462260, "theta": 1.495677, "x":691205.811587, "y":3118372.846822, "dkappa":0.000002}
{"kappa": -0.000083, "s": 220.864971, "theta": 1.495643, "x":691205.841817, "y":3118373.248396, "dkappa":0.000002}
{"kappa": -0.000082, "s": 221.267681, "theta": 1.495610, "x":691205.872060, "y":3118373.649969, "dkappa":0.000002}
{"kappa": -0.000081, "s": 221.670389, "theta": 1.495577, "x":691205.902316, "y":3118374.051539, "dkappa":0.000002}
{"kappa": -0.000080, "s": 222.073096, "theta": 1.495545, "x":691205.932585, "y":3118374.453107, "dkappa":0.000002}
{"kappa": -0.000079, "s": 222.475802, "theta": 1.495513, "x":691205.962867, "y":3118374.854672, "dkappa":0.000002}
{"kappa": -0.000078, "s": 222.878507, "theta": 1.495481, "x":691205.993162, "y":3118375.256236, "dkappa":0.000002}
{"kappa": -0.000077, "s": 223.281210, "theta": 1.495450, "x":691206.023470, "y":3118375.657797, "dkappa":0.000002}
{"kappa": -0.000076, "s": 223.683912, "theta": 1.495419, "x":691206.053789, "y":3118376.059356, "dkappa":0.000002}
{"kappa": -0.000075, "s": 224.086613, "theta": 1.495388, "x":691206.084121, "y":3118376.460913, "dkappa":0.000002}
{"kappa": -0.000074, "s": 224.489313, "theta": 1.495358, "x":691206.114466, "y":3118376.862468, "dkappa":0.000002}
{"kappa": -0.000073, "s": 224.892011, "theta": 1.495328, "x":691206.144822, "y":3118377.264021, "dkappa":0.000002}
{"kappa": -0.000072, "s": 225.294709, "theta": 1.495299, "x":691206.175190, "y":3118377.665572, "dkappa":0.000003}
{"kappa": -0.000071, "s": 225.697405, "theta": 1.495270, "x":691206.205569, "y":3118378.067120, "dkappa":0.000003}
{"kappa": -0.000070, "s": 226.100099, "theta": 1.495241, "x":691206.235960, "y":3118378.468666, "dkappa":0.000003}
{"kappa": -0.000069, "s": 226.502793, "theta": 1.495213, "x":691206.266363, "y":3118378.870211, "dkappa":0.000003}
{"kappa": -0.000068, "s": 226.905485, "theta": 1.495185, "x":691206.296776, "y":3118379.271753, "dkappa":0.000003}
{"kappa": -0.000067, "s": 227.308176, "theta": 1.495158, "x":691206.327200, "y":3118379.673293, "dkappa":0.000003}
{"kappa": -0.000066, "s": 227.710866, "theta": 1.495131, "x":691206.357636, "y":3118380.074831, "dkappa":0.000003}
{"kappa": -0.000065, "s": 228.113555, "theta": 1.495105, "x":691206.388081, "y":3118380.476367, "dkappa":0.000003}
{"kappa": -0.000064, "s": 228.516242, "theta": 1.495079, "x":691206.418538, "y":3118380.877901, "dkappa":0.000003}
{"kappa": -0.000063, "s": 228.918928, "theta": 1.495053, "x":691206.449004, "y":3118381.279432, "dkappa":0.000003}
{"kappa": -0.000062, "s": 229.321612, "theta": 1.495028, "x":691206.479481, "y":3118381.680962, "dkappa":0.000003}
{"kappa": -0.000061, "s": 229.724296, "theta": 1.495003, "x":691206.509967, "y":3118382.082490, "dkappa":0.000003}
{"kappa": -0.000059, "s": 230.126978, "theta": 1.494979, "x":691206.540463, "y":3118382.484015, "dkappa":0.000003}
{"kappa": -0.000058, "s": 230.529659, "theta": 1.494955, "x":691206.570969, "y":3118382.885539, "dkappa":0.000003}
{"kappa": -0.000057, "s": 230.932338, "theta": 1.494932, "x":691206.601484, "y":3118383.287061, "dkappa":0.000003}
{"kappa": -0.000056, "s": 231.335016, "theta": 1.494909, "x":691206.632008, "y":3118383.688580, "dkappa":0.000003}
{"kappa": -0.000055, "s": 231.737693, "theta": 1.494887, "x":691206.662541, "y":3118384.090098, "dkappa":0.000003}
{"kappa": -0.000054, "s": 232.140369, "theta": 1.494865, "x":691206.693083, "y":3118384.491614, "dkappa":0.000003}
{"kappa": -0.000052, "s": 232.543043, "theta": 1.494844, "x":691206.723633, "y":3118384.893127, "dkappa":0.000003}
{"kappa": -0.000051, "s": 232.945716, "theta": 1.494823, "x":691206.754192, "y":3118385.294639, "dkappa":0.000003}
{"kappa": -0.000050, "s": 233.348388, "theta": 1.494803, "x":691206.784759, "y":3118385.696149, "dkappa":0.000003}
{"kappa": -0.000049, "s": 233.751058, "theta": 1.494783, "x":691206.815334, "y":3118386.097657, "dkappa":0.000003}
{"kappa": -0.000048, "s": 234.153728, "theta": 1.494763, "x":691206.845917, "y":3118386.499163, "dkappa":0.000003}
{"kappa": -0.000046, "s": 234.556395, "theta": 1.494744, "x":691206.876507, "y":3118386.900667, "dkappa":0.000003}
{"kappa": -0.000045, "s": 234.959062, "theta": 1.494726, "x":691206.907105, "y":3118387.302169, "dkappa":0.000003}
{"kappa": -0.000044, "s": 235.361727, "theta": 1.494708, "x":691206.937710, "y":3118387.703670, "dkappa":0.000003}
{"kappa": -0.000042, "s": 235.764390, "theta": 1.494691, "x":691206.968322, "y":3118388.105168, "dkappa":0.000003}
{"kappa": -0.000041, "s": 236.167053, "theta": 1.494674, "x":691206.998940, "y":3118388.506665, "dkappa":0.000003}
{"kappa": -0.000040, "s": 236.569714, "theta": 1.494658, "x":691207.029566, "y":3118388.908159, "dkappa":0.000003}
{"kappa": -0.000039, "s": 236.972374, "theta": 1.494642, "x":691207.060197, "y":3118389.309652, "dkappa":0.000003}
{"kappa": -0.000037, "s": 237.375032, "theta": 1.494627, "x":691207.090835, "y":3118389.711143, "dkappa":0.000003}
{"kappa": -0.000036, "s": 237.777689, "theta": 1.494612, "x":691207.121478, "y":3118390.112633, "dkappa":0.000003}
{"kappa": -0.000035, "s": 238.180345, "theta": 1.494598, "x":691207.152128, "y":3118390.514120, "dkappa":0.000003}
{"kappa": -0.000033, "s": 238.582999, "theta": 1.494584, "x":691207.182782, "y":3118390.915606, "dkappa":0.000003}
{"kappa": -0.000032, "s": 238.985652, "theta": 1.494571, "x":691207.213442, "y":3118391.317090, "dkappa":0.000003}
{"kappa": -0.000031, "s": 239.388303, "theta": 1.494558, "x":691207.244107, "y":3118391.718572, "dkappa":0.000003}
{"kappa": -0.000029, "s": 239.790953, "theta": 1.494546, "x":691207.274777, "y":3118392.120052, "dkappa":0.000003}
{"kappa": -0.000028, "s": 240.193602, "theta": 1.494535, "x":691207.305452, "y":3118392.521531, "dkappa":0.000003}
{"kappa": -0.000026, "s": 240.596249, "theta": 1.494524, "x":691207.336131, "y":3118392.923008, "dkappa":0.000003}
{"kappa": -0.000025, "s": 240.998895, "theta": 1.494514, "x":691207.366814, "y":3118393.324483, "dkappa":0.000003}
{"kappa": -0.000024, "s": 241.401540, "theta": 1.494504, "x":691207.397501, "y":3118393.725956, "dkappa":0.000003}
{"kappa": -0.000022, "s": 241.804183, "theta": 1.494495, "x":691207.428191, "y":3118394.127428, "dkappa":0.000004}
{"kappa": -0.000021, "s": 242.206825, "theta": 1.494486, "x":691207.458886, "y":3118394.528898, "dkappa":0.000004}
{"kappa": -0.000019, "s": 242.609465, "theta": 1.494478, "x":691207.489583, "y":3118394.930366, "dkappa":0.000004}
{"kappa": -0.000018, "s": 243.012104, "theta": 1.494470, "x":691207.520284, "y":3118395.331833, "dkappa":0.000004}
{"kappa": -0.000016, "s": 243.414741, "theta": 1.494463, "x":691207.550987, "y":3118395.733298, "dkappa":0.000004}
{"kappa": -0.000015, "s": 243.817377, "theta": 1.494457, "x":691207.581693, "y":3118396.134762, "dkappa":0.000004}
{"kappa": -0.000014, "s": 244.220012, "theta": 1.494451, "x":691207.612401, "y":3118396.536224, "dkappa":0.000004}
{"kappa": -0.000012, "s": 244.622645, "theta": 1.494446, "x":691207.643111, "y":3118396.937684, "dkappa":0.000004}
{"kappa": -0.000011, "s": 245.025277, "theta": 1.494442, "x":691207.673823, "y":3118397.339143, "dkappa":0.000004}
{"kappa": -0.000009, "s": 245.427907, "theta": 1.494438, "x":691207.704537, "y":3118397.740600, "dkappa":0.000004}
{"kappa": -0.000008, "s": 245.830536, "theta": 1.494434, "x":691207.735252, "y":3118398.142055, "dkappa":0.000004}
{"kappa": -0.000006, "s": 246.233163, "theta": 1.494431, "x":691207.765968, "y":3118398.543509, "dkappa":0.000004}
{"kappa": -0.000005, "s": 246.635789, "theta": 1.494429, "x":691207.796685, "y":3118398.944961, "dkappa":0.000004}
{"kappa": -0.000003, "s": 247.038413, "theta": 1.494428, "x":691207.827403, "y":3118399.346412, "dkappa":0.000004}
{"kappa": -0.000002, "s": 247.441036, "theta": 1.494427, "x":691207.858121, "y":3118399.747862, "dkappa":0.000004}
{"kappa": -0.000000, "s": 247.843658, "theta": 1.494426, "x":691207.888839, "y":3118400.149310, "dkappa":0.000004}
{"kappa": 0.000001, "s": 248.246278, "theta": 1.494427, "x":691207.919557, "y":3118400.550756, "dkappa":0.000004}
{"kappa": 0.000003, "s": 248.648896, "theta": 1.494427, "x":691207.950275, "y":3118400.952201, "dkappa":0.000004}
{"kappa": 0.000004, "s": 249.051513, "theta": 1.494429, "x":691207.980992, "y":3118401.353644, "dkappa":0.000004}
{"kappa": 0.000006, "s": 249.454128, "theta": 1.494431, "x":691208.011709, "y":3118401.755086, "dkappa":0.000004}
{"kappa": 0.000008, "s": 249.856742, "theta": 1.494434, "x":691208.042424, "y":3118402.156527, "dkappa":0.000004}
{"kappa": 0.000009, "s": 250.259355, "theta": 1.494437, "x":691208.073138, "y":3118402.557966, "dkappa":0.000004}
{"kappa": 0.000011, "s": 250.661966, "theta": 1.494441, "x":691208.103851, "y":3118402.959404, "dkappa":0.000004}
{"kappa": 0.000012, "s": 251.064575, "theta": 1.494446, "x":691208.134561, "y":3118403.360840, "dkappa":0.000004}
{"kappa": 0.000014, "s": 251.467183, "theta": 1.494451, "x":691208.165270, "y":3118403.762275, "dkappa":0.000004}
{"kappa": 0.000015, "s": 251.869789, "theta": 1.494457, "x":691208.195976, "y":3118404.163709, "dkappa":0.000004}
{"kappa": 0.000017, "s": 252.272394, "theta": 1.494463, "x":691208.226680, "y":3118404.565141, "dkappa":0.000004}
{"kappa": 0.000019, "s": 252.674997, "theta": 1.494470, "x":691208.257381, "y":3118404.966572, "dkappa":0.000004}
{"kappa": 0.000020, "s": 253.077599, "theta": 1.494478, "x":691208.288078, "y":3118405.368002, "dkappa":0.000004}
{"kappa": 0.000022, "s": 253.480199, "theta": 1.494486, "x":691208.318772, "y":3118405.769430, "dkappa":0.000004}
{"kappa": 0.000023, "s": 253.882797, "theta": 1.494496, "x":691208.349463, "y":3118406.170857, "dkappa":0.000004}
{"kappa": 0.000025, "s": 254.285394, "theta": 1.494505, "x":691208.380150, "y":3118406.572283, "dkappa":0.000004}
{"kappa": 0.000027, "s": 254.687990, "theta": 1.494516, "x":691208.410832, "y":3118406.973707, "dkappa":0.000004}
{"kappa": 0.000028, "s": 255.090583, "theta": 1.494527, "x":691208.441511, "y":3118407.375130, "dkappa":0.000004}
{"kappa": 0.000030, "s": 255.493176, "theta": 1.494538, "x":691208.472184, "y":3118407.776552, "dkappa":0.000004}
{"kappa": 0.000031, "s": 255.895766, "theta": 1.494551, "x":691208.502853, "y":3118408.177973, "dkappa":0.000004}
{"kappa": 0.000033, "s": 256.298355, "theta": 1.494564, "x":691208.533516, "y":3118408.579393, "dkappa":0.000004}
{"kappa": 0.000035, "s": 256.700943, "theta": 1.494577, "x":691208.564174, "y":3118408.980811, "dkappa":0.000004}
{"kappa": 0.000036, "s": 257.103528, "theta": 1.494592, "x":691208.594826, "y":3118409.382228, "dkappa":0.000004}
{"kappa": 0.000038, "s": 257.506113, "theta": 1.494607, "x":691208.625472, "y":3118409.783644, "dkappa":0.000004}
{"kappa": 0.000040, "s": 257.908695, "theta": 1.494622, "x":691208.656112, "y":3118410.185059, "dkappa":0.000004}
{"kappa": 0.000041, "s": 258.311276, "theta": 1.494639, "x":691208.686745, "y":3118410.586473, "dkappa":0.000004}
{"kappa": 0.000043, "s": 258.713855, "theta": 1.494656, "x":691208.717372, "y":3118410.987886, "dkappa":0.000004}
{"kappa": 0.000045, "s": 259.116433, "theta": 1.494673, "x":691208.747991, "y":3118411.389297, "dkappa":0.000004}
{"kappa": 0.000046, "s": 259.519009, "theta": 1.494692, "x":691208.778604, "y":3118411.790708, "dkappa":0.000004}
{"kappa": 0.000048, "s": 259.921583, "theta": 1.494711, "x":691208.809208, "y":3118412.192117, "dkappa":0.000004}
{"kappa": 0.000050, "s": 260.324156, "theta": 1.494730, "x":691208.839805, "y":3118412.593525, "dkappa":0.000004}
{"kappa": 0.000051, "s": 260.726727, "theta": 1.494751, "x":691208.870393, "y":3118412.994933, "dkappa":0.000004}
{"kappa": 0.000053, "s": 261.129297, "theta": 1.494772, "x":691208.900973, "y":3118413.396339, "dkappa":0.000004}
{"kappa": 0.000055, "s": 261.531864, "theta": 1.494793, "x":691208.931544, "y":3118413.797744, "dkappa":0.000004}
{"kappa": 0.000057, "s": 261.934430, "theta": 1.494816, "x":691208.962106, "y":3118414.199148, "dkappa":0.000004}
{"kappa": 0.000058, "s": 262.336995, "theta": 1.494839, "x":691208.992659, "y":3118414.600552, "dkappa":0.000004}
{"kappa": 0.000060, "s": 262.739557, "theta": 1.494863, "x":691209.023203, "y":3118415.001954, "dkappa":0.000004}
{"kappa": 0.000062, "s": 263.142118, "theta": 1.494887, "x":691209.053737, "y":3118415.403355, "dkappa":0.000004}
{"kappa": 0.000063, "s": 263.544678, "theta": 1.494912, "x":691209.084260, "y":3118415.804756, "dkappa":0.000004}
{"kappa": 0.000065, "s": 263.947235, "theta": 1.494938, "x":691209.114773, "y":3118416.206155, "dkappa":0.000004}
{"kappa": 0.000067, "s": 264.349791, "theta": 1.494965, "x":691209.145276, "y":3118416.607554, "dkappa":0.000004}
{"kappa": 0.000069, "s": 264.752345, "theta": 1.494992, "x":691209.175767, "y":3118417.008951, "dkappa":0.000004}
{"kappa": 0.000070, "s": 265.154898, "theta": 1.495020, "x":691209.206248, "y":3118417.410348, "dkappa":0.000004}
{"kappa": 0.000072, "s": 265.557448, "theta": 1.495049, "x":691209.236717, "y":3118417.811744, "dkappa":0.000004}
{"kappa": 0.000074, "s": 265.959997, "theta": 1.495078, "x":691209.267174, "y":3118418.213139, "dkappa":0.000004}
{"kappa": 0.000076, "s": 266.362544, "theta": 1.495108, "x":691209.297619, "y":3118418.614533, "dkappa":0.000004}
{"kappa": 0.000077, "s": 266.765090, "theta": 1.495139, "x":691209.328051, "y":3118419.015927, "dkappa":0.000004}
{"kappa": 0.000079, "s": 267.167634, "theta": 1.495170, "x":691209.358472, "y":3118419.417320, "dkappa":0.000004}
{"kappa": 0.000081, "s": 267.570176, "theta": 1.495203, "x":691209.388879, "y":3118419.818711, "dkappa":0.000004}
{"kappa": 0.000083, "s": 267.972716, "theta": 1.495235, "x":691209.419273, "y":3118420.220103, "dkappa":0.000004}
{"kappa": 0.000084, "s": 268.375254, "theta": 1.495269, "x":691209.449653, "y":3118420.621493, "dkappa":0.000004}
{"kappa": 0.000086, "s": 268.777791, "theta": 1.495303, "x":691209.480020, "y":3118421.022883, "dkappa":0.000004}
{"kappa": 0.000088, "s": 269.180326, "theta": 1.495338, "x":691209.510373, "y":3118421.424271, "dkappa":0.000004}
{"kappa": 0.000090, "s": 269.582859, "theta": 1.495374, "x":691209.540711, "y":3118421.825660, "dkappa":0.000004}
{"kappa": 0.000091, "s": 269.985390, "theta": 1.495410, "x":691209.571035, "y":3118422.227047, "dkappa":0.000004}
{"kappa": 0.000093, "s": 270.387920, "theta": 1.495448, "x":691209.601344, "y":3118422.628434, "dkappa":0.000004}
{"kappa": 0.000095, "s": 270.790447, "theta": 1.495485, "x":691209.631637, "y":3118423.029820, "dkappa":0.000004}
{"kappa": 0.000097, "s": 271.192973, "theta": 1.495524, "x":691209.661916, "y":3118423.431206, "dkappa":0.000004}
{"kappa": 0.000099, "s": 271.595498, "theta": 1.495563, "x":691209.692178, "y":3118423.832591, "dkappa":0.000004}
{"kappa": 0.000100, "s": 271.998020, "theta": 1.495603, "x":691209.722424, "y":3118424.233975, "dkappa":0.000004}
{"kappa": 0.000102, "s": 272.400540, "theta": 1.495644, "x":691209.752654, "y":3118424.635359, "dkappa":0.000004}
{"kappa": 0.000104, "s": 272.803059, "theta": 1.495686, "x":691209.782868, "y":3118425.036742, "dkappa":0.000004}
{"kappa": 0.000106, "s": 273.205576, "theta": 1.495728, "x":691209.813064, "y":3118425.438124, "dkappa":0.000004}
{"kappa": 0.000107, "s": 273.608091, "theta": 1.495771, "x":691209.843244, "y":3118425.839506, "dkappa":0.000004}
{"kappa": 0.000109, "s": 274.010604, "theta": 1.495814, "x":691209.873405, "y":3118426.240888, "dkappa":0.000004}
{"kappa": 0.000111, "s": 274.413115, "theta": 1.495859, "x":691209.903549, "y":3118426.642269, "dkappa":0.000004}
{"kappa": 0.000113, "s": 274.815625, "theta": 1.495904, "x":691209.933675, "y":3118427.043649, "dkappa":0.000004}
{"kappa": 0.000115, "s": 275.218132, "theta": 1.495949, "x":691209.963783, "y":3118427.445029, "dkappa":0.000004}
{"kappa": 0.000116, "s": 275.620638, "theta": 1.495996, "x":691209.993872, "y":3118427.846409, "dkappa":0.000004}
{"kappa": 0.000118, "s": 276.023142, "theta": 1.496043, "x":691210.023942, "y":3118428.247788, "dkappa":0.000004}
{"kappa": 0.000120, "s": 276.425644, "theta": 1.496091, "x":691210.053992, "y":3118428.649167, "dkappa":0.000004}
{"kappa": 0.000122, "s": 276.828144, "theta": 1.496140, "x":691210.084024, "y":3118429.050545, "dkappa":0.000004}
{"kappa": 0.000124, "s": 277.230642, "theta": 1.496189, "x":691210.114035, "y":3118429.451923, "dkappa":0.000004}
{"kappa": 0.000125, "s": 277.633139, "theta": 1.496239, "x":691210.144026, "y":3118429.853300, "dkappa":0.000005}
{"kappa": 0.000127, "s": 278.035633, "theta": 1.496290, "x":691210.173997, "y":3118430.254677, "dkappa":0.000005}
{"kappa": 0.000129, "s": 278.438126, "theta": 1.496342, "x":691210.203947, "y":3118430.656054, "dkappa":0.000005}
{"kappa": 0.000131, "s": 278.840617, "theta": 1.496394, "x":691210.233876, "y":3118431.057430, "dkappa":0.000005}
{"kappa": 0.000133, "s": 279.243105, "theta": 1.496447, "x":691210.263784, "y":3118431.458807, "dkappa":0.000005}
{"kappa": 0.000135, "s": 279.645592, "theta": 1.496501, "x":691210.293670, "y":3118431.860182, "dkappa":0.000005}
{"kappa": 0.000136, "s": 280.048077, "theta": 1.496555, "x":691210.323535, "y":3118432.261558, "dkappa":0.000005}
{"kappa": 0.000138, "s": 280.450560, "theta": 1.496611, "x":691210.353377, "y":3118432.662933, "dkappa":0.000005}
{"kappa": 0.000140, "s": 280.853042, "theta": 1.496667, "x":691210.383197, "y":3118433.064308, "dkappa":0.000005}
{"kappa": 0.000142, "s": 281.255521, "theta": 1.496723, "x":691210.412993, "y":3118433.465683, "dkappa":0.000005}
{"kappa": 0.000144, "s": 281.657998, "theta": 1.496781, "x":691210.442767, "y":3118433.867057, "dkappa":0.000005}
{"kappa": 0.000145, "s": 282.060473, "theta": 1.496839, "x":691210.472518, "y":3118434.268431, "dkappa":0.000005}
{"kappa": 0.000147, "s": 282.462947, "theta": 1.496898, "x":691210.502245, "y":3118434.669806, "dkappa":0.000005}
{"kappa": 0.000149, "s": 282.865418, "theta": 1.496958, "x":691210.531948, "y":3118435.071180, "dkappa":0.000005}
{"kappa": 0.000151, "s": 283.267888, "theta": 1.497018, "x":691210.561626, "y":3118435.472553, "dkappa":0.000005}
{"kappa": 0.000153, "s": 283.670355, "theta": 1.497079, "x":691210.591281, "y":3118435.873927, "dkappa":0.000005}
{"kappa": 0.000155, "s": 284.072821, "theta": 1.497141, "x":691210.620910, "y":3118436.275300, "dkappa":0.000005}
{"kappa": 0.000156, "s": 284.475285, "theta": 1.497204, "x":691210.650514, "y":3118436.676674, "dkappa":0.000005}
{"kappa": 0.000158, "s": 284.877747, "theta": 1.497267, "x":691210.680093, "y":3118437.078047, "dkappa":0.000005}
{"kappa": 0.000160, "s": 285.280206, "theta": 1.497331, "x":691210.709646, "y":3118437.479420, "dkappa":0.000005}
{"kappa": 0.000162, "s": 285.682664, "theta": 1.497396, "x":691210.739173, "y":3118437.880794, "dkappa":0.000005}
{"kappa": 0.000164, "s": 286.085120, "theta": 1.497461, "x":691210.768674, "y":3118438.282167, "dkappa":0.000005}
{"kappa": 0.000166, "s": 286.487574, "theta": 1.497528, "x":691210.798148, "y":3118438.683540, "dkappa":0.000005}
{"kappa": 0.000167, "s": 286.890026, "theta": 1.497595, "x":691210.827596, "y":3118439.084913, "dkappa":0.000005}
{"kappa": 0.000169, "s": 287.292475, "theta": 1.497662, "x":691210.857016, "y":3118439.486286, "dkappa":0.000005}
{"kappa": 0.000171, "s": 287.694923, "theta": 1.497731, "x":691210.886408, "y":3118439.887659, "dkappa":0.000005}
{"kappa": 0.000173, "s": 288.097369, "theta": 1.497800, "x":691210.915773, "y":3118440.289032, "dkappa":0.000005}
{"kappa": 0.000175, "s": 288.499813, "theta": 1.497870, "x":691210.945110, "y":3118440.690405, "dkappa":0.000005}
{"kappa": 0.000177, "s": 288.902255, "theta": 1.497941, "x":691210.974419, "y":3118441.091779, "dkappa":0.000005}
{"kappa": 0.000178, "s": 289.304695, "theta": 1.498012, "x":691211.003698, "y":3118441.493152, "dkappa":0.000005}
{"kappa": 0.000180, "s": 289.707133, "theta": 1.498084, "x":691211.032949, "y":3118441.894526, "dkappa":0.000005}
{"kappa": 0.000182, "s": 290.109569, "theta": 1.498157, "x":691211.062171, "y":3118442.295899, "dkappa":0.000005}
{"kappa": 0.000184, "s": 290.512003, "theta": 1.498231, "x":691211.091363, "y":3118442.697273, "dkappa":0.000005}
{"kappa": 0.000186, "s": 290.914435, "theta": 1.498305, "x":691211.120525, "y":3118443.098647, "dkappa":0.000005}
{"kappa": 0.000187, "s": 291.316864, "theta": 1.498380, "x":691211.149657, "y":3118443.500021, "dkappa":0.000005}
{"kappa": 0.000189, "s": 291.719292, "theta": 1.498456, "x":691211.178759, "y":3118443.901395, "dkappa":0.000005}
{"kappa": 0.000191, "s": 292.121718, "theta": 1.498533, "x":691211.207830, "y":3118444.302769, "dkappa":0.000005}
{"kappa": 0.000193, "s": 292.524142, "theta": 1.498610, "x":691211.236869, "y":3118444.704144, "dkappa":0.000005}
{"kappa": 0.000195, "s": 292.926564, "theta": 1.498688, "x":691211.265878, "y":3118445.105519, "dkappa":0.000005}
{"kappa": 0.000197, "s": 293.328984, "theta": 1.498767, "x":691211.294855, "y":3118445.506894, "dkappa":0.000005}
{"kappa": 0.000198, "s": 293.731401, "theta": 1.498846, "x":691211.323800, "y":3118445.908270, "dkappa":0.000005}
{"kappa": 0.000200, "s": 294.133817, "theta": 1.498926, "x":691211.352713, "y":3118446.309645, "dkappa":0.000005}
{"kappa": 0.000202, "s": 294.536231, "theta": 1.499007, "x":691211.381593, "y":3118446.711021, "dkappa":0.000005}
{"kappa": 0.000204, "s": 294.938642, "theta": 1.499089, "x":691211.410441, "y":3118447.112398, "dkappa":0.000005}
{"kappa": 0.000206, "s": 295.341052, "theta": 1.499171, "x":691211.439255, "y":3118447.513774, "dkappa":0.000005}
{"kappa": 0.000207, "s": 295.743459, "theta": 1.499254, "x":691211.468036, "y":3118447.915151, "dkappa":0.000005}
{"kappa": 0.000209, "s": 296.145865, "theta": 1.499338, "x":691211.496784, "y":3118448.316529, "dkappa":0.000004}
{"kappa": 0.000211, "s": 296.548268, "theta": 1.499423, "x":691211.525497, "y":3118448.717906, "dkappa":0.000004}
{"kappa": 0.000213, "s": 296.950670, "theta": 1.499508, "x":691211.554177, "y":3118449.119284, "dkappa":0.000004}
{"kappa": 0.000215, "s": 297.353069, "theta": 1.499594, "x":691211.582821, "y":3118449.520663, "dkappa":0.000004}
{"kappa": 0.000217, "s": 297.755467, "theta": 1.499681, "x":691211.611431, "y":3118449.922042, "dkappa":0.000004}
{"kappa": 0.000218, "s": 298.157862, "theta": 1.499769, "x":691211.640006, "y":3118450.323421, "dkappa":0.000004}
{"kappa": 0.000220, "s": 298.560255, "theta": 1.499857, "x":691211.668546, "y":3118450.724801, "dkappa":0.000004}
{"kappa": 0.000222, "s": 298.962646, "theta": 1.499946, "x":691211.697049, "y":3118451.126182, "dkappa":0.000004}
{"kappa": 0.000077, "s": 299.365035, "theta": 1.500035, "x":691211.725517, "y":3118451.527562, "dkappa":0.000000}
{"kappa": 0.000077, "s": 299.768750, "theta": 1.500067, "x":691211.754054, "y":3118451.930267, "dkappa":0.000000}
{"kappa": 0.000078, "s": 300.172454, "theta": 1.500098, "x":691211.782578, "y":3118452.332963, "dkappa":0.000001}
{"kappa": 0.000078, "s": 300.576148, "theta": 1.500129, "x":691211.811088, "y":3118452.735648, "dkappa":0.000001}
{"kappa": 0.000078, "s": 300.979830, "theta": 1.500161, "x":691211.839585, "y":3118453.138324, "dkappa":0.000001}
{"kappa": 0.000079, "s": 301.383502, "theta": 1.500192, "x":691211.868069, "y":3118453.540989, "dkappa":0.000001}
{"kappa": 0.000079, "s": 301.787163, "theta": 1.500224, "x":691211.896539, "y":3118453.943645, "dkappa":0.000001}
{"kappa": 0.000080, "s": 302.190814, "theta": 1.500256, "x":691211.924995, "y":3118454.346291, "dkappa":0.000002}
{"kappa": 0.000081, "s": 302.594453, "theta": 1.500289, "x":691211.953438, "y":3118454.748927, "dkappa":0.000002}
{"kappa": 0.000081, "s": 302.998082, "theta": 1.500321, "x":691211.981867, "y":3118455.151554, "dkappa":0.000002}
{"kappa": 0.000082, "s": 303.401700, "theta": 1.500354, "x":691212.010281, "y":3118455.554171, "dkappa":0.000002}
{"kappa": 0.000083, "s": 303.805308, "theta": 1.500388, "x":691212.038682, "y":3118455.956777, "dkappa":0.000003}
{"kappa": 0.000085, "s": 304.208904, "theta": 1.500422, "x":691212.067068, "y":3118456.359375, "dkappa":0.000003}
{"kappa": 0.000086, "s": 304.612490, "theta": 1.500456, "x":691212.095440, "y":3118456.761962, "dkappa":0.000003}
{"kappa": 0.000087, "s": 305.016065, "theta": 1.500491, "x":691212.123797, "y":3118457.164539, "dkappa":0.000003}
{"kappa": 0.000088, "s": 305.419629, "theta": 1.500526, "x":691212.152139, "y":3118457.567107, "dkappa":0.000004}
{"kappa": 0.000090, "s": 305.823183, "theta": 1.500562, "x":691212.180466, "y":3118457.969665, "dkappa":0.000004}
{"kappa": 0.000091, "s": 306.226725, "theta": 1.500599, "x":691212.208778, "y":3118458.372213, "dkappa":0.000004}
{"kappa": 0.000093, "s": 306.630257, "theta": 1.500636, "x":691212.237074, "y":3118458.774752, "dkappa":0.000004}
{"kappa": 0.000095, "s": 307.033778, "theta": 1.500674, "x":691212.265355, "y":3118459.177281, "dkappa":0.000004}
{"kappa": 0.000097, "s": 307.437288, "theta": 1.500713, "x":691212.293619, "y":3118459.579800, "dkappa":0.000005}
{"kappa": 0.000098, "s": 307.840788, "theta": 1.500752, "x":691212.321866, "y":3118459.982309, "dkappa":0.000005}
{"kappa": 0.000100, "s": 308.244276, "theta": 1.500792, "x":691212.350097, "y":3118460.384809, "dkappa":0.000005}
{"kappa": 0.000103, "s": 308.647754, "theta": 1.500833, "x":691212.378311, "y":3118460.787299, "dkappa":0.000005}
{"kappa": 0.000105, "s": 309.051220, "theta": 1.500875, "x":691212.406508, "y":3118461.189779, "dkappa":0.000005}
{"kappa": 0.000107, "s": 309.454676, "theta": 1.500918, "x":691212.434686, "y":3118461.592250, "dkappa":0.000006}
{"kappa": 0.000109, "s": 309.858121, "theta": 1.500961, "x":691212.462847, "y":3118461.994711, "dkappa":0.000006}
{"kappa": 0.000112, "s": 310.261556, "theta": 1.501006, "x":691212.490989, "y":3118462.397162, "dkappa":0.000006}
{"kappa": 0.000114, "s": 310.664979, "theta": 1.501051, "x":691212.519112, "y":3118462.799604, "dkappa":0.000006}
{"kappa": 0.000117, "s": 311.068391, "theta": 1.501098, "x":691212.547216, "y":3118463.202036, "dkappa":0.000006}
{"kappa": 0.000119, "s": 311.471792, "theta": 1.501145, "x":691212.575300, "y":3118463.604459, "dkappa":0.000007}
{"kappa": 0.000122, "s": 311.875183, "theta": 1.501194, "x":691212.603364, "y":3118464.006872, "dkappa":0.000007}
{"kappa": 0.000125, "s": 312.278562, "theta": 1.501244, "x":691212.631408, "y":3118464.409275, "dkappa":0.000007}
{"kappa": 0.000127, "s": 312.681931, "theta": 1.501294, "x":691212.659430, "y":3118464.811669, "dkappa":0.000007}
{"kappa": 0.000130, "s": 313.085288, "theta": 1.501346, "x":691212.687432, "y":3118465.214053, "dkappa":0.000007}
{"kappa": 0.000133, "s": 313.488635, "theta": 1.501400, "x":691212.715411, "y":3118465.616428, "dkappa":0.000007}
{"kappa": 0.000136, "s": 313.891970, "theta": 1.501454, "x":691212.743368, "y":3118466.018794, "dkappa":0.000008}
{"kappa": 0.000140, "s": 314.295295, "theta": 1.501510, "x":691212.771301, "y":3118466.421150, "dkappa":0.000008}
{"kappa": 0.000143, "s": 314.698608, "theta": 1.501567, "x":691212.799212, "y":3118466.823496, "dkappa":0.000008}
{"kappa": 0.000146, "s": 315.101911, "theta": 1.501625, "x":691212.827099, "y":3118467.225834, "dkappa":0.000008}
{"kappa": 0.000149, "s": 315.505202, "theta": 1.501684, "x":691212.854961, "y":3118467.628161, "dkappa":0.000008}
{"kappa": 0.000153, "s": 315.908482, "theta": 1.501745, "x":691212.882798, "y":3118468.030480, "dkappa":0.000008}
{"kappa": 0.000156, "s": 316.311752, "theta": 1.501807, "x":691212.910609, "y":3118468.432789, "dkappa":0.000009}
{"kappa": 0.000160, "s": 316.715010, "theta": 1.501871, "x":691212.938395, "y":3118468.835088, "dkappa":0.000009}
{"kappa": 0.000163, "s": 317.118257, "theta": 1.501936, "x":691212.966154, "y":3118469.237379, "dkappa":0.000009}
{"kappa": 0.000167, "s": 317.521492, "theta": 1.502003, "x":691212.993885, "y":3118469.639660, "dkappa":0.000009}
{"kappa": 0.000171, "s": 317.924717, "theta": 1.502071, "x":691213.021589, "y":3118470.041932, "dkappa":0.000009}
{"kappa": 0.000174, "s": 318.327931, "theta": 1.502140, "x":691213.049264, "y":3118470.444194, "dkappa":0.000009}
{"kappa": 0.000178, "s": 318.731133, "theta": 1.502212, "x":691213.076910, "y":3118470.846448, "dkappa":0.000010}
{"kappa": 0.000182, "s": 319.134324, "theta": 1.502284, "x":691213.104527, "y":3118471.248692, "dkappa":0.000010}
{"kappa": 0.000186, "s": 319.537504, "theta": 1.502358, "x":691213.132113, "y":3118471.650927, "dkappa":0.000010}
{"kappa": 0.000190, "s": 319.940672, "theta": 1.502434, "x":691213.159668, "y":3118472.053153, "dkappa":0.000010}
{"kappa": 0.000194, "s": 320.343830, "theta": 1.502512, "x":691213.187192, "y":3118472.455369, "dkappa":0.000010}
{"kappa": 0.000198, "s": 320.746976, "theta": 1.502591, "x":691213.214684, "y":3118472.857577, "dkappa":0.000010}
{"kappa": 0.000202, "s": 321.150111, "theta": 1.502672, "x":691213.242142, "y":3118473.259776, "dkappa":0.000010}
{"kappa": 0.000207, "s": 321.553234, "theta": 1.502754, "x":691213.269567, "y":3118473.661965, "dkappa":0.000011}
{"kappa": 0.000211, "s": 321.956346, "theta": 1.502838, "x":691213.296958, "y":3118474.064146, "dkappa":0.000011}
{"kappa": 0.000215, "s": 322.359447, "theta": 1.502924, "x":691213.324313, "y":3118474.466317, "dkappa":0.000011}
{"kappa": 0.000220, "s": 322.762537, "theta": 1.503012, "x":691213.351633, "y":3118474.868480, "dkappa":0.000011}
{"kappa": 0.000224, "s": 323.165615, "theta": 1.503101, "x":691213.378917, "y":3118475.270634, "dkappa":0.000011}
{"kappa": 0.000229, "s": 323.568682, "theta": 1.503193, "x":691213.406163, "y":3118475.672779, "dkappa":0.000011}
{"kappa": 0.000233, "s": 323.971737, "theta": 1.503286, "x":691213.433372, "y":3118476.074914, "dkappa":0.000011}
{"kappa": 0.000238, "s": 324.374781, "theta": 1.503381, "x":691213.460542, "y":3118476.477042, "dkappa":0.000011}
{"kappa": 0.000243, "s": 324.777813, "theta": 1.503478, "x":691213.487673, "y":3118476.879160, "dkappa":0.000012}
{"kappa": 0.000247, "s": 325.180835, "theta": 1.503576, "x":691213.514763, "y":3118477.281269, "dkappa":0.000012}
{"kappa": 0.000252, "s": 325.583844, "theta": 1.503677, "x":691213.541813, "y":3118477.683370, "dkappa":0.000012}
{"kappa": 0.000257, "s": 325.986842, "theta": 1.503779, "x":691213.568821, "y":3118478.085462, "dkappa":0.000012}
{"kappa": 0.000262, "s": 326.389829, "theta": 1.503884, "x":691213.595787, "y":3118478.487546, "dkappa":0.000012}
{"kappa": 0.000267, "s": 326.792804, "theta": 1.503990, "x":691213.622710, "y":3118478.889620, "dkappa":0.000012}
{"kappa": 0.000271, "s": 327.195767, "theta": 1.504099, "x":691213.649588, "y":3118479.291686, "dkappa":0.000012}
{"kappa": 0.000276, "s": 327.598719, "theta": 1.504209, "x":691213.676422, "y":3118479.693744, "dkappa":0.000012}
{"kappa": 0.000281, "s": 328.001660, "theta": 1.504321, "x":691213.703211, "y":3118480.095793, "dkappa":0.000013}
{"kappa": 0.000287, "s": 328.404589, "theta": 1.504436, "x":691213.729953, "y":3118480.497833, "dkappa":0.000013}
{"kappa": 0.000292, "s": 328.807506, "theta": 1.504552, "x":691213.756647, "y":3118480.899865, "dkappa":0.000013}
{"kappa": 0.000297, "s": 329.210412, "theta": 1.504671, "x":691213.783294, "y":3118481.301889, "dkappa":0.000013}
{"kappa": 0.000302, "s": 329.613306, "theta": 1.504792, "x":691213.809892, "y":3118481.703904, "dkappa":0.000013}
{"kappa": 0.000307, "s": 330.016188, "theta": 1.504914, "x":691213.836440, "y":3118482.105911, "dkappa":0.000013}
{"kappa": 0.000313, "s": 330.419059, "theta": 1.505039, "x":691213.862938, "y":3118482.507909, "dkappa":0.000013}
{"kappa": 0.000318, "s": 330.821918, "theta": 1.505166, "x":691213.889384, "y":3118482.909899, "dkappa":0.000013}
{"kappa": 0.000323, "s": 331.224765, "theta": 1.505295, "x":691213.915779, "y":3118483.311881, "dkappa":0.000013}
{"kappa": 0.000329, "s": 331.627601, "theta": 1.505426, "x":691213.942120, "y":3118483.713854, "dkappa":0.000013}
{"kappa": 0.000334, "s": 332.030424, "theta": 1.505560, "x":691213.968407, "y":3118484.115819, "dkappa":0.000014}
{"kappa": 0.000339, "s": 332.433237, "theta": 1.505695, "x":691213.994639, "y":3118484.517777, "dkappa":0.000014}
{"kappa": 0.000345, "s": 332.836037, "theta": 1.505833, "x":691214.020815, "y":3118484.919726, "dkappa":0.000014}
{"kappa": 0.000350, "s": 333.238826, "theta": 1.505973, "x":691214.046935, "y":3118485.321666, "dkappa":0.000014}
{"kappa": 0.000356, "s": 333.641603, "theta": 1.506116, "x":691214.072998, "y":3118485.723599, "dkappa":0.000014}
{"kappa": 0.000362, "s": 334.044368, "theta": 1.506260, "x":691214.099002, "y":3118486.125524, "dkappa":0.000014}
{"kappa": 0.000367, "s": 334.447121, "theta": 1.506407, "x":691214.124946, "y":3118486.527441, "dkappa":0.000014}
{"kappa": 0.000373, "s": 334.849863, "theta": 1.506556, "x":691214.150831, "y":3118486.929350, "dkappa":0.000014}
{"kappa": 0.000379, "s": 335.252593, "theta": 1.506707, "x":691214.176654, "y":3118487.331251, "dkappa":0.000014}
{"kappa": 0.000384, "s": 335.655310, "theta": 1.506861, "x":691214.202416, "y":3118487.733144, "dkappa":0.000014}
{"kappa": 0.000390, "s": 336.058016, "theta": 1.507017, "x":691214.228114, "y":3118488.135029, "dkappa":0.000014}
{"kappa": 0.000396, "s": 336.460711, "theta": 1.507175, "x":691214.253749, "y":3118488.536907, "dkappa":0.000014}
{"kappa": 0.000402, "s": 336.863393, "theta": 1.507336, "x":691214.279318, "y":3118488.938776, "dkappa":0.000014}
{"kappa": 0.000407, "s": 337.266064, "theta": 1.507498, "x":691214.304822, "y":3118489.340638, "dkappa":0.000015}
{"kappa": 0.000413, "s": 337.668722, "theta": 1.507664, "x":691214.330260, "y":3118489.742493, "dkappa":0.000015}
{"kappa": 0.000419, "s": 338.071369, "theta": 1.507831, "x":691214.355629, "y":3118490.144339, "dkappa":0.000015}
{"kappa": 0.000425, "s": 338.474004, "theta": 1.508001, "x":691214.380930, "y":3118490.546178, "dkappa":0.000015}
{"kappa": 0.000431, "s": 338.876627, "theta": 1.508174, "x":691214.406162, "y":3118490.948010, "dkappa":0.000015}
{"kappa": 0.000437, "s": 339.279238, "theta": 1.508348, "x":691214.431323, "y":3118491.349834, "dkappa":0.000015}
{"kappa": 0.000443, "s": 339.681837, "theta": 1.508526, "x":691214.456412, "y":3118491.751651, "dkappa":0.000015}
{"kappa": 0.000449, "s": 340.084424, "theta": 1.508705, "x":691214.481430, "y":3118492.153460, "dkappa":0.000015}
{"kappa": 0.000455, "s": 340.486999, "theta": 1.508887, "x":691214.506374, "y":3118492.555262, "dkappa":0.000015}
{"kappa": 0.000461, "s": 340.889563, "theta": 1.509071, "x":691214.531243, "y":3118492.957056, "dkappa":0.000015}
{"kappa": 0.000467, "s": 341.292114, "theta": 1.509258, "x":691214.556037, "y":3118493.358843, "dkappa":0.000015}
{"kappa": 0.000473, "s": 341.694654, "theta": 1.509448, "x":691214.580755, "y":3118493.760623, "dkappa":0.000015}
{"kappa": 0.000479, "s": 342.097181, "theta": 1.509639, "x":691214.605396, "y":3118494.162396, "dkappa":0.000015}
{"kappa": 0.000485, "s": 342.499697, "theta": 1.509833, "x":691214.629958, "y":3118494.564161, "dkappa":0.000015}
{"kappa": 0.000492, "s": 342.902200, "theta": 1.510030, "x":691214.654441, "y":3118494.965919, "dkappa":0.000015}
{"kappa": 0.000498, "s": 343.304692, "theta": 1.510229, "x":691214.678844, "y":3118495.367671, "dkappa":0.000015}
{"kappa": 0.000504, "s": 343.707172, "theta": 1.510431, "x":691214.703166, "y":3118495.769415, "dkappa":0.000015}
{"kappa": 0.000510, "s": 344.109640, "theta": 1.510635, "x":691214.727406, "y":3118496.171152, "dkappa":0.000015}
{"kappa": 0.000516, "s": 344.512095, "theta": 1.510841, "x":691214.751562, "y":3118496.572882, "dkappa":0.000015}
{"kappa": 0.000523, "s": 344.914539, "theta": 1.511050, "x":691214.775634, "y":3118496.974606, "dkappa":0.000015}
{"kappa": 0.000529, "s": 345.316971, "theta": 1.511262, "x":691214.799621, "y":3118497.376322, "dkappa":0.000016}
{"kappa": 0.000535, "s": 345.719391, "theta": 1.511476, "x":691214.823522, "y":3118497.778032, "dkappa":0.000016}
{"kappa": 0.000541, "s": 346.121800, "theta": 1.511693, "x":691214.847335, "y":3118498.179735, "dkappa":0.000016}
{"kappa": 0.000548, "s": 346.524196, "theta": 1.511912, "x":691214.871060, "y":3118498.581431, "dkappa":0.000016}
{"kappa": 0.000554, "s": 346.926580, "theta": 1.512133, "x":691214.894697, "y":3118498.983120, "dkappa":0.000016}
{"kappa": 0.000560, "s": 347.328952, "theta": 1.512357, "x":691214.918242, "y":3118499.384803, "dkappa":0.000016}
{"kappa": 0.000566, "s": 347.731313, "theta": 1.512584, "x":691214.941697, "y":3118499.786479, "dkappa":0.000016}
{"kappa": 0.000573, "s": 348.133661, "theta": 1.512813, "x":691214.965060, "y":3118500.188149, "dkappa":0.000016}
{"kappa": 0.000579, "s": 348.535998, "theta": 1.513045, "x":691214.988329, "y":3118500.589812, "dkappa":0.000016}
{"kappa": 0.000585, "s": 348.938323, "theta": 1.513279, "x":691215.011504, "y":3118500.991469, "dkappa":0.000016}
{"kappa": 0.000592, "s": 349.340635, "theta": 1.513516, "x":691215.034583, "y":3118501.393119, "dkappa":0.000016}
{"kappa": 0.000598, "s": 349.742936, "theta": 1.513755, "x":691215.057567, "y":3118501.794763, "dkappa":0.000016}
{"kappa": 0.000604, "s": 350.145226, "theta": 1.513997, "x":691215.080453, "y":3118502.196401, "dkappa":0.000016}
{"kappa": 0.000611, "s": 350.547503, "theta": 1.514242, "x":691215.103240, "y":3118502.598032, "dkappa":0.000016}
{"kappa": 0.000617, "s": 350.949768, "theta": 1.514489, "x":691215.125929, "y":3118502.999657, "dkappa":0.000016}
{"kappa": 0.000623, "s": 351.352022, "theta": 1.514738, "x":691215.148517, "y":3118503.401276, "dkappa":0.000016}
{"kappa": 0.000630, "s": 351.754264, "theta": 1.514990, "x":691215.171003, "y":3118503.802889, "dkappa":0.000016}
{"kappa": 0.000636, "s": 352.156494, "theta": 1.515245, "x":691215.193387, "y":3118504.204496, "dkappa":0.000016}
{"kappa": 0.000643, "s": 352.558712, "theta": 1.515502, "x":691215.215668, "y":3118504.606097, "dkappa":0.000016}
{"kappa": 0.000649, "s": 352.960919, "theta": 1.515762, "x":691215.237844, "y":3118505.007691, "dkappa":0.000016}
{"kappa": 0.000655, "s": 353.363114, "theta": 1.516024, "x":691215.259915, "y":3118505.409280, "dkappa":0.000016}
{"kappa": 0.000662, "s": 353.765297, "theta": 1.516289, "x":691215.281880, "y":3118505.810863, "dkappa":0.000016}
{"kappa": 0.000668, "s": 354.167468, "theta": 1.516556, "x":691215.303737, "y":3118506.212440, "dkappa":0.000016}
{"kappa": 0.000674, "s": 354.569628, "theta": 1.516826, "x":691215.325485, "y":3118506.614011, "dkappa":0.000016}
{"kappa": 0.000681, "s": 354.971776, "theta": 1.517099, "x":691215.347124, "y":3118507.015577, "dkappa":0.000016}
{"kappa": 0.000687, "s": 355.373913, "theta": 1.517374, "x":691215.368652, "y":3118507.417137, "dkappa":0.000016}
{"kappa": 0.000693, "s": 355.776038, "theta": 1.517651, "x":691215.390069, "y":3118507.818691, "dkappa":0.000016}
{"kappa": 0.000700, "s": 356.178151, "theta": 1.517931, "x":691215.411373, "y":3118508.220240, "dkappa":0.000016}
{"kappa": 0.000706, "s": 356.580253, "theta": 1.518214, "x":691215.432564, "y":3118508.621783, "dkappa":0.000016}
{"kappa": 0.000712, "s": 356.982343, "theta": 1.518499, "x":691215.453639, "y":3118509.023320, "dkappa":0.000016}
{"kappa": 0.000719, "s": 357.384422, "theta": 1.518787, "x":691215.474600, "y":3118509.424852, "dkappa":0.000016}
{"kappa": 0.000725, "s": 357.786489, "theta": 1.519077, "x":691215.495443, "y":3118509.826379, "dkappa":0.000016}
{"kappa": 0.000731, "s": 358.188545, "theta": 1.519370, "x":691215.516170, "y":3118510.227900, "dkappa":0.000016}
{"kappa": 0.000738, "s": 358.590590, "theta": 1.519665, "x":691215.536777, "y":3118510.629417, "dkappa":0.000016}
{"kappa": 0.000744, "s": 358.992623, "theta": 1.519963, "x":691215.557265, "y":3118511.030927, "dkappa":0.000016}
{"kappa": 0.000750, "s": 359.394645, "theta": 1.520263, "x":691215.577632, "y":3118511.432433, "dkappa":0.000016}
{"kappa": 0.000757, "s": 359.796656, "theta": 1.520566, "x":691215.597877, "y":3118511.833934, "dkappa":0.000016}
{"kappa": 0.000763, "s": 360.198655, "theta": 1.520872, "x":691215.618000, "y":3118512.235429, "dkappa":0.000016}
{"kappa": 0.000769, "s": 360.600643, "theta": 1.521180, "x":691215.637999, "y":3118512.636919, "dkappa":0.000016}
{"kappa": 0.000775, "s": 361.002620, "theta": 1.521490, "x":691215.657873, "y":3118513.038405, "dkappa":0.000015}
{"kappa": 0.000781, "s": 361.404586, "theta": 1.521803, "x":691215.677622, "y":3118513.439885, "dkappa":0.000015}
{"kappa": 0.000788, "s": 361.806541, "theta": 1.522118, "x":691215.697244, "y":3118513.841361, "dkappa":0.000015}
{"kappa": 0.000794, "s": 362.208484, "theta": 1.522436, "x":691215.716738, "y":3118514.242831, "dkappa":0.000015}
{"kappa": 0.000800, "s": 362.610417, "theta": 1.522756, "x":691215.736104, "y":3118514.644297, "dkappa":0.000015}
{"kappa": 0.000806, "s": 363.012339, "theta": 1.523079, "x":691215.755340, "y":3118515.045758, "dkappa":0.000015}
{"kappa": 0.000812, "s": 363.414249, "theta": 1.523404, "x":691215.774446, "y":3118515.447215, "dkappa":0.000015}
{"kappa": 0.000818, "s": 363.816149, "theta": 1.523732, "x":691215.793420, "y":3118515.848666, "dkappa":0.000015}
{"kappa": 0.000825, "s": 364.218039, "theta": 1.524062, "x":691215.812261, "y":3118516.250114, "dkappa":0.000015}
{"kappa": 0.000831, "s": 364.619917, "theta": 1.524395, "x":691215.830969, "y":3118516.651556, "dkappa":0.000015}
{"kappa": 0.000837, "s": 365.021785, "theta": 1.524730, "x":691215.849542, "y":3118517.052995, "dkappa":0.000015}
{"kappa": 0.000843, "s": 365.423642, "theta": 1.525067, "x":691215.867980, "y":3118517.454428, "dkappa":0.000015}
{"kappa": 0.000849, "s": 365.825488, "theta": 1.525407, "x":691215.886282, "y":3118517.855858, "dkappa":0.000015}
{"kappa": 0.000855, "s": 366.227324, "theta": 1.525750, "x":691215.904446, "y":3118518.257283, "dkappa":0.000015}
{"kappa": 0.000861, "s": 366.629149, "theta": 1.526094, "x":691215.922472, "y":3118518.658704, "dkappa":0.000015}
{"kappa": 0.000867, "s": 367.030964, "theta": 1.526441, "x":691215.940358, "y":3118519.060120, "dkappa":0.000015}
{"kappa": 0.000873, "s": 367.432768, "theta": 1.526791, "x":691215.958104, "y":3118519.461533, "dkappa":0.000015}
{"kappa": 0.000878, "s": 367.834563, "theta": 1.527142, "x":691215.975709, "y":3118519.862941, "dkappa":0.000015}
{"kappa": 0.000884, "s": 368.236346, "theta": 1.527497, "x":691215.993172, "y":3118520.264345, "dkappa":0.000015}
{"kappa": 0.000890, "s": 368.638120, "theta": 1.527853, "x":691216.010492, "y":3118520.665745, "dkappa":0.000015}
{"kappa": 0.000896, "s": 369.039884, "theta": 1.528212, "x":691216.027668, "y":3118521.067142, "dkappa":0.000014}
{"kappa": 0.000902, "s": 369.441637, "theta": 1.528573, "x":691216.044698, "y":3118521.468534, "dkappa":0.000014}
{"kappa": 0.000908, "s": 369.843381, "theta": 1.528936, "x":691216.061584, "y":3118521.869922, "dkappa":0.000014}
{"kappa": 0.000913, "s": 370.245114, "theta": 1.529302, "x":691216.078322, "y":3118522.271307, "dkappa":0.000014}
{"kappa": 0.000919, "s": 370.646838, "theta": 1.529670, "x":691216.094912, "y":3118522.672688, "dkappa":0.000014}
{"kappa": 0.000925, "s": 371.048552, "theta": 1.530041, "x":691216.111354, "y":3118523.074065, "dkappa":0.000014}
{"kappa": 0.000930, "s": 371.450256, "theta": 1.530413, "x":691216.127647, "y":3118523.475439, "dkappa":0.000014}
{"kappa": 0.000936, "s": 371.851950, "theta": 1.530788, "x":691216.143789, "y":3118523.876809, "dkappa":0.000014}
{"kappa": 0.000942, "s": 372.253635, "theta": 1.531165, "x":691216.159780, "y":3118524.278175, "dkappa":0.000014}
{"kappa": 0.000947, "s": 372.655310, "theta": 1.531544, "x":691216.175618, "y":3118524.679538, "dkappa":0.000014}
{"kappa": 0.000953, "s": 373.056976, "theta": 1.531926, "x":691216.191304, "y":3118525.080898, "dkappa":0.000014}
{"kappa": 0.000958, "s": 373.458633, "theta": 1.532310, "x":691216.206836, "y":3118525.482254, "dkappa":0.000014}
{"kappa": 0.000963, "s": 373.860280, "theta": 1.532695, "x":691216.222213, "y":3118525.883607, "dkappa":0.000013}
{"kappa": 0.000969, "s": 374.261918, "theta": 1.533084, "x":691216.237434, "y":3118526.284956, "dkappa":0.000013}
{"kappa": 0.000974, "s": 374.663547, "theta": 1.533474, "x":691216.252499, "y":3118526.686302, "dkappa":0.000013}
{"kappa": 0.000980, "s": 375.065167, "theta": 1.533866, "x":691216.267406, "y":3118527.087645, "dkappa":0.000013}
{"kappa": 0.000985, "s": 375.466778, "theta": 1.534260, "x":691216.282155, "y":3118527.488985, "dkappa":0.000013}
{"kappa": 0.000990, "s": 375.868380, "theta": 1.534657, "x":691216.296745, "y":3118527.890322, "dkappa":0.000013}
{"kappa": 0.000995, "s": 376.269973, "theta": 1.535056, "x":691216.311176, "y":3118528.291656, "dkappa":0.000013}
{"kappa": 0.001000, "s": 376.671558, "theta": 1.535456, "x":691216.325445, "y":3118528.692987, "dkappa":0.000013}
{"kappa": 0.001005, "s": 377.073134, "theta": 1.535859, "x":691216.339553, "y":3118529.094315, "dkappa":0.000013}
{"kappa": 0.001011, "s": 377.474701, "theta": 1.536264, "x":691216.353499, "y":3118529.495641, "dkappa":0.000013}
{"kappa": 0.001016, "s": 377.876260, "theta": 1.536671, "x":691216.367281, "y":3118529.896963, "dkappa":0.000012}
{"kappa": 0.001021, "s": 378.277811, "theta": 1.537080, "x":691216.380900, "y":3118530.298283, "dkappa":0.000012}
{"kappa": 0.001026, "s": 378.679353, "theta": 1.537490, "x":691216.394354, "y":3118530.699600, "dkappa":0.000012}
{"kappa": 0.001030, "s": 379.080887, "theta": 1.537903, "x":691216.407642, "y":3118531.100914, "dkappa":0.000012}
{"kappa": 0.001035, "s": 379.482414, "theta": 1.538318, "x":691216.420764, "y":3118531.502226, "dkappa":0.000012}
{"kappa": 0.001040, "s": 379.883932, "theta": 1.538734, "x":691216.433719, "y":3118531.903535, "dkappa":0.000012}
{"kappa": 0.001045, "s": 380.285442, "theta": 1.539153, "x":691216.446506, "y":3118532.304842, "dkappa":0.000012}
{"kappa": 0.001050, "s": 380.686945, "theta": 1.539573, "x":691216.459124, "y":3118532.706146, "dkappa":0.000012}
{"kappa": 0.001054, "s": 381.088440, "theta": 1.539996, "x":691216.471573, "y":3118533.107448, "dkappa":0.000012}
{"kappa": 0.001059, "s": 381.489927, "theta": 1.540420, "x":691216.483852, "y":3118533.508747, "dkappa":0.000011}
{"kappa": 0.001063, "s": 381.891407, "theta": 1.540846, "x":691216.495961, "y":3118533.910045, "dkappa":0.000011}
{"kappa": 0.001068, "s": 382.292880, "theta": 1.541274, "x":691216.507897, "y":3118534.311340, "dkappa":0.000011}
{"kappa": 0.001072, "s": 382.694345, "theta": 1.541703, "x":691216.519662, "y":3118534.712633, "dkappa":0.000011}
{"kappa": 0.001077, "s": 383.095804, "theta": 1.542135, "x":691216.531253, "y":3118535.113924, "dkappa":0.000011}
{"kappa": 0.001081, "s": 383.497255, "theta": 1.542568, "x":691216.542671, "y":3118535.515213, "dkappa":0.000011}
{"kappa": 0.001085, "s": 383.898699, "theta": 1.543002, "x":691216.553915, "y":3118535.916499, "dkappa":0.000011}
{"kappa": 0.001089, "s": 384.300137, "theta": 1.543439, "x":691216.564983, "y":3118536.317784, "dkappa":0.000010}
{"kappa": 0.001094, "s": 384.701567, "theta": 1.543877, "x":691216.575876, "y":3118536.719067, "dkappa":0.000010}
{"kappa": 0.001098, "s": 385.102991, "theta": 1.544317, "x":691216.586593, "y":3118537.120348, "dkappa":0.000010}
{"kappa": 0.001102, "s": 385.504409, "theta": 1.544758, "x":691216.597132, "y":3118537.521628, "dkappa":0.000010}
{"kappa": 0.001106, "s": 385.905821, "theta": 1.545201, "x":691216.607494, "y":3118537.922905, "dkappa":0.000010}
{"kappa": 0.001110, "s": 386.307226, "theta": 1.545646, "x":691216.617678, "y":3118538.324181, "dkappa":0.000010}
{"kappa": 0.001114, "s": 386.708625, "theta": 1.546092, "x":691216.627682, "y":3118538.725455, "dkappa":0.000010}
{"kappa": 0.001117, "s": 387.110018, "theta": 1.546540, "x":691216.637508, "y":3118539.126728, "dkappa":0.000009}
{"kappa": 0.001121, "s": 387.511405, "theta": 1.546989, "x":691216.647153, "y":3118539.527999, "dkappa":0.000009}
{"kappa": 0.001125, "s": 387.912786, "theta": 1.547440, "x":691216.656617, "y":3118539.929269, "dkappa":0.000009}
{"kappa": 0.001128, "s": 388.314162, "theta": 1.547892, "x":691216.665900, "y":3118540.330537, "dkappa":0.000009}
{"kappa": 0.001132, "s": 388.715532, "theta": 1.548346, "x":691216.675002, "y":3118540.731804, "dkappa":0.000009}
{"kappa": 0.001135, "s": 389.116896, "theta": 1.548801, "x":691216.683920, "y":3118541.133070, "dkappa":0.000009}
{"kappa": 0.001139, "s": 389.518256, "theta": 1.549257, "x":691216.692656, "y":3118541.534334, "dkappa":0.000008}
{"kappa": 0.001142, "s": 389.919610, "theta": 1.549715, "x":691216.701209, "y":3118541.935597, "dkappa":0.000008}
{"kappa": 0.001145, "s": 390.320959, "theta": 1.550174, "x":691216.709577, "y":3118542.336859, "dkappa":0.000008}
{"kappa": 0.001149, "s": 390.722303, "theta": 1.550634, "x":691216.717761, "y":3118542.738120, "dkappa":0.000008}
{"kappa": 0.001152, "s": 391.123643, "theta": 1.551096, "x":691216.725760, "y":3118543.139380, "dkappa":0.000008}
{"kappa": 0.001155, "s": 391.524978, "theta": 1.551559, "x":691216.733573, "y":3118543.540638, "dkappa":0.000008}
{"kappa": 0.001158, "s": 391.926308, "theta": 1.552023, "x":691216.741200, "y":3118543.941896, "dkappa":0.000007}
{"kappa": 0.001161, "s": 392.327634, "theta": 1.552488, "x":691216.748641, "y":3118544.343153, "dkappa":0.000007}
{"kappa": 0.001163, "s": 392.728956, "theta": 1.552954, "x":691216.755894, "y":3118544.744409, "dkappa":0.000007}
{"kappa": 0.001166, "s": 393.130273, "theta": 1.553422, "x":691216.762961, "y":3118545.145664, "dkappa":0.000007}
{"kappa": 0.001169, "s": 393.531587, "theta": 1.553890, "x":691216.769839, "y":3118545.546919, "dkappa":0.000007}
{"kappa": 0.001171, "s": 393.932896, "theta": 1.554360, "x":691216.776529, "y":3118545.948173, "dkappa":0.000006}
{"kappa": 0.001174, "s": 394.334202, "theta": 1.554830, "x":691216.783030, "y":3118546.349426, "dkappa":0.000006}
{"kappa": 0.001176, "s": 394.735504, "theta": 1.555302, "x":691216.789343, "y":3118546.750679, "dkappa":0.000006}
{"kappa": 0.001179, "s": 395.136803, "theta": 1.555775, "x":691216.795465, "y":3118547.151931, "dkappa":0.000006}
{"kappa": 0.001181, "s": 395.538099, "theta": 1.556248, "x":691216.801398, "y":3118547.553182, "dkappa":0.000006}
{"kappa": 0.001183, "s": 395.939391, "theta": 1.556723, "x":691216.807141, "y":3118547.954434, "dkappa":0.000005}
{"kappa": 0.001185, "s": 396.340680, "theta": 1.557198, "x":691216.812693, "y":3118548.355684, "dkappa":0.000005}
{"kappa": 0.001187, "s": 396.741966, "theta": 1.557674, "x":691216.818054, "y":3118548.756935, "dkappa":0.000005}
{"kappa": 0.001189, "s": 397.143250, "theta": 1.558151, "x":691216.823224, "y":3118549.158185, "dkappa":0.000005}
{"kappa": 0.001191, "s": 397.544531, "theta": 1.558629, "x":691216.828203, "y":3118549.559435, "dkappa":0.000005}
{"kappa": 0.001193, "s": 397.945809, "theta": 1.559107, "x":691216.832989, "y":3118549.960685, "dkappa":0.000004}
{"kappa": 0.001195, "s": 398.347085, "theta": 1.559586, "x":691216.837584, "y":3118550.361934, "dkappa":0.000004}
{"kappa": 0.001196, "s": 398.748359, "theta": 1.560066, "x":691216.841986, "y":3118550.763184, "dkappa":0.000004}
{"kappa": 0.001198, "s": 399.149630, "theta": 1.560546, "x":691216.846195, "y":3118551.164434, "dkappa":0.000004}
{"kappa": 0.001327, "s": 399.550900, "theta": 1.561027, "x":691216.850212, "y":3118551.565683, "dkappa":-0.000000}
{"kappa": 0.001326, "s": 399.809264, "theta": 1.561370, "x":691216.852691, "y":3118551.824035, "dkappa":-0.000000}
{"kappa": 0.001326, "s": 400.067633, "theta": 1.561713, "x":691216.855083, "y":3118552.082393, "dkappa":-0.000001}
{"kappa": 0.001326, "s": 400.326006, "theta": 1.562055, "x":691216.857385, "y":3118552.340755, "dkappa":-0.000001}
{"kappa": 0.001326, "s": 400.584383, "theta": 1.562398, "x":691216.859599, "y":3118552.599123, "dkappa":-0.000001}
{"kappa": 0.001326, "s": 400.842765, "theta": 1.562741, "x":691216.861725, "y":3118552.857496, "dkappa":-0.000001}
{"kappa": 0.001325, "s": 401.101151, "theta": 1.563083, "x":691216.863762, "y":3118553.115875, "dkappa":-0.000001}
{"kappa": 0.001325, "s": 401.359542, "theta": 1.563425, "x":691216.865711, "y":3118553.374259, "dkappa":-0.000002}
{"kappa": 0.001325, "s": 401.617938, "theta": 1.563768, "x":691216.867572, "y":3118553.632648, "dkappa":-0.000002}
{"kappa": 0.001324, "s": 401.876338, "theta": 1.564110, "x":691216.869344, "y":3118553.891042, "dkappa":-0.000002}
{"kappa": 0.001324, "s": 402.134743, "theta": 1.564452, "x":691216.871027, "y":3118554.149441, "dkappa":-0.000002}
{"kappa": 0.001323, "s": 402.393153, "theta": 1.564794, "x":691216.872622, "y":3118554.407846, "dkappa":-0.000002}
{"kappa": 0.001322, "s": 402.651567, "theta": 1.565136, "x":691216.874129, "y":3118554.666256, "dkappa":-0.000002}
{"kappa": 0.001322, "s": 402.909986, "theta": 1.565477, "x":691216.875548, "y":3118554.924671, "dkappa":-0.000003}
{"kappa": 0.001321, "s": 403.168410, "theta": 1.565819, "x":691216.876878, "y":3118555.183092, "dkappa":-0.000003}
{"kappa": 0.001320, "s": 403.426839, "theta": 1.566160, "x":691216.878121, "y":3118555.441517, "dkappa":-0.000003}
{"kappa": 0.001320, "s": 403.685273, "theta": 1.566501, "x":691216.879275, "y":3118555.699948, "dkappa":-0.000003}
{"kappa": 0.001319, "s": 403.943711, "theta": 1.566842, "x":691216.880341, "y":3118555.958385, "dkappa":-0.000003}
{"kappa": 0.001318, "s": 404.202154, "theta": 1.567183, "x":691216.881318, "y":3118556.216826, "dkappa":-0.000003}
{"kappa": 0.001317, "s": 404.460603, "theta": 1.567524, "x":691216.882208, "y":3118556.475273, "dkappa":-0.000004}
{"kappa": 0.001316, "s": 404.719056, "theta": 1.567864, "x":691216.883010, "y":3118556.733725, "dkappa":-0.000004}
{"kappa": 0.001315, "s": 404.977514, "theta": 1.568204, "x":691216.883724, "y":3118556.992182, "dkappa":-0.000004}
{"kappa": 0.001314, "s": 405.235978, "theta": 1.568544, "x":691216.884350, "y":3118557.250645, "dkappa":-0.000004}
{"kappa": 0.001313, "s": 405.494446, "theta": 1.568883, "x":691216.884889, "y":3118557.509113, "dkappa":-0.000004}
{"kappa": 0.001312, "s": 405.752920, "theta": 1.569222, "x":691216.885339, "y":3118557.767586, "dkappa":-0.000004}
{"kappa": 0.001311, "s": 406.011398, "theta": 1.569561, "x":691216.885702, "y":3118558.026064, "dkappa":-0.000005}
{"kappa": 0.001310, "s": 406.269882, "theta": 1.569900, "x":691216.885978, "y":3118558.284548, "dkappa":-0.000005}
{"kappa": 0.001308, "s": 406.528371, "theta": 1.570238, "x":691216.886166, "y":3118558.543037, "dkappa":-0.000005}
{"kappa": 0.001307, "s": 406.786865, "theta": 1.570576, "x":691216.886266, "y":3118558.801531, "dkappa":-0.000005}
{"kappa": 0.001306, "s": 407.045365, "theta": 1.570914, "x":691216.886279, "y":3118559.060030, "dkappa":-0.000005}
{"kappa": 0.001304, "s": 407.303869, "theta": 1.571252, "x":691216.886205, "y":3118559.318535, "dkappa":-0.000005}
{"kappa": 0.001303, "s": 407.562380, "theta": 1.571589, "x":691216.886044, "y":3118559.577045, "dkappa":-0.000005}
{"kappa": 0.001302, "s": 407.820895, "theta": 1.571925, "x":691216.885796, "y":3118559.835561, "dkappa":-0.000006}
{"kappa": 0.001300, "s": 408.079416, "theta": 1.572262, "x":691216.885460, "y":3118560.094081, "dkappa":-0.000006}
{"kappa": 0.001299, "s": 408.337942, "theta": 1.572598, "x":691216.885038, "y":3118560.352607, "dkappa":-0.000006}
{"kappa": 0.001297, "s": 408.596474, "theta": 1.572933, "x":691216.884529, "y":3118560.611138, "dkappa":-0.000006}
{"kappa": 0.001296, "s": 408.855011, "theta": 1.573268, "x":691216.883933, "y":3118560.869675, "dkappa":-0.000006}
{"kappa": 0.001294, "s": 409.113553, "theta": 1.573603, "x":691216.883251, "y":3118561.128216, "dkappa":-0.000006}
{"kappa": 0.001292, "s": 409.372102, "theta": 1.573937, "x":691216.882482, "y":3118561.386763, "dkappa":-0.000006}
{"kappa": 0.001291, "s": 409.630655, "theta": 1.574271, "x":691216.881627, "y":3118561.645316, "dkappa":-0.000007}
{"kappa": 0.001289, "s": 409.889215, "theta": 1.574605, "x":691216.880685, "y":3118561.903873, "dkappa":-0.000007}
{"kappa": 0.001287, "s": 410.147780, "theta": 1.574938, "x":691216.879657, "y":3118562.162436, "dkappa":-0.000007}
{"kappa": 0.001285, "s": 410.406350, "theta": 1.575270, "x":691216.878543, "y":3118562.421004, "dkappa":-0.000007}
{"kappa": 0.001284, "s": 410.664926, "theta": 1.575603, "x":691216.877344, "y":3118562.679578, "dkappa":-0.000007}
{"kappa": 0.001282, "s": 410.923508, "theta": 1.575934, "x":691216.876058, "y":3118562.938157, "dkappa":-0.000007}
{"kappa": 0.001280, "s": 411.182096, "theta": 1.576265, "x":691216.874686, "y":3118563.196741, "dkappa":-0.000007}
{"kappa": 0.001278, "s": 411.440690, "theta": 1.576596, "x":691216.873229, "y":3118563.455330, "dkappa":-0.000008}
{"kappa": 0.001276, "s": 411.699289, "theta": 1.576926, "x":691216.871687, "y":3118563.713925, "dkappa":-0.000008}
{"kappa": 0.001274, "s": 411.957894, "theta": 1.577256, "x":691216.870059, "y":3118563.972525, "dkappa":-0.000008}
{"kappa": 0.001272, "s": 412.216505, "theta": 1.577585, "x":691216.868346, "y":3118564.231130, "dkappa":-0.000008}
{"kappa": 0.001270, "s": 412.475122, "theta": 1.577914, "x":691216.866548, "y":3118564.489741, "dkappa":-0.000008}
{"kappa": 0.001268, "s": 412.733745, "theta": 1.578242, "x":691216.864665, "y":3118564.748357, "dkappa":-0.000008}
{"kappa": 0.001265, "s": 412.992374, "theta": 1.578569, "x":691216.862697, "y":3118565.006978, "dkappa":-0.000008}
{"kappa": 0.001263, "s": 413.251009, "theta": 1.578896, "x":691216.860644, "y":3118565.265605, "dkappa":-0.000009}
{"kappa": 0.001261, "s": 413.509649, "theta": 1.579223, "x":691216.858507, "y":3118565.524237, "dkappa":-0.000009}
{"kappa": 0.001259, "s": 413.768296, "theta": 1.579549, "x":691216.856285, "y":3118565.782874, "dkappa":-0.000009}
{"kappa": 0.001256, "s": 414.026949, "theta": 1.579874, "x":691216.853979, "y":3118566.041517, "dkappa":-0.000009}
{"kappa": 0.001254, "s": 414.285608, "theta": 1.580199, "x":691216.851589, "y":3118566.300165, "dkappa":-0.000009}
{"kappa": 0.001252, "s": 414.544273, "theta": 1.580523, "x":691216.849115, "y":3118566.558818, "dkappa":-0.000009}
{"kappa": 0.001249, "s": 414.802944, "theta": 1.580846, "x":691216.846557, "y":3118566.817477, "dkappa":-0.000009}
{"kappa": 0.001247, "s": 415.061622, "theta": 1.581169, "x":691216.843916, "y":3118567.076141, "dkappa":-0.000009}
{"kappa": 0.001245, "s": 415.320306, "theta": 1.581492, "x":691216.841191, "y":3118567.334810, "dkappa":-0.000010}
{"kappa": 0.001242, "s": 415.578995, "theta": 1.581813, "x":691216.838383, "y":3118567.593485, "dkappa":-0.000010}
{"kappa": 0.001240, "s": 415.837692, "theta": 1.582134, "x":691216.835491, "y":3118567.852165, "dkappa":-0.000010}
{"kappa": 0.001237, "s": 416.096394, "theta": 1.582455, "x":691216.832517, "y":3118568.110850, "dkappa":-0.000010}
{"kappa": 0.001234, "s": 416.355103, "theta": 1.582774, "x":691216.829459, "y":3118568.369541, "dkappa":-0.000010}
{"kappa": 0.001232, "s": 416.613818, "theta": 1.583093, "x":691216.826319, "y":3118568.628237, "dkappa":-0.000010}
{"kappa": 0.001229, "s": 416.872539, "theta": 1.583412, "x":691216.823097, "y":3118568.886938, "dkappa":-0.000010}
{"kappa": 0.001227, "s": 417.131267, "theta": 1.583729, "x":691216.819792, "y":3118569.145645, "dkappa":-0.000010}
{"kappa": 0.001224, "s": 417.390002, "theta": 1.584046, "x":691216.816404, "y":3118569.404357, "dkappa":-0.000010}
{"kappa": 0.001221, "s": 417.648742, "theta": 1.584363, "x":691216.812935, "y":3118569.663075, "dkappa":-0.000011}
{"kappa": 0.001218, "s": 417.907490, "theta": 1.584678, "x":691216.809384, "y":3118569.921797, "dkappa":-0.000011}
{"kappa": 0.001216, "s": 418.166243, "theta": 1.584993, "x":691216.805752, "y":3118570.180526, "dkappa":-0.000011}
{"kappa": 0.001213, "s": 418.425004, "theta": 1.585307, "x":691216.802038, "y":3118570.439259, "dkappa":-0.000011}
{"kappa": 0.001210, "s": 418.683771, "theta": 1.585621, "x":691216.798242, "y":3118570.697998, "dkappa":-0.000011}
{"kappa": 0.001207, "s": 418.942544, "theta": 1.585934, "x":691216.794366, "y":3118570.956743, "dkappa":-0.000011}
{"kappa": 0.001204, "s": 419.201324, "theta": 1.586246, "x":691216.790408, "y":3118571.215493, "dkappa":-0.000011}
{"kappa": 0.001201, "s": 419.460111, "theta": 1.586557, "x":691216.786370, "y":3118571.474248, "dkappa":-0.000011}
{"kappa": 0.001198, "s": 419.718904, "theta": 1.586867, "x":691216.782251, "y":3118571.733009, "dkappa":-0.000011}
{"kappa": 0.001195, "s": 419.977704, "theta": 1.587177, "x":691216.778052, "y":3118571.991775, "dkappa":-0.000012}
{"kappa": 0.001192, "s": 420.236511, "theta": 1.587486, "x":691216.773773, "y":3118572.250546, "dkappa":-0.000012}
{"kappa": 0.001189, "s": 420.495325, "theta": 1.587794, "x":691216.769414, "y":3118572.509323, "dkappa":-0.000012}
{"kappa": 0.001186, "s": 420.754145, "theta": 1.588102, "x":691216.764975, "y":3118572.768105, "dkappa":-0.000012}
{"kappa": 0.001183, "s": 421.012972, "theta": 1.588408, "x":691216.760456, "y":3118573.026893, "dkappa":-0.000012}
{"kappa": 0.001180, "s": 421.271806, "theta": 1.588714, "x":691216.755858, "y":3118573.285686, "dkappa":-0.000012}
{"kappa": 0.001177, "s": 421.530647, "theta": 1.589019, "x":691216.751181, "y":3118573.544484, "dkappa":-0.000012}
{"kappa": 0.001174, "s": 421.789494, "theta": 1.589324, "x":691216.746425, "y":3118573.803288, "dkappa":-0.000012}
{"kappa": 0.001171, "s": 422.048349, "theta": 1.589627, "x":691216.741590, "y":3118574.062097, "dkappa":-0.000012}
{"kappa": 0.001167, "s": 422.307210, "theta": 1.589930, "x":691216.736677, "y":3118574.320912, "dkappa":-0.000012}
{"kappa": 0.001164, "s": 422.566079, "theta": 1.590231, "x":691216.731685, "y":3118574.579732, "dkappa":-0.000013}
{"kappa": 0.001161, "s": 422.824954, "theta": 1.590532, "x":691216.726615, "y":3118574.838558, "dkappa":-0.000013}
{"kappa": 0.001158, "s": 423.083836, "theta": 1.590832, "x":691216.721467, "y":3118575.097389, "dkappa":-0.000013}
{"kappa": 0.001154, "s": 423.342725, "theta": 1.591132, "x":691216.716242, "y":3118575.356226, "dkappa":-0.000013}
{"kappa": 0.001151, "s": 423.601622, "theta": 1.591430, "x":691216.710939, "y":3118575.615068, "dkappa":-0.000013}
{"kappa": 0.001148, "s": 423.860525, "theta": 1.591728, "x":691216.705558, "y":3118575.873915, "dkappa":-0.000013}
{"kappa": 0.001144, "s": 424.119435, "theta": 1.592024, "x":691216.700101, "y":3118576.132768, "dkappa":-0.000013}
{"kappa": 0.001141, "s": 424.378353, "theta": 1.592320, "x":691216.694567, "y":3118576.391626, "dkappa":-0.000013}
{"kappa": 0.001137, "s": 424.637278, "theta": 1.592615, "x":691216.688956, "y":3118576.650490, "dkappa":-0.000013}
{"kappa": 0.001134, "s": 424.896209, "theta": 1.592909, "x":691216.683269, "y":3118576.909359, "dkappa":-0.000013}
{"kappa": 0.001130, "s": 425.155148, "theta": 1.593202, "x":691216.677505, "y":3118577.168234, "dkappa":-0.000013}
{"kappa": 0.001127, "s": 425.414094, "theta": 1.593494, "x":691216.671666, "y":3118577.427114, "dkappa":-0.000014}
{"kappa": 0.001123, "s": 425.673048, "theta": 1.593786, "x":691216.665751, "y":3118577.686000, "dkappa":-0.000014}
{"kappa": 0.001120, "s": 425.932008, "theta": 1.594076, "x":691216.659761, "y":3118577.944891, "dkappa":-0.000014}
{"kappa": 0.001116, "s": 426.190976, "theta": 1.594366, "x":691216.653695, "y":3118578.203788, "dkappa":-0.000014}
{"kappa": 0.001113, "s": 426.449951, "theta": 1.594654, "x":691216.647554, "y":3118578.462690, "dkappa":-0.000014}
{"kappa": 0.001109, "s": 426.708933, "theta": 1.594942, "x":691216.641339, "y":3118578.721598, "dkappa":-0.000014}
{"kappa": 0.001105, "s": 426.967923, "theta": 1.595229, "x":691216.635049, "y":3118578.980511, "dkappa":-0.000014}
{"kappa": 0.001102, "s": 427.226920, "theta": 1.595515, "x":691216.628684, "y":3118579.239430, "dkappa":-0.000014}
{"kappa": 0.001098, "s": 427.485924, "theta": 1.595800, "x":691216.622246, "y":3118579.498354, "dkappa":-0.000014}
{"kappa": 0.001094, "s": 427.744936, "theta": 1.596084, "x":691216.615734, "y":3118579.757284, "dkappa":-0.000014}
{"kappa": 0.001091, "s": 428.003954, "theta": 1.596367, "x":691216.609148, "y":3118580.016219, "dkappa":-0.000014}
{"kappa": 0.001087, "s": 428.262981, "theta": 1.596649, "x":691216.602489, "y":3118580.275160, "dkappa":-0.000014}
{"kappa": 0.001083, "s": 428.522015, "theta": 1.596930, "x":691216.595756, "y":3118580.534106, "dkappa":-0.000015}
{"kappa": 0.001079, "s": 428.781056, "theta": 1.597210, "x":691216.588951, "y":3118580.793058, "dkappa":-0.000015}
{"kappa": 0.001076, "s": 429.040105, "theta": 1.597489, "x":691216.582074, "y":3118581.052015, "dkappa":-0.000015}
{"kappa": 0.001072, "s": 429.299161, "theta": 1.597767, "x":691216.575124, "y":3118581.310978, "dkappa":-0.000015}
{"kappa": 0.001068, "s": 429.558224, "theta": 1.598044, "x":691216.568101, "y":3118581.569947, "dkappa":-0.000015}
{"kappa": 0.001064, "s": 429.817295, "theta": 1.598320, "x":691216.561007, "y":3118581.828920, "dkappa":-0.000015}
{"kappa": 0.001060, "s": 430.076374, "theta": 1.598596, "x":691216.553842, "y":3118582.087900, "dkappa":-0.000015}
{"kappa": 0.001056, "s": 430.335460, "theta": 1.598870, "x":691216.546605, "y":3118582.346885, "dkappa":-0.000015}
{"kappa": 0.001052, "s": 430.594554, "theta": 1.599143, "x":691216.539297, "y":3118582.605876, "dkappa":-0.000015}
{"kappa": 0.001048, "s": 430.853655, "theta": 1.599415, "x":691216.531918, "y":3118582.864872, "dkappa":-0.000015}
{"kappa": 0.001045, "s": 431.112764, "theta": 1.599686, "x":691216.524468, "y":3118583.123874, "dkappa":-0.000015}
{"kappa": 0.001041, "s": 431.371881, "theta": 1.599956, "x":691216.516948, "y":3118583.382881, "dkappa":-0.000015}
{"kappa": 0.001037, "s": 431.631005, "theta": 1.600225, "x":691216.509358, "y":3118583.641894, "dkappa":-0.000015}
{"kappa": 0.001033, "s": 431.890137, "theta": 1.600494, "x":691216.501699, "y":3118583.900913, "dkappa":-0.000015}
{"kappa": 0.001029, "s": 432.149276, "theta": 1.600761, "x":691216.493970, "y":3118584.159937, "dkappa":-0.000016}
{"kappa": 0.001025, "s": 432.408423, "theta": 1.601027, "x":691216.486171, "y":3118584.418966, "dkappa":-0.000016}
{"kappa": 0.001020, "s": 432.667578, "theta": 1.601292, "x":691216.478304, "y":3118584.678002, "dkappa":-0.000016}
{"kappa": 0.001016, "s": 432.926740, "theta": 1.601556, "x":691216.470367, "y":3118584.937043, "dkappa":-0.000016}
{"kappa": 0.001012, "s": 433.185910, "theta": 1.601818, "x":691216.462363, "y":3118585.196089, "dkappa":-0.000016}
{"kappa": 0.001008, "s": 433.445088, "theta": 1.602080, "x":691216.454290, "y":3118585.455141, "dkappa":-0.000016}
{"kappa": 0.001004, "s": 433.704274, "theta": 1.602341, "x":691216.446149, "y":3118585.714199, "dkappa":-0.000016}
{"kappa": 0.001000, "s": 433.963467, "theta": 1.602601, "x":691216.437940, "y":3118585.973262, "dkappa":-0.000016}
{"kappa": 0.000996, "s": 434.222668, "theta": 1.602859, "x":691216.429665, "y":3118586.232331, "dkappa":-0.000016}
{"kappa": 0.000992, "s": 434.481877, "theta": 1.603117, "x":691216.421322, "y":3118586.491406, "dkappa":-0.000016}
{"kappa": 0.000987, "s": 434.741094, "theta": 1.603374, "x":691216.412912, "y":3118586.750486, "dkappa":-0.000016}
{"kappa": 0.000983, "s": 435.000319, "theta": 1.603629, "x":691216.404435, "y":3118587.009572, "dkappa":-0.000016}
{"kappa": 0.000979, "s": 435.259551, "theta": 1.603883, "x":691216.395893, "y":3118587.268664, "dkappa":-0.000016}
{"kappa": 0.000975, "s": 435.518791, "theta": 1.604137, "x":691216.387284, "y":3118587.527761, "dkappa":-0.000016}
{"kappa": 0.000971, "s": 435.778039, "theta": 1.604389, "x":691216.378609, "y":3118587.786864, "dkappa":-0.000016}
{"kappa": 0.000966, "s": 436.037295, "theta": 1.604640, "x":691216.369869, "y":3118588.045972, "dkappa":-0.000016}
{"kappa": 0.000962, "s": 436.296559, "theta": 1.604890, "x":691216.361064, "y":3118588.305086, "dkappa":-0.000016}
{"kappa": 0.000958, "s": 436.555830, "theta": 1.605139, "x":691216.352194, "y":3118588.564206, "dkappa":-0.000017}
{"kappa": 0.000953, "s": 436.815110, "theta": 1.605386, "x":691216.343260, "y":3118588.823332, "dkappa":-0.000017}
{"kappa": 0.000949, "s": 437.074397, "theta": 1.605633, "x":691216.334261, "y":3118589.082463, "dkappa":-0.000017}
{"kappa": 0.000945, "s": 437.333692, "theta": 1.605879, "x":691216.325198, "y":3118589.341600, "dkappa":-0.000017}
{"kappa": 0.000941, "s": 437.592995, "theta": 1.606123, "x":691216.316071, "y":3118589.600742, "dkappa":-0.000017}
{"kappa": 0.000936, "s": 437.852307, "theta": 1.606366, "x":691216.306881, "y":3118589.859890, "dkappa":-0.000017}
{"kappa": 0.000932, "s": 438.111626, "theta": 1.606609, "x":691216.297627, "y":3118590.119044, "dkappa":-0.000017}
{"kappa": 0.000927, "s": 438.370953, "theta": 1.606850, "x":691216.288311, "y":3118590.378204, "dkappa":-0.000017}
{"kappa": 0.000923, "s": 438.630288, "theta": 1.607090, "x":691216.278932, "y":3118590.637369, "dkappa":-0.000017}
{"kappa": 0.000919, "s": 438.889631, "theta": 1.607328, "x":691216.269490, "y":3118590.896540, "dkappa":-0.000017}
{"kappa": 0.000914, "s": 439.148981, "theta": 1.607566, "x":691216.259987, "y":3118591.155717, "dkappa":-0.000017}
{"kappa": 0.000910, "s": 439.408340, "theta": 1.607803, "x":691216.250422, "y":3118591.414899, "dkappa":-0.000017}
{"kappa": 0.000905, "s": 439.667707, "theta": 1.608038, "x":691216.240795, "y":3118591.674087, "dkappa":-0.000017}
{"kappa": 0.000901, "s": 439.927082, "theta": 1.608272, "x":691216.231108, "y":3118591.933281, "dkappa":-0.000017}
{"kappa": 0.000896, "s": 440.186465, "theta": 1.608505, "x":691216.221359, "y":3118592.192481, "dkappa":-0.000017}
{"kappa": 0.000892, "s": 440.445856, "theta": 1.608737, "x":691216.211550, "y":3118592.451686, "dkappa":-0.000017}
{"kappa": 0.000888, "s": 440.705255, "theta": 1.608968, "x":691216.201680, "y":3118592.710897, "dkappa":-0.000017}
{"kappa": 0.000883, "s": 440.964662, "theta": 1.609198, "x":691216.191751, "y":3118592.970114, "dkappa":-0.000017}
{"kappa": 0.000879, "s": 441.224077, "theta": 1.609426, "x":691216.181762, "y":3118593.229337, "dkappa":-0.000017}
{"kappa": 0.000874, "s": 441.483500, "theta": 1.609654, "x":691216.171713, "y":3118593.488565, "dkappa":-0.000017}
{"kappa": 0.000869, "s": 441.742931, "theta": 1.609880, "x":691216.161606, "y":3118593.747799, "dkappa":-0.000017}
{"kappa": 0.000865, "s": 442.002370, "theta": 1.610105, "x":691216.151439, "y":3118594.007039, "dkappa":-0.000017}
{"kappa": 0.000860, "s": 442.261817, "theta": 1.610329, "x":691216.141215, "y":3118594.266285, "dkappa":-0.000018}
{"kappa": 0.000856, "s": 442.521273, "theta": 1.610551, "x":691216.130931, "y":3118594.525536, "dkappa":-0.000018}
{"kappa": 0.000851, "s": 442.780736, "theta": 1.610773, "x":691216.120591, "y":3118594.784794, "dkappa":-0.000018}
{"kappa": 0.000847, "s": 443.040208, "theta": 1.610993, "x":691216.110192, "y":3118595.044057, "dkappa":-0.000018}
{"kappa": 0.000842, "s": 443.299687, "theta": 1.611212, "x":691216.099736, "y":3118595.303326, "dkappa":-0.000018}
{"kappa": 0.000838, "s": 443.559175, "theta": 1.611430, "x":691216.089223, "y":3118595.562600, "dkappa":-0.000018}
{"kappa": 0.000833, "s": 443.818671, "theta": 1.611647, "x":691216.078654, "y":3118595.821881, "dkappa":-0.000018}
{"kappa": 0.000828, "s": 444.078174, "theta": 1.611862, "x":691216.068028, "y":3118596.081167, "dkappa":-0.000018}
{"kappa": 0.000824, "s": 444.337686, "theta": 1.612077, "x":691216.057346, "y":3118596.340459, "dkappa":-0.000018}
{"kappa": 0.000819, "s": 444.597206, "theta": 1.612290, "x":691216.046608, "y":3118596.599757, "dkappa":-0.000018}
{"kappa": 0.000815, "s": 444.856735, "theta": 1.612502, "x":691216.035815, "y":3118596.859060, "dkappa":-0.000018}
{"kappa": 0.000810, "s": 445.116271, "theta": 1.612713, "x":691216.024967, "y":3118597.118370, "dkappa":-0.000018}
{"kappa": 0.000805, "s": 445.375815, "theta": 1.612922, "x":691216.014063, "y":3118597.377685, "dkappa":-0.000018}
{"kappa": 0.000801, "s": 445.635368, "theta": 1.613131, "x":691216.003106, "y":3118597.637006, "dkappa":-0.000018}
{"kappa": 0.000796, "s": 445.894929, "theta": 1.613338, "x":691215.992094, "y":3118597.896333, "dkappa":-0.000018}
{"kappa": 0.000791, "s": 446.154497, "theta": 1.613544, "x":691215.981028, "y":3118598.155666, "dkappa":-0.000018}
{"kappa": 0.000787, "s": 446.414074, "theta": 1.613749, "x":691215.969908, "y":3118598.415005, "dkappa":-0.000018}
{"kappa": 0.000782, "s": 446.673660, "theta": 1.613952, "x":691215.958735, "y":3118598.674349, "dkappa":-0.000018}
{"kappa": 0.000777, "s": 446.933253, "theta": 1.614155, "x":691215.947510, "y":3118598.933700, "dkappa":-0.000018}
{"kappa": 0.000773, "s": 447.192854, "theta": 1.614356, "x":691215.936231, "y":3118599.193056, "dkappa":-0.000018}
{"kappa": 0.000768, "s": 447.452464, "theta": 1.614556, "x":691215.924900, "y":3118599.452418, "dkappa":-0.000018}
{"kappa": 0.000763, "s": 447.712081, "theta": 1.614755, "x":691215.913517, "y":3118599.711786, "dkappa":-0.000018}
{"kappa": 0.000759, "s": 447.971707, "theta": 1.614952, "x":691215.902082, "y":3118599.971160, "dkappa":-0.000018}
{"kappa": 0.000754, "s": 448.231341, "theta": 1.615149, "x":691215.890596, "y":3118600.230540, "dkappa":-0.000018}
{"kappa": 0.000749, "s": 448.490983, "theta": 1.615344, "x":691215.879059, "y":3118600.489926, "dkappa":-0.000018}
{"kappa": 0.000744, "s": 448.750634, "theta": 1.615538, "x":691215.867471, "y":3118600.749317, "dkappa":-0.000018}
{"kappa": 0.000740, "s": 449.010292, "theta": 1.615730, "x":691215.855832, "y":3118601.008715, "dkappa":-0.000018}
{"kappa": 0.000735, "s": 449.269959, "theta": 1.615922, "x":691215.844143, "y":3118601.268118, "dkappa":-0.000018}
{"kappa": 0.000730, "s": 449.529633, "theta": 1.616112, "x":691215.832405, "y":3118601.527527, "dkappa":-0.000018}
{"kappa": 0.000726, "s": 449.789316, "theta": 1.616301, "x":691215.820617, "y":3118601.786943, "dkappa":-0.000018}
{"kappa": 0.000721, "s": 450.049007, "theta": 1.616489, "x":691215.808779, "y":3118602.046364, "dkappa":-0.000018}
{"kappa": 0.000716, "s": 450.308707, "theta": 1.616675, "x":691215.796893, "y":3118602.305791, "dkappa":-0.000018}
{"kappa": 0.000711, "s": 450.568414, "theta": 1.616861, "x":691215.784958, "y":3118602.565224, "dkappa":-0.000018}
{"kappa": 0.000707, "s": 450.828130, "theta": 1.617045, "x":691215.772974, "y":3118602.824663, "dkappa":-0.000018}
{"kappa": 0.000702, "s": 451.087853, "theta": 1.617228, "x":691215.760943, "y":3118603.084107, "dkappa":-0.000018}
{"kappa": 0.000697, "s": 451.347585, "theta": 1.617409, "x":691215.748864, "y":3118603.343558, "dkappa":-0.000018}
{"kappa": 0.000692, "s": 451.607325, "theta": 1.617590, "x":691215.736738, "y":3118603.603015, "dkappa":-0.000018}
{"kappa": 0.000688, "s": 451.867073, "theta": 1.617769, "x":691215.724564, "y":3118603.862478, "dkappa":-0.000018}
{"kappa": 0.000683, "s": 452.126829, "theta": 1.617947, "x":691215.712344, "y":3118604.121946, "dkappa":-0.000018}
{"kappa": 0.000678, "s": 452.386594, "theta": 1.618124, "x":691215.700078, "y":3118604.381421, "dkappa":-0.000018}
{"kappa": 0.000673, "s": 452.646366, "theta": 1.618299, "x":691215.687765, "y":3118604.640902, "dkappa":-0.000018}
{"kappa": 0.000669, "s": 452.906147, "theta": 1.618474, "x":691215.675407, "y":3118604.900388, "dkappa":-0.000018}
{"kappa": 0.000664, "s": 453.165936, "theta": 1.618647, "x":691215.663003, "y":3118605.159881, "dkappa":-0.000018}
{"kappa": 0.000659, "s": 453.425733, "theta": 1.618819, "x":691215.650554, "y":3118605.419379, "dkappa":-0.000018}
{"kappa": 0.000654, "s": 453.685538, "theta": 1.618989, "x":691215.638060, "y":3118605.678884, "dkappa":-0.000018}
{"kappa": 0.000649, "s": 453.945351, "theta": 1.619158, "x":691215.625522, "y":3118605.938394, "dkappa":-0.000018}
{"kappa": 0.000645, "s": 454.205172, "theta": 1.619327, "x":691215.612939, "y":3118606.197911, "dkappa":-0.000018}
{"kappa": 0.000640, "s": 454.465002, "theta": 1.619493, "x":691215.600313, "y":3118606.457433, "dkappa":-0.000018}
{"kappa": 0.000635, "s": 454.724840, "theta": 1.619659, "x":691215.587643, "y":3118606.716962, "dkappa":-0.000018}
{"kappa": 0.000630, "s": 454.984685, "theta": 1.619824, "x":691215.574930, "y":3118606.976496, "dkappa":-0.000018}
{"kappa": 0.000626, "s": 455.244539, "theta": 1.619987, "x":691215.562174, "y":3118607.236037, "dkappa":-0.000018}
{"kappa": 0.000621, "s": 455.504401, "theta": 1.620149, "x":691215.549375, "y":3118607.495583, "dkappa":-0.000018}
{"kappa": 0.000616, "s": 455.764271, "theta": 1.620309, "x":691215.536535, "y":3118607.755136, "dkappa":-0.000018}
{"kappa": 0.000611, "s": 456.024149, "theta": 1.620469, "x":691215.523652, "y":3118608.014695, "dkappa":-0.000018}
{"kappa": 0.000606, "s": 456.284035, "theta": 1.620627, "x":691215.510727, "y":3118608.274259, "dkappa":-0.000018}
{"kappa": 0.000602, "s": 456.543930, "theta": 1.620784, "x":691215.497762, "y":3118608.533830, "dkappa":-0.000018}
{"kappa": 0.000597, "s": 456.803832, "theta": 1.620940, "x":691215.484755, "y":3118608.793407, "dkappa":-0.000018}
{"kappa": 0.000592, "s": 457.063743, "theta": 1.621094, "x":691215.471707, "y":3118609.052990, "dkappa":-0.000018}
{"kappa": 0.000587, "s": 457.323661, "theta": 1.621248, "x":691215.458620, "y":3118609.312578, "dkappa":-0.000018}
{"kappa": 0.000583, "s": 457.583588, "theta": 1.621400, "x":691215.445492, "y":3118609.572173, "dkappa":-0.000018}
{"kappa": 0.000578, "s": 457.843523, "theta": 1.621550, "x":691215.432324, "y":3118609.831774, "dkappa":-0.000018}
{"kappa": 0.000573, "s": 458.103465, "theta": 1.621700, "x":691215.419117, "y":3118610.091381, "dkappa":-0.000018}
{"kappa": 0.000568, "s": 458.363416, "theta": 1.621848, "x":691215.405871, "y":3118610.350994, "dkappa":-0.000018}
{"kappa": 0.000564, "s": 458.623375, "theta": 1.621995, "x":691215.392586, "y":3118610.610614, "dkappa":-0.000018}
{"kappa": 0.000559, "s": 458.883342, "theta": 1.622141, "x":691215.379263, "y":3118610.870239, "dkappa":-0.000018}
{"kappa": 0.000554, "s": 459.143317, "theta": 1.622286, "x":691215.365902, "y":3118611.129870, "dkappa":-0.000018}
{"kappa": 0.000549, "s": 459.403300, "theta": 1.622429, "x":691215.352503, "y":3118611.389508, "dkappa":-0.000018}
{"kappa": 0.000545, "s": 459.663291, "theta": 1.622572, "x":691215.339066, "y":3118611.649151, "dkappa":-0.000018}
{"kappa": 0.000540, "s": 459.923290, "theta": 1.622713, "x":691215.325592, "y":3118611.908801, "dkappa":-0.000018}
{"kappa": 0.000535, "s": 460.183297, "theta": 1.622852, "x":691215.312082, "y":3118612.168457, "dkappa":-0.000018}
{"kappa": 0.000530, "s": 460.443312, "theta": 1.622991, "x":691215.298534, "y":3118612.428118, "dkappa":-0.000018}
{"kappa": 0.000526, "s": 460.703335, "theta": 1.623128, "x":691215.284951, "y":3118612.687786, "dkappa":-0.000018}
{"kappa": 0.000521, "s": 460.963366, "theta": 1.623264, "x":691215.271332, "y":3118612.947461, "dkappa":-0.000018}
{"kappa": 0.000516, "s": 461.223405, "theta": 1.623399, "x":691215.257677, "y":3118613.207141, "dkappa":-0.000018}
{"kappa": 0.000511, "s": 461.483452, "theta": 1.623532, "x":691215.243986, "y":3118613.466827, "dkappa":-0.000018}
{"kappa": 0.000507, "s": 461.743507, "theta": 1.623665, "x":691215.230261, "y":3118613.726520, "dkappa":-0.000018}
{"kappa": 0.000502, "s": 462.003570, "theta": 1.623796, "x":691215.216501, "y":3118613.986218, "dkappa":-0.000018}
{"kappa": 0.000497, "s": 462.263640, "theta": 1.623926, "x":691215.202707, "y":3118614.245923, "dkappa":-0.000018}
{"kappa": 0.000492, "s": 462.523719, "theta": 1.624055, "x":691215.188879, "y":3118614.505634, "dkappa":-0.000018}
{"kappa": 0.000488, "s": 462.783806, "theta": 1.624182, "x":691215.175017, "y":3118614.765351, "dkappa":-0.000018}
{"kappa": 0.000483, "s": 463.043901, "theta": 1.624308, "x":691215.161122, "y":3118615.025074, "dkappa":-0.000018}
{"kappa": 0.000478, "s": 463.304003, "theta": 1.624433, "x":691215.147194, "y":3118615.284804, "dkappa":-0.000018}
{"kappa": 0.000474, "s": 463.564114, "theta": 1.624557, "x":691215.133233, "y":3118615.544539, "dkappa":-0.000018}
{"kappa": 0.000469, "s": 463.824232, "theta": 1.624680, "x":691215.119240, "y":3118615.804281, "dkappa":-0.000018}
{"kappa": 0.000464, "s": 464.084358, "theta": 1.624801, "x":691215.105214, "y":3118616.064029, "dkappa":-0.000018}
{"kappa": 0.000460, "s": 464.344492, "theta": 1.624921, "x":691215.091157, "y":3118616.323783, "dkappa":-0.000018}
{"kappa": 0.000455, "s": 464.604634, "theta": 1.625040, "x":691215.077068, "y":3118616.583543, "dkappa":-0.000018}
{"kappa": 0.000450, "s": 464.864784, "theta": 1.625158, "x":691215.062948, "y":3118616.843309, "dkappa":-0.000018}
{"kappa": 0.000446, "s": 465.124942, "theta": 1.625275, "x":691215.048797, "y":3118617.103082, "dkappa":-0.000018}
{"kappa": 0.000441, "s": 465.385108, "theta": 1.625390, "x":691215.034616, "y":3118617.362861, "dkappa":-0.000018}
{"kappa": 0.000436, "s": 465.645281, "theta": 1.625504, "x":691215.020404, "y":3118617.622646, "dkappa":-0.000018}
{"kappa": 0.000432, "s": 465.905462, "theta": 1.625617, "x":691215.006163, "y":3118617.882437, "dkappa":-0.000018}
{"kappa": 0.000427, "s": 466.165651, "theta": 1.625729, "x":691214.991892, "y":3118618.142234, "dkappa":-0.000018}
{"kappa": 0.000423, "s": 466.425848, "theta": 1.625839, "x":691214.977591, "y":3118618.402038, "dkappa":-0.000018}
{"kappa": 0.000418, "s": 466.686053, "theta": 1.625949, "x":691214.963262, "y":3118618.661848, "dkappa":-0.000018}
{"kappa": 0.000413, "s": 466.946265, "theta": 1.626057, "x":691214.948903, "y":3118618.921664, "dkappa":-0.000018}
{"kappa": 0.000409, "s": 467.206486, "theta": 1.626164, "x":691214.934517, "y":3118619.181486, "dkappa":-0.000018}
{"kappa": 0.000404, "s": 467.466714, "theta": 1.626270, "x":691214.920102, "y":3118619.441314, "dkappa":-0.000018}
{"kappa": 0.000400, "s": 467.726949, "theta": 1.626374, "x":691214.905660, "y":3118619.701149, "dkappa":-0.000018}
{"kappa": 0.000395, "s": 467.987193, "theta": 1.626478, "x":691214.891190, "y":3118619.960990, "dkappa":-0.000018}
{"kappa": 0.000390, "s": 468.247444, "theta": 1.626580, "x":691214.876693, "y":3118620.220837, "dkappa":-0.000017}
{"kappa": 0.000386, "s": 468.507703, "theta": 1.626681, "x":691214.862170, "y":3118620.480691, "dkappa":-0.000017}
{"kappa": 0.000381, "s": 468.767970, "theta": 1.626781, "x":691214.847619, "y":3118620.740550, "dkappa":-0.000017}
{"kappa": 0.000377, "s": 469.028244, "theta": 1.626879, "x":691214.833043, "y":3118621.000416, "dkappa":-0.000017}
{"kappa": 0.000372, "s": 469.288526, "theta": 1.626977, "x":691214.818440, "y":3118621.260288, "dkappa":-0.000017}
{"kappa": 0.000368, "s": 469.548816, "theta": 1.627073, "x":691214.803812, "y":3118621.520167, "dkappa":-0.000017}
{"kappa": 0.000363, "s": 469.809114, "theta": 1.627168, "x":691214.789159, "y":3118621.780052, "dkappa":-0.000017}
{"kappa": 0.000359, "s": 470.069419, "theta": 1.627262, "x":691214.774480, "y":3118622.039943, "dkappa":-0.000017}
{"kappa": 0.000354, "s": 470.329732, "theta": 1.627355, "x":691214.759777, "y":3118622.299840, "dkappa":-0.000017}
{"kappa": 0.000350, "s": 470.590052, "theta": 1.627447, "x":691214.745050, "y":3118622.559743, "dkappa":-0.000017}
{"kappa": 0.000345, "s": 470.850380, "theta": 1.627537, "x":691214.730298, "y":3118622.819653, "dkappa":-0.000017}
{"kappa": 0.000341, "s": 471.110716, "theta": 1.627627, "x":691214.715523, "y":3118623.079569, "dkappa":-0.000017}
{"kappa": 0.000337, "s": 471.371059, "theta": 1.627715, "x":691214.700724, "y":3118623.339491, "dkappa":-0.000017}
{"kappa": 0.000332, "s": 471.631410, "theta": 1.627802, "x":691214.685902, "y":3118623.599420, "dkappa":-0.000017}
{"kappa": 0.000328, "s": 471.891768, "theta": 1.627888, "x":691214.671057, "y":3118623.859355, "dkappa":-0.000017}
{"kappa": 0.000323, "s": 472.152134, "theta": 1.627973, "x":691214.656189, "y":3118624.119296, "dkappa":-0.000017}
{"kappa": 0.000319, "s": 472.412508, "theta": 1.628056, "x":691214.641299, "y":3118624.379244, "dkappa":-0.000017}
{"kappa": 0.000315, "s": 472.672889, "theta": 1.628139, "x":691214.626387, "y":3118624.639197, "dkappa":-0.000017}
{"kappa": 0.000310, "s": 472.933278, "theta": 1.628220, "x":691214.611454, "y":3118624.899158, "dkappa":-0.000017}
{"kappa": 0.000306, "s": 473.193674, "theta": 1.628300, "x":691214.596498, "y":3118625.159124, "dkappa":-0.000017}
{"kappa": 0.000301, "s": 473.454078, "theta": 1.628379, "x":691214.581522, "y":3118625.419097, "dkappa":-0.000017}
{"kappa": 0.000297, "s": 473.714489, "theta": 1.628457, "x":691214.566525, "y":3118625.679076, "dkappa":-0.000017}
{"kappa": 0.000293, "s": 473.974908, "theta": 1.628534, "x":691214.551507, "y":3118625.939061, "dkappa":-0.000017}
{"kappa": 0.000288, "s": 474.235334, "theta": 1.628610, "x":691214.536470, "y":3118626.199053, "dkappa":-0.000017}
{"kappa": 0.000284, "s": 474.495768, "theta": 1.628684, "x":691214.521412, "y":3118626.459051, "dkappa":-0.000016}
{"kappa": 0.000280, "s": 474.756209, "theta": 1.628758, "x":691214.506334, "y":3118626.719055, "dkappa":-0.000016}
{"kappa": 0.000276, "s": 475.016657, "theta": 1.628830, "x":691214.491237, "y":3118626.979066, "dkappa":-0.000016}
{"kappa": 0.000271, "s": 475.277113, "theta": 1.628901, "x":691214.476121, "y":3118627.239083, "dkappa":-0.000016}
{"kappa": 0.000267, "s": 475.537577, "theta": 1.628971, "x":691214.460986, "y":3118627.499106, "dkappa":-0.000016}
{"kappa": 0.000263, "s": 475.798047, "theta": 1.629040, "x":691214.445833, "y":3118627.759136, "dkappa":-0.000016}
{"kappa": 0.000259, "s": 476.058526, "theta": 1.629108, "x":691214.430661, "y":3118628.019172, "dkappa":-0.000016}
{"kappa": 0.000255, "s": 476.319011, "theta": 1.629175, "x":691214.415472, "y":3118628.279214, "dkappa":-0.000016}
{"kappa": 0.000250, "s": 476.579504, "theta": 1.629241, "x":691214.400265, "y":3118628.539263, "dkappa":-0.000016}
{"kappa": 0.000246, "s": 476.840005, "theta": 1.629306, "x":691214.385040, "y":3118628.799318, "dkappa":-0.000016}
{"kappa": 0.000242, "s": 477.100512, "theta": 1.629369, "x":691214.369798, "y":3118629.059379, "dkappa":-0.000016}
{"kappa": 0.000238, "s": 477.361027, "theta": 1.629432, "x":691214.354540, "y":3118629.319447, "dkappa":-0.000016}
{"kappa": 0.000234, "s": 477.621550, "theta": 1.629493, "x":691214.339265, "y":3118629.579521, "dkappa":-0.000016}
{"kappa": 0.000230, "s": 477.882079, "theta": 1.629554, "x":691214.323973, "y":3118629.839602, "dkappa":-0.000016}
{"kappa": 0.000226, "s": 478.142616, "theta": 1.629613, "x":691214.308666, "y":3118630.099688, "dkappa":-0.000016}
{"kappa": 0.000222, "s": 478.403160, "theta": 1.629671, "x":691214.293343, "y":3118630.359782, "dkappa":-0.000016}
{"kappa": 0.000217, "s": 478.663712, "theta": 1.629728, "x":691214.278004, "y":3118630.619881, "dkappa":-0.000016}
{"kappa": 0.000213, "s": 478.924271, "theta": 1.629784, "x":691214.262651, "y":3118630.879987, "dkappa":-0.000015}
{"kappa": 0.000209, "s": 479.184836, "theta": 1.629839, "x":691214.247282, "y":3118631.140099, "dkappa":-0.000015}
{"kappa": 0.000205, "s": 479.445410, "theta": 1.629894, "x":691214.231899, "y":3118631.400218, "dkappa":-0.000015}
{"kappa": 0.000201, "s": 479.705990, "theta": 1.629947, "x":691214.216502, "y":3118631.660343, "dkappa":-0.000015}
{"kappa": 0.000197, "s": 479.966578, "theta": 1.629998, "x":691214.201090, "y":3118631.920475, "dkappa":-0.000015}
{"kappa": 0.000193, "s": 480.227173, "theta": 1.630049, "x":691214.185665, "y":3118632.180613, "dkappa":-0.000015}
{"kappa": 0.000190, "s": 480.487775, "theta": 1.630099, "x":691214.170226, "y":3118632.440757, "dkappa":-0.000015}
{"kappa": 0.000186, "s": 480.748384, "theta": 1.630148, "x":691214.154773, "y":3118632.700908, "dkappa":-0.000015}
{"kappa": 0.000182, "s": 481.009000, "theta": 1.630196, "x":691214.139308, "y":3118632.961065, "dkappa":-0.000015}
{"kappa": 0.000178, "s": 481.269624, "theta": 1.630243, "x":691214.123830, "y":3118633.221228, "dkappa":-0.000015}
{"kappa": 0.000174, "s": 481.530254, "theta": 1.630289, "x":691214.108340, "y":3118633.481398, "dkappa":-0.000015}
{"kappa": 0.000170, "s": 481.790892, "theta": 1.630334, "x":691214.092837, "y":3118633.741574, "dkappa":-0.000015}
{"kappa": 0.000166, "s": 482.051537, "theta": 1.630377, "x":691214.077322, "y":3118634.001757, "dkappa":-0.000015}
{"kappa": 0.000162, "s": 482.312189, "theta": 1.630420, "x":691214.061796, "y":3118634.261946, "dkappa":-0.000015}
{"kappa": 0.000159, "s": 482.572848, "theta": 1.630462, "x":691214.046258, "y":3118634.522141, "dkappa":-0.000015}
{"kappa": 0.000155, "s": 482.833514, "theta": 1.630503, "x":691214.030709, "y":3118634.782343, "dkappa":-0.000014}
{"kappa": 0.000151, "s": 483.094187, "theta": 1.630543, "x":691214.015149, "y":3118635.042552, "dkappa":-0.000014}
{"kappa": 0.000147, "s": 483.354867, "theta": 1.630582, "x":691213.999579, "y":3118635.302766, "dkappa":-0.000014}
{"kappa": 0.000144, "s": 483.615554, "theta": 1.630620, "x":691213.983998, "y":3118635.562987, "dkappa":-0.000014}
{"kappa": 0.000140, "s": 483.876248, "theta": 1.630657, "x":691213.968407, "y":3118635.823215, "dkappa":-0.000014}
{"kappa": 0.000136, "s": 484.136949, "theta": 1.630693, "x":691213.952806, "y":3118636.083449, "dkappa":-0.000014}
{"kappa": 0.000133, "s": 484.397658, "theta": 1.630728, "x":691213.937195, "y":3118636.343689, "dkappa":-0.000014}
{"kappa": 0.000129, "s": 484.658373, "theta": 1.630762, "x":691213.921575, "y":3118636.603936, "dkappa":-0.000014}
{"kappa": 0.000125, "s": 484.919095, "theta": 1.630795, "x":691213.905946, "y":3118636.864189, "dkappa":-0.000014}
{"kappa": 0.000122, "s": 485.179824, "theta": 1.630827, "x":691213.890307, "y":3118637.124449, "dkappa":-0.000014}
{"kappa": 0.000118, "s": 485.440560, "theta": 1.630859, "x":691213.874660, "y":3118637.384715, "dkappa":-0.000014}
{"kappa": 0.000115, "s": 485.701303, "theta": 1.630889, "x":691213.859005, "y":3118637.644988, "dkappa":-0.000014}
{"kappa": 0.000111, "s": 485.962053, "theta": 1.630918, "x":691213.843342, "y":3118637.905267, "dkappa":-0.000014}
{"kappa": 0.000108, "s": 486.222809, "theta": 1.630947, "x":691213.827670, "y":3118638.165552, "dkappa":-0.000013}
{"kappa": 0.000104, "s": 486.483573, "theta": 1.630974, "x":691213.811991, "y":3118638.425844, "dkappa":-0.000013}
{"kappa": 0.000101, "s": 486.744343, "theta": 1.631001, "x":691213.796304, "y":3118638.686142, "dkappa":-0.000013}
{"kappa": 0.000097, "s": 487.005121, "theta": 1.631027, "x":691213.780610, "y":3118638.946447, "dkappa":-0.000013}
{"kappa": 0.000094, "s": 487.265905, "theta": 1.631052, "x":691213.764909, "y":3118639.206758, "dkappa":-0.000013}
{"kappa": 0.000090, "s": 487.526696, "theta": 1.631076, "x":691213.749201, "y":3118639.467075, "dkappa":-0.000013}
{"kappa": 0.000087, "s": 487.787494, "theta": 1.631099, "x":691213.733487, "y":3118639.727399, "dkappa":-0.000013}
{"kappa": 0.000084, "s": 488.048299, "theta": 1.631121, "x":691213.717767, "y":3118639.987730, "dkappa":-0.000013}
{"kappa": 0.000080, "s": 488.309110, "theta": 1.631143, "x":691213.702040, "y":3118640.248067, "dkappa":-0.000013}
{"kappa": 0.000077, "s": 488.569928, "theta": 1.631163, "x":691213.686307, "y":3118640.508410, "dkappa":-0.000013}
{"kappa": 0.000074, "s": 488.830753, "theta": 1.631183, "x":691213.670569, "y":3118640.768760, "dkappa":-0.000013}
{"kappa": 0.000071, "s": 489.091585, "theta": 1.631202, "x":691213.654826, "y":3118641.029116, "dkappa":-0.000012}
{"kappa": 0.000067, "s": 489.352424, "theta": 1.631220, "x":691213.639077, "y":3118641.289479, "dkappa":-0.000012}
{"kappa": 0.000064, "s": 489.613269, "theta": 1.631237, "x":691213.623323, "y":3118641.549848, "dkappa":-0.000012}
{"kappa": 0.000061, "s": 489.874121, "theta": 1.631253, "x":691213.607564, "y":3118641.810223, "dkappa":-0.000012}
{"kappa": 0.000058, "s": 490.134980, "theta": 1.631268, "x":691213.591801, "y":3118642.070605, "dkappa":-0.000012}
{"kappa": 0.000055, "s": 490.395845, "theta": 1.631283, "x":691213.576034, "y":3118642.330994, "dkappa":-0.000012}
{"kappa": 0.000051, "s": 490.656717, "theta": 1.631297, "x":691213.560262, "y":3118642.591389, "dkappa":-0.000012}
{"kappa": 0.000048, "s": 490.917596, "theta": 1.631310, "x":691213.544487, "y":3118642.851790, "dkappa":-0.000012}
{"kappa": 0.000045, "s": 491.178482, "theta": 1.631322, "x":691213.528708, "y":3118643.112198, "dkappa":-0.000012}
{"kappa": 0.000042, "s": 491.439374, "theta": 1.631334, "x":691213.512925, "y":3118643.372612, "dkappa":-0.000012}
{"kappa": 0.000039, "s": 491.700272, "theta": 1.631344, "x":691213.497139, "y":3118643.633033, "dkappa":-0.000011}
{"kappa": 0.000036, "s": 491.961178, "theta": 1.631354, "x":691213.481350, "y":3118643.893460, "dkappa":-0.000011}
{"kappa": 0.000033, "s": 492.222090, "theta": 1.631363, "x":691213.465559, "y":3118644.153894, "dkappa":-0.000011}
{"kappa": 0.000030, "s": 492.483008, "theta": 1.631372, "x":691213.449764, "y":3118644.414334, "dkappa":-0.000011}
{"kappa": 0.000028, "s": 492.743934, "theta": 1.631379, "x":691213.433967, "y":3118644.674781, "dkappa":-0.000011}
{"kappa": 0.000025, "s": 493.004865, "theta": 1.631386, "x":691213.418168, "y":3118644.935234, "dkappa":-0.000011}
{"kappa": 0.000022, "s": 493.265804, "theta": 1.631392, "x":691213.402367, "y":3118645.195693, "dkappa":-0.000011}
{"kappa": 0.000019, "s": 493.526748, "theta": 1.631397, "x":691213.386564, "y":3118645.456159, "dkappa":-0.000011}
{"kappa": 0.000016, "s": 493.787700, "theta": 1.631402, "x":691213.370759, "y":3118645.716631, "dkappa":-0.000011}
{"kappa": 0.000013, "s": 494.048658, "theta": 1.631406, "x":691213.354952, "y":3118645.977110, "dkappa":-0.000011}
{"kappa": 0.000011, "s": 494.309622, "theta": 1.631409, "x":691213.339145, "y":3118646.237595, "dkappa":-0.000010}
{"kappa": 0.000008, "s": 494.570593, "theta": 1.631411, "x":691213.323336, "y":3118646.498087, "dkappa":-0.000010}
{"kappa": 0.000005, "s": 494.831571, "theta": 1.631413, "x":691213.307526, "y":3118646.758585, "dkappa":-0.000010}
{"kappa": 0.000003, "s": 495.092555, "theta": 1.631414, "x":691213.291716, "y":3118647.019090, "dkappa":-0.000010}
{"kappa": 0.000000, "s": 495.353545, "theta": 1.631415, "x":691213.275905, "y":3118647.279601, "dkappa":-0.000010}
{"kappa": -0.000003, "s": 495.614542, "theta": 1.631414, "x":691213.260093, "y":3118647.540119, "dkappa":-0.000010}
{"kappa": -0.000005, "s": 495.875546, "theta": 1.631413, "x":691213.244282, "y":3118647.800643, "dkappa":-0.000010}
{"kappa": -0.000008, "s": 496.136555, "theta": 1.631412, "x":691213.228470, "y":3118648.061173, "dkappa":-0.000010}
{"kappa": -0.000010, "s": 496.397572, "theta": 1.631409, "x":691213.212658, "y":3118648.321710, "dkappa":-0.000010}
{"kappa": -0.000013, "s": 496.658594, "theta": 1.631406, "x":691213.196847, "y":3118648.582253, "dkappa":-0.000009}
{"kappa": -0.000015, "s": 496.919624, "theta": 1.631403, "x":691213.181036, "y":3118648.842803, "dkappa":-0.000009}
{"kappa": -0.000017, "s": 497.180659, "theta": 1.631398, "x":691213.165226, "y":3118649.103360, "dkappa":-0.000009}
{"kappa": -0.000020, "s": 497.441701, "theta": 1.631393, "x":691213.149417, "y":3118649.363922, "dkappa":-0.000009}
{"kappa": -0.000022, "s": 497.702749, "theta": 1.631388, "x":691213.133608, "y":3118649.624491, "dkappa":-0.000009}
{"kappa": -0.000025, "s": 497.963804, "theta": 1.631382, "x":691213.117801, "y":3118649.885067, "dkappa":-0.000009}
{"kappa": -0.000027, "s": 498.224865, "theta": 1.631375, "x":691213.101995, "y":3118650.145649, "dkappa":-0.000009}
{"kappa": -0.000029, "s": 498.485932, "theta": 1.631368, "x":691213.086190, "y":3118650.406238, "dkappa":-0.000009}
{"kappa": -0.000031, "s": 498.747006, "theta": 1.631360, "x":691213.070387, "y":3118650.666833, "dkappa":-0.000008}
{"kappa": -0.000033, "s": 499.008086, "theta": 1.631352, "x":691213.054586, "y":3118650.927434, "dkappa":-0.000008}
{"kappa": -0.000036, "s": 499.269172, "theta": 1.631343, "x":691213.038787, "y":3118651.188042, "dkappa":-0.000008}
{"kappa": -0.000038, "s": 499.530265, "theta": 1.631333, "x":691213.022990, "y":3118651.448656, "dkappa":-0.000008}
{"kappa": -0.000040, "s": 499.791364, "theta": 1.631323, "x":691213.007195, "y":3118651.709277, "dkappa":-0.000008}
{"kappa": -0.000042, "s": 500.052469, "theta": 1.631312, "x":691212.991402, "y":3118651.969904, "dkappa":-0.000008}
{"kappa": -0.000044, "s": 500.313580, "theta": 1.631301, "x":691212.975612, "y":3118652.230537, "dkappa":-0.000008}
{"kappa": -0.000046, "s": 500.574698, "theta": 1.631289, "x":691212.959824, "y":3118652.491177, "dkappa":-0.000008}
{"kappa": -0.000048, "s": 500.835822, "theta": 1.631277, "x":691212.944039, "y":3118652.751824, "dkappa":-0.000007}
{"kappa": -0.000050, "s": 501.096952, "theta": 1.631264, "x":691212.928257, "y":3118653.012477, "dkappa":-0.000007}
{"kappa": -0.000052, "s": 501.358089, "theta": 1.631251, "x":691212.912478, "y":3118653.273136, "dkappa":-0.000007}
{"kappa": -0.000054, "s": 501.619231, "theta": 1.631237, "x":691212.896702, "y":3118653.533802, "dkappa":-0.000007}
{"kappa": -0.000055, "s": 501.880380, "theta": 1.631223, "x":691212.880930, "y":3118653.794474, "dkappa":-0.000007}
{"kappa": -0.000057, "s": 502.141535, "theta": 1.631208, "x":691212.865160, "y":3118654.055152, "dkappa":-0.000007}
{"kappa": -0.000059, "s": 502.402696, "theta": 1.631193, "x":691212.849395, "y":3118654.315837, "dkappa":-0.000007}
{"kappa": -0.000061, "s": 502.663864, "theta": 1.631177, "x":691212.833633, "y":3118654.576529, "dkappa":-0.000007}
{"kappa": -0.000062, "s": 502.925038, "theta": 1.631161, "x":691212.817874, "y":3118654.837227, "dkappa":-0.000006}
{"kappa": -0.000064, "s": 503.186217, "theta": 1.631145, "x":691212.802120, "y":3118655.097931, "dkappa":-0.000006}
{"kappa": -0.000066, "s": 503.447403, "theta": 1.631128, "x":691212.786370, "y":3118655.358642, "dkappa":-0.000006}
{"kappa": -0.000067, "s": 503.708596, "theta": 1.631110, "x":691212.770623, "y":3118655.619359, "dkappa":-0.000006}
{"kappa": -0.000069, "s": 503.969794, "theta": 1.631092, "x":691212.754881, "y":3118655.880082, "dkappa":-0.000006}
{"kappa": -0.000070, "s": 504.230998, "theta": 1.631074, "x":691212.739144, "y":3118656.140812, "dkappa":-0.000006}
{"kappa": -0.000072, "s": 504.492209, "theta": 1.631056, "x":691212.723410, "y":3118656.401548, "dkappa":-0.000006}
{"kappa": -0.000073, "s": 504.753425, "theta": 1.631037, "x":691212.707682, "y":3118656.662291, "dkappa":-0.000005}
{"kappa": -0.000075, "s": 505.014648, "theta": 1.631017, "x":691212.691958, "y":3118656.923040, "dkappa":-0.000005}
{"kappa": -0.000076, "s": 505.275877, "theta": 1.630998, "x":691212.676238, "y":3118657.183795, "dkappa":-0.000005}
{"kappa": -0.000077, "s": 505.537112, "theta": 1.630978, "x":691212.660524, "y":3118657.444557, "dkappa":-0.000005}
{"kappa": -0.000079, "s": 505.798353, "theta": 1.630957, "x":691212.644814, "y":3118657.705325, "dkappa":-0.000005}
{"kappa": -0.000080, "s": 506.059600, "theta": 1.630937, "x":691212.629109, "y":3118657.966100, "dkappa":-0.000005}
{"kappa": -0.000081, "s": 506.320853, "theta": 1.630915, "x":691212.613410, "y":3118658.226881, "dkappa":-0.000005}
{"kappa": -0.000083, "s": 506.582112, "theta": 1.630894, "x":691212.597715, "y":3118658.487668, "dkappa":-0.000005}
{"kappa": -0.000084, "s": 506.843377, "theta": 1.630872, "x":691212.582026, "y":3118658.748462, "dkappa":-0.000004}
{"kappa": -0.000085, "s": 507.104649, "theta": 1.630850, "x":691212.566342, "y":3118659.009262, "dkappa":-0.000004}
{"kappa": -0.000086, "s": 507.365926, "theta": 1.630828, "x":691212.550664, "y":3118659.270069, "dkappa":-0.000004}
{"kappa": -0.000087, "s": 507.627209, "theta": 1.630805, "x":691212.534991, "y":3118659.530882, "dkappa":-0.000004}
{"kappa": -0.000088, "s": 507.888499, "theta": 1.630782, "x":691212.519323, "y":3118659.791701, "dkappa":-0.000004}
{"kappa": -0.000089, "s": 508.149794, "theta": 1.630759, "x":691212.503662, "y":3118660.052526, "dkappa":-0.000004}
{"kappa": -0.000090, "s": 508.411095, "theta": 1.630736, "x":691212.488006, "y":3118660.313358, "dkappa":-0.000004}
{"kappa": -0.000091, "s": 508.672403, "theta": 1.630712, "x":691212.472356, "y":3118660.574196, "dkappa":-0.000004}
{"kappa": -0.000092, "s": 508.933716, "theta": 1.630688, "x":691212.456711, "y":3118660.835041, "dkappa":-0.000004}
{"kappa": -0.000093, "s": 509.195035, "theta": 1.630664, "x":691212.441073, "y":3118661.095892, "dkappa":-0.000004}
{"kappa": -0.000094, "s": 509.456361, "theta": 1.630639, "x":691212.425441, "y":3118661.356749, "dkappa":-0.000003}
{"kappa": -0.000095, "s": 509.717692, "theta": 1.630615, "x":691212.409814, "y":3118661.617613, "dkappa":-0.000003}
{"kappa": -0.000096, "s": 509.979029, "theta": 1.630590, "x":691212.394194, "y":3118661.878483, "dkappa":-0.000003}
{"kappa": -0.000097, "s": 510.240372, "theta": 1.630565, "x":691212.378580, "y":3118662.139359, "dkappa":-0.000003}
{"kappa": -0.000097, "s": 510.501721, "theta": 1.630539, "x":691212.362972, "y":3118662.400242, "dkappa":-0.000003}
{"kappa": -0.000098, "s": 510.763076, "theta": 1.630514, "x":691212.347371, "y":3118662.661131, "dkappa":-0.000003}
{"kappa": -0.000099, "s": 511.024437, "theta": 1.630488, "x":691212.331775, "y":3118662.922026, "dkappa":-0.000003}
{"kappa": -0.000100, "s": 511.285804, "theta": 1.630462, "x":691212.316187, "y":3118663.182928, "dkappa":-0.000003}
{"kappa": -0.000100, "s": 511.547177, "theta": 1.630436, "x":691212.300604, "y":3118663.443835, "dkappa":-0.000003}
{"kappa": -0.000101, "s": 511.808556, "theta": 1.630410, "x":691212.285028, "y":3118663.704750, "dkappa":-0.000003}
{"kappa": -0.000102, "s": 512.069940, "theta": 1.630383, "x":691212.269459, "y":3118663.965670, "dkappa":-0.000002}
{"kappa": -0.000102, "s": 512.331331, "theta": 1.630356, "x":691212.253896, "y":3118664.226597, "dkappa":-0.000002}
{"kappa": -0.000103, "s": 512.592727, "theta": 1.630330, "x":691212.238340, "y":3118664.487530, "dkappa":-0.000002}
{"kappa": -0.000104, "s": 512.854129, "theta": 1.630303, "x":691212.222791, "y":3118664.748469, "dkappa":-0.000002}
{"kappa": -0.000104, "s": 513.115537, "theta": 1.630276, "x":691212.207248, "y":3118665.009415, "dkappa":-0.000002}
{"kappa": -0.000105, "s": 513.376951, "theta": 1.630248, "x":691212.191712, "y":3118665.270367, "dkappa":-0.000002}
{"kappa": -0.000105, "s": 513.638371, "theta": 1.630221, "x":691212.176183, "y":3118665.531325, "dkappa":-0.000002}
{"kappa": -0.000106, "s": 513.899797, "theta": 1.630193, "x":691212.160661, "y":3118665.792290, "dkappa":-0.000002}
{"kappa": -0.000106, "s": 514.161229, "theta": 1.630165, "x":691212.145145, "y":3118666.053260, "dkappa":-0.000002}
{"kappa": -0.000107, "s": 514.422666, "theta": 1.630138, "x":691212.129637, "y":3118666.314237, "dkappa":-0.000002}
{"kappa": -0.000107, "s": 514.684109, "theta": 1.630110, "x":691212.114135, "y":3118666.575221, "dkappa":-0.000002}
{"kappa": -0.000108, "s": 514.945558, "theta": 1.630082, "x":691212.098640, "y":3118666.836210, "dkappa":-0.000002}
{"kappa": -0.000108, "s": 515.207013, "theta": 1.630053, "x":691212.083153, "y":3118667.097206, "dkappa":-0.000002}
{"kappa": -0.000108, "s": 515.468474, "theta": 1.630025, "x":691212.067672, "y":3118667.358208, "dkappa":-0.000001}
{"kappa": -0.000109, "s": 515.729941, "theta": 1.629997, "x":691212.052198, "y":3118667.619216, "dkappa":-0.000001}
{"kappa": -0.000109, "s": 515.991413, "theta": 1.629968, "x":691212.036732, "y":3118667.880231, "dkappa":-0.000001}
{"kappa": -0.000110, "s": 516.252891, "theta": 1.629940, "x":691212.021272, "y":3118668.141252, "dkappa":-0.000001}
{"kappa": -0.000110, "s": 516.514375, "theta": 1.629911, "x":691212.005820, "y":3118668.402279, "dkappa":-0.000001}
{"kappa": -0.000110, "s": 516.775865, "theta": 1.629882, "x":691211.990375, "y":3118668.663312, "dkappa":-0.000001}
{"kappa": -0.000110, "s": 517.037361, "theta": 1.629853, "x":691211.974937, "y":3118668.924352, "dkappa":-0.000001}
{"kappa": -0.000111, "s": 517.298862, "theta": 1.629824, "x":691211.959506, "y":3118669.185397, "dkappa":-0.000001}
{"kappa": -0.000111, "s": 517.560369, "theta": 1.629795, "x":691211.944083, "y":3118669.446449, "dkappa":-0.000001}
{"kappa": -0.000111, "s": 517.821882, "theta": 1.629766, "x":691211.928666, "y":3118669.707507, "dkappa":-0.000001}
{"kappa": -0.000112, "s": 518.083401, "theta": 1.629737, "x":691211.913257, "y":3118669.968572, "dkappa":-0.000001}
{"kappa": -0.000112, "s": 518.344925, "theta": 1.629708, "x":691211.897856, "y":3118670.229642, "dkappa":-0.000001}
{"kappa": -0.000112, "s": 518.606456, "theta": 1.629679, "x":691211.882461, "y":3118670.490719, "dkappa":-0.000001}
{"kappa": -0.000112, "s": 518.867992, "theta": 1.629650, "x":691211.867074, "y":3118670.751802, "dkappa":-0.000001}
{"kappa": -0.000112, "s": 519.129534, "theta": 1.629620, "x":691211.851694, "y":3118671.012891, "dkappa":-0.000001}
{"kappa": -0.000113, "s": 519.391081, "theta": 1.629591, "x":691211.836322, "y":3118671.273987, "dkappa":-0.000001}
{"kappa": -0.000113, "s": 519.652634, "theta": 1.629561, "x":691211.820956, "y":3118671.535088, "dkappa":-0.000001}
{"kappa": -0.000113, "s": 519.914194, "theta": 1.629532, "x":691211.805599, "y":3118671.796196, "dkappa":-0.000001}
{"kappa": -0.000113, "s": 520.175758, "theta": 1.629502, "x":691211.790248, "y":3118672.057310, "dkappa":-0.000001}
{"kappa": -0.000113, "s": 520.437329, "theta": 1.629473, "x":691211.774905, "y":3118672.318430, "dkappa":-0.000000}
{"kappa": -0.000113, "s": 520.698905, "theta": 1.629443, "x":691211.759569, "y":3118672.579557, "dkappa":-0.000000}
{"kappa": -0.000113, "s": 520.960487, "theta": 1.629413, "x":691211.744241, "y":3118672.840689, "dkappa":-0.000000}
{"kappa": -0.000113, "s": 521.222075, "theta": 1.629384, "x":691211.728920, "y":3118673.101828, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 521.483669, "theta": 1.629354, "x":691211.713607, "y":3118673.362973, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 521.745268, "theta": 1.629324, "x":691211.698301, "y":3118673.624124, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 522.006873, "theta": 1.629295, "x":691211.683002, "y":3118673.885281, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 522.268483, "theta": 1.629265, "x":691211.667711, "y":3118674.146445, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 522.530100, "theta": 1.629235, "x":691211.652427, "y":3118674.407614, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 522.791722, "theta": 1.629205, "x":691211.637151, "y":3118674.668790, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 523.053350, "theta": 1.629176, "x":691211.621882, "y":3118674.929972, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 523.314983, "theta": 1.629146, "x":691211.606621, "y":3118675.191160, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 523.576622, "theta": 1.629116, "x":691211.591367, "y":3118675.452354, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 523.838267, "theta": 1.629086, "x":691211.576120, "y":3118675.713555, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 524.099918, "theta": 1.629056, "x":691211.560881, "y":3118675.974761, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 524.361574, "theta": 1.629026, "x":691211.545650, "y":3118676.235974, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 524.623237, "theta": 1.628997, "x":691211.530426, "y":3118676.497192, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 524.884904, "theta": 1.628967, "x":691211.515209, "y":3118676.758417, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 525.146578, "theta": 1.628937, "x":691211.500000, "y":3118677.019648, "dkappa":-0.000000}
{"kappa": -0.000114, "s": 525.408257, "theta": 1.628907, "x":691211.484798, "y":3118677.280886, "dkappa":0.000000}
{"kappa": -0.000114, "s": 525.669942, "theta": 1.628877, "x":691211.469604, "y":3118677.542129, "dkappa":0.000000}
{"kappa": -0.000114, "s": 525.931632, "theta": 1.628847, "x":691211.454417, "y":3118677.803379, "dkappa":0.000000}
{"kappa": -0.000114, "s": 526.193329, "theta": 1.628817, "x":691211.439238, "y":3118678.064634, "dkappa":0.000000}
{"kappa": -0.000114, "s": 526.455030, "theta": 1.628788, "x":691211.424066, "y":3118678.325896, "dkappa":0.000000}
{"kappa": -0.000114, "s": 526.716738, "theta": 1.628758, "x":691211.408902, "y":3118678.587164, "dkappa":0.000000}
{"kappa": -0.000114, "s": 526.978451, "theta": 1.628728, "x":691211.393745, "y":3118678.848438, "dkappa":0.000000}
{"kappa": -0.000114, "s": 527.240170, "theta": 1.628698, "x":691211.378595, "y":3118679.109718, "dkappa":0.000000}
{"kappa": -0.000114, "s": 527.501895, "theta": 1.628668, "x":691211.363453, "y":3118679.371004, "dkappa":0.000000}
{"kappa": -0.000114, "s": 527.763625, "theta": 1.628638, "x":691211.348319, "y":3118679.632297, "dkappa":0.000000}
{"kappa": -0.000114, "s": 528.025361, "theta": 1.628609, "x":691211.333192, "y":3118679.893595, "dkappa":0.000000}
{"kappa": -0.000114, "s": 528.287103, "theta": 1.628579, "x":691211.318072, "y":3118680.154900, "dkappa":0.000000}
{"kappa": -0.000114, "s": 528.548851, "theta": 1.628549, "x":691211.302960, "y":3118680.416211, "dkappa":0.000000}
{"kappa": -0.000114, "s": 528.810604, "theta": 1.628519, "x":691211.287856, "y":3118680.677528, "dkappa":0.000000}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map/testdata | apollo_public_repos/apollo/modules/map/relative_map/testdata/multi_lane_map/left.smoothed | {"kappa": -0.001497, "s": 0.000000, "theta": 1.558437, "x":691186.458946, "y":3118160.240633, "dkappa":0.000002}
{"kappa": -0.001496, "s": 0.393829, "theta": 1.557848, "x":691186.463929, "y":3118160.634430, "dkappa":0.000003}
{"kappa": -0.001495, "s": 0.787686, "theta": 1.557259, "x":691186.469145, "y":3118161.028253, "dkappa":0.000003}
{"kappa": -0.001494, "s": 1.181572, "theta": 1.556670, "x":691186.474593, "y":3118161.422101, "dkappa":0.000004}
{"kappa": -0.001492, "s": 1.575485, "theta": 1.556082, "x":691186.480273, "y":3118161.815973, "dkappa":0.000005}
{"kappa": -0.001490, "s": 1.969427, "theta": 1.555495, "x":691186.486185, "y":3118162.209871, "dkappa":0.000006}
{"kappa": -0.001487, "s": 2.363397, "theta": 1.554908, "x":691186.492329, "y":3118162.603793, "dkappa":0.000007}
{"kappa": -0.001484, "s": 2.757396, "theta": 1.554323, "x":691186.498704, "y":3118162.997741, "dkappa":0.000007}
{"kappa": -0.001481, "s": 3.151424, "theta": 1.553739, "x":691186.505310, "y":3118163.391713, "dkappa":0.000008}
{"kappa": -0.001478, "s": 3.545481, "theta": 1.553156, "x":691186.512146, "y":3118163.785711, "dkappa":0.000009}
{"kappa": -0.001474, "s": 3.939567, "theta": 1.552574, "x":691186.519212, "y":3118164.179733, "dkappa":0.000010}
{"kappa": -0.001470, "s": 4.333682, "theta": 1.551994, "x":691186.526507, "y":3118164.573781, "dkappa":0.000010}
{"kappa": -0.001466, "s": 4.727827, "theta": 1.551416, "x":691186.534032, "y":3118164.967853, "dkappa":0.000011}
{"kappa": -0.001461, "s": 5.122001, "theta": 1.550839, "x":691186.541784, "y":3118165.361951, "dkappa":0.000012}
{"kappa": -0.001456, "s": 5.516204, "theta": 1.550264, "x":691186.549765, "y":3118165.756074, "dkappa":0.000013}
{"kappa": -0.001451, "s": 5.910438, "theta": 1.549690, "x":691186.557972, "y":3118166.150222, "dkappa":0.000013}
{"kappa": -0.001446, "s": 6.304701, "theta": 1.549119, "x":691186.566405, "y":3118166.544395, "dkappa":0.000014}
{"kappa": -0.001440, "s": 6.698995, "theta": 1.548550, "x":691186.575064, "y":3118166.938594, "dkappa":0.000015}
{"kappa": -0.001435, "s": 7.093318, "theta": 1.547983, "x":691186.583947, "y":3118167.332817, "dkappa":0.000015}
{"kappa": -0.001428, "s": 7.487673, "theta": 1.547419, "x":691186.593054, "y":3118167.727066, "dkappa":0.000016}
{"kappa": -0.001422, "s": 7.882057, "theta": 1.546857, "x":691186.602384, "y":3118168.121341, "dkappa":0.000016}
{"kappa": -0.001415, "s": 8.276472, "theta": 1.546297, "x":691186.611936, "y":3118168.515640, "dkappa":0.000017}
{"kappa": -0.001409, "s": 8.670918, "theta": 1.545740, "x":691186.621708, "y":3118168.909965, "dkappa":0.000018}
{"kappa": -0.001402, "s": 9.065395, "theta": 1.545186, "x":691186.631701, "y":3118169.304315, "dkappa":0.000018}
{"kappa": -0.001394, "s": 9.459903, "theta": 1.544634, "x":691186.641912, "y":3118169.698691, "dkappa":0.000019}
{"kappa": -0.001387, "s": 9.854442, "theta": 1.544086, "x":691186.652341, "y":3118170.093092, "dkappa":0.000019}
{"kappa": -0.001379, "s": 10.249013, "theta": 1.543540, "x":691186.662987, "y":3118170.487519, "dkappa":0.000020}
{"kappa": -0.001371, "s": 10.643615, "theta": 1.542997, "x":691186.673848, "y":3118170.881972, "dkappa":0.000020}
{"kappa": -0.001363, "s": 11.038248, "theta": 1.542458, "x":691186.684924, "y":3118171.276450, "dkappa":0.000021}
{"kappa": -0.001355, "s": 11.432913, "theta": 1.541921, "x":691186.696212, "y":3118171.670953, "dkappa":0.000021}
{"kappa": -0.001347, "s": 11.827610, "theta": 1.541388, "x":691186.707713, "y":3118172.065482, "dkappa":0.000022}
{"kappa": -0.001338, "s": 12.222339, "theta": 1.540858, "x":691186.719424, "y":3118172.460038, "dkappa":0.000022}
{"kappa": -0.001329, "s": 12.617100, "theta": 1.540332, "x":691186.731345, "y":3118172.854618, "dkappa":0.000022}
{"kappa": -0.001320, "s": 13.011893, "theta": 1.539809, "x":691186.743474, "y":3118173.249225, "dkappa":0.000023}
{"kappa": -0.001311, "s": 13.406718, "theta": 1.539289, "x":691186.755809, "y":3118173.643858, "dkappa":0.000023}
{"kappa": -0.001302, "s": 13.801576, "theta": 1.538773, "x":691186.768350, "y":3118174.038516, "dkappa":0.000024}
{"kappa": -0.001292, "s": 14.196466, "theta": 1.538261, "x":691186.781095, "y":3118174.433200, "dkappa":0.000024}
{"kappa": -0.001283, "s": 14.591389, "theta": 1.537752, "x":691186.794042, "y":3118174.827911, "dkappa":0.000024}
{"kappa": -0.001273, "s": 14.986344, "theta": 1.537248, "x":691186.807190, "y":3118175.222647, "dkappa":0.000025}
{"kappa": -0.001263, "s": 15.381332, "theta": 1.536747, "x":691186.820538, "y":3118175.617410, "dkappa":0.000025}
{"kappa": -0.001253, "s": 15.776353, "theta": 1.536250, "x":691186.834084, "y":3118176.012199, "dkappa":0.000025}
{"kappa": -0.001243, "s": 16.171407, "theta": 1.535757, "x":691186.847826, "y":3118176.407014, "dkappa":0.000026}
{"kappa": -0.001233, "s": 16.566495, "theta": 1.535268, "x":691186.861764, "y":3118176.801855, "dkappa":0.000026}
{"kappa": -0.001222, "s": 16.961615, "theta": 1.534782, "x":691186.875895, "y":3118177.196723, "dkappa":0.000026}
{"kappa": -0.001212, "s": 17.356769, "theta": 1.534301, "x":691186.890218, "y":3118177.591617, "dkappa":0.000027}
{"kappa": -0.001201, "s": 17.751956, "theta": 1.533825, "x":691186.904731, "y":3118177.986537, "dkappa":0.000027}
{"kappa": -0.001191, "s": 18.147176, "theta": 1.533352, "x":691186.919433, "y":3118178.381484, "dkappa":0.000027}
{"kappa": -0.001180, "s": 18.542431, "theta": 1.532883, "x":691186.934323, "y":3118178.776458, "dkappa":0.000027}
{"kappa": -0.001169, "s": 18.937718, "theta": 1.532419, "x":691186.949398, "y":3118179.171458, "dkappa":0.000028}
{"kappa": -0.001158, "s": 19.333040, "theta": 1.531959, "x":691186.964656, "y":3118179.566485, "dkappa":0.000028}
{"kappa": -0.001147, "s": 19.728395, "theta": 1.531503, "x":691186.980097, "y":3118179.961538, "dkappa":0.000028}
{"kappa": -0.001136, "s": 20.123784, "theta": 1.531052, "x":691186.995718, "y":3118180.356618, "dkappa":0.000028}
{"kappa": -0.001125, "s": 20.519206, "theta": 1.530605, "x":691187.011518, "y":3118180.751726, "dkappa":0.000028}
{"kappa": -0.001114, "s": 20.914663, "theta": 1.530162, "x":691187.027496, "y":3118181.146859, "dkappa":0.000028}
{"kappa": -0.001102, "s": 21.310154, "theta": 1.529724, "x":691187.043648, "y":3118181.542020, "dkappa":0.000029}
{"kappa": -0.001091, "s": 21.705679, "theta": 1.529290, "x":691187.059975, "y":3118181.937208, "dkappa":0.000029}
{"kappa": -0.001080, "s": 22.101238, "theta": 1.528861, "x":691187.076473, "y":3118182.332423, "dkappa":0.000029}
{"kappa": -0.001068, "s": 22.496832, "theta": 1.528436, "x":691187.093142, "y":3118182.727665, "dkappa":0.000029}
{"kappa": -0.001057, "s": 22.892459, "theta": 1.528016, "x":691187.109979, "y":3118183.122934, "dkappa":0.000029}
{"kappa": -0.001045, "s": 23.288121, "theta": 1.527600, "x":691187.126983, "y":3118183.518231, "dkappa":0.000029}
{"kappa": -0.001034, "s": 23.683817, "theta": 1.527188, "x":691187.144152, "y":3118183.913554, "dkappa":0.000029}
{"kappa": -0.001022, "s": 24.079548, "theta": 1.526782, "x":691187.161484, "y":3118184.308905, "dkappa":0.000029}
{"kappa": -0.001011, "s": 24.475313, "theta": 1.526379, "x":691187.178977, "y":3118184.704283, "dkappa":0.000030}
{"kappa": -0.000999, "s": 24.871113, "theta": 1.525982, "x":691187.196631, "y":3118185.099689, "dkappa":0.000030}
{"kappa": -0.000987, "s": 25.266947, "theta": 1.525589, "x":691187.214442, "y":3118185.495122, "dkappa":0.000030}
{"kappa": -0.000975, "s": 25.662815, "theta": 1.525200, "x":691187.232409, "y":3118185.890583, "dkappa":0.000030}
{"kappa": -0.000963, "s": 26.058719, "theta": 1.524817, "x":691187.250530, "y":3118186.286071, "dkappa":0.000030}
{"kappa": -0.000952, "s": 26.454657, "theta": 1.524438, "x":691187.268804, "y":3118186.681587, "dkappa":0.000029}
{"kappa": -0.000940, "s": 26.850629, "theta": 1.524063, "x":691187.287228, "y":3118187.077131, "dkappa":0.000029}
{"kappa": -0.000928, "s": 27.246636, "theta": 1.523693, "x":691187.305801, "y":3118187.472702, "dkappa":0.000029}
{"kappa": -0.000917, "s": 27.642678, "theta": 1.523328, "x":691187.324522, "y":3118187.868302, "dkappa":0.000029}
{"kappa": -0.000906, "s": 28.038755, "theta": 1.522967, "x":691187.343387, "y":3118188.263929, "dkappa":0.000029}
{"kappa": -0.000894, "s": 28.434866, "theta": 1.522610, "x":691187.362397, "y":3118188.659584, "dkappa":0.000029}
{"kappa": -0.000883, "s": 28.831012, "theta": 1.522258, "x":691187.381548, "y":3118189.055267, "dkappa":0.000028}
{"kappa": -0.000872, "s": 29.227193, "theta": 1.521911, "x":691187.400839, "y":3118189.450977, "dkappa":0.000028}
{"kappa": -0.000861, "s": 29.623409, "theta": 1.521568, "x":691187.420269, "y":3118189.846716, "dkappa":0.000028}
{"kappa": -0.000850, "s": 30.019659, "theta": 1.521229, "x":691187.439835, "y":3118190.242483, "dkappa":0.000028}
{"kappa": -0.000839, "s": 30.415944, "theta": 1.520894, "x":691187.459536, "y":3118190.638279, "dkappa":0.000028}
{"kappa": -0.000828, "s": 30.812264, "theta": 1.520564, "x":691187.479370, "y":3118191.034102, "dkappa":0.000027}
{"kappa": -0.000817, "s": 31.208619, "theta": 1.520238, "x":691187.499336, "y":3118191.429953, "dkappa":0.000027}
{"kappa": -0.000806, "s": 31.605009, "theta": 1.519917, "x":691187.519432, "y":3118191.825833, "dkappa":0.000027}
{"kappa": -0.000795, "s": 32.001433, "theta": 1.519599, "x":691187.539657, "y":3118192.221741, "dkappa":0.000027}
{"kappa": -0.000785, "s": 32.397892, "theta": 1.519286, "x":691187.560007, "y":3118192.617678, "dkappa":0.000027}
{"kappa": -0.000774, "s": 32.794386, "theta": 1.518977, "x":691187.580483, "y":3118193.013643, "dkappa":0.000026}
{"kappa": -0.000764, "s": 33.190915, "theta": 1.518672, "x":691187.601082, "y":3118193.409636, "dkappa":0.000026}
{"kappa": -0.000753, "s": 33.587478, "theta": 1.518371, "x":691187.621803, "y":3118193.805658, "dkappa":0.000026}
{"kappa": -0.000743, "s": 33.984076, "theta": 1.518075, "x":691187.642644, "y":3118194.201708, "dkappa":0.000026}
{"kappa": -0.000733, "s": 34.380709, "theta": 1.517782, "x":691187.663604, "y":3118194.597786, "dkappa":0.000026}
{"kappa": -0.000723, "s": 34.777376, "theta": 1.517493, "x":691187.684680, "y":3118194.993894, "dkappa":0.000025}
{"kappa": -0.000713, "s": 35.174079, "theta": 1.517209, "x":691187.705872, "y":3118195.390029, "dkappa":0.000025}
{"kappa": -0.000703, "s": 35.570816, "theta": 1.516928, "x":691187.727178, "y":3118195.786194, "dkappa":0.000025}
{"kappa": -0.000693, "s": 35.967587, "theta": 1.516651, "x":691187.748596, "y":3118196.182387, "dkappa":0.000025}
{"kappa": -0.000683, "s": 36.364393, "theta": 1.516378, "x":691187.770125, "y":3118196.578609, "dkappa":0.000024}
{"kappa": -0.000673, "s": 36.761234, "theta": 1.516109, "x":691187.791763, "y":3118196.974859, "dkappa":0.000024}
{"kappa": -0.000664, "s": 37.158110, "theta": 1.515844, "x":691187.813509, "y":3118197.371138, "dkappa":0.000024}
{"kappa": -0.000654, "s": 37.555020, "theta": 1.515582, "x":691187.835361, "y":3118197.767446, "dkappa":0.000024}
{"kappa": -0.000645, "s": 37.951964, "theta": 1.515324, "x":691187.857318, "y":3118198.163783, "dkappa":0.000024}
{"kappa": -0.000636, "s": 38.348943, "theta": 1.515070, "x":691187.879379, "y":3118198.560149, "dkappa":0.000023}
{"kappa": -0.000627, "s": 38.745957, "theta": 1.514819, "x":691187.901542, "y":3118198.956543, "dkappa":0.000023}
{"kappa": -0.000617, "s": 39.143004, "theta": 1.514572, "x":691187.923805, "y":3118199.352966, "dkappa":0.000023}
{"kappa": -0.000608, "s": 39.540087, "theta": 1.514329, "x":691187.946167, "y":3118199.749418, "dkappa":0.000022}
{"kappa": -0.000600, "s": 39.937203, "theta": 1.514089, "x":691187.968627, "y":3118200.145899, "dkappa":0.000022}
{"kappa": -0.000591, "s": 40.334354, "theta": 1.513853, "x":691187.991183, "y":3118200.542409, "dkappa":0.000022}
{"kappa": -0.000582, "s": 40.731540, "theta": 1.513620, "x":691188.013834, "y":3118200.938948, "dkappa":0.000022}
{"kappa": -0.000574, "s": 41.128759, "theta": 1.513390, "x":691188.036579, "y":3118201.335516, "dkappa":0.000021}
{"kappa": -0.000565, "s": 41.526013, "theta": 1.513164, "x":691188.059417, "y":3118201.732112, "dkappa":0.000021}
{"kappa": -0.000557, "s": 41.923301, "theta": 1.512941, "x":691188.082345, "y":3118202.128738, "dkappa":0.000021}
{"kappa": -0.000549, "s": 42.320622, "theta": 1.512721, "x":691188.105363, "y":3118202.525393, "dkappa":0.000021}
{"kappa": -0.000540, "s": 42.717979, "theta": 1.512505, "x":691188.128469, "y":3118202.922076, "dkappa":0.000020}
{"kappa": -0.000532, "s": 43.115369, "theta": 1.512292, "x":691188.151663, "y":3118203.318789, "dkappa":0.000020}
{"kappa": -0.000525, "s": 43.512793, "theta": 1.512082, "x":691188.174943, "y":3118203.715531, "dkappa":0.000020}
{"kappa": -0.000517, "s": 43.910251, "theta": 1.511875, "x":691188.198307, "y":3118204.112301, "dkappa":0.000019}
{"kappa": -0.000509, "s": 44.307743, "theta": 1.511671, "x":691188.221755, "y":3118204.509101, "dkappa":0.000019}
{"kappa": -0.000502, "s": 44.705268, "theta": 1.511470, "x":691188.245285, "y":3118204.905930, "dkappa":0.000019}
{"kappa": -0.000494, "s": 45.102828, "theta": 1.511272, "x":691188.268896, "y":3118205.302787, "dkappa":0.000019}
{"kappa": -0.000487, "s": 45.500421, "theta": 1.511077, "x":691188.292587, "y":3118205.699674, "dkappa":0.000018}
{"kappa": -0.000480, "s": 45.898048, "theta": 1.510885, "x":691188.316357, "y":3118206.096590, "dkappa":0.000018}
{"kappa": -0.000473, "s": 46.295709, "theta": 1.510696, "x":691188.340205, "y":3118206.493535, "dkappa":0.000018}
{"kappa": -0.000466, "s": 46.693403, "theta": 1.510509, "x":691188.364130, "y":3118206.890509, "dkappa":0.000017}
{"kappa": -0.000459, "s": 47.091131, "theta": 1.510325, "x":691188.388130, "y":3118207.287512, "dkappa":0.000017}
{"kappa": -0.000452, "s": 47.488892, "theta": 1.510144, "x":691188.412204, "y":3118207.684544, "dkappa":0.000017}
{"kappa": -0.000446, "s": 47.886686, "theta": 1.509965, "x":691188.436352, "y":3118208.081605, "dkappa":0.000016}
{"kappa": -0.000439, "s": 48.284514, "theta": 1.509789, "x":691188.460572, "y":3118208.478695, "dkappa":0.000016}
{"kappa": -0.000433, "s": 48.682376, "theta": 1.509616, "x":691188.484864, "y":3118208.875814, "dkappa":0.000016}
{"kappa": -0.000427, "s": 49.080270, "theta": 1.509445, "x":691188.509226, "y":3118209.272962, "dkappa":0.000016}
{"kappa": -0.000420, "s": 49.478198, "theta": 1.509276, "x":691188.533658, "y":3118209.670139, "dkappa":0.000016}
{"kappa": -0.000414, "s": 49.876159, "theta": 1.509110, "x":691188.558158, "y":3118210.067345, "dkappa":0.000016}
{"kappa": -0.000408, "s": 50.274153, "theta": 1.508947, "x":691188.582726, "y":3118210.464580, "dkappa":0.000015}
{"kappa": -0.000402, "s": 50.672180, "theta": 1.508786, "x":691188.607360, "y":3118210.861844, "dkappa":0.000015}
{"kappa": -0.000396, "s": 51.070240, "theta": 1.508627, "x":691188.632060, "y":3118211.259137, "dkappa":0.000015}
{"kappa": -0.000390, "s": 51.468333, "theta": 1.508471, "x":691188.656824, "y":3118211.656459, "dkappa":0.000015}
{"kappa": -0.000384, "s": 51.866459, "theta": 1.508317, "x":691188.681652, "y":3118212.053810, "dkappa":0.000015}
{"kappa": -0.000378, "s": 52.264617, "theta": 1.508165, "x":691188.706543, "y":3118212.451189, "dkappa":0.000014}
{"kappa": -0.000372, "s": 52.662808, "theta": 1.508016, "x":691188.731495, "y":3118212.848598, "dkappa":0.000014}
{"kappa": -0.000367, "s": 53.061032, "theta": 1.507869, "x":691188.756509, "y":3118213.246036, "dkappa":0.000014}
{"kappa": -0.000361, "s": 53.459289, "theta": 1.507724, "x":691188.781582, "y":3118213.643502, "dkappa":0.000014}
{"kappa": -0.000356, "s": 53.857578, "theta": 1.507581, "x":691188.806715, "y":3118214.040997, "dkappa":0.000014}
{"kappa": -0.000350, "s": 54.255899, "theta": 1.507441, "x":691188.831906, "y":3118214.438521, "dkappa":0.000014}
{"kappa": -0.000345, "s": 54.654253, "theta": 1.507302, "x":691188.857155, "y":3118214.836074, "dkappa":0.000013}
{"kappa": -0.000340, "s": 55.052639, "theta": 1.507166, "x":691188.882460, "y":3118215.233656, "dkappa":0.000013}
{"kappa": -0.000334, "s": 55.451058, "theta": 1.507032, "x":691188.907822, "y":3118215.631266, "dkappa":0.000013}
{"kappa": -0.000329, "s": 55.849508, "theta": 1.506899, "x":691188.933238, "y":3118216.028906, "dkappa":0.000013}
{"kappa": -0.000324, "s": 56.247991, "theta": 1.506769, "x":691188.958708, "y":3118216.426574, "dkappa":0.000013}
{"kappa": -0.000319, "s": 56.646506, "theta": 1.506641, "x":691188.984232, "y":3118216.824270, "dkappa":0.000012}
{"kappa": -0.000314, "s": 57.045053, "theta": 1.506515, "x":691189.009809, "y":3118217.221996, "dkappa":0.000012}
{"kappa": -0.000309, "s": 57.443632, "theta": 1.506391, "x":691189.035437, "y":3118217.619750, "dkappa":0.000012}
{"kappa": -0.000305, "s": 57.842243, "theta": 1.506268, "x":691189.061116, "y":3118218.017532, "dkappa":0.000012}
{"kappa": -0.000300, "s": 58.240885, "theta": 1.506148, "x":691189.086846, "y":3118218.415344, "dkappa":0.000012}
{"kappa": -0.000295, "s": 58.639559, "theta": 1.506029, "x":691189.112625, "y":3118218.813184, "dkappa":0.000012}
{"kappa": -0.000291, "s": 59.038265, "theta": 1.505912, "x":691189.138454, "y":3118219.211052, "dkappa":0.000011}
{"kappa": -0.000286, "s": 59.437003, "theta": 1.505798, "x":691189.164330, "y":3118219.608949, "dkappa":0.000011}
{"kappa": -0.000282, "s": 59.835772, "theta": 1.505684, "x":691189.190254, "y":3118220.006874, "dkappa":0.000011}
{"kappa": -0.000277, "s": 60.234572, "theta": 1.505573, "x":691189.216225, "y":3118220.404828, "dkappa":0.000011}
{"kappa": -0.000273, "s": 60.633404, "theta": 1.505463, "x":691189.242241, "y":3118220.802811, "dkappa":0.000011}
{"kappa": -0.000269, "s": 61.032267, "theta": 1.505355, "x":691189.268303, "y":3118221.200822, "dkappa":0.000011}
{"kappa": -0.000264, "s": 61.431162, "theta": 1.505249, "x":691189.294410, "y":3118221.598861, "dkappa":0.000010}
{"kappa": -0.000260, "s": 61.830087, "theta": 1.505144, "x":691189.320561, "y":3118221.996928, "dkappa":0.000010}
{"kappa": -0.000256, "s": 62.229044, "theta": 1.505041, "x":691189.346755, "y":3118222.395024, "dkappa":0.000010}
{"kappa": -0.000252, "s": 62.628032, "theta": 1.504940, "x":691189.372992, "y":3118222.793149, "dkappa":0.000010}
{"kappa": -0.000248, "s": 63.027051, "theta": 1.504840, "x":691189.399270, "y":3118223.191301, "dkappa":0.000010}
{"kappa": -0.000244, "s": 63.426100, "theta": 1.504742, "x":691189.425591, "y":3118223.589482, "dkappa":0.000010}
{"kappa": -0.000240, "s": 63.825181, "theta": 1.504645, "x":691189.451952, "y":3118223.987691, "dkappa":0.000010}
{"kappa": -0.000236, "s": 64.224292, "theta": 1.504550, "x":691189.478353, "y":3118224.385928, "dkappa":0.000010}
{"kappa": -0.000233, "s": 64.623434, "theta": 1.504456, "x":691189.504794, "y":3118224.784193, "dkappa":0.000009}
{"kappa": -0.000229, "s": 65.022606, "theta": 1.504364, "x":691189.531275, "y":3118225.182486, "dkappa":0.000009}
{"kappa": -0.000225, "s": 65.421809, "theta": 1.504274, "x":691189.557793, "y":3118225.580807, "dkappa":0.000009}
{"kappa": -0.000222, "s": 65.821043, "theta": 1.504184, "x":691189.584349, "y":3118225.979156, "dkappa":0.000009}
{"kappa": -0.000218, "s": 66.220307, "theta": 1.504096, "x":691189.610943, "y":3118226.377534, "dkappa":0.000009}
{"kappa": -0.000215, "s": 66.619601, "theta": 1.504010, "x":691189.637574, "y":3118226.775939, "dkappa":0.000009}
{"kappa": -0.000211, "s": 67.018925, "theta": 1.503925, "x":691189.664240, "y":3118227.174372, "dkappa":0.000009}
{"kappa": -0.000208, "s": 67.418280, "theta": 1.503841, "x":691189.690942, "y":3118227.572833, "dkappa":0.000008}
{"kappa": -0.000204, "s": 67.817665, "theta": 1.503759, "x":691189.717680, "y":3118227.971322, "dkappa":0.000008}
{"kappa": -0.000201, "s": 68.217079, "theta": 1.503678, "x":691189.744451, "y":3118228.369838, "dkappa":0.000008}
{"kappa": -0.000198, "s": 68.616524, "theta": 1.503598, "x":691189.771257, "y":3118228.768382, "dkappa":0.000008}
{"kappa": -0.000195, "s": 69.015999, "theta": 1.503520, "x":691189.798097, "y":3118229.166954, "dkappa":0.000008}
{"kappa": -0.000191, "s": 69.415503, "theta": 1.503443, "x":691189.824969, "y":3118229.565554, "dkappa":0.000008}
{"kappa": -0.000188, "s": 69.815037, "theta": 1.503367, "x":691189.851874, "y":3118229.964181, "dkappa":0.000008}
{"kappa": -0.000185, "s": 70.214601, "theta": 1.503292, "x":691189.878811, "y":3118230.362836, "dkappa":0.000008}
{"kappa": -0.000182, "s": 70.614194, "theta": 1.503219, "x":691189.905779, "y":3118230.761518, "dkappa":0.000008}
{"kappa": -0.000179, "s": 71.013817, "theta": 1.503147, "x":691189.932778, "y":3118231.160228, "dkappa":0.000008}
{"kappa": -0.000176, "s": 71.413469, "theta": 1.503076, "x":691189.959808, "y":3118231.558965, "dkappa":0.000007}
{"kappa": -0.000173, "s": 71.813151, "theta": 1.503006, "x":691189.986868, "y":3118231.957730, "dkappa":0.000007}
{"kappa": -0.000170, "s": 72.212862, "theta": 1.502937, "x":691190.013958, "y":3118232.356521, "dkappa":0.000007}
{"kappa": -0.000167, "s": 72.612602, "theta": 1.502870, "x":691190.041076, "y":3118232.755341, "dkappa":0.000007}
{"kappa": -0.000165, "s": 73.012371, "theta": 1.502803, "x":691190.068224, "y":3118233.154187, "dkappa":0.000007}
{"kappa": -0.000162, "s": 73.412170, "theta": 1.502738, "x":691190.095399, "y":3118233.553061, "dkappa":0.000007}
{"kappa": -0.000159, "s": 73.811997, "theta": 1.502674, "x":691190.122602, "y":3118233.951962, "dkappa":0.000007}
{"kappa": -0.000156, "s": 74.211853, "theta": 1.502611, "x":691190.149833, "y":3118234.350890, "dkappa":0.000007}
{"kappa": -0.000154, "s": 74.611739, "theta": 1.502549, "x":691190.177091, "y":3118234.749845, "dkappa":0.000007}
{"kappa": -0.000151, "s": 75.011652, "theta": 1.502488, "x":691190.204375, "y":3118235.148827, "dkappa":0.000007}
{"kappa": -0.000148, "s": 75.411595, "theta": 1.502428, "x":691190.231685, "y":3118235.547836, "dkappa":0.000006}
{"kappa": -0.000146, "s": 75.811566, "theta": 1.502369, "x":691190.259021, "y":3118235.946872, "dkappa":0.000006}
{"kappa": -0.000143, "s": 76.211566, "theta": 1.502311, "x":691190.286382, "y":3118236.345935, "dkappa":0.000006}
{"kappa": -0.000141, "s": 76.611594, "theta": 1.502255, "x":691190.313767, "y":3118236.745024, "dkappa":0.000006}
{"kappa": -0.000138, "s": 77.011651, "theta": 1.502199, "x":691190.341178, "y":3118237.144141, "dkappa":0.000006}
{"kappa": -0.000136, "s": 77.411736, "theta": 1.502144, "x":691190.368612, "y":3118237.543284, "dkappa":0.000006}
{"kappa": -0.000133, "s": 77.811849, "theta": 1.502090, "x":691190.396070, "y":3118237.942454, "dkappa":0.000006}
{"kappa": -0.000131, "s": 78.211990, "theta": 1.502037, "x":691190.423551, "y":3118238.341651, "dkappa":0.000006}
{"kappa": -0.000129, "s": 78.612160, "theta": 1.501985, "x":691190.451055, "y":3118238.740874, "dkappa":0.000006}
{"kappa": -0.000126, "s": 79.012357, "theta": 1.501934, "x":691190.478582, "y":3118239.140123, "dkappa":0.000006}
{"kappa": -0.000124, "s": 79.412582, "theta": 1.501884, "x":691190.506130, "y":3118239.539399, "dkappa":0.000006}
{"kappa": -0.000122, "s": 79.812836, "theta": 1.501835, "x":691190.533701, "y":3118239.938702, "dkappa":0.000006}
{"kappa": -0.000119, "s": 80.213117, "theta": 1.501787, "x":691190.561293, "y":3118240.338031, "dkappa":0.000006}
{"kappa": -0.000117, "s": 80.613426, "theta": 1.501739, "x":691190.588905, "y":3118240.737386, "dkappa":0.000006}
{"kappa": -0.000115, "s": 81.013762, "theta": 1.501693, "x":691190.616539, "y":3118241.136768, "dkappa":0.000006}
{"kappa": -0.000113, "s": 81.414126, "theta": 1.501647, "x":691190.644192, "y":3118241.536176, "dkappa":0.000005}
{"kappa": -0.000110, "s": 81.814517, "theta": 1.501603, "x":691190.671866, "y":3118241.935610, "dkappa":0.000005}
{"kappa": -0.000108, "s": 82.214936, "theta": 1.501559, "x":691190.699559, "y":3118242.335070, "dkappa":0.000005}
{"kappa": -0.000106, "s": 82.615383, "theta": 1.501516, "x":691190.727271, "y":3118242.734556, "dkappa":0.000005}
{"kappa": -0.000104, "s": 83.015856, "theta": 1.501474, "x":691190.755003, "y":3118243.134068, "dkappa":0.000005}
{"kappa": -0.000102, "s": 83.416357, "theta": 1.501433, "x":691190.782752, "y":3118243.533606, "dkappa":0.000005}
{"kappa": -0.000100, "s": 83.816885, "theta": 1.501392, "x":691190.810520, "y":3118243.933171, "dkappa":0.000005}
{"kappa": -0.000098, "s": 84.217440, "theta": 1.501352, "x":691190.838306, "y":3118244.332761, "dkappa":0.000005}
{"kappa": -0.000096, "s": 84.618021, "theta": 1.501314, "x":691190.866110, "y":3118244.732376, "dkappa":0.000005}
{"kappa": -0.000094, "s": 85.018630, "theta": 1.501276, "x":691190.893930, "y":3118245.132018, "dkappa":0.000005}
{"kappa": -0.000092, "s": 85.419266, "theta": 1.501238, "x":691190.921768, "y":3118245.531685, "dkappa":0.000005}
{"kappa": -0.000090, "s": 85.819928, "theta": 1.501202, "x":691190.949622, "y":3118245.931378, "dkappa":0.000005}
{"kappa": -0.000088, "s": 86.220617, "theta": 1.501166, "x":691190.977492, "y":3118246.331097, "dkappa":0.000005}
{"kappa": -0.000086, "s": 86.621333, "theta": 1.501131, "x":691191.005378, "y":3118246.730841, "dkappa":0.000005}
{"kappa": -0.000084, "s": 87.022075, "theta": 1.501097, "x":691191.033280, "y":3118247.130610, "dkappa":0.000005}
{"kappa": -0.000082, "s": 87.422843, "theta": 1.501064, "x":691191.061198, "y":3118247.530405, "dkappa":0.000005}
{"kappa": -0.000081, "s": 87.823638, "theta": 1.501031, "x":691191.089130, "y":3118247.930226, "dkappa":0.000005}
{"kappa": -0.000079, "s": 88.224459, "theta": 1.500999, "x":691191.117077, "y":3118248.330071, "dkappa":0.000005}
{"kappa": -0.000077, "s": 88.625307, "theta": 1.500968, "x":691191.145038, "y":3118248.729942, "dkappa":0.000004}
{"kappa": -0.000075, "s": 89.026180, "theta": 1.500938, "x":691191.173014, "y":3118249.129839, "dkappa":0.000004}
{"kappa": -0.000073, "s": 89.427080, "theta": 1.500908, "x":691191.201003, "y":3118249.529760, "dkappa":0.000004}
{"kappa": -0.000072, "s": 89.828006, "theta": 1.500879, "x":691191.229006, "y":3118249.929707, "dkappa":0.000004}
{"kappa": -0.000070, "s": 90.228957, "theta": 1.500851, "x":691191.257023, "y":3118250.329678, "dkappa":0.000004}
{"kappa": -0.000068, "s": 90.629935, "theta": 1.500823, "x":691191.285052, "y":3118250.729675, "dkappa":0.000004}
{"kappa": -0.000066, "s": 91.030938, "theta": 1.500796, "x":691191.313094, "y":3118251.129696, "dkappa":0.000004}
{"kappa": -0.000065, "s": 91.431967, "theta": 1.500770, "x":691191.341149, "y":3118251.529743, "dkappa":0.000004}
{"kappa": -0.000063, "s": 91.833022, "theta": 1.500744, "x":691191.369215, "y":3118251.929814, "dkappa":0.000004}
{"kappa": -0.000062, "s": 92.234102, "theta": 1.500719, "x":691191.397294, "y":3118252.329910, "dkappa":0.000004}
{"kappa": -0.000060, "s": 92.635207, "theta": 1.500695, "x":691191.425384, "y":3118252.730031, "dkappa":0.000004}
{"kappa": -0.000058, "s": 93.036338, "theta": 1.500671, "x":691191.453486, "y":3118253.130176, "dkappa":0.000004}
{"kappa": -0.000057, "s": 93.437495, "theta": 1.500648, "x":691191.481599, "y":3118253.530346, "dkappa":0.000004}
{"kappa": -0.000055, "s": 93.838676, "theta": 1.500625, "x":691191.509723, "y":3118253.930541, "dkappa":0.000004}
{"kappa": -0.000054, "s": 94.239883, "theta": 1.500604, "x":691191.537857, "y":3118254.330760, "dkappa":0.000004}
{"kappa": -0.000052, "s": 94.641115, "theta": 1.500582, "x":691191.566002, "y":3118254.731004, "dkappa":0.000004}
{"kappa": -0.000051, "s": 95.042372, "theta": 1.500562, "x":691191.594156, "y":3118255.131272, "dkappa":0.000004}
{"kappa": -0.000049, "s": 95.443654, "theta": 1.500542, "x":691191.622321, "y":3118255.531564, "dkappa":0.000004}
{"kappa": -0.000048, "s": 95.844961, "theta": 1.500522, "x":691191.650495, "y":3118255.931880, "dkappa":0.000004}
{"kappa": -0.000046, "s": 96.246292, "theta": 1.500504, "x":691191.678679, "y":3118256.332221, "dkappa":0.000004}
{"kappa": -0.000045, "s": 96.647648, "theta": 1.500485, "x":691191.706872, "y":3118256.732586, "dkappa":0.000004}
{"kappa": -0.000043, "s": 97.049029, "theta": 1.500468, "x":691191.735074, "y":3118257.132975, "dkappa":0.000004}
{"kappa": -0.000042, "s": 97.450435, "theta": 1.500451, "x":691191.763284, "y":3118257.533388, "dkappa":0.000004}
{"kappa": -0.000040, "s": 97.851865, "theta": 1.500434, "x":691191.791503, "y":3118257.933825, "dkappa":0.000003}
{"kappa": -0.000039, "s": 98.253320, "theta": 1.500418, "x":691191.819730, "y":3118258.334286, "dkappa":0.000003}
{"kappa": -0.000038, "s": 98.654799, "theta": 1.500403, "x":691191.847965, "y":3118258.734771, "dkappa":0.000003}
{"kappa": -0.000001, "s": 99.056302, "theta": 1.500388, "x":691191.876208, "y":3118259.135280, "dkappa":0.000000}
{"kappa": -0.000001, "s": 99.458255, "theta": 1.500388, "x":691191.904486, "y":3118259.536237, "dkappa":0.000000}
{"kappa": -0.000001, "s": 99.860208, "theta": 1.500388, "x":691191.932763, "y":3118259.937194, "dkappa":0.000000}
{"kappa": -0.000001, "s": 100.262160, "theta": 1.500387, "x":691191.961041, "y":3118260.338151, "dkappa":0.000000}
{"kappa": -0.000001, "s": 100.664113, "theta": 1.500387, "x":691191.989318, "y":3118260.739107, "dkappa":0.000000}
{"kappa": -0.000001, "s": 101.066066, "theta": 1.500387, "x":691192.017596, "y":3118261.140064, "dkappa":0.000000}
{"kappa": -0.000001, "s": 101.468019, "theta": 1.500387, "x":691192.045874, "y":3118261.541021, "dkappa":0.000000}
{"kappa": -0.000001, "s": 101.869971, "theta": 1.500386, "x":691192.074152, "y":3118261.941978, "dkappa":0.000000}
{"kappa": -0.000001, "s": 102.271924, "theta": 1.500386, "x":691192.102430, "y":3118262.342935, "dkappa":0.000000}
{"kappa": -0.000001, "s": 102.673877, "theta": 1.500386, "x":691192.130709, "y":3118262.743892, "dkappa":0.000000}
{"kappa": -0.000001, "s": 103.075830, "theta": 1.500386, "x":691192.158987, "y":3118263.144848, "dkappa":0.000000}
{"kappa": -0.000001, "s": 103.477782, "theta": 1.500386, "x":691192.187265, "y":3118263.545805, "dkappa":0.000000}
{"kappa": -0.000001, "s": 103.879735, "theta": 1.500385, "x":691192.215544, "y":3118263.946762, "dkappa":0.000000}
{"kappa": -0.000001, "s": 104.281688, "theta": 1.500385, "x":691192.243822, "y":3118264.347719, "dkappa":0.000000}
{"kappa": -0.000001, "s": 104.683641, "theta": 1.500385, "x":691192.272101, "y":3118264.748676, "dkappa":0.000000}
{"kappa": -0.000001, "s": 105.085594, "theta": 1.500385, "x":691192.300380, "y":3118265.149632, "dkappa":0.000000}
{"kappa": -0.000001, "s": 105.487547, "theta": 1.500384, "x":691192.328658, "y":3118265.550589, "dkappa":0.000000}
{"kappa": -0.000001, "s": 105.889499, "theta": 1.500384, "x":691192.356937, "y":3118265.951546, "dkappa":0.000000}
{"kappa": -0.000001, "s": 106.291452, "theta": 1.500384, "x":691192.385216, "y":3118266.352503, "dkappa":0.000000}
{"kappa": -0.000001, "s": 106.693405, "theta": 1.500384, "x":691192.413495, "y":3118266.753460, "dkappa":0.000000}
{"kappa": -0.000001, "s": 107.095358, "theta": 1.500384, "x":691192.441775, "y":3118267.154417, "dkappa":0.000000}
{"kappa": -0.000001, "s": 107.497311, "theta": 1.500383, "x":691192.470054, "y":3118267.555373, "dkappa":0.000000}
{"kappa": -0.000001, "s": 107.899264, "theta": 1.500383, "x":691192.498333, "y":3118267.956330, "dkappa":0.000000}
{"kappa": -0.000001, "s": 108.301216, "theta": 1.500383, "x":691192.526613, "y":3118268.357287, "dkappa":0.000000}
{"kappa": -0.000001, "s": 108.703169, "theta": 1.500383, "x":691192.554892, "y":3118268.758244, "dkappa":0.000000}
{"kappa": -0.000001, "s": 109.105122, "theta": 1.500382, "x":691192.583172, "y":3118269.159201, "dkappa":0.000000}
{"kappa": -0.000001, "s": 109.507075, "theta": 1.500382, "x":691192.611452, "y":3118269.560157, "dkappa":0.000000}
{"kappa": -0.000001, "s": 109.909028, "theta": 1.500382, "x":691192.639732, "y":3118269.961114, "dkappa":0.000000}
{"kappa": -0.000001, "s": 110.310981, "theta": 1.500382, "x":691192.668011, "y":3118270.362071, "dkappa":0.000000}
{"kappa": -0.000001, "s": 110.712934, "theta": 1.500382, "x":691192.696291, "y":3118270.763028, "dkappa":0.000000}
{"kappa": -0.000001, "s": 111.114886, "theta": 1.500381, "x":691192.724572, "y":3118271.163985, "dkappa":0.000000}
{"kappa": -0.000001, "s": 111.516839, "theta": 1.500381, "x":691192.752852, "y":3118271.564942, "dkappa":0.000000}
{"kappa": -0.000001, "s": 111.918792, "theta": 1.500381, "x":691192.781132, "y":3118271.965898, "dkappa":0.000000}
{"kappa": -0.000001, "s": 112.320745, "theta": 1.500381, "x":691192.809412, "y":3118272.366855, "dkappa":0.000000}
{"kappa": -0.000001, "s": 112.722698, "theta": 1.500380, "x":691192.837693, "y":3118272.767812, "dkappa":0.000000}
{"kappa": -0.000001, "s": 113.124651, "theta": 1.500380, "x":691192.865973, "y":3118273.168769, "dkappa":0.000000}
{"kappa": -0.000001, "s": 113.526604, "theta": 1.500380, "x":691192.894254, "y":3118273.569726, "dkappa":0.000000}
{"kappa": -0.000001, "s": 113.928557, "theta": 1.500380, "x":691192.922535, "y":3118273.970682, "dkappa":0.000000}
{"kappa": -0.000001, "s": 114.330510, "theta": 1.500379, "x":691192.950816, "y":3118274.371639, "dkappa":0.000000}
{"kappa": -0.000001, "s": 114.732463, "theta": 1.500379, "x":691192.979096, "y":3118274.772596, "dkappa":0.000000}
{"kappa": -0.000001, "s": 115.134416, "theta": 1.500379, "x":691193.007377, "y":3118275.173553, "dkappa":0.000000}
{"kappa": -0.000001, "s": 115.536369, "theta": 1.500379, "x":691193.035659, "y":3118275.574510, "dkappa":0.000000}
{"kappa": -0.000001, "s": 115.938322, "theta": 1.500379, "x":691193.063940, "y":3118275.975466, "dkappa":0.000000}
{"kappa": -0.000001, "s": 116.340275, "theta": 1.500378, "x":691193.092221, "y":3118276.376423, "dkappa":0.000000}
{"kappa": -0.000001, "s": 116.742228, "theta": 1.500378, "x":691193.120502, "y":3118276.777380, "dkappa":0.000000}
{"kappa": -0.000001, "s": 117.144180, "theta": 1.500378, "x":691193.148784, "y":3118277.178337, "dkappa":0.000000}
{"kappa": -0.000001, "s": 117.546133, "theta": 1.500378, "x":691193.177065, "y":3118277.579294, "dkappa":0.000000}
{"kappa": -0.000001, "s": 117.948086, "theta": 1.500377, "x":691193.205347, "y":3118277.980250, "dkappa":0.000000}
{"kappa": -0.000001, "s": 118.350039, "theta": 1.500377, "x":691193.233629, "y":3118278.381207, "dkappa":0.000000}
{"kappa": -0.000001, "s": 118.751992, "theta": 1.500377, "x":691193.261911, "y":3118278.782164, "dkappa":0.000000}
{"kappa": -0.000001, "s": 119.153945, "theta": 1.500377, "x":691193.290192, "y":3118279.183121, "dkappa":0.000000}
{"kappa": -0.000001, "s": 119.555898, "theta": 1.500377, "x":691193.318474, "y":3118279.584077, "dkappa":0.000000}
{"kappa": -0.000001, "s": 119.957851, "theta": 1.500376, "x":691193.346757, "y":3118279.985034, "dkappa":0.000000}
{"kappa": -0.000001, "s": 120.359804, "theta": 1.500376, "x":691193.375039, "y":3118280.385991, "dkappa":0.000000}
{"kappa": -0.000001, "s": 120.761757, "theta": 1.500376, "x":691193.403321, "y":3118280.786948, "dkappa":0.000000}
{"kappa": -0.000001, "s": 121.163710, "theta": 1.500376, "x":691193.431603, "y":3118281.187905, "dkappa":0.000000}
{"kappa": -0.000001, "s": 121.565664, "theta": 1.500375, "x":691193.459886, "y":3118281.588861, "dkappa":0.000000}
{"kappa": -0.000001, "s": 121.967617, "theta": 1.500375, "x":691193.488168, "y":3118281.989818, "dkappa":0.000000}
{"kappa": -0.000001, "s": 122.369570, "theta": 1.500375, "x":691193.516451, "y":3118282.390775, "dkappa":0.000000}
{"kappa": -0.000001, "s": 122.771523, "theta": 1.500375, "x":691193.544734, "y":3118282.791732, "dkappa":0.000000}
{"kappa": -0.000001, "s": 123.173476, "theta": 1.500375, "x":691193.573016, "y":3118283.192689, "dkappa":0.000000}
{"kappa": -0.000001, "s": 123.575429, "theta": 1.500374, "x":691193.601299, "y":3118283.593645, "dkappa":0.000000}
{"kappa": -0.000001, "s": 123.977382, "theta": 1.500374, "x":691193.629582, "y":3118283.994602, "dkappa":0.000000}
{"kappa": -0.000001, "s": 124.379335, "theta": 1.500374, "x":691193.657865, "y":3118284.395559, "dkappa":0.000000}
{"kappa": -0.000001, "s": 124.781288, "theta": 1.500374, "x":691193.686148, "y":3118284.796516, "dkappa":0.000000}
{"kappa": -0.000001, "s": 125.183241, "theta": 1.500374, "x":691193.714432, "y":3118285.197472, "dkappa":0.000000}
{"kappa": -0.000001, "s": 125.585194, "theta": 1.500373, "x":691193.742715, "y":3118285.598429, "dkappa":0.000000}
{"kappa": -0.000001, "s": 125.987147, "theta": 1.500373, "x":691193.770998, "y":3118285.999386, "dkappa":0.000000}
{"kappa": -0.000001, "s": 126.389100, "theta": 1.500373, "x":691193.799282, "y":3118286.400343, "dkappa":0.000000}
{"kappa": -0.000001, "s": 126.791053, "theta": 1.500373, "x":691193.827565, "y":3118286.801300, "dkappa":0.000000}
{"kappa": -0.000001, "s": 127.193007, "theta": 1.500372, "x":691193.855849, "y":3118287.202256, "dkappa":0.000000}
{"kappa": -0.000001, "s": 127.594960, "theta": 1.500372, "x":691193.884133, "y":3118287.603213, "dkappa":0.000000}
{"kappa": -0.000001, "s": 127.996913, "theta": 1.500372, "x":691193.912417, "y":3118288.004170, "dkappa":0.000000}
{"kappa": -0.000001, "s": 128.398866, "theta": 1.500372, "x":691193.940701, "y":3118288.405127, "dkappa":0.000000}
{"kappa": -0.000001, "s": 128.800819, "theta": 1.500372, "x":691193.968985, "y":3118288.806083, "dkappa":0.000000}
{"kappa": -0.000001, "s": 129.202772, "theta": 1.500371, "x":691193.997269, "y":3118289.207040, "dkappa":0.000000}
{"kappa": -0.000001, "s": 129.604725, "theta": 1.500371, "x":691194.025553, "y":3118289.607997, "dkappa":0.000000}
{"kappa": -0.000001, "s": 130.006679, "theta": 1.500371, "x":691194.053837, "y":3118290.008954, "dkappa":0.000000}
{"kappa": -0.000001, "s": 130.408632, "theta": 1.500371, "x":691194.082122, "y":3118290.409911, "dkappa":0.000000}
{"kappa": -0.000001, "s": 130.810585, "theta": 1.500370, "x":691194.110406, "y":3118290.810867, "dkappa":0.000000}
{"kappa": -0.000001, "s": 131.212538, "theta": 1.500370, "x":691194.138691, "y":3118291.211824, "dkappa":0.000000}
{"kappa": -0.000001, "s": 131.614491, "theta": 1.500370, "x":691194.166975, "y":3118291.612781, "dkappa":0.000000}
{"kappa": -0.000001, "s": 132.016444, "theta": 1.500370, "x":691194.195260, "y":3118292.013738, "dkappa":0.000000}
{"kappa": -0.000001, "s": 132.418398, "theta": 1.500370, "x":691194.223545, "y":3118292.414694, "dkappa":0.000000}
{"kappa": -0.000001, "s": 132.820351, "theta": 1.500369, "x":691194.251830, "y":3118292.815651, "dkappa":0.000000}
{"kappa": -0.000001, "s": 133.222304, "theta": 1.500369, "x":691194.280115, "y":3118293.216608, "dkappa":0.000000}
{"kappa": -0.000001, "s": 133.624257, "theta": 1.500369, "x":691194.308400, "y":3118293.617565, "dkappa":0.000000}
{"kappa": -0.000001, "s": 134.026210, "theta": 1.500369, "x":691194.336685, "y":3118294.018522, "dkappa":0.000000}
{"kappa": -0.000001, "s": 134.428164, "theta": 1.500369, "x":691194.364970, "y":3118294.419478, "dkappa":0.000000}
{"kappa": -0.000001, "s": 134.830117, "theta": 1.500368, "x":691194.393255, "y":3118294.820435, "dkappa":0.000000}
{"kappa": -0.000001, "s": 135.232070, "theta": 1.500368, "x":691194.421541, "y":3118295.221392, "dkappa":0.000000}
{"kappa": -0.000001, "s": 135.634023, "theta": 1.500368, "x":691194.449826, "y":3118295.622349, "dkappa":0.000000}
{"kappa": -0.000001, "s": 136.035977, "theta": 1.500368, "x":691194.478112, "y":3118296.023305, "dkappa":0.000000}
{"kappa": -0.000001, "s": 136.437930, "theta": 1.500367, "x":691194.506398, "y":3118296.424262, "dkappa":0.000000}
{"kappa": -0.000001, "s": 136.839883, "theta": 1.500367, "x":691194.534683, "y":3118296.825219, "dkappa":0.000000}
{"kappa": -0.000001, "s": 137.241836, "theta": 1.500367, "x":691194.562969, "y":3118297.226176, "dkappa":0.000000}
{"kappa": -0.000001, "s": 137.643790, "theta": 1.500367, "x":691194.591255, "y":3118297.627132, "dkappa":0.000000}
{"kappa": -0.000001, "s": 138.045743, "theta": 1.500367, "x":691194.619541, "y":3118298.028089, "dkappa":0.000000}
{"kappa": -0.000001, "s": 138.447696, "theta": 1.500366, "x":691194.647827, "y":3118298.429046, "dkappa":0.000000}
{"kappa": -0.000001, "s": 138.849649, "theta": 1.500366, "x":691194.676113, "y":3118298.830003, "dkappa":0.000000}
{"kappa": -0.000001, "s": 139.251603, "theta": 1.500366, "x":691194.704400, "y":3118299.230960, "dkappa":0.000000}
{"kappa": -0.000001, "s": 139.653556, "theta": 1.500366, "x":691194.732686, "y":3118299.631916, "dkappa":0.000000}
{"kappa": -0.000001, "s": 140.055509, "theta": 1.500366, "x":691194.760972, "y":3118300.032873, "dkappa":0.000000}
{"kappa": -0.000001, "s": 140.457463, "theta": 1.500365, "x":691194.789259, "y":3118300.433830, "dkappa":0.000000}
{"kappa": -0.000001, "s": 140.859416, "theta": 1.500365, "x":691194.817546, "y":3118300.834787, "dkappa":0.000000}
{"kappa": -0.000001, "s": 141.261369, "theta": 1.500365, "x":691194.845832, "y":3118301.235743, "dkappa":0.000000}
{"kappa": -0.000001, "s": 141.663323, "theta": 1.500365, "x":691194.874119, "y":3118301.636700, "dkappa":0.000000}
{"kappa": -0.000001, "s": 142.065276, "theta": 1.500365, "x":691194.902406, "y":3118302.037657, "dkappa":0.000000}
{"kappa": -0.000001, "s": 142.467229, "theta": 1.500364, "x":691194.930693, "y":3118302.438614, "dkappa":0.000000}
{"kappa": -0.000001, "s": 142.869183, "theta": 1.500364, "x":691194.958980, "y":3118302.839571, "dkappa":0.000000}
{"kappa": -0.000001, "s": 143.271136, "theta": 1.500364, "x":691194.987267, "y":3118303.240527, "dkappa":0.000000}
{"kappa": -0.000001, "s": 143.673089, "theta": 1.500364, "x":691195.015554, "y":3118303.641484, "dkappa":0.000000}
{"kappa": -0.000001, "s": 144.075043, "theta": 1.500363, "x":691195.043841, "y":3118304.042441, "dkappa":0.000000}
{"kappa": -0.000001, "s": 144.476996, "theta": 1.500363, "x":691195.072129, "y":3118304.443398, "dkappa":0.000000}
{"kappa": -0.000001, "s": 144.878949, "theta": 1.500363, "x":691195.100416, "y":3118304.844354, "dkappa":0.000000}
{"kappa": -0.000001, "s": 145.280903, "theta": 1.500363, "x":691195.128704, "y":3118305.245311, "dkappa":0.000000}
{"kappa": -0.000001, "s": 145.682856, "theta": 1.500363, "x":691195.156991, "y":3118305.646268, "dkappa":0.000000}
{"kappa": -0.000001, "s": 146.084810, "theta": 1.500362, "x":691195.185279, "y":3118306.047225, "dkappa":0.000000}
{"kappa": -0.000001, "s": 146.486763, "theta": 1.500362, "x":691195.213567, "y":3118306.448182, "dkappa":0.000000}
{"kappa": -0.000001, "s": 146.888716, "theta": 1.500362, "x":691195.241855, "y":3118306.849138, "dkappa":0.000000}
{"kappa": -0.000001, "s": 147.290670, "theta": 1.500362, "x":691195.270142, "y":3118307.250095, "dkappa":0.000000}
{"kappa": -0.000001, "s": 147.692623, "theta": 1.500362, "x":691195.298430, "y":3118307.651052, "dkappa":0.000000}
{"kappa": -0.000001, "s": 148.094577, "theta": 1.500361, "x":691195.326719, "y":3118308.052009, "dkappa":0.000000}
{"kappa": -0.000001, "s": 148.496530, "theta": 1.500361, "x":691195.355007, "y":3118308.452965, "dkappa":0.000000}
{"kappa": -0.000001, "s": 148.898483, "theta": 1.500361, "x":691195.383295, "y":3118308.853922, "dkappa":0.000000}
{"kappa": -0.000001, "s": 149.300437, "theta": 1.500361, "x":691195.411583, "y":3118309.254879, "dkappa":0.000000}
{"kappa": -0.000001, "s": 149.702390, "theta": 1.500361, "x":691195.439872, "y":3118309.655836, "dkappa":0.000000}
{"kappa": -0.000001, "s": 150.104344, "theta": 1.500360, "x":691195.468160, "y":3118310.056793, "dkappa":0.000000}
{"kappa": -0.000001, "s": 150.506297, "theta": 1.500360, "x":691195.496449, "y":3118310.457749, "dkappa":0.000000}
{"kappa": -0.000001, "s": 150.908251, "theta": 1.500360, "x":691195.524738, "y":3118310.858706, "dkappa":0.000000}
{"kappa": -0.000000, "s": 151.310204, "theta": 1.500360, "x":691195.553026, "y":3118311.259663, "dkappa":0.000000}
{"kappa": -0.000000, "s": 151.712158, "theta": 1.500360, "x":691195.581315, "y":3118311.660620, "dkappa":0.000000}
{"kappa": -0.000000, "s": 152.114111, "theta": 1.500359, "x":691195.609604, "y":3118312.061577, "dkappa":0.000000}
{"kappa": -0.000000, "s": 152.516065, "theta": 1.500359, "x":691195.637893, "y":3118312.462533, "dkappa":0.000000}
{"kappa": -0.000000, "s": 152.918018, "theta": 1.500359, "x":691195.666182, "y":3118312.863490, "dkappa":0.000000}
{"kappa": -0.000000, "s": 153.319972, "theta": 1.500359, "x":691195.694471, "y":3118313.264447, "dkappa":0.000000}
{"kappa": -0.000000, "s": 153.721925, "theta": 1.500359, "x":691195.722760, "y":3118313.665404, "dkappa":0.000000}
{"kappa": -0.000000, "s": 154.123879, "theta": 1.500358, "x":691195.751050, "y":3118314.066361, "dkappa":0.000000}
{"kappa": -0.000000, "s": 154.525832, "theta": 1.500358, "x":691195.779339, "y":3118314.467317, "dkappa":0.000000}
{"kappa": -0.000000, "s": 154.927786, "theta": 1.500358, "x":691195.807629, "y":3118314.868274, "dkappa":0.000000}
{"kappa": -0.000000, "s": 155.329739, "theta": 1.500358, "x":691195.835918, "y":3118315.269231, "dkappa":0.000000}
{"kappa": -0.000000, "s": 155.731693, "theta": 1.500358, "x":691195.864208, "y":3118315.670188, "dkappa":0.000000}
{"kappa": -0.000000, "s": 156.133647, "theta": 1.500357, "x":691195.892498, "y":3118316.071145, "dkappa":0.000000}
{"kappa": -0.000000, "s": 156.535600, "theta": 1.500357, "x":691195.920787, "y":3118316.472101, "dkappa":0.000000}
{"kappa": -0.000000, "s": 156.937554, "theta": 1.500357, "x":691195.949077, "y":3118316.873058, "dkappa":0.000000}
{"kappa": -0.000000, "s": 157.339507, "theta": 1.500357, "x":691195.977367, "y":3118317.274015, "dkappa":0.000000}
{"kappa": -0.000000, "s": 157.741461, "theta": 1.500357, "x":691196.005657, "y":3118317.674972, "dkappa":0.000000}
{"kappa": -0.000000, "s": 158.143414, "theta": 1.500356, "x":691196.033947, "y":3118318.075929, "dkappa":0.000000}
{"kappa": -0.000000, "s": 158.545368, "theta": 1.500356, "x":691196.062237, "y":3118318.476885, "dkappa":0.000000}
{"kappa": -0.000000, "s": 158.947322, "theta": 1.500356, "x":691196.090528, "y":3118318.877842, "dkappa":0.000000}
{"kappa": -0.000000, "s": 159.349275, "theta": 1.500356, "x":691196.118818, "y":3118319.278799, "dkappa":0.000000}
{"kappa": -0.000000, "s": 159.751229, "theta": 1.500356, "x":691196.147108, "y":3118319.679756, "dkappa":0.000000}
{"kappa": -0.000000, "s": 160.153183, "theta": 1.500356, "x":691196.175399, "y":3118320.080713, "dkappa":0.000000}
{"kappa": -0.000000, "s": 160.555136, "theta": 1.500355, "x":691196.203690, "y":3118320.481669, "dkappa":0.000000}
{"kappa": -0.000000, "s": 160.957090, "theta": 1.500355, "x":691196.231980, "y":3118320.882626, "dkappa":0.000000}
{"kappa": -0.000000, "s": 161.359043, "theta": 1.500355, "x":691196.260271, "y":3118321.283583, "dkappa":0.000000}
{"kappa": -0.000000, "s": 161.760997, "theta": 1.500355, "x":691196.288562, "y":3118321.684540, "dkappa":0.000000}
{"kappa": -0.000000, "s": 162.162951, "theta": 1.500355, "x":691196.316853, "y":3118322.085497, "dkappa":0.000000}
{"kappa": -0.000000, "s": 162.564904, "theta": 1.500354, "x":691196.345144, "y":3118322.486454, "dkappa":0.000000}
{"kappa": -0.000000, "s": 162.966858, "theta": 1.500354, "x":691196.373435, "y":3118322.887410, "dkappa":0.000000}
{"kappa": -0.000000, "s": 163.368812, "theta": 1.500354, "x":691196.401726, "y":3118323.288367, "dkappa":0.000000}
{"kappa": -0.000000, "s": 163.770766, "theta": 1.500354, "x":691196.430017, "y":3118323.689324, "dkappa":0.000000}
{"kappa": -0.000000, "s": 164.172719, "theta": 1.500354, "x":691196.458308, "y":3118324.090281, "dkappa":0.000000}
{"kappa": -0.000000, "s": 164.574673, "theta": 1.500353, "x":691196.486600, "y":3118324.491238, "dkappa":0.000000}
{"kappa": -0.000000, "s": 164.976627, "theta": 1.500353, "x":691196.514891, "y":3118324.892195, "dkappa":0.000000}
{"kappa": -0.000000, "s": 165.378580, "theta": 1.500353, "x":691196.543182, "y":3118325.293151, "dkappa":0.000000}
{"kappa": -0.000000, "s": 165.780534, "theta": 1.500353, "x":691196.571474, "y":3118325.694108, "dkappa":0.000000}
{"kappa": -0.000000, "s": 166.182488, "theta": 1.500353, "x":691196.599766, "y":3118326.095065, "dkappa":0.000000}
{"kappa": -0.000000, "s": 166.584442, "theta": 1.500352, "x":691196.628057, "y":3118326.496022, "dkappa":0.000000}
{"kappa": -0.000000, "s": 166.986395, "theta": 1.500352, "x":691196.656349, "y":3118326.896979, "dkappa":0.000000}
{"kappa": -0.000000, "s": 167.388349, "theta": 1.500352, "x":691196.684641, "y":3118327.297936, "dkappa":0.000000}
{"kappa": -0.000000, "s": 167.790303, "theta": 1.500352, "x":691196.712933, "y":3118327.698892, "dkappa":0.000000}
{"kappa": -0.000000, "s": 168.192257, "theta": 1.500352, "x":691196.741225, "y":3118328.099849, "dkappa":0.000000}
{"kappa": -0.000000, "s": 168.594210, "theta": 1.500352, "x":691196.769517, "y":3118328.500806, "dkappa":0.000000}
{"kappa": -0.000000, "s": 168.996164, "theta": 1.500351, "x":691196.797809, "y":3118328.901763, "dkappa":0.000000}
{"kappa": -0.000000, "s": 169.398118, "theta": 1.500351, "x":691196.826102, "y":3118329.302720, "dkappa":0.000000}
{"kappa": -0.000000, "s": 169.800072, "theta": 1.500351, "x":691196.854394, "y":3118329.703677, "dkappa":0.000000}
{"kappa": -0.000000, "s": 170.202026, "theta": 1.500351, "x":691196.882686, "y":3118330.104634, "dkappa":0.000000}
{"kappa": -0.000000, "s": 170.603979, "theta": 1.500351, "x":691196.910979, "y":3118330.505590, "dkappa":0.000000}
{"kappa": -0.000000, "s": 171.005933, "theta": 1.500350, "x":691196.939271, "y":3118330.906547, "dkappa":0.000000}
{"kappa": -0.000000, "s": 171.407887, "theta": 1.500350, "x":691196.967564, "y":3118331.307504, "dkappa":0.000000}
{"kappa": -0.000000, "s": 171.809841, "theta": 1.500350, "x":691196.995857, "y":3118331.708461, "dkappa":0.000000}
{"kappa": -0.000000, "s": 172.211795, "theta": 1.500350, "x":691197.024149, "y":3118332.109418, "dkappa":0.000000}
{"kappa": -0.000000, "s": 172.613749, "theta": 1.500350, "x":691197.052442, "y":3118332.510375, "dkappa":0.000000}
{"kappa": -0.000000, "s": 173.015702, "theta": 1.500350, "x":691197.080735, "y":3118332.911332, "dkappa":0.000000}
{"kappa": -0.000000, "s": 173.417656, "theta": 1.500349, "x":691197.109028, "y":3118333.312288, "dkappa":0.000000}
{"kappa": -0.000000, "s": 173.819610, "theta": 1.500349, "x":691197.137321, "y":3118333.713245, "dkappa":0.000000}
{"kappa": -0.000000, "s": 174.221564, "theta": 1.500349, "x":691197.165614, "y":3118334.114202, "dkappa":0.000000}
{"kappa": -0.000000, "s": 174.623518, "theta": 1.500349, "x":691197.193908, "y":3118334.515159, "dkappa":0.000000}
{"kappa": -0.000000, "s": 175.025472, "theta": 1.500349, "x":691197.222201, "y":3118334.916116, "dkappa":0.000000}
{"kappa": -0.000000, "s": 175.427426, "theta": 1.500348, "x":691197.250494, "y":3118335.317073, "dkappa":0.000000}
{"kappa": -0.000000, "s": 175.829380, "theta": 1.500348, "x":691197.278788, "y":3118335.718030, "dkappa":0.000000}
{"kappa": -0.000000, "s": 176.231333, "theta": 1.500348, "x":691197.307081, "y":3118336.118987, "dkappa":0.000000}
{"kappa": -0.000000, "s": 176.633287, "theta": 1.500348, "x":691197.335375, "y":3118336.519944, "dkappa":0.000000}
{"kappa": -0.000000, "s": 177.035241, "theta": 1.500348, "x":691197.363668, "y":3118336.920900, "dkappa":0.000000}
{"kappa": -0.000000, "s": 177.437195, "theta": 1.500348, "x":691197.391962, "y":3118337.321857, "dkappa":0.000000}
{"kappa": -0.000000, "s": 177.839149, "theta": 1.500347, "x":691197.420256, "y":3118337.722814, "dkappa":0.000000}
{"kappa": -0.000000, "s": 178.241103, "theta": 1.500347, "x":691197.448550, "y":3118338.123771, "dkappa":0.000000}
{"kappa": -0.000000, "s": 178.643057, "theta": 1.500347, "x":691197.476844, "y":3118338.524728, "dkappa":0.000000}
{"kappa": -0.000000, "s": 179.045011, "theta": 1.500347, "x":691197.505138, "y":3118338.925685, "dkappa":0.000000}
{"kappa": -0.000000, "s": 179.446965, "theta": 1.500347, "x":691197.533432, "y":3118339.326642, "dkappa":0.000000}
{"kappa": -0.000000, "s": 179.848919, "theta": 1.500347, "x":691197.561726, "y":3118339.727599, "dkappa":0.000000}
{"kappa": -0.000000, "s": 180.250873, "theta": 1.500346, "x":691197.590020, "y":3118340.128556, "dkappa":0.000000}
{"kappa": -0.000000, "s": 180.652827, "theta": 1.500346, "x":691197.618314, "y":3118340.529513, "dkappa":0.000000}
{"kappa": -0.000000, "s": 181.054781, "theta": 1.500346, "x":691197.646609, "y":3118340.930470, "dkappa":0.000000}
{"kappa": -0.000000, "s": 181.456735, "theta": 1.500346, "x":691197.674903, "y":3118341.331426, "dkappa":0.000000}
{"kappa": -0.000000, "s": 181.858689, "theta": 1.500346, "x":691197.703197, "y":3118341.732383, "dkappa":0.000000}
{"kappa": -0.000000, "s": 182.260643, "theta": 1.500345, "x":691197.731492, "y":3118342.133340, "dkappa":0.000000}
{"kappa": -0.000000, "s": 182.662597, "theta": 1.500345, "x":691197.759787, "y":3118342.534297, "dkappa":0.000000}
{"kappa": -0.000000, "s": 183.064551, "theta": 1.500345, "x":691197.788081, "y":3118342.935254, "dkappa":0.000000}
{"kappa": -0.000000, "s": 183.466505, "theta": 1.500345, "x":691197.816376, "y":3118343.336211, "dkappa":0.000000}
{"kappa": -0.000000, "s": 183.868459, "theta": 1.500345, "x":691197.844671, "y":3118343.737168, "dkappa":0.000000}
{"kappa": -0.000000, "s": 184.270413, "theta": 1.500345, "x":691197.872966, "y":3118344.138125, "dkappa":0.000000}
{"kappa": -0.000000, "s": 184.672367, "theta": 1.500344, "x":691197.901261, "y":3118344.539082, "dkappa":0.000000}
{"kappa": -0.000000, "s": 185.074322, "theta": 1.500344, "x":691197.929556, "y":3118344.940039, "dkappa":0.000000}
{"kappa": -0.000000, "s": 185.476276, "theta": 1.500344, "x":691197.957851, "y":3118345.340996, "dkappa":0.000000}
{"kappa": -0.000000, "s": 185.878230, "theta": 1.500344, "x":691197.986146, "y":3118345.741953, "dkappa":0.000000}
{"kappa": -0.000000, "s": 186.280184, "theta": 1.500344, "x":691198.014441, "y":3118346.142910, "dkappa":0.000000}
{"kappa": -0.000000, "s": 186.682138, "theta": 1.500344, "x":691198.042737, "y":3118346.543867, "dkappa":0.000000}
{"kappa": -0.000000, "s": 187.084092, "theta": 1.500343, "x":691198.071032, "y":3118346.944824, "dkappa":0.000000}
{"kappa": -0.000000, "s": 187.486046, "theta": 1.500343, "x":691198.099327, "y":3118347.345781, "dkappa":0.000000}
{"kappa": -0.000000, "s": 187.888000, "theta": 1.500343, "x":691198.127623, "y":3118347.746738, "dkappa":0.000000}
{"kappa": -0.000000, "s": 188.289954, "theta": 1.500343, "x":691198.155918, "y":3118348.147695, "dkappa":0.000000}
{"kappa": -0.000000, "s": 188.691909, "theta": 1.500343, "x":691198.184214, "y":3118348.548652, "dkappa":0.000000}
{"kappa": -0.000000, "s": 189.093863, "theta": 1.500343, "x":691198.212510, "y":3118348.949609, "dkappa":0.000000}
{"kappa": -0.000000, "s": 189.495817, "theta": 1.500342, "x":691198.240806, "y":3118349.350565, "dkappa":0.000000}
{"kappa": -0.000000, "s": 189.897771, "theta": 1.500342, "x":691198.269101, "y":3118349.751522, "dkappa":0.000000}
{"kappa": -0.000000, "s": 190.299725, "theta": 1.500342, "x":691198.297397, "y":3118350.152479, "dkappa":0.000000}
{"kappa": -0.000000, "s": 190.701679, "theta": 1.500342, "x":691198.325693, "y":3118350.553436, "dkappa":0.000000}
{"kappa": -0.000000, "s": 191.103634, "theta": 1.500342, "x":691198.353989, "y":3118350.954393, "dkappa":0.000000}
{"kappa": -0.000000, "s": 191.505588, "theta": 1.500342, "x":691198.382285, "y":3118351.355350, "dkappa":0.000000}
{"kappa": -0.000000, "s": 191.907542, "theta": 1.500341, "x":691198.410582, "y":3118351.756307, "dkappa":0.000000}
{"kappa": -0.000000, "s": 192.309496, "theta": 1.500341, "x":691198.438878, "y":3118352.157264, "dkappa":0.000000}
{"kappa": -0.000000, "s": 192.711450, "theta": 1.500341, "x":691198.467174, "y":3118352.558221, "dkappa":0.000000}
{"kappa": -0.000000, "s": 193.113405, "theta": 1.500341, "x":691198.495471, "y":3118352.959178, "dkappa":0.000000}
{"kappa": -0.000000, "s": 193.515359, "theta": 1.500341, "x":691198.523767, "y":3118353.360135, "dkappa":0.000000}
{"kappa": -0.000000, "s": 193.917313, "theta": 1.500341, "x":691198.552063, "y":3118353.761092, "dkappa":0.000000}
{"kappa": -0.000000, "s": 194.319267, "theta": 1.500341, "x":691198.580360, "y":3118354.162050, "dkappa":0.000000}
{"kappa": -0.000000, "s": 194.721222, "theta": 1.500340, "x":691198.608657, "y":3118354.563007, "dkappa":0.000000}
{"kappa": -0.000000, "s": 195.123176, "theta": 1.500340, "x":691198.636953, "y":3118354.963964, "dkappa":0.000000}
{"kappa": -0.000000, "s": 195.525130, "theta": 1.500340, "x":691198.665250, "y":3118355.364921, "dkappa":0.000000}
{"kappa": -0.000000, "s": 195.927085, "theta": 1.500340, "x":691198.693547, "y":3118355.765878, "dkappa":0.000000}
{"kappa": -0.000000, "s": 196.329039, "theta": 1.500340, "x":691198.721844, "y":3118356.166835, "dkappa":0.000000}
{"kappa": -0.000000, "s": 196.730993, "theta": 1.500340, "x":691198.750141, "y":3118356.567792, "dkappa":0.000000}
{"kappa": -0.000000, "s": 197.132948, "theta": 1.500339, "x":691198.778438, "y":3118356.968749, "dkappa":0.000000}
{"kappa": -0.000000, "s": 197.534902, "theta": 1.500339, "x":691198.806735, "y":3118357.369706, "dkappa":0.000000}
{"kappa": -0.000000, "s": 197.936856, "theta": 1.500339, "x":691198.835032, "y":3118357.770663, "dkappa":0.000000}
{"kappa": -0.000000, "s": 198.338810, "theta": 1.500339, "x":691198.863329, "y":3118358.171620, "dkappa":0.000000}
{"kappa": -0.000000, "s": 198.740765, "theta": 1.500339, "x":691198.891626, "y":3118358.572577, "dkappa":0.000000}
{"kappa": -0.000070, "s": 199.142719, "theta": 1.500339, "x":691198.919924, "y":3118358.973534, "dkappa":-0.000000}
{"kappa": -0.000070, "s": 199.546592, "theta": 1.500310, "x":691198.948362, "y":3118359.376405, "dkappa":-0.000000}
{"kappa": -0.000070, "s": 199.950460, "theta": 1.500282, "x":691198.976811, "y":3118359.779269, "dkappa":-0.000000}
{"kappa": -0.000070, "s": 200.354323, "theta": 1.500254, "x":691199.005271, "y":3118360.182128, "dkappa":-0.000000}
{"kappa": -0.000070, "s": 200.758180, "theta": 1.500225, "x":691199.033743, "y":3118360.584980, "dkappa":0.000000}
{"kappa": -0.000070, "s": 201.162032, "theta": 1.500197, "x":691199.062225, "y":3118360.987827, "dkappa":0.000000}
{"kappa": -0.000070, "s": 201.565879, "theta": 1.500169, "x":691199.090718, "y":3118361.390668, "dkappa":0.000000}
{"kappa": -0.000070, "s": 201.969721, "theta": 1.500140, "x":691199.119223, "y":3118361.793502, "dkappa":0.000000}
{"kappa": -0.000070, "s": 202.373558, "theta": 1.500112, "x":691199.147738, "y":3118362.196331, "dkappa":0.000000}
{"kappa": -0.000070, "s": 202.777389, "theta": 1.500083, "x":691199.176265, "y":3118362.599153, "dkappa":0.000000}
{"kappa": -0.000070, "s": 203.181215, "theta": 1.500055, "x":691199.204802, "y":3118363.001969, "dkappa":0.000000}
{"kappa": -0.000070, "s": 203.585036, "theta": 1.500027, "x":691199.233351, "y":3118363.404780, "dkappa":0.000000}
{"kappa": -0.000070, "s": 203.988851, "theta": 1.499998, "x":691199.261911, "y":3118363.807584, "dkappa":0.000000}
{"kappa": -0.000070, "s": 204.392662, "theta": 1.499970, "x":691199.290482, "y":3118364.210382, "dkappa":0.000000}
{"kappa": -0.000070, "s": 204.796467, "theta": 1.499942, "x":691199.319063, "y":3118364.613175, "dkappa":0.000000}
{"kappa": -0.000070, "s": 205.200266, "theta": 1.499913, "x":691199.347656, "y":3118365.015961, "dkappa":0.000000}
{"kappa": -0.000070, "s": 205.604061, "theta": 1.499885, "x":691199.376260, "y":3118365.418741, "dkappa":0.000000}
{"kappa": -0.000070, "s": 206.007850, "theta": 1.499857, "x":691199.404875, "y":3118365.821515, "dkappa":0.000000}
{"kappa": -0.000070, "s": 206.411634, "theta": 1.499829, "x":691199.433501, "y":3118366.224283, "dkappa":0.000000}
{"kappa": -0.000070, "s": 206.815413, "theta": 1.499800, "x":691199.462138, "y":3118366.627045, "dkappa":0.000000}
{"kappa": -0.000070, "s": 207.219187, "theta": 1.499772, "x":691199.490786, "y":3118367.029801, "dkappa":0.000000}
{"kappa": -0.000070, "s": 207.622955, "theta": 1.499744, "x":691199.519445, "y":3118367.432551, "dkappa":0.000000}
{"kappa": -0.000070, "s": 208.026718, "theta": 1.499715, "x":691199.548114, "y":3118367.835295, "dkappa":0.000000}
{"kappa": -0.000070, "s": 208.430475, "theta": 1.499687, "x":691199.576795, "y":3118368.238033, "dkappa":0.000000}
{"kappa": -0.000070, "s": 208.834228, "theta": 1.499659, "x":691199.605487, "y":3118368.640764, "dkappa":0.000000}
{"kappa": -0.000070, "s": 209.237975, "theta": 1.499631, "x":691199.634190, "y":3118369.043490, "dkappa":0.000000}
{"kappa": -0.000070, "s": 209.641717, "theta": 1.499603, "x":691199.662904, "y":3118369.446209, "dkappa":0.000000}
{"kappa": -0.000070, "s": 210.045453, "theta": 1.499574, "x":691199.691629, "y":3118369.848922, "dkappa":0.000000}
{"kappa": -0.000070, "s": 210.449184, "theta": 1.499546, "x":691199.720365, "y":3118370.251630, "dkappa":0.000000}
{"kappa": -0.000070, "s": 210.852910, "theta": 1.499518, "x":691199.749112, "y":3118370.654331, "dkappa":0.000000}
{"kappa": -0.000070, "s": 211.256631, "theta": 1.499490, "x":691199.777870, "y":3118371.057026, "dkappa":0.000000}
{"kappa": -0.000070, "s": 211.660346, "theta": 1.499462, "x":691199.806639, "y":3118371.459714, "dkappa":0.000000}
{"kappa": -0.000070, "s": 212.064056, "theta": 1.499434, "x":691199.835418, "y":3118371.862397, "dkappa":0.000000}
{"kappa": -0.000070, "s": 212.467760, "theta": 1.499406, "x":691199.864209, "y":3118372.265074, "dkappa":0.000000}
{"kappa": -0.000069, "s": 212.871459, "theta": 1.499378, "x":691199.893010, "y":3118372.667744, "dkappa":0.000000}
{"kappa": -0.000069, "s": 213.275153, "theta": 1.499350, "x":691199.921823, "y":3118373.070408, "dkappa":0.000000}
{"kappa": -0.000069, "s": 213.678841, "theta": 1.499322, "x":691199.950646, "y":3118373.473067, "dkappa":0.000000}
{"kappa": -0.000069, "s": 214.082525, "theta": 1.499294, "x":691199.979480, "y":3118373.875718, "dkappa":0.000000}
{"kappa": -0.000069, "s": 214.486202, "theta": 1.499266, "x":691200.008325, "y":3118374.278364, "dkappa":0.000000}
{"kappa": -0.000069, "s": 214.889874, "theta": 1.499238, "x":691200.037181, "y":3118374.681004, "dkappa":0.000000}
{"kappa": -0.000069, "s": 215.293541, "theta": 1.499210, "x":691200.066048, "y":3118375.083637, "dkappa":0.000000}
{"kappa": -0.000069, "s": 215.697203, "theta": 1.499182, "x":691200.094926, "y":3118375.486264, "dkappa":0.000000}
{"kappa": -0.000069, "s": 216.100859, "theta": 1.499154, "x":691200.123814, "y":3118375.888885, "dkappa":0.000000}
{"kappa": -0.000069, "s": 216.504509, "theta": 1.499126, "x":691200.152714, "y":3118376.291500, "dkappa":0.000000}
{"kappa": -0.000069, "s": 216.908155, "theta": 1.499099, "x":691200.181624, "y":3118376.694109, "dkappa":0.000000}
{"kappa": -0.000069, "s": 217.311794, "theta": 1.499071, "x":691200.210545, "y":3118377.096711, "dkappa":0.000000}
{"kappa": -0.000069, "s": 217.715428, "theta": 1.499043, "x":691200.239476, "y":3118377.499307, "dkappa":0.000000}
{"kappa": -0.000068, "s": 218.119057, "theta": 1.499016, "x":691200.268418, "y":3118377.901897, "dkappa":0.000000}
{"kappa": -0.000068, "s": 218.522681, "theta": 1.498988, "x":691200.297372, "y":3118378.304480, "dkappa":0.000000}
{"kappa": -0.000068, "s": 218.926298, "theta": 1.498960, "x":691200.326335, "y":3118378.707057, "dkappa":0.000000}
{"kappa": -0.000068, "s": 219.329911, "theta": 1.498933, "x":691200.355310, "y":3118379.109628, "dkappa":0.000000}
{"kappa": -0.000068, "s": 219.733518, "theta": 1.498905, "x":691200.384295, "y":3118379.512193, "dkappa":0.000000}
{"kappa": -0.000068, "s": 220.137119, "theta": 1.498878, "x":691200.413291, "y":3118379.914752, "dkappa":0.000000}
{"kappa": -0.000068, "s": 220.540715, "theta": 1.498851, "x":691200.442297, "y":3118380.317304, "dkappa":0.000000}
{"kappa": -0.000068, "s": 220.944305, "theta": 1.498823, "x":691200.471314, "y":3118380.719849, "dkappa":0.000000}
{"kappa": -0.000067, "s": 221.347889, "theta": 1.498796, "x":691200.500342, "y":3118381.122389, "dkappa":0.000000}
{"kappa": -0.000067, "s": 221.751469, "theta": 1.498769, "x":691200.529380, "y":3118381.524922, "dkappa":0.000000}
{"kappa": -0.000067, "s": 222.155042, "theta": 1.498742, "x":691200.558428, "y":3118381.927449, "dkappa":0.000000}
{"kappa": -0.000067, "s": 222.558610, "theta": 1.498715, "x":691200.587488, "y":3118382.329969, "dkappa":0.000000}
{"kappa": -0.000067, "s": 222.962172, "theta": 1.498688, "x":691200.616557, "y":3118382.732483, "dkappa":0.000000}
{"kappa": -0.000067, "s": 223.365729, "theta": 1.498661, "x":691200.645637, "y":3118383.134990, "dkappa":0.000000}
{"kappa": -0.000067, "s": 223.769280, "theta": 1.498634, "x":691200.674728, "y":3118383.537492, "dkappa":0.000000}
{"kappa": -0.000066, "s": 224.172826, "theta": 1.498607, "x":691200.703829, "y":3118383.939987, "dkappa":0.000000}
{"kappa": -0.000066, "s": 224.576365, "theta": 1.498580, "x":691200.732940, "y":3118384.342475, "dkappa":0.000000}
{"kappa": -0.000066, "s": 224.979900, "theta": 1.498554, "x":691200.762062, "y":3118384.744957, "dkappa":0.000000}
{"kappa": -0.000066, "s": 225.383428, "theta": 1.498527, "x":691200.791194, "y":3118385.147432, "dkappa":0.000000}
{"kappa": -0.000066, "s": 225.786951, "theta": 1.498501, "x":691200.820336, "y":3118385.549901, "dkappa":0.000000}
{"kappa": -0.000065, "s": 226.190468, "theta": 1.498474, "x":691200.849489, "y":3118385.952364, "dkappa":0.000000}
{"kappa": -0.000065, "s": 226.593979, "theta": 1.498448, "x":691200.878651, "y":3118386.354820, "dkappa":0.000000}
{"kappa": -0.000065, "s": 226.997485, "theta": 1.498421, "x":691200.907824, "y":3118386.757270, "dkappa":0.000001}
{"kappa": -0.000065, "s": 227.400985, "theta": 1.498395, "x":691200.937007, "y":3118387.159713, "dkappa":0.000001}
{"kappa": -0.000065, "s": 227.804479, "theta": 1.498369, "x":691200.966201, "y":3118387.562150, "dkappa":0.000001}
{"kappa": -0.000064, "s": 228.207967, "theta": 1.498343, "x":691200.995404, "y":3118387.964580, "dkappa":0.000001}
{"kappa": -0.000064, "s": 228.611450, "theta": 1.498317, "x":691201.024617, "y":3118388.367003, "dkappa":0.000001}
{"kappa": -0.000064, "s": 229.014926, "theta": 1.498291, "x":691201.053840, "y":3118388.769421, "dkappa":0.000001}
{"kappa": -0.000064, "s": 229.418397, "theta": 1.498265, "x":691201.083074, "y":3118389.171831, "dkappa":0.000001}
{"kappa": -0.000063, "s": 229.821863, "theta": 1.498240, "x":691201.112317, "y":3118389.574235, "dkappa":0.000001}
{"kappa": -0.000063, "s": 230.225322, "theta": 1.498214, "x":691201.141570, "y":3118389.976632, "dkappa":0.000001}
{"kappa": -0.000063, "s": 230.628775, "theta": 1.498189, "x":691201.170833, "y":3118390.379023, "dkappa":0.000001}
{"kappa": -0.000063, "s": 231.032223, "theta": 1.498163, "x":691201.200106, "y":3118390.781407, "dkappa":0.000001}
{"kappa": -0.000062, "s": 231.435664, "theta": 1.498138, "x":691201.229388, "y":3118391.183785, "dkappa":0.000001}
{"kappa": -0.000062, "s": 231.839100, "theta": 1.498113, "x":691201.258680, "y":3118391.586156, "dkappa":0.000001}
{"kappa": -0.000062, "s": 232.242530, "theta": 1.498088, "x":691201.287982, "y":3118391.988520, "dkappa":0.000001}
{"kappa": -0.000062, "s": 232.645954, "theta": 1.498063, "x":691201.317294, "y":3118392.390878, "dkappa":0.000001}
{"kappa": -0.000061, "s": 233.049372, "theta": 1.498038, "x":691201.346615, "y":3118392.793229, "dkappa":0.000001}
{"kappa": -0.000061, "s": 233.452784, "theta": 1.498014, "x":691201.375945, "y":3118393.195573, "dkappa":0.000001}
{"kappa": -0.000061, "s": 233.856190, "theta": 1.497989, "x":691201.405285, "y":3118393.597911, "dkappa":0.000001}
{"kappa": -0.000060, "s": 234.259590, "theta": 1.497965, "x":691201.434635, "y":3118394.000241, "dkappa":0.000001}
{"kappa": -0.000060, "s": 234.662984, "theta": 1.497940, "x":691201.463994, "y":3118394.402566, "dkappa":0.000001}
{"kappa": -0.000060, "s": 235.066372, "theta": 1.497916, "x":691201.493362, "y":3118394.804883, "dkappa":0.000001}
{"kappa": -0.000059, "s": 235.469753, "theta": 1.497892, "x":691201.522739, "y":3118395.207194, "dkappa":0.000001}
{"kappa": -0.000059, "s": 235.873129, "theta": 1.497868, "x":691201.552126, "y":3118395.609498, "dkappa":0.000001}
{"kappa": -0.000059, "s": 236.276499, "theta": 1.497844, "x":691201.581521, "y":3118396.011795, "dkappa":0.000001}
{"kappa": -0.000058, "s": 236.679862, "theta": 1.497821, "x":691201.610926, "y":3118396.414085, "dkappa":0.000001}
{"kappa": -0.000058, "s": 237.083220, "theta": 1.497797, "x":691201.640340, "y":3118396.816369, "dkappa":0.000001}
{"kappa": -0.000058, "s": 237.486571, "theta": 1.497774, "x":691201.669763, "y":3118397.218646, "dkappa":0.000001}
{"kappa": -0.000057, "s": 237.889916, "theta": 1.497751, "x":691201.699195, "y":3118397.620916, "dkappa":0.000001}
{"kappa": -0.000057, "s": 238.293256, "theta": 1.497728, "x":691201.728635, "y":3118398.023179, "dkappa":0.000001}
{"kappa": -0.000056, "s": 238.696588, "theta": 1.497705, "x":691201.758084, "y":3118398.425435, "dkappa":0.000001}
{"kappa": -0.000056, "s": 239.099915, "theta": 1.497682, "x":691201.787542, "y":3118398.827684, "dkappa":0.000001}
{"kappa": -0.000056, "s": 239.503235, "theta": 1.497660, "x":691201.817009, "y":3118399.229927, "dkappa":0.000001}
{"kappa": -0.000055, "s": 239.906550, "theta": 1.497637, "x":691201.846484, "y":3118399.632163, "dkappa":0.000001}
{"kappa": -0.000055, "s": 240.309857, "theta": 1.497615, "x":691201.875968, "y":3118400.034391, "dkappa":0.000001}
{"kappa": -0.000054, "s": 240.713159, "theta": 1.497593, "x":691201.905460, "y":3118400.436613, "dkappa":0.000001}
{"kappa": -0.000054, "s": 241.116454, "theta": 1.497571, "x":691201.934961, "y":3118400.838828, "dkappa":0.000001}
{"kappa": -0.000053, "s": 241.519743, "theta": 1.497550, "x":691201.964470, "y":3118401.241036, "dkappa":0.000001}
{"kappa": -0.000053, "s": 241.923026, "theta": 1.497528, "x":691201.993987, "y":3118401.643237, "dkappa":0.000001}
{"kappa": -0.000053, "s": 242.326302, "theta": 1.497507, "x":691202.023512, "y":3118402.045431, "dkappa":0.000001}
{"kappa": -0.000052, "s": 242.729572, "theta": 1.497486, "x":691202.053045, "y":3118402.447618, "dkappa":0.000001}
{"kappa": -0.000052, "s": 243.132836, "theta": 1.497465, "x":691202.082586, "y":3118402.849798, "dkappa":0.000001}
{"kappa": -0.000051, "s": 243.536093, "theta": 1.497444, "x":691202.112135, "y":3118403.251971, "dkappa":0.000001}
{"kappa": -0.000051, "s": 243.939344, "theta": 1.497424, "x":691202.141692, "y":3118403.654137, "dkappa":0.000001}
{"kappa": -0.000050, "s": 244.342588, "theta": 1.497403, "x":691202.171257, "y":3118404.056296, "dkappa":0.000001}
{"kappa": -0.000050, "s": 244.745826, "theta": 1.497383, "x":691202.200829, "y":3118404.458448, "dkappa":0.000001}
{"kappa": -0.000049, "s": 245.149057, "theta": 1.497363, "x":691202.230409, "y":3118404.860593, "dkappa":0.000001}
{"kappa": -0.000048, "s": 245.552282, "theta": 1.497344, "x":691202.259996, "y":3118405.262731, "dkappa":0.000001}
{"kappa": -0.000048, "s": 245.955500, "theta": 1.497324, "x":691202.289591, "y":3118405.664862, "dkappa":0.000001}
{"kappa": -0.000047, "s": 246.358712, "theta": 1.497305, "x":691202.319193, "y":3118406.066985, "dkappa":0.000001}
{"kappa": -0.000047, "s": 246.761917, "theta": 1.497286, "x":691202.348802, "y":3118406.469102, "dkappa":0.000001}
{"kappa": -0.000046, "s": 247.165116, "theta": 1.497267, "x":691202.378419, "y":3118406.871211, "dkappa":0.000001}
{"kappa": -0.000046, "s": 247.568308, "theta": 1.497249, "x":691202.408042, "y":3118407.273313, "dkappa":0.000001}
{"kappa": -0.000045, "s": 247.971493, "theta": 1.497231, "x":691202.437672, "y":3118407.675409, "dkappa":0.000001}
{"kappa": -0.000044, "s": 248.374672, "theta": 1.497213, "x":691202.467309, "y":3118408.077496, "dkappa":0.000002}
{"kappa": -0.000044, "s": 248.777844, "theta": 1.497195, "x":691202.496953, "y":3118408.479577, "dkappa":0.000002}
{"kappa": -0.000043, "s": 249.181009, "theta": 1.497177, "x":691202.526603, "y":3118408.881651, "dkappa":0.000002}
{"kappa": -0.000043, "s": 249.584168, "theta": 1.497160, "x":691202.556260, "y":3118409.283717, "dkappa":0.000002}
{"kappa": -0.000042, "s": 249.987319, "theta": 1.497143, "x":691202.585923, "y":3118409.685776, "dkappa":0.000002}
{"kappa": -0.000041, "s": 250.390465, "theta": 1.497126, "x":691202.615593, "y":3118410.087828, "dkappa":0.000002}
{"kappa": -0.000041, "s": 250.793603, "theta": 1.497110, "x":691202.645269, "y":3118410.489873, "dkappa":0.000002}
{"kappa": -0.000040, "s": 251.196735, "theta": 1.497093, "x":691202.674951, "y":3118410.891910, "dkappa":0.000002}
{"kappa": -0.000039, "s": 251.599859, "theta": 1.497077, "x":691202.704638, "y":3118411.293940, "dkappa":0.000002}
{"kappa": -0.000039, "s": 252.002977, "theta": 1.497062, "x":691202.734332, "y":3118411.695963, "dkappa":0.000002}
{"kappa": -0.000038, "s": 252.406088, "theta": 1.497046, "x":691202.764031, "y":3118412.097979, "dkappa":0.000002}
{"kappa": -0.000037, "s": 252.809193, "theta": 1.497031, "x":691202.793736, "y":3118412.499987, "dkappa":0.000002}
{"kappa": -0.000036, "s": 253.212290, "theta": 1.497017, "x":691202.823447, "y":3118412.901988, "dkappa":0.000002}
{"kappa": -0.000036, "s": 253.615380, "theta": 1.497002, "x":691202.853163, "y":3118413.303981, "dkappa":0.000002}
{"kappa": -0.000035, "s": 254.018464, "theta": 1.496988, "x":691202.882884, "y":3118413.705968, "dkappa":0.000002}
{"kappa": -0.000034, "s": 254.421540, "theta": 1.496974, "x":691202.912610, "y":3118414.107946, "dkappa":0.000002}
{"kappa": -0.000033, "s": 254.824610, "theta": 1.496960, "x":691202.942341, "y":3118414.509918, "dkappa":0.000002}
{"kappa": -0.000032, "s": 255.227672, "theta": 1.496947, "x":691202.972078, "y":3118414.911882, "dkappa":0.000002}
{"kappa": -0.000032, "s": 255.630728, "theta": 1.496934, "x":691203.001818, "y":3118415.313839, "dkappa":0.000002}
{"kappa": -0.000031, "s": 256.033776, "theta": 1.496922, "x":691203.031564, "y":3118415.715788, "dkappa":0.000002}
{"kappa": -0.000030, "s": 256.436817, "theta": 1.496909, "x":691203.061314, "y":3118416.117730, "dkappa":0.000002}
{"kappa": -0.000029, "s": 256.839852, "theta": 1.496897, "x":691203.091068, "y":3118416.519664, "dkappa":0.000002}
{"kappa": -0.000028, "s": 257.242879, "theta": 1.496886, "x":691203.120827, "y":3118416.921591, "dkappa":0.000002}
{"kappa": -0.000027, "s": 257.645899, "theta": 1.496875, "x":691203.150589, "y":3118417.323511, "dkappa":0.000002}
{"kappa": -0.000027, "s": 258.048912, "theta": 1.496864, "x":691203.180356, "y":3118417.725423, "dkappa":0.000002}
{"kappa": -0.000026, "s": 258.451917, "theta": 1.496853, "x":691203.210126, "y":3118418.127328, "dkappa":0.000002}
{"kappa": -0.000025, "s": 258.854916, "theta": 1.496843, "x":691203.239900, "y":3118418.529225, "dkappa":0.000002}
{"kappa": -0.000024, "s": 259.257907, "theta": 1.496833, "x":691203.269677, "y":3118418.931114, "dkappa":0.000002}
{"kappa": -0.000023, "s": 259.660891, "theta": 1.496824, "x":691203.299458, "y":3118419.332996, "dkappa":0.000002}
{"kappa": -0.000022, "s": 260.063868, "theta": 1.496815, "x":691203.329242, "y":3118419.734871, "dkappa":0.000002}
{"kappa": -0.000021, "s": 260.466837, "theta": 1.496806, "x":691203.359029, "y":3118420.136738, "dkappa":0.000002}
{"kappa": -0.000020, "s": 260.869799, "theta": 1.496798, "x":691203.388819, "y":3118420.538597, "dkappa":0.000002}
{"kappa": -0.000019, "s": 261.272754, "theta": 1.496790, "x":691203.418611, "y":3118420.940449, "dkappa":0.000002}
{"kappa": -0.000018, "s": 261.675701, "theta": 1.496782, "x":691203.448406, "y":3118421.342294, "dkappa":0.000002}
{"kappa": -0.000017, "s": 262.078641, "theta": 1.496775, "x":691203.478204, "y":3118421.744130, "dkappa":0.000003}
{"kappa": -0.000016, "s": 262.481574, "theta": 1.496768, "x":691203.508004, "y":3118422.145959, "dkappa":0.000003}
{"kappa": -0.000015, "s": 262.884499, "theta": 1.496762, "x":691203.537805, "y":3118422.547781, "dkappa":0.000003}
{"kappa": -0.000014, "s": 263.287417, "theta": 1.496756, "x":691203.567609, "y":3118422.949595, "dkappa":0.000003}
{"kappa": -0.000013, "s": 263.690327, "theta": 1.496751, "x":691203.597414, "y":3118423.351401, "dkappa":0.000003}
{"kappa": -0.000012, "s": 264.093230, "theta": 1.496746, "x":691203.627221, "y":3118423.753200, "dkappa":0.000003}
{"kappa": -0.000011, "s": 264.496125, "theta": 1.496741, "x":691203.657029, "y":3118424.154991, "dkappa":0.000003}
{"kappa": -0.000010, "s": 264.899013, "theta": 1.496737, "x":691203.686839, "y":3118424.556774, "dkappa":0.000003}
{"kappa": -0.000009, "s": 265.301893, "theta": 1.496733, "x":691203.716649, "y":3118424.958550, "dkappa":0.000003}
{"kappa": -0.000007, "s": 265.704765, "theta": 1.496730, "x":691203.746461, "y":3118425.360318, "dkappa":0.000003}
{"kappa": -0.000006, "s": 266.107630, "theta": 1.496728, "x":691203.776272, "y":3118425.762078, "dkappa":0.000003}
{"kappa": -0.000005, "s": 266.510488, "theta": 1.496725, "x":691203.806085, "y":3118426.163831, "dkappa":0.000003}
{"kappa": -0.000004, "s": 266.913337, "theta": 1.496723, "x":691203.835897, "y":3118426.565576, "dkappa":0.000003}
{"kappa": -0.000003, "s": 267.316179, "theta": 1.496722, "x":691203.865710, "y":3118426.967313, "dkappa":0.000003}
{"kappa": -0.000001, "s": 267.719013, "theta": 1.496721, "x":691203.895523, "y":3118427.369043, "dkappa":0.000003}
{"kappa": -0.000000, "s": 268.121840, "theta": 1.496721, "x":691203.925335, "y":3118427.770764, "dkappa":0.000003}
{"kappa": 0.000001, "s": 268.524658, "theta": 1.496721, "x":691203.955147, "y":3118428.172478, "dkappa":0.000003}
{"kappa": 0.000002, "s": 268.927469, "theta": 1.496722, "x":691203.984957, "y":3118428.574185, "dkappa":0.000003}
{"kappa": 0.000004, "s": 269.330272, "theta": 1.496723, "x":691204.014767, "y":3118428.975883, "dkappa":0.000003}
{"kappa": 0.000005, "s": 269.733068, "theta": 1.496725, "x":691204.044576, "y":3118429.377574, "dkappa":0.000003}
{"kappa": 0.000006, "s": 270.135855, "theta": 1.496727, "x":691204.074384, "y":3118429.779257, "dkappa":0.000003}
{"kappa": 0.000007, "s": 270.538635, "theta": 1.496729, "x":691204.104190, "y":3118430.180932, "dkappa":0.000003}
{"kappa": 0.000009, "s": 270.941406, "theta": 1.496733, "x":691204.133994, "y":3118430.582600, "dkappa":0.000003}
{"kappa": 0.000010, "s": 271.344170, "theta": 1.496737, "x":691204.163796, "y":3118430.984259, "dkappa":0.000003}
{"kappa": 0.000012, "s": 271.746926, "theta": 1.496741, "x":691204.193596, "y":3118431.385911, "dkappa":0.000003}
{"kappa": 0.000013, "s": 272.149673, "theta": 1.496746, "x":691204.223393, "y":3118431.787555, "dkappa":0.000003}
{"kappa": 0.000014, "s": 272.552413, "theta": 1.496751, "x":691204.253188, "y":3118432.189191, "dkappa":0.000004}
{"kappa": 0.000016, "s": 272.955145, "theta": 1.496757, "x":691204.282980, "y":3118432.590819, "dkappa":0.000004}
{"kappa": 0.000017, "s": 273.357869, "theta": 1.496764, "x":691204.312769, "y":3118432.992440, "dkappa":0.000004}
{"kappa": 0.000019, "s": 273.760584, "theta": 1.496771, "x":691204.342554, "y":3118433.394053, "dkappa":0.000004}
{"kappa": 0.000020, "s": 274.163292, "theta": 1.496779, "x":691204.372336, "y":3118433.795657, "dkappa":0.000004}
{"kappa": 0.000022, "s": 274.565991, "theta": 1.496787, "x":691204.402114, "y":3118434.197254, "dkappa":0.000004}
{"kappa": 0.000023, "s": 274.968683, "theta": 1.496796, "x":691204.431887, "y":3118434.598843, "dkappa":0.000004}
{"kappa": 0.000025, "s": 275.371366, "theta": 1.496806, "x":691204.461657, "y":3118435.000424, "dkappa":0.000004}
{"kappa": 0.000026, "s": 275.774041, "theta": 1.496816, "x":691204.491422, "y":3118435.401998, "dkappa":0.000004}
{"kappa": 0.000028, "s": 276.176707, "theta": 1.496827, "x":691204.521182, "y":3118435.803563, "dkappa":0.000004}
{"kappa": 0.000029, "s": 276.579366, "theta": 1.496839, "x":691204.550937, "y":3118436.205121, "dkappa":0.000004}
{"kappa": 0.000031, "s": 276.982016, "theta": 1.496851, "x":691204.580686, "y":3118436.606670, "dkappa":0.000004}
{"kappa": 0.000033, "s": 277.384658, "theta": 1.496863, "x":691204.610430, "y":3118437.008212, "dkappa":0.000004}
{"kappa": 0.000034, "s": 277.787291, "theta": 1.496877, "x":691204.640168, "y":3118437.409746, "dkappa":0.000004}
{"kappa": 0.000036, "s": 278.189917, "theta": 1.496891, "x":691204.669900, "y":3118437.811272, "dkappa":0.000004}
{"kappa": 0.000038, "s": 278.592533, "theta": 1.496906, "x":691204.699626, "y":3118438.212790, "dkappa":0.000004}
{"kappa": 0.000039, "s": 278.995142, "theta": 1.496921, "x":691204.729345, "y":3118438.614300, "dkappa":0.000004}
{"kappa": 0.000041, "s": 279.397742, "theta": 1.496937, "x":691204.759056, "y":3118439.015802, "dkappa":0.000004}
{"kappa": 0.000043, "s": 279.800334, "theta": 1.496954, "x":691204.788761, "y":3118439.417297, "dkappa":0.000004}
{"kappa": 0.000044, "s": 280.202917, "theta": 1.496972, "x":691204.818458, "y":3118439.818783, "dkappa":0.000004}
{"kappa": 0.000046, "s": 280.605491, "theta": 1.496990, "x":691204.848147, "y":3118440.220261, "dkappa":0.000004}
{"kappa": 0.000048, "s": 281.008058, "theta": 1.497009, "x":691204.877828, "y":3118440.621732, "dkappa":0.000004}
{"kappa": 0.000050, "s": 281.410615, "theta": 1.497029, "x":691204.907501, "y":3118441.023194, "dkappa":0.000005}
{"kappa": 0.000052, "s": 281.813164, "theta": 1.497049, "x":691204.937165, "y":3118441.424649, "dkappa":0.000005}
{"kappa": 0.000054, "s": 282.215705, "theta": 1.497070, "x":691204.966820, "y":3118441.826096, "dkappa":0.000005}
{"kappa": 0.000055, "s": 282.618237, "theta": 1.497092, "x":691204.996466, "y":3118442.227534, "dkappa":0.000005}
{"kappa": 0.000057, "s": 283.020760, "theta": 1.497115, "x":691205.026102, "y":3118442.628965, "dkappa":0.000005}
{"kappa": 0.000059, "s": 283.423274, "theta": 1.497138, "x":691205.055729, "y":3118443.030388, "dkappa":0.000005}
{"kappa": 0.000061, "s": 283.825780, "theta": 1.497163, "x":691205.085345, "y":3118443.431803, "dkappa":0.000005}
{"kappa": 0.000063, "s": 284.228278, "theta": 1.497188, "x":691205.114950, "y":3118443.833210, "dkappa":0.000005}
{"kappa": 0.000065, "s": 284.630766, "theta": 1.497214, "x":691205.144545, "y":3118444.234609, "dkappa":0.000005}
{"kappa": 0.000067, "s": 285.033246, "theta": 1.497240, "x":691205.174129, "y":3118444.636000, "dkappa":0.000005}
{"kappa": 0.000069, "s": 285.435717, "theta": 1.497268, "x":691205.203701, "y":3118445.037383, "dkappa":0.000005}
{"kappa": 0.000071, "s": 285.838179, "theta": 1.497296, "x":691205.233261, "y":3118445.438758, "dkappa":0.000005}
{"kappa": 0.000073, "s": 286.240632, "theta": 1.497325, "x":691205.262809, "y":3118445.840125, "dkappa":0.000005}
{"kappa": 0.000075, "s": 286.643077, "theta": 1.497355, "x":691205.292345, "y":3118446.241484, "dkappa":0.000005}
{"kappa": 0.000078, "s": 287.045512, "theta": 1.497386, "x":691205.321867, "y":3118446.642835, "dkappa":0.000005}
{"kappa": 0.000080, "s": 287.447939, "theta": 1.497417, "x":691205.351377, "y":3118447.044179, "dkappa":0.000005}
{"kappa": 0.000082, "s": 287.850357, "theta": 1.497450, "x":691205.380873, "y":3118447.445514, "dkappa":0.000005}
{"kappa": 0.000084, "s": 288.252765, "theta": 1.497483, "x":691205.410355, "y":3118447.846841, "dkappa":0.000005}
{"kappa": 0.000086, "s": 288.655165, "theta": 1.497517, "x":691205.439823, "y":3118448.248161, "dkappa":0.000006}
{"kappa": 0.000088, "s": 289.057556, "theta": 1.497553, "x":691205.469277, "y":3118448.649472, "dkappa":0.000006}
{"kappa": 0.000091, "s": 289.459938, "theta": 1.497589, "x":691205.498715, "y":3118449.050776, "dkappa":0.000006}
{"kappa": 0.000093, "s": 289.862310, "theta": 1.497626, "x":691205.528138, "y":3118449.452071, "dkappa":0.000006}
{"kappa": 0.000095, "s": 290.264674, "theta": 1.497663, "x":691205.557545, "y":3118449.853359, "dkappa":0.000006}
{"kappa": 0.000098, "s": 290.667029, "theta": 1.497702, "x":691205.586937, "y":3118450.254638, "dkappa":0.000006}
{"kappa": 0.000100, "s": 291.069374, "theta": 1.497742, "x":691205.616312, "y":3118450.655910, "dkappa":0.000006}
{"kappa": 0.000102, "s": 291.471711, "theta": 1.497783, "x":691205.645670, "y":3118451.057174, "dkappa":0.000006}
{"kappa": 0.000105, "s": 291.874038, "theta": 1.497824, "x":691205.675011, "y":3118451.458430, "dkappa":0.000006}
{"kappa": 0.000107, "s": 292.276356, "theta": 1.497867, "x":691205.704334, "y":3118451.859678, "dkappa":0.000006}
{"kappa": 0.000110, "s": 292.678664, "theta": 1.497911, "x":691205.733639, "y":3118452.260918, "dkappa":0.000006}
{"kappa": 0.000112, "s": 293.080964, "theta": 1.497955, "x":691205.762926, "y":3118452.662150, "dkappa":0.000006}
{"kappa": 0.000115, "s": 293.483254, "theta": 1.498001, "x":691205.792195, "y":3118453.063374, "dkappa":0.000006}
{"kappa": 0.000117, "s": 293.885535, "theta": 1.498048, "x":691205.821443, "y":3118453.464590, "dkappa":0.000006}
{"kappa": 0.000120, "s": 294.287807, "theta": 1.498095, "x":691205.850673, "y":3118453.865798, "dkappa":0.000006}
{"kappa": 0.000122, "s": 294.690069, "theta": 1.498144, "x":691205.879882, "y":3118454.266999, "dkappa":0.000006}
{"kappa": 0.000125, "s": 295.092322, "theta": 1.498194, "x":691205.909071, "y":3118454.668191, "dkappa":0.000007}
{"kappa": 0.000128, "s": 295.494566, "theta": 1.498245, "x":691205.938239, "y":3118455.069376, "dkappa":0.000007}
{"kappa": 0.000130, "s": 295.896800, "theta": 1.498297, "x":691205.967386, "y":3118455.470553, "dkappa":0.000007}
{"kappa": 0.000133, "s": 296.299025, "theta": 1.498350, "x":691205.996511, "y":3118455.871722, "dkappa":0.000007}
{"kappa": 0.000136, "s": 296.701240, "theta": 1.498404, "x":691206.025614, "y":3118456.272883, "dkappa":0.000007}
{"kappa": 0.000138, "s": 297.103446, "theta": 1.498459, "x":691206.054694, "y":3118456.674036, "dkappa":0.000007}
{"kappa": 0.000141, "s": 297.505642, "theta": 1.498515, "x":691206.083752, "y":3118457.075182, "dkappa":0.000007}
{"kappa": 0.000144, "s": 297.907829, "theta": 1.498572, "x":691206.112785, "y":3118457.476319, "dkappa":0.000007}
{"kappa": 0.000147, "s": 298.310007, "theta": 1.498631, "x":691206.141795, "y":3118457.877449, "dkappa":0.000007}
{"kappa": 0.000150, "s": 298.712174, "theta": 1.498691, "x":691206.170781, "y":3118458.278571, "dkappa":0.000007}
{"kappa": 0.000253, "s": 299.114333, "theta": 1.498751, "x":691206.199742, "y":3118458.679685, "dkappa":0.000000}
{"kappa": 0.000253, "s": 299.518422, "theta": 1.498854, "x":691206.228808, "y":3118459.082727, "dkappa":0.000000}
{"kappa": 0.000253, "s": 299.922498, "theta": 1.498956, "x":691206.257833, "y":3118459.485760, "dkappa":0.000001}
{"kappa": 0.000254, "s": 300.326562, "theta": 1.499058, "x":691206.286815, "y":3118459.888782, "dkappa":0.000001}
{"kappa": 0.000254, "s": 300.730612, "theta": 1.499161, "x":691206.315756, "y":3118460.291795, "dkappa":0.000001}
{"kappa": 0.000254, "s": 301.134651, "theta": 1.499264, "x":691206.344654, "y":3118460.694799, "dkappa":0.000001}
{"kappa": 0.000255, "s": 301.538676, "theta": 1.499366, "x":691206.373509, "y":3118461.097792, "dkappa":0.000001}
{"kappa": 0.000256, "s": 301.942689, "theta": 1.499470, "x":691206.402323, "y":3118461.500776, "dkappa":0.000002}
{"kappa": 0.000256, "s": 302.346689, "theta": 1.499573, "x":691206.431093, "y":3118461.903751, "dkappa":0.000002}
{"kappa": 0.000257, "s": 302.750676, "theta": 1.499677, "x":691206.459822, "y":3118462.306715, "dkappa":0.000002}
{"kappa": 0.000258, "s": 303.154650, "theta": 1.499781, "x":691206.488507, "y":3118462.709670, "dkappa":0.000002}
{"kappa": 0.000259, "s": 303.558612, "theta": 1.499885, "x":691206.517149, "y":3118463.112615, "dkappa":0.000003}
{"kappa": 0.000260, "s": 303.962561, "theta": 1.499990, "x":691206.545749, "y":3118463.515550, "dkappa":0.000003}
{"kappa": 0.000261, "s": 304.366497, "theta": 1.500095, "x":691206.574305, "y":3118463.918476, "dkappa":0.000003}
{"kappa": 0.000262, "s": 304.770421, "theta": 1.500201, "x":691206.602818, "y":3118464.321392, "dkappa":0.000003}
{"kappa": 0.000264, "s": 305.174332, "theta": 1.500307, "x":691206.631287, "y":3118464.724298, "dkappa":0.000003}
{"kappa": 0.000265, "s": 305.578230, "theta": 1.500414, "x":691206.659712, "y":3118465.127195, "dkappa":0.000004}
{"kappa": 0.000266, "s": 305.982115, "theta": 1.500521, "x":691206.688094, "y":3118465.530082, "dkappa":0.000004}
{"kappa": 0.000268, "s": 306.385988, "theta": 1.500629, "x":691206.716431, "y":3118465.932959, "dkappa":0.000004}
{"kappa": 0.000270, "s": 306.789848, "theta": 1.500738, "x":691206.744724, "y":3118466.335827, "dkappa":0.000004}
{"kappa": 0.000271, "s": 307.193695, "theta": 1.500847, "x":691206.772972, "y":3118466.738685, "dkappa":0.000004}
{"kappa": 0.000273, "s": 307.597529, "theta": 1.500957, "x":691206.801174, "y":3118467.141533, "dkappa":0.000004}
{"kappa": 0.000275, "s": 308.001351, "theta": 1.501067, "x":691206.829332, "y":3118467.544372, "dkappa":0.000005}
{"kappa": 0.000277, "s": 308.405160, "theta": 1.501179, "x":691206.857444, "y":3118467.947201, "dkappa":0.000005}
{"kappa": 0.000279, "s": 308.808956, "theta": 1.501291, "x":691206.885510, "y":3118468.350020, "dkappa":0.000005}
{"kappa": 0.000281, "s": 309.212739, "theta": 1.501404, "x":691206.913529, "y":3118468.752830, "dkappa":0.000005}
{"kappa": 0.000283, "s": 309.616509, "theta": 1.501518, "x":691206.941503, "y":3118469.155630, "dkappa":0.000005}
{"kappa": 0.000285, "s": 310.020267, "theta": 1.501633, "x":691206.969429, "y":3118469.558421, "dkappa":0.000006}
{"kappa": 0.000288, "s": 310.424012, "theta": 1.501748, "x":691206.997308, "y":3118469.961202, "dkappa":0.000006}
{"kappa": 0.000290, "s": 310.827744, "theta": 1.501865, "x":691207.025139, "y":3118470.363974, "dkappa":0.000006}
{"kappa": 0.000292, "s": 311.231463, "theta": 1.501983, "x":691207.052922, "y":3118470.766736, "dkappa":0.000006}
{"kappa": 0.000295, "s": 311.635169, "theta": 1.502101, "x":691207.080657, "y":3118471.169488, "dkappa":0.000006}
{"kappa": 0.000298, "s": 312.038863, "theta": 1.502221, "x":691207.108343, "y":3118471.572231, "dkappa":0.000006}
{"kappa": 0.000300, "s": 312.442543, "theta": 1.502342, "x":691207.135979, "y":3118471.974965, "dkappa":0.000007}
{"kappa": 0.000303, "s": 312.846211, "theta": 1.502463, "x":691207.163566, "y":3118472.377689, "dkappa":0.000007}
{"kappa": 0.000306, "s": 313.249866, "theta": 1.502586, "x":691207.191103, "y":3118472.780403, "dkappa":0.000007}
{"kappa": 0.000309, "s": 313.653508, "theta": 1.502710, "x":691207.218589, "y":3118473.183108, "dkappa":0.000007}
{"kappa": 0.000311, "s": 314.057137, "theta": 1.502835, "x":691207.246025, "y":3118473.585804, "dkappa":0.000007}
{"kappa": 0.000314, "s": 314.460753, "theta": 1.502961, "x":691207.273408, "y":3118473.988490, "dkappa":0.000007}
{"kappa": 0.000317, "s": 314.864356, "theta": 1.503089, "x":691207.300740, "y":3118474.391166, "dkappa":0.000008}
{"kappa": 0.000321, "s": 315.267946, "theta": 1.503218, "x":691207.328019, "y":3118474.793834, "dkappa":0.000008}
{"kappa": 0.000324, "s": 315.671524, "theta": 1.503348, "x":691207.355246, "y":3118475.196492, "dkappa":0.000008}
{"kappa": 0.000327, "s": 316.075088, "theta": 1.503479, "x":691207.382419, "y":3118475.599140, "dkappa":0.000008}
{"kappa": 0.000330, "s": 316.478639, "theta": 1.503611, "x":691207.409537, "y":3118476.001779, "dkappa":0.000008}
{"kappa": 0.000333, "s": 316.882178, "theta": 1.503745, "x":691207.436602, "y":3118476.404409, "dkappa":0.000008}
{"kappa": 0.000337, "s": 317.285703, "theta": 1.503881, "x":691207.463611, "y":3118476.807029, "dkappa":0.000008}
{"kappa": 0.000340, "s": 317.689216, "theta": 1.504017, "x":691207.490565, "y":3118477.209641, "dkappa":0.000009}
{"kappa": 0.000344, "s": 318.092715, "theta": 1.504155, "x":691207.517462, "y":3118477.612243, "dkappa":0.000009}
{"kappa": 0.000347, "s": 318.496201, "theta": 1.504295, "x":691207.544303, "y":3118478.014835, "dkappa":0.000009}
{"kappa": 0.000351, "s": 318.899675, "theta": 1.504436, "x":691207.571087, "y":3118478.417419, "dkappa":0.000009}
{"kappa": 0.000355, "s": 319.303135, "theta": 1.504578, "x":691207.597813, "y":3118478.819993, "dkappa":0.000009}
{"kappa": 0.000358, "s": 319.706582, "theta": 1.504722, "x":691207.624480, "y":3118479.222558, "dkappa":0.000009}
{"kappa": 0.000362, "s": 320.110016, "theta": 1.504867, "x":691207.651088, "y":3118479.625113, "dkappa":0.000009}
{"kappa": 0.000366, "s": 320.513437, "theta": 1.505014, "x":691207.677636, "y":3118480.027660, "dkappa":0.000010}
{"kappa": 0.000370, "s": 320.916845, "theta": 1.505162, "x":691207.704125, "y":3118480.430197, "dkappa":0.000010}
{"kappa": 0.000374, "s": 321.320240, "theta": 1.505312, "x":691207.730552, "y":3118480.832726, "dkappa":0.000010}
{"kappa": 0.000378, "s": 321.723622, "theta": 1.505464, "x":691207.756917, "y":3118481.235245, "dkappa":0.000010}
{"kappa": 0.000382, "s": 322.126990, "theta": 1.505617, "x":691207.783221, "y":3118481.637755, "dkappa":0.000010}
{"kappa": 0.000386, "s": 322.530346, "theta": 1.505772, "x":691207.809462, "y":3118482.040256, "dkappa":0.000010}
{"kappa": 0.000390, "s": 322.933688, "theta": 1.505928, "x":691207.835639, "y":3118482.442748, "dkappa":0.000010}
{"kappa": 0.000394, "s": 323.337017, "theta": 1.506086, "x":691207.861752, "y":3118482.845231, "dkappa":0.000010}
{"kappa": 0.000398, "s": 323.740333, "theta": 1.506246, "x":691207.887800, "y":3118483.247705, "dkappa":0.000010}
{"kappa": 0.000403, "s": 324.143636, "theta": 1.506408, "x":691207.913783, "y":3118483.650169, "dkappa":0.000011}
{"kappa": 0.000407, "s": 324.546926, "theta": 1.506571, "x":691207.939699, "y":3118484.052625, "dkappa":0.000011}
{"kappa": 0.000411, "s": 324.950202, "theta": 1.506736, "x":691207.965549, "y":3118484.455073, "dkappa":0.000011}
{"kappa": 0.000416, "s": 325.353465, "theta": 1.506903, "x":691207.991331, "y":3118484.857511, "dkappa":0.000011}
{"kappa": 0.000420, "s": 325.756715, "theta": 1.507071, "x":691208.017045, "y":3118485.259940, "dkappa":0.000011}
{"kappa": 0.000424, "s": 326.159952, "theta": 1.507241, "x":691208.042690, "y":3118485.662360, "dkappa":0.000011}
{"kappa": 0.000429, "s": 326.563175, "theta": 1.507413, "x":691208.068265, "y":3118486.064772, "dkappa":0.000011}
{"kappa": 0.000433, "s": 326.966385, "theta": 1.507587, "x":691208.093770, "y":3118486.467175, "dkappa":0.000011}
{"kappa": 0.000438, "s": 327.369582, "theta": 1.507763, "x":691208.119203, "y":3118486.869569, "dkappa":0.000011}
{"kappa": 0.000443, "s": 327.772766, "theta": 1.507940, "x":691208.144565, "y":3118487.271954, "dkappa":0.000012}
{"kappa": 0.000447, "s": 328.175936, "theta": 1.508120, "x":691208.169854, "y":3118487.674330, "dkappa":0.000012}
{"kappa": 0.000452, "s": 328.579093, "theta": 1.508301, "x":691208.195069, "y":3118488.076698, "dkappa":0.000012}
{"kappa": 0.000457, "s": 328.982237, "theta": 1.508484, "x":691208.220210, "y":3118488.479057, "dkappa":0.000012}
{"kappa": 0.000462, "s": 329.385368, "theta": 1.508669, "x":691208.245277, "y":3118488.881407, "dkappa":0.000012}
{"kappa": 0.000466, "s": 329.788485, "theta": 1.508856, "x":691208.270268, "y":3118489.283749, "dkappa":0.000012}
{"kappa": 0.000471, "s": 330.191589, "theta": 1.509045, "x":691208.295182, "y":3118489.686082, "dkappa":0.000012}
{"kappa": 0.000476, "s": 330.594679, "theta": 1.509236, "x":691208.320019, "y":3118490.088407, "dkappa":0.000012}
{"kappa": 0.000481, "s": 330.997756, "theta": 1.509429, "x":691208.344778, "y":3118490.490723, "dkappa":0.000012}
{"kappa": 0.000486, "s": 331.400820, "theta": 1.509624, "x":691208.369458, "y":3118490.893031, "dkappa":0.000012}
{"kappa": 0.000491, "s": 331.803871, "theta": 1.509821, "x":691208.394059, "y":3118491.295330, "dkappa":0.000012}
{"kappa": 0.000496, "s": 332.206908, "theta": 1.510020, "x":691208.418579, "y":3118491.697620, "dkappa":0.000012}
{"kappa": 0.000501, "s": 332.609932, "theta": 1.510221, "x":691208.443018, "y":3118492.099902, "dkappa":0.000013}
{"kappa": 0.000506, "s": 333.012942, "theta": 1.510423, "x":691208.467375, "y":3118492.502176, "dkappa":0.000013}
{"kappa": 0.000511, "s": 333.415939, "theta": 1.510628, "x":691208.491649, "y":3118492.904441, "dkappa":0.000013}
{"kappa": 0.000516, "s": 333.818923, "theta": 1.510835, "x":691208.515840, "y":3118493.306698, "dkappa":0.000013}
{"kappa": 0.000521, "s": 334.221893, "theta": 1.511044, "x":691208.539946, "y":3118493.708947, "dkappa":0.000013}
{"kappa": 0.000526, "s": 334.624850, "theta": 1.511255, "x":691208.563966, "y":3118494.111188, "dkappa":0.000013}
{"kappa": 0.000532, "s": 335.027794, "theta": 1.511469, "x":691208.587901, "y":3118494.513420, "dkappa":0.000013}
{"kappa": 0.000537, "s": 335.430724, "theta": 1.511684, "x":691208.611749, "y":3118494.915644, "dkappa":0.000013}
{"kappa": 0.000542, "s": 335.833641, "theta": 1.511901, "x":691208.635509, "y":3118495.317859, "dkappa":0.000013}
{"kappa": 0.000547, "s": 336.236545, "theta": 1.512121, "x":691208.659180, "y":3118495.720067, "dkappa":0.000013}
{"kappa": 0.000553, "s": 336.639435, "theta": 1.512342, "x":691208.682762, "y":3118496.122266, "dkappa":0.000013}
{"kappa": 0.000558, "s": 337.042312, "theta": 1.512566, "x":691208.706253, "y":3118496.524458, "dkappa":0.000013}
{"kappa": 0.000563, "s": 337.445175, "theta": 1.512792, "x":691208.729653, "y":3118496.926641, "dkappa":0.000013}
{"kappa": 0.000569, "s": 337.848025, "theta": 1.513020, "x":691208.752961, "y":3118497.328816, "dkappa":0.000013}
{"kappa": 0.000574, "s": 338.250862, "theta": 1.513250, "x":691208.776177, "y":3118497.730983, "dkappa":0.000013}
{"kappa": 0.000579, "s": 338.653685, "theta": 1.513482, "x":691208.799298, "y":3118498.133142, "dkappa":0.000013}
{"kappa": 0.000585, "s": 339.056495, "theta": 1.513717, "x":691208.822325, "y":3118498.535294, "dkappa":0.000013}
{"kappa": 0.000590, "s": 339.459292, "theta": 1.513954, "x":691208.845257, "y":3118498.937437, "dkappa":0.000014}
{"kappa": 0.000596, "s": 339.862075, "theta": 1.514192, "x":691208.868092, "y":3118499.339573, "dkappa":0.000014}
{"kappa": 0.000601, "s": 340.264845, "theta": 1.514433, "x":691208.890829, "y":3118499.741700, "dkappa":0.000014}
{"kappa": 0.000607, "s": 340.667602, "theta": 1.514677, "x":691208.913469, "y":3118500.143820, "dkappa":0.000014}
{"kappa": 0.000612, "s": 341.070345, "theta": 1.514922, "x":691208.936010, "y":3118500.545932, "dkappa":0.000014}
{"kappa": 0.000618, "s": 341.473075, "theta": 1.515170, "x":691208.958451, "y":3118500.948036, "dkappa":0.000014}
{"kappa": 0.000623, "s": 341.875792, "theta": 1.515420, "x":691208.980791, "y":3118501.350133, "dkappa":0.000014}
{"kappa": 0.000629, "s": 342.278495, "theta": 1.515672, "x":691209.003029, "y":3118501.752222, "dkappa":0.000014}
{"kappa": 0.000634, "s": 342.681185, "theta": 1.515926, "x":691209.025165, "y":3118502.154303, "dkappa":0.000014}
{"kappa": 0.000640, "s": 343.083862, "theta": 1.516182, "x":691209.047197, "y":3118502.556377, "dkappa":0.000014}
{"kappa": 0.000645, "s": 343.486526, "theta": 1.516441, "x":691209.069126, "y":3118502.958443, "dkappa":0.000014}
{"kappa": 0.000651, "s": 343.889176, "theta": 1.516702, "x":691209.090949, "y":3118503.360502, "dkappa":0.000014}
{"kappa": 0.000657, "s": 344.291813, "theta": 1.516965, "x":691209.112665, "y":3118503.762553, "dkappa":0.000014}
{"kappa": 0.000662, "s": 344.694437, "theta": 1.517231, "x":691209.134275, "y":3118504.164596, "dkappa":0.000014}
{"kappa": 0.000668, "s": 345.097048, "theta": 1.517499, "x":691209.155777, "y":3118504.566633, "dkappa":0.000014}
{"kappa": 0.000673, "s": 345.499646, "theta": 1.517769, "x":691209.177170, "y":3118504.968661, "dkappa":0.000014}
{"kappa": 0.000679, "s": 345.902230, "theta": 1.518041, "x":691209.198454, "y":3118505.370683, "dkappa":0.000014}
{"kappa": 0.000685, "s": 346.304802, "theta": 1.518315, "x":691209.219627, "y":3118505.772697, "dkappa":0.000014}
{"kappa": 0.000690, "s": 346.707360, "theta": 1.518592, "x":691209.240688, "y":3118506.174704, "dkappa":0.000014}
{"kappa": 0.000696, "s": 347.109905, "theta": 1.518871, "x":691209.261637, "y":3118506.576703, "dkappa":0.000014}
{"kappa": 0.000702, "s": 347.512437, "theta": 1.519152, "x":691209.282473, "y":3118506.978696, "dkappa":0.000014}
{"kappa": 0.000707, "s": 347.914956, "theta": 1.519436, "x":691209.303194, "y":3118507.380681, "dkappa":0.000014}
{"kappa": 0.000713, "s": 348.317462, "theta": 1.519722, "x":691209.323800, "y":3118507.782659, "dkappa":0.000014}
{"kappa": 0.000719, "s": 348.719955, "theta": 1.520010, "x":691209.344291, "y":3118508.184630, "dkappa":0.000014}
{"kappa": 0.000724, "s": 349.122434, "theta": 1.520300, "x":691209.364664, "y":3118508.586594, "dkappa":0.000014}
{"kappa": 0.000730, "s": 349.524901, "theta": 1.520593, "x":691209.384920, "y":3118508.988551, "dkappa":0.000014}
{"kappa": 0.000736, "s": 349.927355, "theta": 1.520888, "x":691209.405057, "y":3118509.390501, "dkappa":0.000014}
{"kappa": 0.000741, "s": 350.329797, "theta": 1.521185, "x":691209.425074, "y":3118509.792444, "dkappa":0.000014}
{"kappa": 0.000747, "s": 350.732225, "theta": 1.521484, "x":691209.444971, "y":3118510.194380, "dkappa":0.000014}
{"kappa": 0.000753, "s": 351.134640, "theta": 1.521786, "x":691209.464746, "y":3118510.596309, "dkappa":0.000014}
{"kappa": 0.000758, "s": 351.537043, "theta": 1.522090, "x":691209.484399, "y":3118510.998232, "dkappa":0.000014}
{"kappa": 0.000764, "s": 351.939433, "theta": 1.522396, "x":691209.503929, "y":3118511.400147, "dkappa":0.000014}
{"kappa": 0.000769, "s": 352.341810, "theta": 1.522705, "x":691209.523335, "y":3118511.802056, "dkappa":0.000014}
{"kappa": 0.000775, "s": 352.744174, "theta": 1.523015, "x":691209.542615, "y":3118512.203958, "dkappa":0.000014}
{"kappa": 0.000781, "s": 353.146526, "theta": 1.523328, "x":691209.561770, "y":3118512.605854, "dkappa":0.000014}
{"kappa": 0.000786, "s": 353.548865, "theta": 1.523644, "x":691209.580797, "y":3118513.007743, "dkappa":0.000014}
{"kappa": 0.000792, "s": 353.951191, "theta": 1.523961, "x":691209.599698, "y":3118513.409625, "dkappa":0.000014}
{"kappa": 0.000798, "s": 354.353505, "theta": 1.524281, "x":691209.618469, "y":3118513.811501, "dkappa":0.000014}
{"kappa": 0.000803, "s": 354.755807, "theta": 1.524603, "x":691209.637111, "y":3118514.213370, "dkappa":0.000014}
{"kappa": 0.000809, "s": 355.158096, "theta": 1.524927, "x":691209.655622, "y":3118514.615233, "dkappa":0.000014}
{"kappa": 0.000814, "s": 355.560372, "theta": 1.525254, "x":691209.674002, "y":3118515.017089, "dkappa":0.000014}
{"kappa": 0.000820, "s": 355.962636, "theta": 1.525582, "x":691209.692250, "y":3118515.418939, "dkappa":0.000014}
{"kappa": 0.000826, "s": 356.364888, "theta": 1.525913, "x":691209.710365, "y":3118515.820783, "dkappa":0.000014}
{"kappa": 0.000831, "s": 356.767127, "theta": 1.526247, "x":691209.728346, "y":3118516.222620, "dkappa":0.000014}
{"kappa": 0.000837, "s": 357.169354, "theta": 1.526582, "x":691209.746192, "y":3118516.624451, "dkappa":0.000014}
{"kappa": 0.000842, "s": 357.571569, "theta": 1.526920, "x":691209.763902, "y":3118517.026276, "dkappa":0.000014}
{"kappa": 0.000848, "s": 357.973772, "theta": 1.527259, "x":691209.781475, "y":3118517.428095, "dkappa":0.000014}
{"kappa": 0.000853, "s": 358.375963, "theta": 1.527602, "x":691209.798911, "y":3118517.829907, "dkappa":0.000014}
{"kappa": 0.000859, "s": 358.778141, "theta": 1.527946, "x":691209.816209, "y":3118518.231713, "dkappa":0.000014}
{"kappa": 0.000864, "s": 359.180308, "theta": 1.528292, "x":691209.833367, "y":3118518.633514, "dkappa":0.000014}
{"kappa": 0.000870, "s": 359.582462, "theta": 1.528641, "x":691209.850385, "y":3118519.035308, "dkappa":0.000014}
{"kappa": 0.000875, "s": 359.984605, "theta": 1.528992, "x":691209.867262, "y":3118519.437097, "dkappa":0.000014}
{"kappa": 0.000881, "s": 360.386736, "theta": 1.529345, "x":691209.883997, "y":3118519.838879, "dkappa":0.000013}
{"kappa": 0.000886, "s": 360.788855, "theta": 1.529700, "x":691209.900590, "y":3118520.240656, "dkappa":0.000013}
{"kappa": 0.000891, "s": 361.190962, "theta": 1.530057, "x":691209.917038, "y":3118520.642426, "dkappa":0.000013}
{"kappa": 0.000897, "s": 361.593058, "theta": 1.530417, "x":691209.933343, "y":3118521.044191, "dkappa":0.000013}
{"kappa": 0.000902, "s": 361.995142, "theta": 1.530778, "x":691209.949502, "y":3118521.445951, "dkappa":0.000013}
{"kappa": 0.000907, "s": 362.397215, "theta": 1.531142, "x":691209.965515, "y":3118521.847704, "dkappa":0.000013}
{"kappa": 0.000913, "s": 362.799276, "theta": 1.531508, "x":691209.981380, "y":3118522.249452, "dkappa":0.000013}
{"kappa": 0.000918, "s": 363.201325, "theta": 1.531876, "x":691209.997098, "y":3118522.651194, "dkappa":0.000013}
{"kappa": 0.000923, "s": 363.603364, "theta": 1.532246, "x":691210.012668, "y":3118523.052931, "dkappa":0.000013}
{"kappa": 0.000928, "s": 364.005391, "theta": 1.532618, "x":691210.028087, "y":3118523.454662, "dkappa":0.000013}
{"kappa": 0.000934, "s": 364.407406, "theta": 1.532993, "x":691210.043357, "y":3118523.856388, "dkappa":0.000013}
{"kappa": 0.000939, "s": 364.809411, "theta": 1.533369, "x":691210.058475, "y":3118524.258108, "dkappa":0.000013}
{"kappa": 0.000944, "s": 365.211404, "theta": 1.533747, "x":691210.073441, "y":3118524.659823, "dkappa":0.000013}
{"kappa": 0.000949, "s": 365.613387, "theta": 1.534128, "x":691210.088254, "y":3118525.061532, "dkappa":0.000013}
{"kappa": 0.000954, "s": 366.015358, "theta": 1.534510, "x":691210.102914, "y":3118525.463236, "dkappa":0.000013}
{"kappa": 0.000959, "s": 366.417319, "theta": 1.534895, "x":691210.117419, "y":3118525.864935, "dkappa":0.000013}
{"kappa": 0.000964, "s": 366.819269, "theta": 1.535282, "x":691210.131769, "y":3118526.266629, "dkappa":0.000013}
{"kappa": 0.000969, "s": 367.221208, "theta": 1.535670, "x":691210.145963, "y":3118526.668318, "dkappa":0.000012}
{"kappa": 0.000974, "s": 367.623137, "theta": 1.536061, "x":691210.160000, "y":3118527.070001, "dkappa":0.000012}
{"kappa": 0.000979, "s": 368.025055, "theta": 1.536453, "x":691210.173879, "y":3118527.471679, "dkappa":0.000012}
{"kappa": 0.000984, "s": 368.426962, "theta": 1.536848, "x":691210.187600, "y":3118527.873353, "dkappa":0.000012}
{"kappa": 0.000989, "s": 368.828860, "theta": 1.537244, "x":691210.201161, "y":3118528.275021, "dkappa":0.000012}
{"kappa": 0.000994, "s": 369.230747, "theta": 1.537643, "x":691210.214563, "y":3118528.676684, "dkappa":0.000012}
{"kappa": 0.000999, "s": 369.632623, "theta": 1.538043, "x":691210.227804, "y":3118529.078343, "dkappa":0.000012}
{"kappa": 0.001003, "s": 370.034490, "theta": 1.538446, "x":691210.240883, "y":3118529.479996, "dkappa":0.000012}
{"kappa": 0.001008, "s": 370.436346, "theta": 1.538850, "x":691210.253800, "y":3118529.881645, "dkappa":0.000012}
{"kappa": 0.001013, "s": 370.838193, "theta": 1.539256, "x":691210.266554, "y":3118530.283289, "dkappa":0.000012}
{"kappa": 0.001018, "s": 371.240029, "theta": 1.539664, "x":691210.279144, "y":3118530.684929, "dkappa":0.000012}
{"kappa": 0.001022, "s": 371.641856, "theta": 1.540074, "x":691210.291570, "y":3118531.086563, "dkappa":0.000011}
{"kappa": 0.001027, "s": 372.043673, "theta": 1.540485, "x":691210.303830, "y":3118531.488193, "dkappa":0.000011}
{"kappa": 0.001031, "s": 372.445481, "theta": 1.540899, "x":691210.315924, "y":3118531.889819, "dkappa":0.000011}
{"kappa": 0.001036, "s": 372.847279, "theta": 1.541314, "x":691210.327852, "y":3118532.291440, "dkappa":0.000011}
{"kappa": 0.001040, "s": 373.249068, "theta": 1.541731, "x":691210.339612, "y":3118532.693057, "dkappa":0.000011}
{"kappa": 0.001045, "s": 373.650847, "theta": 1.542150, "x":691210.351204, "y":3118533.094669, "dkappa":0.000011}
{"kappa": 0.001049, "s": 374.052617, "theta": 1.542571, "x":691210.362628, "y":3118533.496276, "dkappa":0.000011}
{"kappa": 0.001053, "s": 374.454378, "theta": 1.542993, "x":691210.373881, "y":3118533.897880, "dkappa":0.000011}
{"kappa": 0.001058, "s": 374.856130, "theta": 1.543417, "x":691210.384965, "y":3118534.299479, "dkappa":0.000011}
{"kappa": 0.001062, "s": 375.257873, "theta": 1.543843, "x":691210.395877, "y":3118534.701074, "dkappa":0.000011}
{"kappa": 0.001066, "s": 375.659608, "theta": 1.544271, "x":691210.406618, "y":3118535.102664, "dkappa":0.000010}
{"kappa": 0.001070, "s": 376.061333, "theta": 1.544700, "x":691210.417187, "y":3118535.504251, "dkappa":0.000010}
{"kappa": 0.001074, "s": 376.463050, "theta": 1.545131, "x":691210.427583, "y":3118535.905834, "dkappa":0.000010}
{"kappa": 0.001079, "s": 376.864759, "theta": 1.545563, "x":691210.437805, "y":3118536.307412, "dkappa":0.000010}
{"kappa": 0.001083, "s": 377.266459, "theta": 1.545997, "x":691210.447853, "y":3118536.708986, "dkappa":0.000010}
{"kappa": 0.001087, "s": 377.668151, "theta": 1.546433, "x":691210.457726, "y":3118537.110557, "dkappa":0.000010}
{"kappa": 0.001090, "s": 378.069835, "theta": 1.546870, "x":691210.467424, "y":3118537.512124, "dkappa":0.000010}
{"kappa": 0.001094, "s": 378.471510, "theta": 1.547309, "x":691210.476946, "y":3118537.913686, "dkappa":0.000010}
{"kappa": 0.001098, "s": 378.873178, "theta": 1.547749, "x":691210.486291, "y":3118538.315245, "dkappa":0.000009}
{"kappa": 0.001102, "s": 379.274838, "theta": 1.548191, "x":691210.495459, "y":3118538.716801, "dkappa":0.000009}
{"kappa": 0.001106, "s": 379.676490, "theta": 1.548634, "x":691210.504448, "y":3118539.118352, "dkappa":0.000009}
{"kappa": 0.001109, "s": 380.078135, "theta": 1.549079, "x":691210.513260, "y":3118539.519900, "dkappa":0.000009}
{"kappa": 0.001113, "s": 380.479772, "theta": 1.549525, "x":691210.521892, "y":3118539.921444, "dkappa":0.000009}
{"kappa": 0.001116, "s": 380.881402, "theta": 1.549973, "x":691210.530345, "y":3118540.322985, "dkappa":0.000009}
{"kappa": 0.001120, "s": 381.283024, "theta": 1.550422, "x":691210.538617, "y":3118540.724522, "dkappa":0.000009}
{"kappa": 0.001123, "s": 381.684639, "theta": 1.550872, "x":691210.546709, "y":3118541.126056, "dkappa":0.000008}
{"kappa": 0.001127, "s": 382.086248, "theta": 1.551324, "x":691210.554619, "y":3118541.527587, "dkappa":0.000008}
{"kappa": 0.001130, "s": 382.487849, "theta": 1.551777, "x":691210.562348, "y":3118541.929114, "dkappa":0.000008}
{"kappa": 0.001133, "s": 382.889444, "theta": 1.552232, "x":691210.569894, "y":3118542.330638, "dkappa":0.000008}
{"kappa": 0.001136, "s": 383.291032, "theta": 1.552687, "x":691210.577258, "y":3118542.732158, "dkappa":0.000008}
{"kappa": 0.001139, "s": 383.692614, "theta": 1.553144, "x":691210.584438, "y":3118543.133676, "dkappa":0.000008}
{"kappa": 0.001142, "s": 384.094189, "theta": 1.553602, "x":691210.591435, "y":3118543.535190, "dkappa":0.000008}
{"kappa": 0.001145, "s": 384.495758, "theta": 1.554062, "x":691210.598247, "y":3118543.936701, "dkappa":0.000007}
{"kappa": 0.001148, "s": 384.897320, "theta": 1.554522, "x":691210.604874, "y":3118544.338209, "dkappa":0.000007}
{"kappa": 0.001151, "s": 385.298877, "theta": 1.554984, "x":691210.611316, "y":3118544.739714, "dkappa":0.000007}
{"kappa": 0.001154, "s": 385.700428, "theta": 1.555447, "x":691210.617572, "y":3118545.141216, "dkappa":0.000007}
{"kappa": 0.001157, "s": 386.101973, "theta": 1.555911, "x":691210.623642, "y":3118545.542715, "dkappa":0.000007}
{"kappa": 0.001159, "s": 386.503513, "theta": 1.556376, "x":691210.629526, "y":3118545.944212, "dkappa":0.000007}
{"kappa": 0.001162, "s": 386.905047, "theta": 1.556842, "x":691210.635222, "y":3118546.345705, "dkappa":0.000006}
{"kappa": 0.001165, "s": 387.306575, "theta": 1.557309, "x":691210.640732, "y":3118546.747196, "dkappa":0.000006}
{"kappa": 0.001167, "s": 387.708099, "theta": 1.557777, "x":691210.646053, "y":3118547.148685, "dkappa":0.000006}
{"kappa": 0.001169, "s": 388.109617, "theta": 1.558246, "x":691210.651186, "y":3118547.550170, "dkappa":0.000006}
{"kappa": 0.001172, "s": 388.511131, "theta": 1.558716, "x":691210.656131, "y":3118547.951653, "dkappa":0.000006}
{"kappa": 0.001174, "s": 388.912639, "theta": 1.559187, "x":691210.660886, "y":3118548.353134, "dkappa":0.000005}
{"kappa": 0.001176, "s": 389.314143, "theta": 1.559659, "x":691210.665453, "y":3118548.754612, "dkappa":0.000005}
{"kappa": 0.001178, "s": 389.715643, "theta": 1.560131, "x":691210.669830, "y":3118549.156087, "dkappa":0.000005}
{"kappa": 0.001180, "s": 390.117138, "theta": 1.560605, "x":691210.674016, "y":3118549.557561, "dkappa":0.000005}
{"kappa": 0.001182, "s": 390.518629, "theta": 1.561079, "x":691210.678013, "y":3118549.959031, "dkappa":0.000005}
{"kappa": 0.001184, "s": 390.920115, "theta": 1.561554, "x":691210.681819, "y":3118550.360500, "dkappa":0.000004}
{"kappa": 0.001186, "s": 391.321598, "theta": 1.562030, "x":691210.685434, "y":3118550.761966, "dkappa":0.000004}
{"kappa": 0.001187, "s": 391.723077, "theta": 1.562506, "x":691210.688858, "y":3118551.163431, "dkappa":0.000004}
{"kappa": 0.001189, "s": 392.124552, "theta": 1.562983, "x":691210.692091, "y":3118551.564893, "dkappa":0.000004}
{"kappa": 0.001190, "s": 392.526024, "theta": 1.563461, "x":691210.695132, "y":3118551.966353, "dkappa":0.000004}
{"kappa": 0.001192, "s": 392.927492, "theta": 1.563939, "x":691210.697981, "y":3118552.367811, "dkappa":0.000003}
{"kappa": 0.001193, "s": 393.328957, "theta": 1.564418, "x":691210.700638, "y":3118552.769267, "dkappa":0.000003}
{"kappa": 0.001195, "s": 393.730419, "theta": 1.564897, "x":691210.703103, "y":3118553.170722, "dkappa":0.000003}
{"kappa": 0.001196, "s": 394.131878, "theta": 1.565377, "x":691210.705375, "y":3118553.572174, "dkappa":0.000003}
{"kappa": 0.001197, "s": 394.533334, "theta": 1.565857, "x":691210.707454, "y":3118553.973625, "dkappa":0.000003}
{"kappa": 0.001198, "s": 394.934787, "theta": 1.566338, "x":691210.709341, "y":3118554.375073, "dkappa":0.000002}
{"kappa": 0.001199, "s": 395.336238, "theta": 1.566819, "x":691210.711034, "y":3118554.776521, "dkappa":0.000002}
{"kappa": 0.001200, "s": 395.737686, "theta": 1.567300, "x":691210.712534, "y":3118555.177966, "dkappa":0.000002}
{"kappa": 0.001200, "s": 396.139132, "theta": 1.567782, "x":691210.713841, "y":3118555.579410, "dkappa":0.000002}
{"kappa": 0.001201, "s": 396.540576, "theta": 1.568264, "x":691210.714955, "y":3118555.980853, "dkappa":0.000002}
{"kappa": 0.001202, "s": 396.942018, "theta": 1.568746, "x":691210.715875, "y":3118556.382294, "dkappa":0.000001}
{"kappa": 0.001202, "s": 397.343459, "theta": 1.569228, "x":691210.716601, "y":3118556.783733, "dkappa":0.000001}
{"kappa": 0.001202, "s": 397.744897, "theta": 1.569711, "x":691210.717133, "y":3118557.185172, "dkappa":0.000001}
{"kappa": 0.001203, "s": 398.146334, "theta": 1.570194, "x":691210.717472, "y":3118557.586608, "dkappa":0.000001}
{"kappa": 0.001203, "s": 398.547770, "theta": 1.570677, "x":691210.717617, "y":3118557.988044, "dkappa":0.000000}
{"kappa": 0.001203, "s": 398.949204, "theta": 1.571160, "x":691210.717568, "y":3118558.389479, "dkappa":0.000000}
{"kappa": 0.001286, "s": 399.350638, "theta": 1.571643, "x":691210.717325, "y":3118558.790912, "dkappa":-0.000000}
{"kappa": 0.001286, "s": 399.688114, "theta": 1.572076, "x":691210.716967, "y":3118559.128388, "dkappa":-0.000001}
{"kappa": 0.001286, "s": 400.025597, "theta": 1.572510, "x":691210.716461, "y":3118559.465870, "dkappa":-0.000001}
{"kappa": 0.001285, "s": 400.363087, "theta": 1.572944, "x":691210.715810, "y":3118559.803360, "dkappa":-0.000001}
{"kappa": 0.001285, "s": 400.700585, "theta": 1.573378, "x":691210.715012, "y":3118560.140857, "dkappa":-0.000001}
{"kappa": 0.001284, "s": 401.038090, "theta": 1.573811, "x":691210.714067, "y":3118560.478361, "dkappa":-0.000002}
{"kappa": 0.001284, "s": 401.375603, "theta": 1.574245, "x":691210.712976, "y":3118560.815872, "dkappa":-0.000002}
{"kappa": 0.001283, "s": 401.713123, "theta": 1.574678, "x":691210.711739, "y":3118561.153390, "dkappa":-0.000002}
{"kappa": 0.001282, "s": 402.050651, "theta": 1.575111, "x":691210.710356, "y":3118561.490915, "dkappa":-0.000002}
{"kappa": 0.001281, "s": 402.388187, "theta": 1.575544, "x":691210.708827, "y":3118561.828448, "dkappa":-0.000003}
{"kappa": 0.001281, "s": 402.725731, "theta": 1.575976, "x":691210.707151, "y":3118562.165987, "dkappa":-0.000003}
{"kappa": 0.001279, "s": 403.063282, "theta": 1.576408, "x":691210.705330, "y":3118562.503534, "dkappa":-0.000003}
{"kappa": 0.001278, "s": 403.400842, "theta": 1.576840, "x":691210.703363, "y":3118562.841087, "dkappa":-0.000003}
{"kappa": 0.001277, "s": 403.738409, "theta": 1.577271, "x":691210.701250, "y":3118563.178648, "dkappa":-0.000004}
{"kappa": 0.001276, "s": 404.075985, "theta": 1.577702, "x":691210.698991, "y":3118563.516216, "dkappa":-0.000004}
{"kappa": 0.001274, "s": 404.413569, "theta": 1.578133, "x":691210.696587, "y":3118563.853791, "dkappa":-0.000004}
{"kappa": 0.001273, "s": 404.751160, "theta": 1.578563, "x":691210.694038, "y":3118564.191374, "dkappa":-0.000004}
{"kappa": 0.001271, "s": 405.088761, "theta": 1.578992, "x":691210.691344, "y":3118564.528963, "dkappa":-0.000005}
{"kappa": 0.001270, "s": 405.426369, "theta": 1.579421, "x":691210.688504, "y":3118564.866560, "dkappa":-0.000005}
{"kappa": 0.001268, "s": 405.763986, "theta": 1.579850, "x":691210.685520, "y":3118565.204163, "dkappa":-0.000005}
{"kappa": 0.001266, "s": 406.101611, "theta": 1.580277, "x":691210.682391, "y":3118565.541774, "dkappa":-0.000005}
{"kappa": 0.001265, "s": 406.439245, "theta": 1.580705, "x":691210.679118, "y":3118565.879392, "dkappa":-0.000006}
{"kappa": 0.001263, "s": 406.776888, "theta": 1.581131, "x":691210.675701, "y":3118566.217017, "dkappa":-0.000006}
{"kappa": 0.001261, "s": 407.114539, "theta": 1.581557, "x":691210.672139, "y":3118566.554650, "dkappa":-0.000006}
{"kappa": 0.001258, "s": 407.452199, "theta": 1.581983, "x":691210.668434, "y":3118566.892289, "dkappa":-0.000006}
{"kappa": 0.001256, "s": 407.789867, "theta": 1.582407, "x":691210.664585, "y":3118567.229936, "dkappa":-0.000007}
{"kappa": 0.001254, "s": 408.127545, "theta": 1.582831, "x":691210.660593, "y":3118567.567590, "dkappa":-0.000007}
{"kappa": 0.001252, "s": 408.465231, "theta": 1.583254, "x":691210.656457, "y":3118567.905251, "dkappa":-0.000007}
{"kappa": 0.001249, "s": 408.802926, "theta": 1.583676, "x":691210.652179, "y":3118568.242919, "dkappa":-0.000007}
{"kappa": 0.001247, "s": 409.140631, "theta": 1.584098, "x":691210.647759, "y":3118568.580594, "dkappa":-0.000007}
{"kappa": 0.001244, "s": 409.478344, "theta": 1.584518, "x":691210.643196, "y":3118568.918277, "dkappa":-0.000008}
{"kappa": 0.001242, "s": 409.816067, "theta": 1.584938, "x":691210.638491, "y":3118569.255967, "dkappa":-0.000008}
{"kappa": 0.001239, "s": 410.153799, "theta": 1.585357, "x":691210.633644, "y":3118569.593664, "dkappa":-0.000008}
{"kappa": 0.001236, "s": 410.491540, "theta": 1.585775, "x":691210.628656, "y":3118569.931369, "dkappa":-0.000008}
{"kappa": 0.001233, "s": 410.829291, "theta": 1.586192, "x":691210.623526, "y":3118570.269080, "dkappa":-0.000009}
{"kappa": 0.001230, "s": 411.167051, "theta": 1.586608, "x":691210.618256, "y":3118570.606799, "dkappa":-0.000009}
{"kappa": 0.001227, "s": 411.504820, "theta": 1.587023, "x":691210.612846, "y":3118570.944525, "dkappa":-0.000009}
{"kappa": 0.001224, "s": 411.842599, "theta": 1.587437, "x":691210.607295, "y":3118571.282259, "dkappa":-0.000009}
{"kappa": 0.001221, "s": 412.180388, "theta": 1.587850, "x":691210.601604, "y":3118571.619999, "dkappa":-0.000009}
{"kappa": 0.001218, "s": 412.518186, "theta": 1.588262, "x":691210.595774, "y":3118571.957747, "dkappa":-0.000010}
{"kappa": 0.001215, "s": 412.855994, "theta": 1.588673, "x":691210.589805, "y":3118572.295503, "dkappa":-0.000010}
{"kappa": 0.001211, "s": 413.193812, "theta": 1.589083, "x":691210.583697, "y":3118572.633265, "dkappa":-0.000010}
{"kappa": 0.001208, "s": 413.531640, "theta": 1.589491, "x":691210.577450, "y":3118572.971035, "dkappa":-0.000010}
{"kappa": 0.001204, "s": 413.869477, "theta": 1.589899, "x":691210.571066, "y":3118573.308813, "dkappa":-0.000010}
{"kappa": 0.001201, "s": 414.207325, "theta": 1.590305, "x":691210.564544, "y":3118573.646597, "dkappa":-0.000011}
{"kappa": 0.001197, "s": 414.545183, "theta": 1.590710, "x":691210.557885, "y":3118573.984389, "dkappa":-0.000011}
{"kappa": 0.001194, "s": 414.883050, "theta": 1.591114, "x":691210.551089, "y":3118574.322188, "dkappa":-0.000011}
{"kappa": 0.001190, "s": 415.220928, "theta": 1.591517, "x":691210.544156, "y":3118574.659995, "dkappa":-0.000011}
{"kappa": 0.001186, "s": 415.558816, "theta": 1.591918, "x":691210.537087, "y":3118574.997809, "dkappa":-0.000011}
{"kappa": 0.001182, "s": 415.896714, "theta": 1.592319, "x":691210.529883, "y":3118575.335631, "dkappa":-0.000012}
{"kappa": 0.001178, "s": 416.234623, "theta": 1.592717, "x":691210.522544, "y":3118575.673460, "dkappa":-0.000012}
{"kappa": 0.001174, "s": 416.572542, "theta": 1.593115, "x":691210.515070, "y":3118576.011296, "dkappa":-0.000012}
{"kappa": 0.001170, "s": 416.910471, "theta": 1.593511, "x":691210.507461, "y":3118576.349140, "dkappa":-0.000012}
{"kappa": 0.001166, "s": 417.248411, "theta": 1.593906, "x":691210.499719, "y":3118576.686991, "dkappa":-0.000012}
{"kappa": 0.001162, "s": 417.586362, "theta": 1.594299, "x":691210.491843, "y":3118577.024850, "dkappa":-0.000012}
{"kappa": 0.001158, "s": 417.924323, "theta": 1.594691, "x":691210.483835, "y":3118577.362716, "dkappa":-0.000013}
{"kappa": 0.001154, "s": 418.262294, "theta": 1.595082, "x":691210.475694, "y":3118577.700589, "dkappa":-0.000013}
{"kappa": 0.001149, "s": 418.600277, "theta": 1.595471, "x":691210.467420, "y":3118578.038470, "dkappa":-0.000013}
{"kappa": 0.001145, "s": 418.938270, "theta": 1.595859, "x":691210.459016, "y":3118578.376359, "dkappa":-0.000013}
{"kappa": 0.001140, "s": 419.276274, "theta": 1.596245, "x":691210.450480, "y":3118578.714255, "dkappa":-0.000013}
{"kappa": 0.001136, "s": 419.614289, "theta": 1.596630, "x":691210.441814, "y":3118579.052159, "dkappa":-0.000013}
{"kappa": 0.001131, "s": 419.952314, "theta": 1.597013, "x":691210.433018, "y":3118579.390070, "dkappa":-0.000014}
{"kappa": 0.001127, "s": 420.290351, "theta": 1.597394, "x":691210.424093, "y":3118579.727989, "dkappa":-0.000014}
{"kappa": 0.001122, "s": 420.628399, "theta": 1.597774, "x":691210.415038, "y":3118580.065915, "dkappa":-0.000014}
{"kappa": 0.001117, "s": 420.966457, "theta": 1.598153, "x":691210.405855, "y":3118580.403849, "dkappa":-0.000014}
{"kappa": 0.001112, "s": 421.304527, "theta": 1.598530, "x":691210.396544, "y":3118580.741791, "dkappa":-0.000014}
{"kappa": 0.001108, "s": 421.642608, "theta": 1.598905, "x":691210.387105, "y":3118581.079740, "dkappa":-0.000014}
{"kappa": 0.001103, "s": 421.980700, "theta": 1.599279, "x":691210.377540, "y":3118581.417696, "dkappa":-0.000015}
{"kappa": 0.001098, "s": 422.318803, "theta": 1.599651, "x":691210.367848, "y":3118581.755661, "dkappa":-0.000015}
{"kappa": 0.001093, "s": 422.656918, "theta": 1.600021, "x":691210.358031, "y":3118582.093633, "dkappa":-0.000015}
{"kappa": 0.001088, "s": 422.995044, "theta": 1.600390, "x":691210.348088, "y":3118582.431613, "dkappa":-0.000015}
{"kappa": 0.001083, "s": 423.333181, "theta": 1.600757, "x":691210.338021, "y":3118582.769600, "dkappa":-0.000015}
{"kappa": 0.001078, "s": 423.671330, "theta": 1.601122, "x":691210.327830, "y":3118583.107595, "dkappa":-0.000015}
{"kappa": 0.001072, "s": 424.009490, "theta": 1.601486, "x":691210.317515, "y":3118583.445598, "dkappa":-0.000015}
{"kappa": 0.001067, "s": 424.347662, "theta": 1.601847, "x":691210.307077, "y":3118583.783609, "dkappa":-0.000016}
{"kappa": 0.001062, "s": 424.685845, "theta": 1.602207, "x":691210.296517, "y":3118584.121627, "dkappa":-0.000016}
{"kappa": 0.001057, "s": 425.024040, "theta": 1.602566, "x":691210.285835, "y":3118584.459653, "dkappa":-0.000016}
{"kappa": 0.001051, "s": 425.362247, "theta": 1.602922, "x":691210.275032, "y":3118584.797687, "dkappa":-0.000016}
{"kappa": 0.001046, "s": 425.700465, "theta": 1.603277, "x":691210.264108, "y":3118585.135729, "dkappa":-0.000016}
{"kappa": 0.001040, "s": 426.038695, "theta": 1.603630, "x":691210.253065, "y":3118585.473778, "dkappa":-0.000016}
{"kappa": 0.001035, "s": 426.376936, "theta": 1.603981, "x":691210.241902, "y":3118585.811836, "dkappa":-0.000016}
{"kappa": 0.001029, "s": 426.715190, "theta": 1.604330, "x":691210.230620, "y":3118586.149901, "dkappa":-0.000016}
{"kappa": 0.001024, "s": 427.053455, "theta": 1.604677, "x":691210.219220, "y":3118586.487974, "dkappa":-0.000017}
{"kappa": 0.001018, "s": 427.391732, "theta": 1.605022, "x":691210.207703, "y":3118586.826055, "dkappa":-0.000017}
{"kappa": 0.001012, "s": 427.730021, "theta": 1.605366, "x":691210.196069, "y":3118587.164144, "dkappa":-0.000017}
{"kappa": 0.001007, "s": 428.068322, "theta": 1.605707, "x":691210.184319, "y":3118587.502241, "dkappa":-0.000017}
{"kappa": 0.001001, "s": 428.406635, "theta": 1.606047, "x":691210.172453, "y":3118587.840345, "dkappa":-0.000017}
{"kappa": 0.000995, "s": 428.744960, "theta": 1.606384, "x":691210.160472, "y":3118588.178458, "dkappa":-0.000017}
{"kappa": 0.000989, "s": 429.083296, "theta": 1.606720, "x":691210.148377, "y":3118588.516579, "dkappa":-0.000017}
{"kappa": 0.000983, "s": 429.421645, "theta": 1.607054, "x":691210.136168, "y":3118588.854707, "dkappa":-0.000017}
{"kappa": 0.000977, "s": 429.760006, "theta": 1.607385, "x":691210.123847, "y":3118589.192844, "dkappa":-0.000018}
{"kappa": 0.000971, "s": 430.098380, "theta": 1.607715, "x":691210.111413, "y":3118589.530988, "dkappa":-0.000018}
{"kappa": 0.000965, "s": 430.436765, "theta": 1.608043, "x":691210.098868, "y":3118589.869141, "dkappa":-0.000018}
{"kappa": 0.000959, "s": 430.775162, "theta": 1.608368, "x":691210.086211, "y":3118590.207302, "dkappa":-0.000018}
{"kappa": 0.000953, "s": 431.113572, "theta": 1.608692, "x":691210.073445, "y":3118590.545471, "dkappa":-0.000018}
{"kappa": 0.000947, "s": 431.451994, "theta": 1.609014, "x":691210.060569, "y":3118590.883647, "dkappa":-0.000018}
{"kappa": 0.000941, "s": 431.790428, "theta": 1.609333, "x":691210.047584, "y":3118591.221832, "dkappa":-0.000018}
{"kappa": 0.000935, "s": 432.128874, "theta": 1.609651, "x":691210.034491, "y":3118591.560025, "dkappa":-0.000018}
{"kappa": 0.000929, "s": 432.467333, "theta": 1.609966, "x":691210.021290, "y":3118591.898227, "dkappa":-0.000018}
{"kappa": 0.000922, "s": 432.805804, "theta": 1.610279, "x":691210.007982, "y":3118592.236436, "dkappa":-0.000019}
{"kappa": 0.000916, "s": 433.144288, "theta": 1.610590, "x":691209.994569, "y":3118592.574654, "dkappa":-0.000019}
{"kappa": 0.000910, "s": 433.482784, "theta": 1.610899, "x":691209.981050, "y":3118592.912879, "dkappa":-0.000019}
{"kappa": 0.000903, "s": 433.821292, "theta": 1.611206, "x":691209.967427, "y":3118593.251113, "dkappa":-0.000019}
{"kappa": 0.000897, "s": 434.159812, "theta": 1.611511, "x":691209.953699, "y":3118593.589356, "dkappa":-0.000019}
{"kappa": 0.000890, "s": 434.498346, "theta": 1.611813, "x":691209.939869, "y":3118593.927606, "dkappa":-0.000019}
{"kappa": 0.000884, "s": 434.836891, "theta": 1.612114, "x":691209.925935, "y":3118594.265865, "dkappa":-0.000019}
{"kappa": 0.000877, "s": 435.175449, "theta": 1.612412, "x":691209.911901, "y":3118594.604132, "dkappa":-0.000019}
{"kappa": 0.000871, "s": 435.514020, "theta": 1.612708, "x":691209.897765, "y":3118594.942407, "dkappa":-0.000019}
{"kappa": 0.000864, "s": 435.852603, "theta": 1.613002, "x":691209.883529, "y":3118595.280691, "dkappa":-0.000019}
{"kappa": 0.000858, "s": 436.191199, "theta": 1.613293, "x":691209.869193, "y":3118595.618983, "dkappa":-0.000020}
{"kappa": 0.000851, "s": 436.529807, "theta": 1.613583, "x":691209.854758, "y":3118595.957283, "dkappa":-0.000020}
{"kappa": 0.000845, "s": 436.868428, "theta": 1.613870, "x":691209.840226, "y":3118596.295592, "dkappa":-0.000020}
{"kappa": 0.000838, "s": 437.207061, "theta": 1.614155, "x":691209.825596, "y":3118596.633909, "dkappa":-0.000020}
{"kappa": 0.000831, "s": 437.545707, "theta": 1.614437, "x":691209.810870, "y":3118596.972235, "dkappa":-0.000020}
{"kappa": 0.000824, "s": 437.884365, "theta": 1.614717, "x":691209.796048, "y":3118597.310569, "dkappa":-0.000020}
{"kappa": 0.000818, "s": 438.223037, "theta": 1.614996, "x":691209.781130, "y":3118597.648912, "dkappa":-0.000020}
{"kappa": 0.000811, "s": 438.561721, "theta": 1.615271, "x":691209.766119, "y":3118597.987263, "dkappa":-0.000020}
{"kappa": 0.000804, "s": 438.900417, "theta": 1.615545, "x":691209.751014, "y":3118598.325622, "dkappa":-0.000020}
{"kappa": 0.000797, "s": 439.239126, "theta": 1.615816, "x":691209.735817, "y":3118598.663990, "dkappa":-0.000020}
{"kappa": 0.000790, "s": 439.577848, "theta": 1.616085, "x":691209.720527, "y":3118599.002367, "dkappa":-0.000020}
{"kappa": 0.000783, "s": 439.916583, "theta": 1.616351, "x":691209.705146, "y":3118599.340752, "dkappa":-0.000020}
{"kappa": 0.000776, "s": 440.255330, "theta": 1.616616, "x":691209.689675, "y":3118599.679146, "dkappa":-0.000020}
{"kappa": 0.000770, "s": 440.594090, "theta": 1.616877, "x":691209.674115, "y":3118600.017548, "dkappa":-0.000021}
{"kappa": 0.000763, "s": 440.932862, "theta": 1.617137, "x":691209.658465, "y":3118600.355959, "dkappa":-0.000021}
{"kappa": 0.000756, "s": 441.271648, "theta": 1.617394, "x":691209.642728, "y":3118600.694379, "dkappa":-0.000021}
{"kappa": 0.000749, "s": 441.610446, "theta": 1.617649, "x":691209.626903, "y":3118601.032807, "dkappa":-0.000021}
{"kappa": 0.000741, "s": 441.949256, "theta": 1.617901, "x":691209.610992, "y":3118601.371244, "dkappa":-0.000021}
{"kappa": 0.000734, "s": 442.288080, "theta": 1.618151, "x":691209.594995, "y":3118601.709689, "dkappa":-0.000021}
{"kappa": 0.000727, "s": 442.626916, "theta": 1.618399, "x":691209.578914, "y":3118602.048144, "dkappa":-0.000021}
{"kappa": 0.000720, "s": 442.965765, "theta": 1.618644, "x":691209.562748, "y":3118602.386607, "dkappa":-0.000021}
{"kappa": 0.000713, "s": 443.304627, "theta": 1.618887, "x":691209.546499, "y":3118602.725079, "dkappa":-0.000021}
{"kappa": 0.000706, "s": 443.643501, "theta": 1.619128, "x":691209.530168, "y":3118603.063560, "dkappa":-0.000021}
{"kappa": 0.000699, "s": 443.982388, "theta": 1.619366, "x":691209.513755, "y":3118603.402049, "dkappa":-0.000021}
{"kappa": 0.000692, "s": 444.321288, "theta": 1.619601, "x":691209.497262, "y":3118603.740547, "dkappa":-0.000021}
{"kappa": 0.000684, "s": 444.660201, "theta": 1.619834, "x":691209.480688, "y":3118604.079055, "dkappa":-0.000021}
{"kappa": 0.000677, "s": 444.999126, "theta": 1.620065, "x":691209.464035, "y":3118604.417571, "dkappa":-0.000021}
{"kappa": 0.000670, "s": 445.338065, "theta": 1.620293, "x":691209.447304, "y":3118604.756095, "dkappa":-0.000021}
{"kappa": 0.000663, "s": 445.677015, "theta": 1.620519, "x":691209.430496, "y":3118605.094629, "dkappa":-0.000021}
{"kappa": 0.000655, "s": 446.015979, "theta": 1.620743, "x":691209.413611, "y":3118605.433172, "dkappa":-0.000021}
{"kappa": 0.000648, "s": 446.354955, "theta": 1.620964, "x":691209.396650, "y":3118605.771724, "dkappa":-0.000022}
{"kappa": 0.000641, "s": 446.693944, "theta": 1.621182, "x":691209.379614, "y":3118606.110285, "dkappa":-0.000022}
{"kappa": 0.000634, "s": 447.032946, "theta": 1.621398, "x":691209.362503, "y":3118606.448854, "dkappa":-0.000022}
{"kappa": 0.000626, "s": 447.371961, "theta": 1.621612, "x":691209.345320, "y":3118606.787433, "dkappa":-0.000022}
{"kappa": 0.000619, "s": 447.710988, "theta": 1.621823, "x":691209.328063, "y":3118607.126021, "dkappa":-0.000022}
{"kappa": 0.000611, "s": 448.050028, "theta": 1.622031, "x":691209.310736, "y":3118607.464617, "dkappa":-0.000022}
{"kappa": 0.000604, "s": 448.389080, "theta": 1.622237, "x":691209.293337, "y":3118607.803223, "dkappa":-0.000022}
{"kappa": 0.000597, "s": 448.728146, "theta": 1.622441, "x":691209.275868, "y":3118608.141838, "dkappa":-0.000022}
{"kappa": 0.000589, "s": 449.067223, "theta": 1.622642, "x":691209.258330, "y":3118608.480462, "dkappa":-0.000022}
{"kappa": 0.000582, "s": 449.406314, "theta": 1.622841, "x":691209.240724, "y":3118608.819096, "dkappa":-0.000022}
{"kappa": 0.000574, "s": 449.745417, "theta": 1.623037, "x":691209.223050, "y":3118609.157738, "dkappa":-0.000022}
{"kappa": 0.000567, "s": 450.084533, "theta": 1.623230, "x":691209.205310, "y":3118609.496389, "dkappa":-0.000022}
{"kappa": 0.000560, "s": 450.423662, "theta": 1.623421, "x":691209.187504, "y":3118609.835050, "dkappa":-0.000022}
{"kappa": 0.000552, "s": 450.762803, "theta": 1.623610, "x":691209.169633, "y":3118610.173720, "dkappa":-0.000022}
{"kappa": 0.000545, "s": 451.101957, "theta": 1.623796, "x":691209.151698, "y":3118610.512399, "dkappa":-0.000022}
{"kappa": 0.000537, "s": 451.441123, "theta": 1.623979, "x":691209.133699, "y":3118610.851088, "dkappa":-0.000022}
{"kappa": 0.000530, "s": 451.780302, "theta": 1.624160, "x":691209.115639, "y":3118611.189786, "dkappa":-0.000022}
{"kappa": 0.000522, "s": 452.119494, "theta": 1.624339, "x":691209.097517, "y":3118611.528493, "dkappa":-0.000022}
{"kappa": 0.000515, "s": 452.458698, "theta": 1.624514, "x":691209.079334, "y":3118611.867209, "dkappa":-0.000022}
{"kappa": 0.000507, "s": 452.797914, "theta": 1.624688, "x":691209.061091, "y":3118612.205935, "dkappa":-0.000022}
{"kappa": 0.000500, "s": 453.137143, "theta": 1.624858, "x":691209.042789, "y":3118612.544670, "dkappa":-0.000022}
{"kappa": 0.000492, "s": 453.476385, "theta": 1.625027, "x":691209.024430, "y":3118612.883415, "dkappa":-0.000022}
{"kappa": 0.000485, "s": 453.815639, "theta": 1.625192, "x":691209.006013, "y":3118613.222168, "dkappa":-0.000022}
{"kappa": 0.000477, "s": 454.154906, "theta": 1.625355, "x":691208.987539, "y":3118613.560932, "dkappa":-0.000022}
{"kappa": 0.000469, "s": 454.494185, "theta": 1.625516, "x":691208.969010, "y":3118613.899705, "dkappa":-0.000022}
{"kappa": 0.000462, "s": 454.833477, "theta": 1.625674, "x":691208.950427, "y":3118614.238487, "dkappa":-0.000022}
{"kappa": 0.000454, "s": 455.172781, "theta": 1.625829, "x":691208.931790, "y":3118614.577279, "dkappa":-0.000022}
{"kappa": 0.000447, "s": 455.512097, "theta": 1.625982, "x":691208.913100, "y":3118614.916080, "dkappa":-0.000022}
{"kappa": 0.000439, "s": 455.851426, "theta": 1.626132, "x":691208.894357, "y":3118615.254891, "dkappa":-0.000022}
{"kappa": 0.000432, "s": 456.190767, "theta": 1.626280, "x":691208.875564, "y":3118615.593711, "dkappa":-0.000022}
{"kappa": 0.000424, "s": 456.530121, "theta": 1.626425, "x":691208.856720, "y":3118615.932541, "dkappa":-0.000022}
{"kappa": 0.000416, "s": 456.869486, "theta": 1.626568, "x":691208.837827, "y":3118616.271380, "dkappa":-0.000022}
{"kappa": 0.000409, "s": 457.208865, "theta": 1.626708, "x":691208.818886, "y":3118616.610230, "dkappa":-0.000022}
{"kappa": 0.000401, "s": 457.548255, "theta": 1.626845, "x":691208.799896, "y":3118616.949088, "dkappa":-0.000022}
{"kappa": 0.000394, "s": 457.887658, "theta": 1.626980, "x":691208.780860, "y":3118617.287957, "dkappa":-0.000022}
{"kappa": 0.000386, "s": 458.227073, "theta": 1.627113, "x":691208.761778, "y":3118617.626835, "dkappa":-0.000022}
{"kappa": 0.000378, "s": 458.566500, "theta": 1.627242, "x":691208.742651, "y":3118617.965723, "dkappa":-0.000022}
{"kappa": 0.000371, "s": 458.905939, "theta": 1.627369, "x":691208.723479, "y":3118618.304620, "dkappa":-0.000022}
{"kappa": 0.000363, "s": 459.245391, "theta": 1.627494, "x":691208.704265, "y":3118618.643528, "dkappa":-0.000022}
{"kappa": 0.000356, "s": 459.584854, "theta": 1.627616, "x":691208.685007, "y":3118618.982445, "dkappa":-0.000022}
{"kappa": 0.000348, "s": 459.924330, "theta": 1.627735, "x":691208.665709, "y":3118619.321372, "dkappa":-0.000022}
{"kappa": 0.000340, "s": 460.263818, "theta": 1.627852, "x":691208.646369, "y":3118619.660308, "dkappa":-0.000022}
{"kappa": 0.000333, "s": 460.603318, "theta": 1.627967, "x":691208.626990, "y":3118619.999255, "dkappa":-0.000022}
{"kappa": 0.000325, "s": 460.942830, "theta": 1.628078, "x":691208.607571, "y":3118620.338211, "dkappa":-0.000022}
{"kappa": 0.000318, "s": 461.282354, "theta": 1.628187, "x":691208.588115, "y":3118620.677177, "dkappa":-0.000022}
{"kappa": 0.000310, "s": 461.621890, "theta": 1.628294, "x":691208.568621, "y":3118621.016153, "dkappa":-0.000022}
{"kappa": 0.000302, "s": 461.961439, "theta": 1.628398, "x":691208.549091, "y":3118621.355139, "dkappa":-0.000022}
{"kappa": 0.000295, "s": 462.300999, "theta": 1.628499, "x":691208.529525, "y":3118621.694135, "dkappa":-0.000022}
{"kappa": 0.000287, "s": 462.640571, "theta": 1.628598, "x":691208.509925, "y":3118622.033141, "dkappa":-0.000022}
{"kappa": 0.000280, "s": 462.980154, "theta": 1.628694, "x":691208.490291, "y":3118622.372156, "dkappa":-0.000022}
{"kappa": 0.000272, "s": 463.319750, "theta": 1.628788, "x":691208.470624, "y":3118622.711182, "dkappa":-0.000022}
{"kappa": 0.000265, "s": 463.659358, "theta": 1.628879, "x":691208.450925, "y":3118623.050218, "dkappa":-0.000022}
{"kappa": 0.000257, "s": 463.998977, "theta": 1.628968, "x":691208.431195, "y":3118623.389264, "dkappa":-0.000022}
{"kappa": 0.000249, "s": 464.338608, "theta": 1.629054, "x":691208.411435, "y":3118623.728320, "dkappa":-0.000022}
{"kappa": 0.000242, "s": 464.678251, "theta": 1.629137, "x":691208.391645, "y":3118624.067385, "dkappa":-0.000022}
{"kappa": 0.000234, "s": 465.017906, "theta": 1.629218, "x":691208.371827, "y":3118624.406461, "dkappa":-0.000022}
{"kappa": 0.000227, "s": 465.357572, "theta": 1.629296, "x":691208.351981, "y":3118624.745548, "dkappa":-0.000022}
{"kappa": 0.000219, "s": 465.697250, "theta": 1.629372, "x":691208.332108, "y":3118625.084644, "dkappa":-0.000022}
{"kappa": 0.000212, "s": 466.036940, "theta": 1.629445, "x":691208.312209, "y":3118625.423750, "dkappa":-0.000022}
{"kappa": 0.000204, "s": 466.376641, "theta": 1.629516, "x":691208.292286, "y":3118625.762866, "dkappa":-0.000022}
{"kappa": 0.000197, "s": 466.716354, "theta": 1.629584, "x":691208.272338, "y":3118626.101993, "dkappa":-0.000022}
{"kappa": 0.000189, "s": 467.056078, "theta": 1.629650, "x":691208.252367, "y":3118626.441130, "dkappa":-0.000022}
{"kappa": 0.000182, "s": 467.395814, "theta": 1.629713, "x":691208.232373, "y":3118626.780277, "dkappa":-0.000022}
{"kappa": 0.000174, "s": 467.735561, "theta": 1.629773, "x":691208.212357, "y":3118627.119434, "dkappa":-0.000022}
{"kappa": 0.000167, "s": 468.075320, "theta": 1.629831, "x":691208.192321, "y":3118627.458602, "dkappa":-0.000022}
{"kappa": 0.000159, "s": 468.415091, "theta": 1.629886, "x":691208.172265, "y":3118627.797780, "dkappa":-0.000022}
{"kappa": 0.000152, "s": 468.754872, "theta": 1.629939, "x":691208.152190, "y":3118628.136968, "dkappa":-0.000022}
{"kappa": 0.000144, "s": 469.094665, "theta": 1.629990, "x":691208.132097, "y":3118628.476166, "dkappa":-0.000022}
{"kappa": 0.000137, "s": 469.434470, "theta": 1.630037, "x":691208.111986, "y":3118628.815375, "dkappa":-0.000022}
{"kappa": 0.000130, "s": 469.774285, "theta": 1.630083, "x":691208.091859, "y":3118629.154594, "dkappa":-0.000022}
{"kappa": 0.000122, "s": 470.114112, "theta": 1.630125, "x":691208.071717, "y":3118629.493824, "dkappa":-0.000022}
{"kappa": 0.000115, "s": 470.453951, "theta": 1.630166, "x":691208.051559, "y":3118629.833064, "dkappa":-0.000022}
{"kappa": 0.000107, "s": 470.793800, "theta": 1.630203, "x":691208.031388, "y":3118630.172314, "dkappa":-0.000022}
{"kappa": 0.000100, "s": 471.133661, "theta": 1.630239, "x":691208.011204, "y":3118630.511575, "dkappa":-0.000022}
{"kappa": 0.000093, "s": 471.473532, "theta": 1.630272, "x":691207.991007, "y":3118630.850846, "dkappa":-0.000022}
{"kappa": 0.000085, "s": 471.813415, "theta": 1.630302, "x":691207.970799, "y":3118631.190127, "dkappa":-0.000022}
{"kappa": 0.000078, "s": 472.153309, "theta": 1.630330, "x":691207.950581, "y":3118631.529419, "dkappa":-0.000021}
{"kappa": 0.000071, "s": 472.493214, "theta": 1.630355, "x":691207.930353, "y":3118631.868722, "dkappa":-0.000021}
{"kappa": 0.000064, "s": 472.833130, "theta": 1.630378, "x":691207.910116, "y":3118632.208035, "dkappa":-0.000021}
{"kappa": 0.000056, "s": 473.173057, "theta": 1.630398, "x":691207.889871, "y":3118632.547359, "dkappa":-0.000021}
{"kappa": 0.000049, "s": 473.512995, "theta": 1.630416, "x":691207.869619, "y":3118632.886693, "dkappa":-0.000021}
{"kappa": 0.000042, "s": 473.852944, "theta": 1.630431, "x":691207.849361, "y":3118633.226037, "dkappa":-0.000021}
{"kappa": 0.000035, "s": 474.192904, "theta": 1.630444, "x":691207.829097, "y":3118633.565393, "dkappa":-0.000021}
{"kappa": 0.000027, "s": 474.532874, "theta": 1.630455, "x":691207.808829, "y":3118633.904759, "dkappa":-0.000021}
{"kappa": 0.000020, "s": 474.872856, "theta": 1.630463, "x":691207.788556, "y":3118634.244135, "dkappa":-0.000021}
{"kappa": 0.000013, "s": 475.212848, "theta": 1.630469, "x":691207.768281, "y":3118634.583522, "dkappa":-0.000021}
{"kappa": 0.000006, "s": 475.552851, "theta": 1.630472, "x":691207.748004, "y":3118634.922920, "dkappa":-0.000021}
{"kappa": -0.000001, "s": 475.892865, "theta": 1.630473, "x":691207.727725, "y":3118635.262328, "dkappa":-0.000021}
{"kappa": -0.000008, "s": 476.232889, "theta": 1.630471, "x":691207.707446, "y":3118635.601748, "dkappa":-0.000021}
{"kappa": -0.000015, "s": 476.572924, "theta": 1.630467, "x":691207.687167, "y":3118635.941177, "dkappa":-0.000021}
{"kappa": -0.000022, "s": 476.912970, "theta": 1.630461, "x":691207.666889, "y":3118636.280618, "dkappa":-0.000021}
{"kappa": -0.000029, "s": 477.253026, "theta": 1.630452, "x":691207.646613, "y":3118636.620069, "dkappa":-0.000021}
{"kappa": -0.000036, "s": 477.593093, "theta": 1.630441, "x":691207.626340, "y":3118636.959531, "dkappa":-0.000021}
{"kappa": -0.000043, "s": 477.933170, "theta": 1.630427, "x":691207.606071, "y":3118637.299004, "dkappa":-0.000021}
{"kappa": -0.000050, "s": 478.273258, "theta": 1.630411, "x":691207.585806, "y":3118637.638487, "dkappa":-0.000020}
{"kappa": -0.000057, "s": 478.613356, "theta": 1.630393, "x":691207.565546, "y":3118637.977982, "dkappa":-0.000020}
{"kappa": -0.000064, "s": 478.953465, "theta": 1.630372, "x":691207.545292, "y":3118638.317487, "dkappa":-0.000020}
{"kappa": -0.000071, "s": 479.293584, "theta": 1.630349, "x":691207.525045, "y":3118638.657003, "dkappa":-0.000020}
{"kappa": -0.000078, "s": 479.633714, "theta": 1.630324, "x":691207.504806, "y":3118638.996530, "dkappa":-0.000020}
{"kappa": -0.000085, "s": 479.973854, "theta": 1.630296, "x":691207.484575, "y":3118639.336067, "dkappa":-0.000020}
{"kappa": -0.000092, "s": 480.314004, "theta": 1.630266, "x":691207.464353, "y":3118639.675616, "dkappa":-0.000020}
{"kappa": -0.000098, "s": 480.654164, "theta": 1.630234, "x":691207.444141, "y":3118640.015175, "dkappa":-0.000020}
{"kappa": -0.000105, "s": 480.994335, "theta": 1.630199, "x":691207.423940, "y":3118640.354746, "dkappa":-0.000020}
{"kappa": -0.000112, "s": 481.334516, "theta": 1.630162, "x":691207.403750, "y":3118640.694327, "dkappa":-0.000020}
{"kappa": -0.000119, "s": 481.674707, "theta": 1.630123, "x":691207.383573, "y":3118641.033919, "dkappa":-0.000020}
{"kappa": -0.000125, "s": 482.014908, "theta": 1.630081, "x":691207.363409, "y":3118641.373522, "dkappa":-0.000020}
{"kappa": -0.000132, "s": 482.355119, "theta": 1.630038, "x":691207.343258, "y":3118641.713136, "dkappa":-0.000020}
{"kappa": -0.000139, "s": 482.695341, "theta": 1.629992, "x":691207.323123, "y":3118642.052761, "dkappa":-0.000019}
{"kappa": -0.000145, "s": 483.035572, "theta": 1.629943, "x":691207.303003, "y":3118642.392397, "dkappa":-0.000019}
{"kappa": -0.000152, "s": 483.375813, "theta": 1.629893, "x":691207.282899, "y":3118642.732044, "dkappa":-0.000019}
{"kappa": -0.000158, "s": 483.716065, "theta": 1.629840, "x":691207.262812, "y":3118643.071702, "dkappa":-0.000019}
{"kappa": -0.000165, "s": 484.056326, "theta": 1.629785, "x":691207.242742, "y":3118643.411371, "dkappa":-0.000019}
{"kappa": -0.000171, "s": 484.396598, "theta": 1.629728, "x":691207.222691, "y":3118643.751051, "dkappa":-0.000019}
{"kappa": -0.000178, "s": 484.736879, "theta": 1.629668, "x":691207.202660, "y":3118644.090742, "dkappa":-0.000019}
{"kappa": -0.000184, "s": 485.077170, "theta": 1.629607, "x":691207.182648, "y":3118644.430444, "dkappa":-0.000019}
{"kappa": -0.000191, "s": 485.417471, "theta": 1.629543, "x":691207.162657, "y":3118644.770158, "dkappa":-0.000019}
{"kappa": -0.000197, "s": 485.757782, "theta": 1.629477, "x":691207.142688, "y":3118645.109882, "dkappa":-0.000019}
{"kappa": -0.000203, "s": 486.098102, "theta": 1.629409, "x":691207.122741, "y":3118645.449617, "dkappa":-0.000019}
{"kappa": -0.000210, "s": 486.438432, "theta": 1.629339, "x":691207.102816, "y":3118645.789364, "dkappa":-0.000018}
{"kappa": -0.000216, "s": 486.778772, "theta": 1.629266, "x":691207.082916, "y":3118646.129121, "dkappa":-0.000018}
{"kappa": -0.000222, "s": 487.119122, "theta": 1.629192, "x":691207.063039, "y":3118646.468890, "dkappa":-0.000018}
{"kappa": -0.000228, "s": 487.459481, "theta": 1.629115, "x":691207.043188, "y":3118646.808670, "dkappa":-0.000018}
{"kappa": -0.000234, "s": 487.799850, "theta": 1.629036, "x":691207.023363, "y":3118647.148461, "dkappa":-0.000018}
{"kappa": -0.000240, "s": 488.140229, "theta": 1.628955, "x":691207.003564, "y":3118647.488263, "dkappa":-0.000018}
{"kappa": -0.000247, "s": 488.480617, "theta": 1.628873, "x":691206.983793, "y":3118647.828077, "dkappa":-0.000018}
{"kappa": -0.000253, "s": 488.821014, "theta": 1.628788, "x":691206.964049, "y":3118648.167901, "dkappa":-0.000018}
{"kappa": -0.000259, "s": 489.161422, "theta": 1.628701, "x":691206.944334, "y":3118648.507737, "dkappa":-0.000018}
{"kappa": -0.000265, "s": 489.501838, "theta": 1.628612, "x":691206.924649, "y":3118648.847584, "dkappa":-0.000017}
{"kappa": -0.000270, "s": 489.842264, "theta": 1.628521, "x":691206.904993, "y":3118649.187442, "dkappa":-0.000017}
{"kappa": -0.000276, "s": 490.182700, "theta": 1.628427, "x":691206.885369, "y":3118649.527312, "dkappa":-0.000017}
{"kappa": -0.000282, "s": 490.523145, "theta": 1.628332, "x":691206.865775, "y":3118649.867193, "dkappa":-0.000017}
{"kappa": -0.000288, "s": 490.863599, "theta": 1.628235, "x":691206.846214, "y":3118650.207085, "dkappa":-0.000017}
{"kappa": -0.000294, "s": 491.204063, "theta": 1.628136, "x":691206.826686, "y":3118650.546988, "dkappa":-0.000017}
{"kappa": -0.000300, "s": 491.544536, "theta": 1.628035, "x":691206.807191, "y":3118650.886902, "dkappa":-0.000017}
{"kappa": -0.000305, "s": 491.885018, "theta": 1.627932, "x":691206.787730, "y":3118651.226828, "dkappa":-0.000017}
{"kappa": -0.000311, "s": 492.225510, "theta": 1.627827, "x":691206.768304, "y":3118651.566765, "dkappa":-0.000017}
{"kappa": -0.000316, "s": 492.566011, "theta": 1.627721, "x":691206.748914, "y":3118651.906713, "dkappa":-0.000016}
{"kappa": -0.000322, "s": 492.906521, "theta": 1.627612, "x":691206.729559, "y":3118652.246673, "dkappa":-0.000016}
{"kappa": -0.000328, "s": 493.247040, "theta": 1.627501, "x":691206.710242, "y":3118652.586644, "dkappa":-0.000016}
{"kappa": -0.000333, "s": 493.587569, "theta": 1.627389, "x":691206.690961, "y":3118652.926626, "dkappa":-0.000016}
{"kappa": -0.000338, "s": 493.928106, "theta": 1.627274, "x":691206.671719, "y":3118653.266619, "dkappa":-0.000016}
{"kappa": -0.000344, "s": 494.268653, "theta": 1.627158, "x":691206.652516, "y":3118653.606624, "dkappa":-0.000016}
{"kappa": -0.000349, "s": 494.609209, "theta": 1.627040, "x":691206.633352, "y":3118653.946641, "dkappa":-0.000016}
{"kappa": -0.000355, "s": 494.949774, "theta": 1.626920, "x":691206.614227, "y":3118654.286668, "dkappa":-0.000016}
{"kappa": -0.000360, "s": 495.290348, "theta": 1.626799, "x":691206.595144, "y":3118654.626707, "dkappa":-0.000015}
{"kappa": -0.000365, "s": 495.630931, "theta": 1.626675, "x":691206.576101, "y":3118654.966757, "dkappa":-0.000015}
{"kappa": -0.000370, "s": 495.971523, "theta": 1.626550, "x":691206.557100, "y":3118655.306819, "dkappa":-0.000015}
{"kappa": -0.000375, "s": 496.312124, "theta": 1.626423, "x":691206.538142, "y":3118655.646892, "dkappa":-0.000015}
{"kappa": -0.000380, "s": 496.652734, "theta": 1.626294, "x":691206.519226, "y":3118655.986976, "dkappa":-0.000015}
{"kappa": -0.000386, "s": 496.993353, "theta": 1.626164, "x":691206.500354, "y":3118656.327072, "dkappa":-0.000015}
{"kappa": -0.000391, "s": 497.333981, "theta": 1.626032, "x":691206.481527, "y":3118656.667179, "dkappa":-0.000015}
{"kappa": -0.000396, "s": 497.674617, "theta": 1.625898, "x":691206.462744, "y":3118657.007298, "dkappa":-0.000014}
{"kappa": -0.000400, "s": 498.015263, "theta": 1.625762, "x":691206.444006, "y":3118657.347428, "dkappa":-0.000014}
{"kappa": -0.000405, "s": 498.355918, "theta": 1.625625, "x":691206.425314, "y":3118657.687569, "dkappa":-0.000014}
{"kappa": -0.000410, "s": 498.696581, "theta": 1.625486, "x":691206.406669, "y":3118658.027722, "dkappa":-0.000014}
{"kappa": -0.000415, "s": 499.037253, "theta": 1.625346, "x":691206.388071, "y":3118658.367886, "dkappa":-0.000014}
{"kappa": -0.000419, "s": 499.377934, "theta": 1.625204, "x":691206.369521, "y":3118658.708061, "dkappa":-0.000014}
{"kappa": -0.000424, "s": 499.718624, "theta": 1.625060, "x":691206.351018, "y":3118659.048248, "dkappa":-0.000013}
{"kappa": -0.000429, "s": 500.059322, "theta": 1.624915, "x":691206.332564, "y":3118659.388447, "dkappa":-0.000013}
{"kappa": -0.000433, "s": 500.400030, "theta": 1.624768, "x":691206.314160, "y":3118659.728656, "dkappa":-0.000013}
{"kappa": -0.000438, "s": 500.740746, "theta": 1.624619, "x":691206.295805, "y":3118660.068878, "dkappa":-0.000013}
{"kappa": -0.000442, "s": 501.081470, "theta": 1.624470, "x":691206.277500, "y":3118660.409110, "dkappa":-0.000013}
{"kappa": -0.000446, "s": 501.422204, "theta": 1.624318, "x":691206.259247, "y":3118660.749354, "dkappa":-0.000013}
{"kappa": -0.000450, "s": 501.762946, "theta": 1.624166, "x":691206.241044, "y":3118661.089610, "dkappa":-0.000012}
{"kappa": -0.000455, "s": 502.103696, "theta": 1.624011, "x":691206.222893, "y":3118661.429877, "dkappa":-0.000012}
{"kappa": -0.000459, "s": 502.444456, "theta": 1.623856, "x":691206.204795, "y":3118661.770155, "dkappa":-0.000012}
{"kappa": -0.000463, "s": 502.785224, "theta": 1.623699, "x":691206.186749, "y":3118662.110445, "dkappa":-0.000012}
{"kappa": -0.000467, "s": 503.126000, "theta": 1.623540, "x":691206.168756, "y":3118662.450746, "dkappa":-0.000012}
{"kappa": -0.000471, "s": 503.466785, "theta": 1.623380, "x":691206.150817, "y":3118662.791059, "dkappa":-0.000012}
{"kappa": -0.000475, "s": 503.807579, "theta": 1.623219, "x":691206.132933, "y":3118663.131383, "dkappa":-0.000011}
{"kappa": -0.000479, "s": 504.148381, "theta": 1.623057, "x":691206.115103, "y":3118663.471718, "dkappa":-0.000011}
{"kappa": -0.000482, "s": 504.489192, "theta": 1.622893, "x":691206.097328, "y":3118663.812065, "dkappa":-0.000011}
{"kappa": -0.000486, "s": 504.830011, "theta": 1.622728, "x":691206.079608, "y":3118664.152423, "dkappa":-0.000011}
{"kappa": -0.000490, "s": 505.170839, "theta": 1.622562, "x":691206.061944, "y":3118664.492793, "dkappa":-0.000011}
{"kappa": -0.000493, "s": 505.511675, "theta": 1.622394, "x":691206.044337, "y":3118664.833174, "dkappa":-0.000011}
{"kappa": -0.000497, "s": 505.852520, "theta": 1.622226, "x":691206.026787, "y":3118665.173567, "dkappa":-0.000010}
{"kappa": -0.000500, "s": 506.193373, "theta": 1.622056, "x":691206.009294, "y":3118665.513971, "dkappa":-0.000010}
{"kappa": -0.000504, "s": 506.534235, "theta": 1.621884, "x":691205.991858, "y":3118665.854386, "dkappa":-0.000010}
{"kappa": -0.000507, "s": 506.875105, "theta": 1.621712, "x":691205.974481, "y":3118666.194813, "dkappa":-0.000010}
{"kappa": -0.000511, "s": 507.215983, "theta": 1.621539, "x":691205.957162, "y":3118666.535252, "dkappa":-0.000010}
{"kappa": -0.000514, "s": 507.556870, "theta": 1.621364, "x":691205.939901, "y":3118666.875701, "dkappa":-0.000010}
{"kappa": -0.000517, "s": 507.897766, "theta": 1.621188, "x":691205.922700, "y":3118667.216162, "dkappa":-0.000009}
{"kappa": -0.000520, "s": 508.238669, "theta": 1.621011, "x":691205.905559, "y":3118667.556635, "dkappa":-0.000009}
{"kappa": -0.000523, "s": 508.579581, "theta": 1.620834, "x":691205.888477, "y":3118667.897119, "dkappa":-0.000009}
{"kappa": -0.000526, "s": 508.920502, "theta": 1.620655, "x":691205.871456, "y":3118668.237614, "dkappa":-0.000009}
{"kappa": -0.000529, "s": 509.261431, "theta": 1.620475, "x":691205.854496, "y":3118668.578121, "dkappa":-0.000009}
{"kappa": -0.000532, "s": 509.602368, "theta": 1.620294, "x":691205.837596, "y":3118668.918639, "dkappa":-0.000009}
{"kappa": -0.000535, "s": 509.943313, "theta": 1.620112, "x":691205.820758, "y":3118669.259168, "dkappa":-0.000008}
{"kappa": -0.000538, "s": 510.284267, "theta": 1.619929, "x":691205.803982, "y":3118669.599709, "dkappa":-0.000008}
{"kappa": -0.000541, "s": 510.625229, "theta": 1.619745, "x":691205.787267, "y":3118669.940261, "dkappa":-0.000008}
{"kappa": -0.000543, "s": 510.966199, "theta": 1.619560, "x":691205.770615, "y":3118670.280824, "dkappa":-0.000008}
{"kappa": -0.000546, "s": 511.307178, "theta": 1.619374, "x":691205.754026, "y":3118670.621399, "dkappa":-0.000008}
{"kappa": -0.000549, "s": 511.648165, "theta": 1.619188, "x":691205.737500, "y":3118670.961985, "dkappa":-0.000008}
{"kappa": -0.000551, "s": 511.989160, "theta": 1.619000, "x":691205.721037, "y":3118671.302583, "dkappa":-0.000007}
{"kappa": -0.000554, "s": 512.330164, "theta": 1.618812, "x":691205.704638, "y":3118671.643192, "dkappa":-0.000007}
{"kappa": -0.000556, "s": 512.671175, "theta": 1.618623, "x":691205.688302, "y":3118671.983812, "dkappa":-0.000007}
{"kappa": -0.000558, "s": 513.012195, "theta": 1.618433, "x":691205.672031, "y":3118672.324443, "dkappa":-0.000007}
{"kappa": -0.000561, "s": 513.353223, "theta": 1.618242, "x":691205.655824, "y":3118672.665086, "dkappa":-0.000007}
{"kappa": -0.000563, "s": 513.694260, "theta": 1.618050, "x":691205.639682, "y":3118673.005740, "dkappa":-0.000007}
{"kappa": -0.000565, "s": 514.035304, "theta": 1.617858, "x":691205.623605, "y":3118673.346406, "dkappa":-0.000006}
{"kappa": -0.000567, "s": 514.376357, "theta": 1.617665, "x":691205.607594, "y":3118673.687082, "dkappa":-0.000006}
{"kappa": -0.000569, "s": 514.717418, "theta": 1.617471, "x":691205.591648, "y":3118674.027770, "dkappa":-0.000006}
{"kappa": -0.000572, "s": 515.058487, "theta": 1.617276, "x":691205.575767, "y":3118674.368469, "dkappa":-0.000006}
{"kappa": -0.000574, "s": 515.399564, "theta": 1.617081, "x":691205.559953, "y":3118674.709180, "dkappa":-0.000006}
{"kappa": -0.000575, "s": 515.740649, "theta": 1.616885, "x":691205.544205, "y":3118675.049902, "dkappa":-0.000006}
{"kappa": -0.000577, "s": 516.081743, "theta": 1.616688, "x":691205.528524, "y":3118675.390635, "dkappa":-0.000005}
{"kappa": -0.000579, "s": 516.422845, "theta": 1.616491, "x":691205.512909, "y":3118675.731379, "dkappa":-0.000005}
{"kappa": -0.000581, "s": 516.763955, "theta": 1.616293, "x":691205.497361, "y":3118676.072134, "dkappa":-0.000005}
{"kappa": -0.000583, "s": 517.105073, "theta": 1.616095, "x":691205.481880, "y":3118676.412901, "dkappa":-0.000005}
{"kappa": -0.000584, "s": 517.446199, "theta": 1.615896, "x":691205.466467, "y":3118676.753678, "dkappa":-0.000005}
{"kappa": -0.000586, "s": 517.787333, "theta": 1.615696, "x":691205.451121, "y":3118677.094467, "dkappa":-0.000005}
{"kappa": -0.000587, "s": 518.128475, "theta": 1.615496, "x":691205.435843, "y":3118677.435267, "dkappa":-0.000004}
{"kappa": -0.000589, "s": 518.469626, "theta": 1.615295, "x":691205.420633, "y":3118677.776078, "dkappa":-0.000004}
{"kappa": -0.000590, "s": 518.810784, "theta": 1.615094, "x":691205.405491, "y":3118678.116901, "dkappa":-0.000004}
{"kappa": -0.000592, "s": 519.151951, "theta": 1.614892, "x":691205.390418, "y":3118678.457734, "dkappa":-0.000004}
{"kappa": -0.000593, "s": 519.493126, "theta": 1.614690, "x":691205.375413, "y":3118678.798579, "dkappa":-0.000004}
{"kappa": -0.000594, "s": 519.834309, "theta": 1.614488, "x":691205.360476, "y":3118679.139435, "dkappa":-0.000004}
{"kappa": -0.000596, "s": 520.175499, "theta": 1.614285, "x":691205.345608, "y":3118679.480301, "dkappa":-0.000004}
{"kappa": -0.000597, "s": 520.516698, "theta": 1.614081, "x":691205.330810, "y":3118679.821179, "dkappa":-0.000004}
{"kappa": -0.000598, "s": 520.857905, "theta": 1.613877, "x":691205.316080, "y":3118680.162068, "dkappa":-0.000004}
{"kappa": -0.000599, "s": 521.199121, "theta": 1.613673, "x":691205.301419, "y":3118680.502968, "dkappa":-0.000003}
{"kappa": -0.000600, "s": 521.540344, "theta": 1.613468, "x":691205.286828, "y":3118680.843879, "dkappa":-0.000003}
{"kappa": -0.000602, "s": 521.881575, "theta": 1.613263, "x":691205.272307, "y":3118681.184801, "dkappa":-0.000003}
{"kappa": -0.000603, "s": 522.222814, "theta": 1.613058, "x":691205.257855, "y":3118681.525735, "dkappa":-0.000003}
{"kappa": -0.000604, "s": 522.564061, "theta": 1.612852, "x":691205.243472, "y":3118681.866679, "dkappa":-0.000003}
{"kappa": -0.000605, "s": 522.905317, "theta": 1.612646, "x":691205.229160, "y":3118682.207634, "dkappa":-0.000003}
{"kappa": -0.000606, "s": 523.246580, "theta": 1.612439, "x":691205.214918, "y":3118682.548600, "dkappa":-0.000003}
{"kappa": -0.000606, "s": 523.587851, "theta": 1.612232, "x":691205.200746, "y":3118682.889577, "dkappa":-0.000003}
{"kappa": -0.000607, "s": 523.929131, "theta": 1.612025, "x":691205.186644, "y":3118683.230565, "dkappa":-0.000002}
{"kappa": -0.000608, "s": 524.270418, "theta": 1.611818, "x":691205.172612, "y":3118683.571563, "dkappa":-0.000002}
{"kappa": -0.000609, "s": 524.611714, "theta": 1.611610, "x":691205.158651, "y":3118683.912573, "dkappa":-0.000002}
{"kappa": -0.000610, "s": 524.953017, "theta": 1.611402, "x":691205.144761, "y":3118684.253594, "dkappa":-0.000002}
{"kappa": -0.000610, "s": 525.294329, "theta": 1.611194, "x":691205.130941, "y":3118684.594625, "dkappa":-0.000002}
{"kappa": -0.000611, "s": 525.635648, "theta": 1.610985, "x":691205.117192, "y":3118684.935668, "dkappa":-0.000002}
{"kappa": -0.000612, "s": 525.976975, "theta": 1.610777, "x":691205.103513, "y":3118685.276721, "dkappa":-0.000002}
{"kappa": -0.000612, "s": 526.318311, "theta": 1.610568, "x":691205.089906, "y":3118685.617785, "dkappa":-0.000002}
{"kappa": -0.000613, "s": 526.659654, "theta": 1.610359, "x":691205.076369, "y":3118685.958860, "dkappa":-0.000002}
{"kappa": -0.000614, "s": 527.001006, "theta": 1.610149, "x":691205.062904, "y":3118686.299946, "dkappa":-0.000002}
{"kappa": -0.000614, "s": 527.342365, "theta": 1.609940, "x":691205.049510, "y":3118686.641042, "dkappa":-0.000001}
{"kappa": -0.000615, "s": 527.683733, "theta": 1.609730, "x":691205.036187, "y":3118686.982150, "dkappa":-0.000001}
{"kappa": -0.000615, "s": 528.025108, "theta": 1.609520, "x":691205.022935, "y":3118687.323268, "dkappa":-0.000001}
{"kappa": -0.000615, "s": 528.366491, "theta": 1.609310, "x":691205.009754, "y":3118687.664396, "dkappa":-0.000001}
{"kappa": -0.000616, "s": 528.707883, "theta": 1.609100, "x":691204.996645, "y":3118688.005536, "dkappa":-0.000001}
{"kappa": -0.000616, "s": 529.049282, "theta": 1.608890, "x":691204.983607, "y":3118688.346686, "dkappa":-0.000001}
{"kappa": -0.000617, "s": 529.390689, "theta": 1.608679, "x":691204.970641, "y":3118688.687847, "dkappa":-0.000001}
{"kappa": -0.000617, "s": 529.732104, "theta": 1.608469, "x":691204.957746, "y":3118689.029019, "dkappa":-0.000001}
{"kappa": -0.000617, "s": 530.073527, "theta": 1.608258, "x":691204.944923, "y":3118689.370201, "dkappa":-0.000001}
{"kappa": -0.000617, "s": 530.414959, "theta": 1.608047, "x":691204.932171, "y":3118689.711394, "dkappa":-0.000001}
{"kappa": -0.000618, "s": 530.756398, "theta": 1.607836, "x":691204.919491, "y":3118690.052597, "dkappa":-0.000001}
{"kappa": -0.000618, "s": 531.097845, "theta": 1.607626, "x":691204.906883, "y":3118690.393812, "dkappa":-0.000001}
{"kappa": -0.000618, "s": 531.439300, "theta": 1.607415, "x":691204.894346, "y":3118690.735036, "dkappa":-0.000000}
{"kappa": -0.000618, "s": 531.780763, "theta": 1.607204, "x":691204.881881, "y":3118691.076272, "dkappa":-0.000000}
{"kappa": -0.000618, "s": 532.122233, "theta": 1.606993, "x":691204.869488, "y":3118691.417518, "dkappa":-0.000000}
{"kappa": -0.000618, "s": 532.463712, "theta": 1.606781, "x":691204.857166, "y":3118691.758774, "dkappa":-0.000000}
{"kappa": -0.000618, "s": 532.805199, "theta": 1.606570, "x":691204.844917, "y":3118692.100041, "dkappa":-0.000000}
{"kappa": -0.000618, "s": 533.146694, "theta": 1.606359, "x":691204.832739, "y":3118692.441319, "dkappa":-0.000000}
{"kappa": -0.000618, "s": 533.488196, "theta": 1.606148, "x":691204.820632, "y":3118692.782607, "dkappa":0.000000}
{"kappa": -0.000618, "s": 533.829707, "theta": 1.605937, "x":691204.808598, "y":3118693.123905, "dkappa":0.000000}
{"kappa": -0.000618, "s": 534.171225, "theta": 1.605726, "x":691204.796635, "y":3118693.465214, "dkappa":0.000000}
{"kappa": -0.000618, "s": 534.512752, "theta": 1.605515, "x":691204.784745, "y":3118693.806533, "dkappa":0.000000}
{"kappa": -0.000618, "s": 534.854286, "theta": 1.605303, "x":691204.772926, "y":3118694.147863, "dkappa":0.000000}
{"kappa": -0.000618, "s": 535.195829, "theta": 1.605092, "x":691204.761178, "y":3118694.489203, "dkappa":0.000000}
{"kappa": -0.000618, "s": 535.537379, "theta": 1.604881, "x":691204.749503, "y":3118694.830554, "dkappa":0.000000}
{"kappa": -0.000618, "s": 535.878937, "theta": 1.604670, "x":691204.737899, "y":3118695.171915, "dkappa":0.000000}
{"kappa": -0.000618, "s": 536.220503, "theta": 1.604459, "x":691204.726367, "y":3118695.513286, "dkappa":0.000001}
{"kappa": -0.000617, "s": 536.562077, "theta": 1.604248, "x":691204.714907, "y":3118695.854668, "dkappa":0.000001}
{"kappa": -0.000617, "s": 536.903659, "theta": 1.604037, "x":691204.703519, "y":3118696.196060, "dkappa":0.000001}
{"kappa": -0.000617, "s": 537.245249, "theta": 1.603827, "x":691204.692202, "y":3118696.537462, "dkappa":0.000001}
{"kappa": -0.000617, "s": 537.586847, "theta": 1.603616, "x":691204.680957, "y":3118696.878875, "dkappa":0.000001}
{"kappa": -0.000616, "s": 537.928452, "theta": 1.603405, "x":691204.669783, "y":3118697.220298, "dkappa":0.000001}
{"kappa": -0.000616, "s": 538.270066, "theta": 1.603195, "x":691204.658682, "y":3118697.561731, "dkappa":0.000001}
{"kappa": -0.000616, "s": 538.611687, "theta": 1.602984, "x":691204.647652, "y":3118697.903175, "dkappa":0.000001}
{"kappa": -0.000616, "s": 538.953317, "theta": 1.602774, "x":691204.636693, "y":3118698.244628, "dkappa":0.000001}
{"kappa": -0.000615, "s": 539.294954, "theta": 1.602564, "x":691204.625806, "y":3118698.586092, "dkappa":0.000001}
{"kappa": -0.000615, "s": 539.636600, "theta": 1.602353, "x":691204.614991, "y":3118698.927566, "dkappa":0.000001}
{"kappa": -0.000615, "s": 539.978253, "theta": 1.602143, "x":691204.604247, "y":3118699.269050, "dkappa":0.000001}
{"kappa": -0.000614, "s": 540.319914, "theta": 1.601933, "x":691204.593574, "y":3118699.610545, "dkappa":0.000001}
{"kappa": -0.000614, "s": 540.661583, "theta": 1.601724, "x":691204.582973, "y":3118699.952049, "dkappa":0.000001}
{"kappa": -0.000613, "s": 541.003260, "theta": 1.601514, "x":691204.572444, "y":3118700.293564, "dkappa":0.000001}
{"kappa": -0.000613, "s": 541.344945, "theta": 1.601305, "x":691204.561985, "y":3118700.635089, "dkappa":0.000001}
{"kappa": -0.000613, "s": 541.686637, "theta": 1.601095, "x":691204.551598, "y":3118700.976623, "dkappa":0.000001}
{"kappa": -0.000612, "s": 542.028338, "theta": 1.600886, "x":691204.541282, "y":3118701.318168, "dkappa":0.000001}
{"kappa": -0.000612, "s": 542.370047, "theta": 1.600677, "x":691204.531038, "y":3118701.659723, "dkappa":0.000001}
{"kappa": -0.000611, "s": 542.711763, "theta": 1.600468, "x":691204.520864, "y":3118702.001288, "dkappa":0.000001}
{"kappa": -0.000611, "s": 543.053488, "theta": 1.600259, "x":691204.510762, "y":3118702.342864, "dkappa":0.000001}
{"kappa": -0.000610, "s": 543.395220, "theta": 1.600050, "x":691204.500731, "y":3118702.684449, "dkappa":0.000001}
{"kappa": -0.000610, "s": 543.736960, "theta": 1.599842, "x":691204.490770, "y":3118703.026044, "dkappa":0.000001}
{"kappa": -0.000609, "s": 544.078708, "theta": 1.599634, "x":691204.480881, "y":3118703.367649, "dkappa":0.000001}
{"kappa": -0.000609, "s": 544.420464, "theta": 1.599426, "x":691204.471063, "y":3118703.709264, "dkappa":0.000002}
{"kappa": -0.000608, "s": 544.762228, "theta": 1.599218, "x":691204.461315, "y":3118704.050889, "dkappa":0.000002}
{"kappa": -0.000608, "s": 545.104000, "theta": 1.599010, "x":691204.451638, "y":3118704.392524, "dkappa":0.000002}
{"kappa": -0.000607, "s": 545.445780, "theta": 1.598802, "x":691204.442032, "y":3118704.734168, "dkappa":0.000002}
{"kappa": -0.000607, "s": 545.787568, "theta": 1.598595, "x":691204.432497, "y":3118705.075823, "dkappa":0.000002}
{"kappa": -0.000606, "s": 546.129364, "theta": 1.598388, "x":691204.423032, "y":3118705.417488, "dkappa":0.000002}
{"kappa": -0.000605, "s": 546.471167, "theta": 1.598181, "x":691204.413638, "y":3118705.759162, "dkappa":0.000002}
{"kappa": -0.000605, "s": 546.812979, "theta": 1.597974, "x":691204.404314, "y":3118706.100846, "dkappa":0.000002}
{"kappa": -0.000604, "s": 547.154798, "theta": 1.597767, "x":691204.395061, "y":3118706.442541, "dkappa":0.000002}
{"kappa": -0.000604, "s": 547.496625, "theta": 1.597561, "x":691204.385878, "y":3118706.784245, "dkappa":0.000002}
{"kappa": -0.000603, "s": 547.838461, "theta": 1.597354, "x":691204.376765, "y":3118707.125958, "dkappa":0.000002}
{"kappa": -0.000603, "s": 548.180304, "theta": 1.597148, "x":691204.367723, "y":3118707.467682, "dkappa":0.000002}
{"kappa": -0.000602, "s": 548.522155, "theta": 1.596942, "x":691204.358751, "y":3118707.809415, "dkappa":0.000002}
{"kappa": -0.000601, "s": 548.864014, "theta": 1.596737, "x":691204.349848, "y":3118708.151158, "dkappa":0.000002}
{"kappa": -0.000601, "s": 549.205881, "theta": 1.596531, "x":691204.341016, "y":3118708.492911, "dkappa":0.000002}
{"kappa": -0.000600, "s": 549.547756, "theta": 1.596326, "x":691204.332254, "y":3118708.834674, "dkappa":0.000002}
{"kappa": -0.000600, "s": 549.889639, "theta": 1.596121, "x":691204.323562, "y":3118709.176446, "dkappa":0.000002}
{"kappa": -0.000599, "s": 550.231530, "theta": 1.595916, "x":691204.314940, "y":3118709.518228, "dkappa":0.000002}
{"kappa": -0.000598, "s": 550.573428, "theta": 1.595711, "x":691204.306387, "y":3118709.860020, "dkappa":0.000002}
{"kappa": -0.000598, "s": 550.915335, "theta": 1.595507, "x":691204.297905, "y":3118710.201821, "dkappa":0.000002}
{"kappa": -0.000597, "s": 551.257249, "theta": 1.595303, "x":691204.289491, "y":3118710.543632, "dkappa":0.000002}
{"kappa": -0.000596, "s": 551.599172, "theta": 1.595099, "x":691204.281148, "y":3118710.885453, "dkappa":0.000002}
{"kappa": -0.000596, "s": 551.941102, "theta": 1.594895, "x":691204.272874, "y":3118711.227283, "dkappa":0.000002}
{"kappa": -0.000595, "s": 552.283041, "theta": 1.594691, "x":691204.264669, "y":3118711.569123, "dkappa":0.000002}
{"kappa": -0.000595, "s": 552.624987, "theta": 1.594488, "x":691204.256534, "y":3118711.910973, "dkappa":0.000002}
{"kappa": -0.000594, "s": 552.966941, "theta": 1.594285, "x":691204.248468, "y":3118712.252832, "dkappa":0.000002}
{"kappa": -0.000593, "s": 553.308904, "theta": 1.594082, "x":691204.240472, "y":3118712.594701, "dkappa":0.000002}
{"kappa": -0.000593, "s": 553.650874, "theta": 1.593879, "x":691204.232544, "y":3118712.936579, "dkappa":0.000002}
{"kappa": -0.000592, "s": 553.992852, "theta": 1.593676, "x":691204.224686, "y":3118713.278467, "dkappa":0.000002}
{"kappa": -0.000592, "s": 554.334838, "theta": 1.593474, "x":691204.216897, "y":3118713.620365, "dkappa":0.000002}
{"kappa": -0.000591, "s": 554.676832, "theta": 1.593271, "x":691204.209176, "y":3118713.962272, "dkappa":0.000002}
{"kappa": -0.000590, "s": 555.018835, "theta": 1.593069, "x":691204.201525, "y":3118714.304188, "dkappa":0.000002}
{"kappa": -0.000590, "s": 555.360845, "theta": 1.592868, "x":691204.193942, "y":3118714.646114, "dkappa":0.000002}
{"kappa": -0.000589, "s": 555.702863, "theta": 1.592666, "x":691204.186429, "y":3118714.988050, "dkappa":0.000002}
{"kappa": -0.000589, "s": 556.044889, "theta": 1.592465, "x":691204.178984, "y":3118715.329995, "dkappa":0.000002}
{"kappa": -0.000588, "s": 556.386923, "theta": 1.592263, "x":691204.171607, "y":3118715.671949, "dkappa":0.000002}
{"kappa": -0.000587, "s": 556.728965, "theta": 1.592062, "x":691204.164300, "y":3118716.013913, "dkappa":0.000002}
{"kappa": -0.000587, "s": 557.071015, "theta": 1.591862, "x":691204.157060, "y":3118716.355886, "dkappa":0.000002}
{"kappa": -0.000586, "s": 557.413073, "theta": 1.591661, "x":691204.149890, "y":3118716.697869, "dkappa":0.000002}
{"kappa": -0.000586, "s": 557.755139, "theta": 1.591460, "x":691204.142787, "y":3118717.039862, "dkappa":0.000002}
{"kappa": -0.000585, "s": 558.097213, "theta": 1.591260, "x":691204.135754, "y":3118717.381863, "dkappa":0.000002}
{"kappa": -0.000585, "s": 558.439295, "theta": 1.591060, "x":691204.128788, "y":3118717.723874, "dkappa":0.000002}
{"kappa": -0.000584, "s": 558.781385, "theta": 1.590860, "x":691204.121891, "y":3118718.065895, "dkappa":0.000002}
{"kappa": -0.000584, "s": 559.123483, "theta": 1.590660, "x":691204.115061, "y":3118718.407925, "dkappa":0.000001}
{"kappa": -0.000583, "s": 559.465589, "theta": 1.590461, "x":691204.108300, "y":3118718.749964, "dkappa":0.000001}
{"kappa": -0.000583, "s": 559.807704, "theta": 1.590261, "x":691204.101607, "y":3118719.092013, "dkappa":0.000001}
{"kappa": -0.000582, "s": 560.149826, "theta": 1.590062, "x":691204.094983, "y":3118719.434071, "dkappa":0.000001}
{"kappa": -0.000582, "s": 560.491956, "theta": 1.589863, "x":691204.088426, "y":3118719.776138, "dkappa":0.000001}
{"kappa": -0.000581, "s": 560.834094, "theta": 1.589664, "x":691204.081937, "y":3118720.118215, "dkappa":0.000001}
{"kappa": -0.000581, "s": 561.176241, "theta": 1.589465, "x":691204.075516, "y":3118720.460301, "dkappa":0.000001}
{"kappa": -0.000580, "s": 561.518395, "theta": 1.589267, "x":691204.069162, "y":3118720.802397, "dkappa":0.000001}
{"kappa": -0.000580, "s": 561.860558, "theta": 1.589068, "x":691204.062877, "y":3118721.144502, "dkappa":0.000001}
{"kappa": -0.000580, "s": 562.202729, "theta": 1.588870, "x":691204.056659, "y":3118721.486616, "dkappa":0.000001}
{"kappa": -0.000579, "s": 562.544907, "theta": 1.588671, "x":691204.050509, "y":3118721.828739, "dkappa":0.000001}
{"kappa": -0.000579, "s": 562.887094, "theta": 1.588473, "x":691204.044426, "y":3118722.170872, "dkappa":0.000001}
{"kappa": -0.000578, "s": 563.229289, "theta": 1.588275, "x":691204.038412, "y":3118722.513014, "dkappa":0.000001}
{"kappa": -0.000578, "s": 563.571492, "theta": 1.588077, "x":691204.032464, "y":3118722.855166, "dkappa":0.000001}
{"kappa": -0.000578, "s": 563.913703, "theta": 1.587880, "x":691204.026585, "y":3118723.197326, "dkappa":0.000001}
{"kappa": -0.000577, "s": 564.255923, "theta": 1.587682, "x":691204.020773, "y":3118723.539496, "dkappa":0.000001}
{"kappa": -0.000577, "s": 564.598150, "theta": 1.587485, "x":691204.015028, "y":3118723.881676, "dkappa":0.000001}
{"kappa": -0.000577, "s": 564.940386, "theta": 1.587287, "x":691204.009351, "y":3118724.223864, "dkappa":0.000001}
{"kappa": -0.000577, "s": 565.282630, "theta": 1.587090, "x":691204.003741, "y":3118724.566062, "dkappa":0.000001}
{"kappa": -0.000576, "s": 565.624882, "theta": 1.586892, "x":691203.998198, "y":3118724.908269, "dkappa":0.000001}
{"kappa": -0.000576, "s": 565.967142, "theta": 1.586695, "x":691203.992723, "y":3118725.250486, "dkappa":0.000001}
{"kappa": -0.000576, "s": 566.309410, "theta": 1.586498, "x":691203.987316, "y":3118725.592711, "dkappa":0.000001}
{"kappa": -0.000576, "s": 566.651687, "theta": 1.586301, "x":691203.981975, "y":3118725.934946, "dkappa":0.000001}
{"kappa": -0.000575, "s": 566.993972, "theta": 1.586104, "x":691203.976702, "y":3118726.277190, "dkappa":0.000000}
{"kappa": -0.000575, "s": 567.336265, "theta": 1.585907, "x":691203.971496, "y":3118726.619444, "dkappa":0.000000}
{"kappa": -0.000575, "s": 567.678566, "theta": 1.585710, "x":691203.966358, "y":3118726.961707, "dkappa":0.000000}
{"kappa": -0.000575, "s": 568.020876, "theta": 1.585513, "x":691203.961286, "y":3118727.303979, "dkappa":0.000000}
{"kappa": -0.000575, "s": 568.363193, "theta": 1.585317, "x":691203.956282, "y":3118727.646260, "dkappa":0.000000}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map/testdata | apollo_public_repos/apollo/modules/map/relative_map/testdata/multi_lane_map/middle.smoothed | {"kappa": -0.000214, "s": 0.000000, "theta": 1.532189, "x":691188.668784, "y":3118142.638383, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 0.400661, "theta": 1.532103, "x":691188.684266, "y":3118143.038745, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 0.801322, "theta": 1.532017, "x":691188.699782, "y":3118143.439106, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 1.201982, "theta": 1.531932, "x":691188.715333, "y":3118143.839464, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 1.602642, "theta": 1.531846, "x":691188.730918, "y":3118144.239821, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 2.003302, "theta": 1.531760, "x":691188.746537, "y":3118144.640176, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 2.403962, "theta": 1.531674, "x":691188.762190, "y":3118145.040530, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 2.804621, "theta": 1.531588, "x":691188.777878, "y":3118145.440882, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 3.205280, "theta": 1.531503, "x":691188.793600, "y":3118145.841232, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 3.605939, "theta": 1.531417, "x":691188.809357, "y":3118146.241581, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 4.006597, "theta": 1.531331, "x":691188.825148, "y":3118146.641928, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 4.407255, "theta": 1.531245, "x":691188.840973, "y":3118147.042274, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 4.807913, "theta": 1.531159, "x":691188.856832, "y":3118147.442618, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 5.208571, "theta": 1.531073, "x":691188.872726, "y":3118147.842960, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 5.609228, "theta": 1.530987, "x":691188.888655, "y":3118148.243300, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 6.009885, "theta": 1.530902, "x":691188.904617, "y":3118148.643639, "dkappa":-0.000000}
{"kappa": -0.000214, "s": 6.410542, "theta": 1.530816, "x":691188.920614, "y":3118149.043977, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 6.811199, "theta": 1.530730, "x":691188.936646, "y":3118149.444312, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 7.211855, "theta": 1.530644, "x":691188.952712, "y":3118149.844646, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 7.612511, "theta": 1.530558, "x":691188.968812, "y":3118150.244979, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 8.013167, "theta": 1.530472, "x":691188.984946, "y":3118150.645310, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 8.413822, "theta": 1.530386, "x":691189.001116, "y":3118151.045639, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 8.814477, "theta": 1.530300, "x":691189.017319, "y":3118151.445966, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 9.215132, "theta": 1.530214, "x":691189.033557, "y":3118151.846292, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 9.615787, "theta": 1.530128, "x":691189.049829, "y":3118152.246616, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 10.016442, "theta": 1.530042, "x":691189.066136, "y":3118152.646939, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 10.417096, "theta": 1.529955, "x":691189.082477, "y":3118153.047259, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 10.817750, "theta": 1.529869, "x":691189.098853, "y":3118153.447579, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 11.218404, "theta": 1.529783, "x":691189.115263, "y":3118153.847896, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 11.619057, "theta": 1.529697, "x":691189.131708, "y":3118154.248212, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 12.019711, "theta": 1.529611, "x":691189.148187, "y":3118154.648527, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 12.420364, "theta": 1.529524, "x":691189.164701, "y":3118155.048839, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 12.821017, "theta": 1.529438, "x":691189.181249, "y":3118155.449150, "dkappa":-0.000000}
{"kappa": -0.000215, "s": 13.221669, "theta": 1.529352, "x":691189.197832, "y":3118155.849460, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 13.622322, "theta": 1.529266, "x":691189.214450, "y":3118156.249767, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 14.022974, "theta": 1.529179, "x":691189.231101, "y":3118156.650073, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 14.423626, "theta": 1.529093, "x":691189.247788, "y":3118157.050378, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 14.824278, "theta": 1.529006, "x":691189.264509, "y":3118157.450680, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 15.224929, "theta": 1.528920, "x":691189.281265, "y":3118157.850982, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 15.625581, "theta": 1.528833, "x":691189.298055, "y":3118158.251281, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 16.026232, "theta": 1.528747, "x":691189.314880, "y":3118158.651579, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 16.426883, "theta": 1.528660, "x":691189.331739, "y":3118159.051875, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 16.827534, "theta": 1.528574, "x":691189.348633, "y":3118159.452169, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 17.228184, "theta": 1.528487, "x":691189.365562, "y":3118159.852462, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 17.628835, "theta": 1.528401, "x":691189.382526, "y":3118160.252753, "dkappa":-0.000000}
{"kappa": -0.000216, "s": 18.029485, "theta": 1.528314, "x":691189.399524, "y":3118160.653043, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 18.430135, "theta": 1.528227, "x":691189.416557, "y":3118161.053330, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 18.830785, "theta": 1.528140, "x":691189.433624, "y":3118161.453617, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 19.231435, "theta": 1.528054, "x":691189.450726, "y":3118161.853901, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 19.632084, "theta": 1.527967, "x":691189.467863, "y":3118162.254184, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 20.032733, "theta": 1.527880, "x":691189.485035, "y":3118162.654465, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 20.433383, "theta": 1.527793, "x":691189.502242, "y":3118163.054745, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 20.834031, "theta": 1.527706, "x":691189.519483, "y":3118163.455022, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 21.234680, "theta": 1.527619, "x":691189.536759, "y":3118163.855298, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 21.635329, "theta": 1.527532, "x":691189.554070, "y":3118164.255573, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 22.035977, "theta": 1.527445, "x":691189.571416, "y":3118164.655846, "dkappa":-0.000000}
{"kappa": -0.000217, "s": 22.436626, "theta": 1.527358, "x":691189.588797, "y":3118165.056117, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 22.837274, "theta": 1.527271, "x":691189.606212, "y":3118165.456386, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 23.237922, "theta": 1.527183, "x":691189.623663, "y":3118165.856654, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 23.638570, "theta": 1.527096, "x":691189.641148, "y":3118166.256920, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 24.039217, "theta": 1.527009, "x":691189.658668, "y":3118166.657184, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 24.439865, "theta": 1.526922, "x":691189.676223, "y":3118167.057447, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 24.840512, "theta": 1.526834, "x":691189.693814, "y":3118167.457708, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 25.241159, "theta": 1.526747, "x":691189.711439, "y":3118167.857968, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 25.641806, "theta": 1.526659, "x":691189.729099, "y":3118168.258225, "dkappa":-0.000000}
{"kappa": -0.000218, "s": 26.042453, "theta": 1.526572, "x":691189.746794, "y":3118168.658481, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 26.443100, "theta": 1.526484, "x":691189.764524, "y":3118169.058736, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 26.843747, "theta": 1.526397, "x":691189.782289, "y":3118169.458988, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 27.244393, "theta": 1.526309, "x":691189.800089, "y":3118169.859239, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 27.645040, "theta": 1.526222, "x":691189.817924, "y":3118170.259488, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 28.045686, "theta": 1.526134, "x":691189.835795, "y":3118170.659736, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 28.446332, "theta": 1.526046, "x":691189.853700, "y":3118171.059982, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 28.846978, "theta": 1.525958, "x":691189.871641, "y":3118171.460226, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 29.247624, "theta": 1.525871, "x":691189.889616, "y":3118171.860468, "dkappa":-0.000000}
{"kappa": -0.000219, "s": 29.648270, "theta": 1.525783, "x":691189.907627, "y":3118172.260709, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 30.048915, "theta": 1.525695, "x":691189.925673, "y":3118172.660948, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 30.449561, "theta": 1.525607, "x":691189.943754, "y":3118173.061185, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 30.850206, "theta": 1.525519, "x":691189.961871, "y":3118173.461421, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 31.250852, "theta": 1.525431, "x":691189.980022, "y":3118173.861655, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 31.651497, "theta": 1.525343, "x":691189.998209, "y":3118174.261887, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 32.052142, "theta": 1.525254, "x":691190.016432, "y":3118174.662117, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 32.452787, "theta": 1.525166, "x":691190.034689, "y":3118175.062346, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 32.853432, "theta": 1.525078, "x":691190.052982, "y":3118175.462573, "dkappa":-0.000000}
{"kappa": -0.000220, "s": 33.254077, "theta": 1.524990, "x":691190.071310, "y":3118175.862799, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 33.654721, "theta": 1.524901, "x":691190.089673, "y":3118176.263022, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 34.055366, "theta": 1.524813, "x":691190.108072, "y":3118176.663244, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 34.456010, "theta": 1.524725, "x":691190.126506, "y":3118177.063464, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 34.856655, "theta": 1.524636, "x":691190.144976, "y":3118177.463683, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 35.257299, "theta": 1.524548, "x":691190.163481, "y":3118177.863900, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 35.657943, "theta": 1.524459, "x":691190.182021, "y":3118178.264115, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 36.058588, "theta": 1.524370, "x":691190.200597, "y":3118178.664328, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 36.459232, "theta": 1.524282, "x":691190.219208, "y":3118179.064540, "dkappa":-0.000000}
{"kappa": -0.000221, "s": 36.859876, "theta": 1.524193, "x":691190.237855, "y":3118179.464750, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 37.260520, "theta": 1.524104, "x":691190.256537, "y":3118179.864958, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 37.661164, "theta": 1.524016, "x":691190.275255, "y":3118180.265164, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 38.061807, "theta": 1.523927, "x":691190.294008, "y":3118180.665369, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 38.462451, "theta": 1.523838, "x":691190.312797, "y":3118181.065572, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 38.863095, "theta": 1.523749, "x":691190.331622, "y":3118181.465773, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 39.263739, "theta": 1.523660, "x":691190.350482, "y":3118181.865972, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 39.664382, "theta": 1.523571, "x":691190.369378, "y":3118182.266170, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 40.065026, "theta": 1.523482, "x":691190.388309, "y":3118182.666366, "dkappa":-0.000000}
{"kappa": -0.000222, "s": 40.465669, "theta": 1.523393, "x":691190.407276, "y":3118183.066560, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 40.866313, "theta": 1.523304, "x":691190.426278, "y":3118183.466753, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 41.266956, "theta": 1.523214, "x":691190.445317, "y":3118183.866944, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 41.667599, "theta": 1.523125, "x":691190.464391, "y":3118184.267133, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 42.068243, "theta": 1.523036, "x":691190.483501, "y":3118184.667320, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 42.468886, "theta": 1.522947, "x":691190.502646, "y":3118185.067505, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 42.869529, "theta": 1.522857, "x":691190.521827, "y":3118185.467689, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 43.270172, "theta": 1.522768, "x":691190.541044, "y":3118185.867871, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 43.670815, "theta": 1.522678, "x":691190.560297, "y":3118186.268052, "dkappa":-0.000000}
{"kappa": -0.000223, "s": 44.071458, "theta": 1.522589, "x":691190.579586, "y":3118186.668230, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 44.472101, "theta": 1.522499, "x":691190.598910, "y":3118187.068407, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 44.872744, "theta": 1.522410, "x":691190.618270, "y":3118187.468582, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 45.273387, "theta": 1.522320, "x":691190.637666, "y":3118187.868755, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 45.674030, "theta": 1.522230, "x":691190.657098, "y":3118188.268927, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 46.074673, "theta": 1.522141, "x":691190.676566, "y":3118188.669096, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 46.475316, "theta": 1.522051, "x":691190.696070, "y":3118189.069264, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 46.875959, "theta": 1.521961, "x":691190.715610, "y":3118189.469430, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 47.276602, "theta": 1.521871, "x":691190.735185, "y":3118189.869595, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 47.677245, "theta": 1.521781, "x":691190.754797, "y":3118190.269757, "dkappa":-0.000000}
{"kappa": -0.000224, "s": 48.077888, "theta": 1.521692, "x":691190.774445, "y":3118190.669918, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 48.478531, "theta": 1.521602, "x":691190.794128, "y":3118191.070077, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 48.879174, "theta": 1.521512, "x":691190.813848, "y":3118191.470235, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 49.279817, "theta": 1.521422, "x":691190.833603, "y":3118191.870390, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 49.680460, "theta": 1.521331, "x":691190.853395, "y":3118192.270544, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 50.081103, "theta": 1.521241, "x":691190.873223, "y":3118192.670696, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 50.481746, "theta": 1.521151, "x":691190.893087, "y":3118193.070846, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 50.882389, "theta": 1.521061, "x":691190.912986, "y":3118193.470995, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 51.283032, "theta": 1.520971, "x":691190.932922, "y":3118193.871141, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 51.683675, "theta": 1.520881, "x":691190.952894, "y":3118194.271286, "dkappa":-0.000000}
{"kappa": -0.000225, "s": 52.084318, "theta": 1.520790, "x":691190.972902, "y":3118194.671429, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 52.484961, "theta": 1.520700, "x":691190.992947, "y":3118195.071571, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 52.885604, "theta": 1.520610, "x":691191.013027, "y":3118195.471710, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 53.286247, "theta": 1.520519, "x":691191.033144, "y":3118195.871848, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 53.686890, "theta": 1.520429, "x":691191.053297, "y":3118196.271984, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 54.087533, "theta": 1.520338, "x":691191.073486, "y":3118196.672118, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 54.488176, "theta": 1.520248, "x":691191.093711, "y":3118197.072250, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 54.888820, "theta": 1.520157, "x":691191.113972, "y":3118197.472381, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 55.289463, "theta": 1.520067, "x":691191.134270, "y":3118197.872510, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 55.690106, "theta": 1.519976, "x":691191.154604, "y":3118198.272637, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 56.090749, "theta": 1.519885, "x":691191.174974, "y":3118198.672762, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 56.491393, "theta": 1.519795, "x":691191.195380, "y":3118199.072885, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 56.892036, "theta": 1.519704, "x":691191.215823, "y":3118199.473007, "dkappa":-0.000000}
{"kappa": -0.000226, "s": 57.292680, "theta": 1.519613, "x":691191.236302, "y":3118199.873126, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 57.693323, "theta": 1.519523, "x":691191.256817, "y":3118200.273244, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 58.093967, "theta": 1.519432, "x":691191.277369, "y":3118200.673361, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 58.494611, "theta": 1.519341, "x":691191.297957, "y":3118201.073475, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 58.895254, "theta": 1.519250, "x":691191.318581, "y":3118201.473587, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 59.295898, "theta": 1.519159, "x":691191.339242, "y":3118201.873698, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 59.696542, "theta": 1.519069, "x":691191.359939, "y":3118202.273807, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 60.097186, "theta": 1.518978, "x":691191.380672, "y":3118202.673914, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 60.497830, "theta": 1.518887, "x":691191.401442, "y":3118203.074019, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 60.898474, "theta": 1.518796, "x":691191.422248, "y":3118203.474123, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 61.299118, "theta": 1.518705, "x":691191.443090, "y":3118203.874225, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 61.699762, "theta": 1.518614, "x":691191.463969, "y":3118204.274324, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 62.100407, "theta": 1.518523, "x":691191.484885, "y":3118204.674422, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 62.501051, "theta": 1.518432, "x":691191.505836, "y":3118205.074519, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 62.901696, "theta": 1.518341, "x":691191.526824, "y":3118205.474613, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 63.302340, "theta": 1.518250, "x":691191.547849, "y":3118205.874706, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 63.702985, "theta": 1.518159, "x":691191.568910, "y":3118206.274796, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 64.103630, "theta": 1.518068, "x":691191.590007, "y":3118206.674885, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 64.504275, "theta": 1.517977, "x":691191.611141, "y":3118207.074972, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 64.904920, "theta": 1.517885, "x":691191.632312, "y":3118207.475058, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 65.305565, "theta": 1.517794, "x":691191.653518, "y":3118207.875141, "dkappa":-0.000000}
{"kappa": -0.000227, "s": 65.706210, "theta": 1.517703, "x":691191.674762, "y":3118208.275223, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 66.106855, "theta": 1.517612, "x":691191.696041, "y":3118208.675303, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 66.507501, "theta": 1.517521, "x":691191.717358, "y":3118209.075381, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 66.908146, "theta": 1.517430, "x":691191.738710, "y":3118209.475457, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 67.308792, "theta": 1.517339, "x":691191.760100, "y":3118209.875531, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 67.709438, "theta": 1.517247, "x":691191.781525, "y":3118210.275603, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 68.110084, "theta": 1.517156, "x":691191.802987, "y":3118210.675674, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 68.510730, "theta": 1.517065, "x":691191.824486, "y":3118211.075743, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 68.911376, "theta": 1.516974, "x":691191.846021, "y":3118211.475810, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 69.312022, "theta": 1.516883, "x":691191.867593, "y":3118211.875875, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 69.712669, "theta": 1.516791, "x":691191.889201, "y":3118212.275938, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 70.113315, "theta": 1.516700, "x":691191.910845, "y":3118212.676000, "dkappa":-0.000000}
{"kappa": -0.000228, "s": 70.513962, "theta": 1.516609, "x":691191.932527, "y":3118213.076059, "dkappa":0.000000}
{"kappa": -0.000228, "s": 70.914609, "theta": 1.516518, "x":691191.954244, "y":3118213.476117, "dkappa":0.000000}
{"kappa": -0.000228, "s": 71.315256, "theta": 1.516427, "x":691191.975998, "y":3118213.876173, "dkappa":0.000000}
{"kappa": -0.000228, "s": 71.715903, "theta": 1.516335, "x":691191.997789, "y":3118214.276227, "dkappa":0.000000}
{"kappa": -0.000228, "s": 72.116550, "theta": 1.516244, "x":691192.019616, "y":3118214.676280, "dkappa":0.000000}
{"kappa": -0.000228, "s": 72.517198, "theta": 1.516153, "x":691192.041479, "y":3118215.076330, "dkappa":0.000000}
{"kappa": -0.000228, "s": 72.917845, "theta": 1.516062, "x":691192.063379, "y":3118215.476379, "dkappa":0.000000}
{"kappa": -0.000228, "s": 73.318493, "theta": 1.515971, "x":691192.085316, "y":3118215.876425, "dkappa":0.000000}
{"kappa": -0.000228, "s": 73.719141, "theta": 1.515880, "x":691192.107289, "y":3118216.276470, "dkappa":0.000000}
{"kappa": -0.000228, "s": 74.119789, "theta": 1.515788, "x":691192.129299, "y":3118216.676514, "dkappa":0.000000}
{"kappa": -0.000227, "s": 74.520437, "theta": 1.515697, "x":691192.151344, "y":3118217.076555, "dkappa":0.000000}
{"kappa": -0.000227, "s": 74.921086, "theta": 1.515606, "x":691192.173427, "y":3118217.476594, "dkappa":0.000000}
{"kappa": -0.000227, "s": 75.321734, "theta": 1.515515, "x":691192.195546, "y":3118217.876632, "dkappa":0.000000}
{"kappa": -0.000227, "s": 75.722383, "theta": 1.515424, "x":691192.217701, "y":3118218.276667, "dkappa":0.000000}
{"kappa": -0.000227, "s": 76.123032, "theta": 1.515333, "x":691192.239893, "y":3118218.676701, "dkappa":0.000000}
{"kappa": -0.000227, "s": 76.523681, "theta": 1.515242, "x":691192.262121, "y":3118219.076733, "dkappa":0.000000}
{"kappa": -0.000227, "s": 76.924330, "theta": 1.515151, "x":691192.284386, "y":3118219.476764, "dkappa":0.000000}
{"kappa": -0.000227, "s": 77.324980, "theta": 1.515060, "x":691192.306687, "y":3118219.876792, "dkappa":0.000000}
{"kappa": -0.000227, "s": 77.725630, "theta": 1.514969, "x":691192.329025, "y":3118220.276818, "dkappa":0.000000}
{"kappa": -0.000227, "s": 78.126279, "theta": 1.514878, "x":691192.351399, "y":3118220.676843, "dkappa":0.000000}
{"kappa": -0.000227, "s": 78.526930, "theta": 1.514787, "x":691192.373809, "y":3118221.076866, "dkappa":0.000000}
{"kappa": -0.000227, "s": 78.927580, "theta": 1.514696, "x":691192.396256, "y":3118221.476887, "dkappa":0.000000}
{"kappa": -0.000227, "s": 79.328230, "theta": 1.514605, "x":691192.418739, "y":3118221.876906, "dkappa":0.000000}
{"kappa": -0.000227, "s": 79.728881, "theta": 1.514514, "x":691192.441258, "y":3118222.276923, "dkappa":0.000000}
{"kappa": -0.000227, "s": 80.129532, "theta": 1.514423, "x":691192.463814, "y":3118222.676939, "dkappa":0.000000}
{"kappa": -0.000227, "s": 80.530183, "theta": 1.514332, "x":691192.486407, "y":3118223.076952, "dkappa":0.000000}
{"kappa": -0.000227, "s": 80.930834, "theta": 1.514241, "x":691192.509035, "y":3118223.476964, "dkappa":0.000000}
{"kappa": -0.000226, "s": 81.331486, "theta": 1.514151, "x":691192.531700, "y":3118223.876974, "dkappa":0.000000}
{"kappa": -0.000226, "s": 81.732137, "theta": 1.514060, "x":691192.554401, "y":3118224.276982, "dkappa":0.000000}
{"kappa": -0.000226, "s": 82.132789, "theta": 1.513969, "x":691192.577139, "y":3118224.676988, "dkappa":0.000000}
{"kappa": -0.000226, "s": 82.533441, "theta": 1.513879, "x":691192.599912, "y":3118225.076993, "dkappa":0.000000}
{"kappa": -0.000226, "s": 82.934094, "theta": 1.513788, "x":691192.622722, "y":3118225.476995, "dkappa":0.000000}
{"kappa": -0.000226, "s": 83.334746, "theta": 1.513697, "x":691192.645569, "y":3118225.876996, "dkappa":0.000000}
{"kappa": -0.000226, "s": 83.735399, "theta": 1.513607, "x":691192.668451, "y":3118226.276995, "dkappa":0.000000}
{"kappa": -0.000226, "s": 84.136052, "theta": 1.513516, "x":691192.691370, "y":3118226.676992, "dkappa":0.000000}
{"kappa": -0.000226, "s": 84.536706, "theta": 1.513426, "x":691192.714325, "y":3118227.076987, "dkappa":0.000000}
{"kappa": -0.000226, "s": 84.937359, "theta": 1.513336, "x":691192.737316, "y":3118227.476980, "dkappa":0.000000}
{"kappa": -0.000225, "s": 85.338013, "theta": 1.513245, "x":691192.760343, "y":3118227.876972, "dkappa":0.000000}
{"kappa": -0.000225, "s": 85.738667, "theta": 1.513155, "x":691192.783407, "y":3118228.276961, "dkappa":0.000000}
{"kappa": -0.000225, "s": 86.139321, "theta": 1.513065, "x":691192.806506, "y":3118228.676949, "dkappa":0.000000}
{"kappa": -0.000225, "s": 86.539976, "theta": 1.512975, "x":691192.829642, "y":3118229.076935, "dkappa":0.000000}
{"kappa": -0.000225, "s": 86.940630, "theta": 1.512885, "x":691192.852813, "y":3118229.476919, "dkappa":0.000000}
{"kappa": -0.000225, "s": 87.341285, "theta": 1.512794, "x":691192.876021, "y":3118229.876901, "dkappa":0.000000}
{"kappa": -0.000225, "s": 87.741940, "theta": 1.512704, "x":691192.899265, "y":3118230.276882, "dkappa":0.000000}
{"kappa": -0.000224, "s": 88.142596, "theta": 1.512615, "x":691192.922544, "y":3118230.676860, "dkappa":0.000000}
{"kappa": -0.000224, "s": 88.543252, "theta": 1.512525, "x":691192.945860, "y":3118231.076837, "dkappa":0.000000}
{"kappa": -0.000224, "s": 88.943908, "theta": 1.512435, "x":691192.969212, "y":3118231.476812, "dkappa":0.000000}
{"kappa": -0.000224, "s": 89.344564, "theta": 1.512345, "x":691192.992599, "y":3118231.876785, "dkappa":0.000000}
{"kappa": -0.000224, "s": 89.745221, "theta": 1.512255, "x":691193.016023, "y":3118232.276756, "dkappa":0.000000}
{"kappa": -0.000224, "s": 90.145877, "theta": 1.512166, "x":691193.039482, "y":3118232.676726, "dkappa":0.000000}
{"kappa": -0.000223, "s": 90.546534, "theta": 1.512076, "x":691193.062977, "y":3118233.076693, "dkappa":0.000000}
{"kappa": -0.000223, "s": 90.947192, "theta": 1.511987, "x":691193.086508, "y":3118233.476659, "dkappa":0.000000}
{"kappa": -0.000223, "s": 91.347849, "theta": 1.511898, "x":691193.110075, "y":3118233.876623, "dkappa":0.000000}
{"kappa": -0.000223, "s": 91.748507, "theta": 1.511808, "x":691193.133677, "y":3118234.276585, "dkappa":0.000000}
{"kappa": -0.000223, "s": 92.149166, "theta": 1.511719, "x":691193.157316, "y":3118234.676546, "dkappa":0.000001}
{"kappa": -0.000222, "s": 92.549824, "theta": 1.511630, "x":691193.180990, "y":3118235.076504, "dkappa":0.000001}
{"kappa": -0.000222, "s": 92.950483, "theta": 1.511541, "x":691193.204699, "y":3118235.476461, "dkappa":0.000001}
{"kappa": -0.000222, "s": 93.351142, "theta": 1.511452, "x":691193.228444, "y":3118235.876415, "dkappa":0.000001}
{"kappa": -0.000222, "s": 93.751801, "theta": 1.511363, "x":691193.252225, "y":3118236.276368, "dkappa":0.000001}
{"kappa": -0.000222, "s": 94.152461, "theta": 1.511274, "x":691193.276041, "y":3118236.676320, "dkappa":0.000001}
{"kappa": -0.000221, "s": 94.553121, "theta": 1.511185, "x":691193.299893, "y":3118237.076269, "dkappa":0.000001}
{"kappa": -0.000221, "s": 94.953781, "theta": 1.511097, "x":691193.323780, "y":3118237.476216, "dkappa":0.000001}
{"kappa": -0.000221, "s": 95.354442, "theta": 1.511008, "x":691193.347703, "y":3118237.876162, "dkappa":0.000001}
{"kappa": -0.000221, "s": 95.755102, "theta": 1.510920, "x":691193.371661, "y":3118238.276106, "dkappa":0.000001}
{"kappa": -0.000220, "s": 96.155763, "theta": 1.510831, "x":691193.395655, "y":3118238.676048, "dkappa":0.000001}
{"kappa": -0.000220, "s": 96.556425, "theta": 1.510743, "x":691193.419684, "y":3118239.075988, "dkappa":0.000001}
{"kappa": -0.000220, "s": 96.957087, "theta": 1.510655, "x":691193.443748, "y":3118239.475927, "dkappa":0.000001}
{"kappa": -0.000220, "s": 97.357749, "theta": 1.510567, "x":691193.467847, "y":3118239.875863, "dkappa":0.000001}
{"kappa": -0.000219, "s": 97.758411, "theta": 1.510479, "x":691193.491982, "y":3118240.275798, "dkappa":0.000001}
{"kappa": -0.000219, "s": 98.159074, "theta": 1.510391, "x":691193.516152, "y":3118240.675731, "dkappa":0.000001}
{"kappa": -0.000219, "s": 98.559737, "theta": 1.510304, "x":691193.540356, "y":3118241.075662, "dkappa":0.000001}
{"kappa": -0.000183, "s": 98.960400, "theta": 1.510216, "x":691193.564596, "y":3118241.475592, "dkappa":0.000000}
{"kappa": -0.000183, "s": 99.362318, "theta": 1.510142, "x":691193.588945, "y":3118241.876772, "dkappa":0.000000}
{"kappa": -0.000183, "s": 99.764236, "theta": 1.510069, "x":691193.613322, "y":3118242.277950, "dkappa":0.000000}
{"kappa": -0.000183, "s": 100.166155, "theta": 1.509995, "x":691193.637730, "y":3118242.679126, "dkappa":0.000000}
{"kappa": -0.000183, "s": 100.568073, "theta": 1.509921, "x":691193.662167, "y":3118243.080301, "dkappa":0.000000}
{"kappa": -0.000183, "s": 100.969992, "theta": 1.509848, "x":691193.686633, "y":3118243.481475, "dkappa":0.000000}
{"kappa": -0.000183, "s": 101.371911, "theta": 1.509774, "x":691193.711129, "y":3118243.882646, "dkappa":0.000000}
{"kappa": -0.000183, "s": 101.773830, "theta": 1.509700, "x":691193.735655, "y":3118244.283817, "dkappa":0.000000}
{"kappa": -0.000183, "s": 102.175749, "theta": 1.509627, "x":691193.760210, "y":3118244.684985, "dkappa":0.000000}
{"kappa": -0.000183, "s": 102.577669, "theta": 1.509553, "x":691193.784794, "y":3118245.086152, "dkappa":0.000000}
{"kappa": -0.000183, "s": 102.979589, "theta": 1.509480, "x":691193.809409, "y":3118245.487318, "dkappa":0.000000}
{"kappa": -0.000183, "s": 103.381509, "theta": 1.509406, "x":691193.834052, "y":3118245.888481, "dkappa":0.000000}
{"kappa": -0.000183, "s": 103.783429, "theta": 1.509333, "x":691193.858725, "y":3118246.289644, "dkappa":0.000000}
{"kappa": -0.000183, "s": 104.185349, "theta": 1.509260, "x":691193.883428, "y":3118246.690804, "dkappa":0.000000}
{"kappa": -0.000182, "s": 104.587270, "theta": 1.509186, "x":691193.908160, "y":3118247.091963, "dkappa":0.000000}
{"kappa": -0.000182, "s": 104.989191, "theta": 1.509113, "x":691193.932921, "y":3118247.493121, "dkappa":0.000000}
{"kappa": -0.000182, "s": 105.391112, "theta": 1.509040, "x":691193.957712, "y":3118247.894276, "dkappa":0.000000}
{"kappa": -0.000182, "s": 105.793034, "theta": 1.508966, "x":691193.982532, "y":3118248.295431, "dkappa":0.000000}
{"kappa": -0.000182, "s": 106.194955, "theta": 1.508893, "x":691194.007382, "y":3118248.696583, "dkappa":0.000000}
{"kappa": -0.000182, "s": 106.596877, "theta": 1.508820, "x":691194.032261, "y":3118249.097735, "dkappa":0.000000}
{"kappa": -0.000181, "s": 106.998799, "theta": 1.508747, "x":691194.057169, "y":3118249.498884, "dkappa":0.000000}
{"kappa": -0.000181, "s": 107.400722, "theta": 1.508674, "x":691194.082107, "y":3118249.900032, "dkappa":0.000000}
{"kappa": -0.000181, "s": 107.802644, "theta": 1.508602, "x":691194.107073, "y":3118250.301178, "dkappa":0.000000}
{"kappa": -0.000181, "s": 108.204567, "theta": 1.508529, "x":691194.132069, "y":3118250.702323, "dkappa":0.000001}
{"kappa": -0.000181, "s": 108.606490, "theta": 1.508456, "x":691194.157094, "y":3118251.103467, "dkappa":0.000001}
{"kappa": -0.000180, "s": 109.008413, "theta": 1.508384, "x":691194.182149, "y":3118251.504608, "dkappa":0.000001}
{"kappa": -0.000180, "s": 109.410337, "theta": 1.508311, "x":691194.207232, "y":3118251.905748, "dkappa":0.000001}
{"kappa": -0.000180, "s": 109.812261, "theta": 1.508239, "x":691194.232344, "y":3118252.306887, "dkappa":0.000001}
{"kappa": -0.000180, "s": 110.214185, "theta": 1.508167, "x":691194.257486, "y":3118252.708024, "dkappa":0.000001}
{"kappa": -0.000179, "s": 110.616109, "theta": 1.508094, "x":691194.282656, "y":3118253.109159, "dkappa":0.000001}
{"kappa": -0.000179, "s": 111.018034, "theta": 1.508022, "x":691194.307856, "y":3118253.510293, "dkappa":0.000001}
{"kappa": -0.000179, "s": 111.419959, "theta": 1.507950, "x":691194.333084, "y":3118253.911426, "dkappa":0.000001}
{"kappa": -0.000179, "s": 111.821884, "theta": 1.507878, "x":691194.358341, "y":3118254.312556, "dkappa":0.000001}
{"kappa": -0.000178, "s": 112.223809, "theta": 1.507807, "x":691194.383627, "y":3118254.713686, "dkappa":0.000001}
{"kappa": -0.000178, "s": 112.625735, "theta": 1.507735, "x":691194.408942, "y":3118255.114813, "dkappa":0.000001}
{"kappa": -0.000178, "s": 113.027661, "theta": 1.507664, "x":691194.434286, "y":3118255.515939, "dkappa":0.000001}
{"kappa": -0.000177, "s": 113.429587, "theta": 1.507592, "x":691194.459658, "y":3118255.917064, "dkappa":0.000001}
{"kappa": -0.000177, "s": 113.831514, "theta": 1.507521, "x":691194.485059, "y":3118256.318187, "dkappa":0.000001}
{"kappa": -0.000177, "s": 114.233441, "theta": 1.507450, "x":691194.510488, "y":3118256.719309, "dkappa":0.000001}
{"kappa": -0.000177, "s": 114.635368, "theta": 1.507379, "x":691194.535946, "y":3118257.120429, "dkappa":0.000001}
{"kappa": -0.000176, "s": 115.037295, "theta": 1.507308, "x":691194.561432, "y":3118257.521547, "dkappa":0.000001}
{"kappa": -0.000176, "s": 115.439223, "theta": 1.507237, "x":691194.586947, "y":3118257.922664, "dkappa":0.000001}
{"kappa": -0.000176, "s": 115.841151, "theta": 1.507166, "x":691194.612491, "y":3118258.323780, "dkappa":0.000001}
{"kappa": -0.000175, "s": 116.243079, "theta": 1.507096, "x":691194.638062, "y":3118258.724894, "dkappa":0.000001}
{"kappa": -0.000175, "s": 116.645008, "theta": 1.507026, "x":691194.663662, "y":3118259.126006, "dkappa":0.000001}
{"kappa": -0.000174, "s": 117.046936, "theta": 1.506955, "x":691194.689290, "y":3118259.527117, "dkappa":0.000001}
{"kappa": -0.000174, "s": 117.448866, "theta": 1.506885, "x":691194.714946, "y":3118259.928227, "dkappa":0.000001}
{"kappa": -0.000174, "s": 117.850795, "theta": 1.506816, "x":691194.740630, "y":3118260.329335, "dkappa":0.000001}
{"kappa": -0.000173, "s": 118.252725, "theta": 1.506746, "x":691194.766342, "y":3118260.730441, "dkappa":0.000001}
{"kappa": -0.000173, "s": 118.654655, "theta": 1.506676, "x":691194.792083, "y":3118261.131546, "dkappa":0.000001}
{"kappa": -0.000172, "s": 119.056585, "theta": 1.506607, "x":691194.817851, "y":3118261.532650, "dkappa":0.000001}
{"kappa": -0.000172, "s": 119.458516, "theta": 1.506538, "x":691194.843647, "y":3118261.933752, "dkappa":0.000001}
{"kappa": -0.000172, "s": 119.860447, "theta": 1.506469, "x":691194.869470, "y":3118262.334852, "dkappa":0.000001}
{"kappa": -0.000171, "s": 120.262378, "theta": 1.506400, "x":691194.895322, "y":3118262.735951, "dkappa":0.000001}
{"kappa": -0.000171, "s": 120.664310, "theta": 1.506331, "x":691194.921201, "y":3118263.137049, "dkappa":0.000001}
{"kappa": -0.000170, "s": 121.066242, "theta": 1.506262, "x":691194.947107, "y":3118263.538145, "dkappa":0.000001}
{"kappa": -0.000170, "s": 121.468174, "theta": 1.506194, "x":691194.973041, "y":3118263.939240, "dkappa":0.000001}
{"kappa": -0.000170, "s": 121.870106, "theta": 1.506126, "x":691194.999003, "y":3118264.340333, "dkappa":0.000001}
{"kappa": -0.000169, "s": 122.272039, "theta": 1.506058, "x":691195.024992, "y":3118264.741425, "dkappa":0.000001}
{"kappa": -0.000169, "s": 122.673972, "theta": 1.505990, "x":691195.051008, "y":3118265.142515, "dkappa":0.000001}
{"kappa": -0.000168, "s": 123.075906, "theta": 1.505922, "x":691195.077051, "y":3118265.543604, "dkappa":0.000001}
{"kappa": -0.000168, "s": 123.477840, "theta": 1.505855, "x":691195.103121, "y":3118265.944691, "dkappa":0.000001}
{"kappa": -0.000167, "s": 123.879774, "theta": 1.505787, "x":691195.129219, "y":3118266.345777, "dkappa":0.000001}
{"kappa": -0.000167, "s": 124.281709, "theta": 1.505720, "x":691195.155343, "y":3118266.746862, "dkappa":0.000001}
{"kappa": -0.000166, "s": 124.683643, "theta": 1.505653, "x":691195.181494, "y":3118267.147945, "dkappa":0.000001}
{"kappa": -0.000166, "s": 125.085579, "theta": 1.505587, "x":691195.207673, "y":3118267.549027, "dkappa":0.000001}
{"kappa": -0.000165, "s": 125.487514, "theta": 1.505520, "x":691195.233878, "y":3118267.950107, "dkappa":0.000001}
{"kappa": -0.000165, "s": 125.889450, "theta": 1.505454, "x":691195.260109, "y":3118268.351186, "dkappa":0.000001}
{"kappa": -0.000164, "s": 126.291386, "theta": 1.505388, "x":691195.286367, "y":3118268.752264, "dkappa":0.000001}
{"kappa": -0.000164, "s": 126.693323, "theta": 1.505322, "x":691195.312652, "y":3118269.153340, "dkappa":0.000001}
{"kappa": -0.000163, "s": 127.095260, "theta": 1.505256, "x":691195.338963, "y":3118269.554415, "dkappa":0.000001}
{"kappa": -0.000163, "s": 127.497197, "theta": 1.505191, "x":691195.365300, "y":3118269.955489, "dkappa":0.000001}
{"kappa": -0.000162, "s": 127.899135, "theta": 1.505125, "x":691195.391664, "y":3118270.356561, "dkappa":0.000001}
{"kappa": -0.000162, "s": 128.301073, "theta": 1.505060, "x":691195.418054, "y":3118270.757631, "dkappa":0.000001}
{"kappa": -0.000161, "s": 128.703011, "theta": 1.504995, "x":691195.444470, "y":3118271.158701, "dkappa":0.000001}
{"kappa": -0.000161, "s": 129.104950, "theta": 1.504931, "x":691195.470911, "y":3118271.559769, "dkappa":0.000001}
{"kappa": -0.000160, "s": 129.506889, "theta": 1.504866, "x":691195.497379, "y":3118271.960835, "dkappa":0.000001}
{"kappa": -0.000159, "s": 129.908828, "theta": 1.504802, "x":691195.523873, "y":3118272.361901, "dkappa":0.000001}
{"kappa": -0.000159, "s": 130.310768, "theta": 1.504738, "x":691195.550392, "y":3118272.762964, "dkappa":0.000001}
{"kappa": -0.000158, "s": 130.712708, "theta": 1.504674, "x":691195.576937, "y":3118273.164027, "dkappa":0.000001}
{"kappa": -0.000158, "s": 131.114648, "theta": 1.504611, "x":691195.603507, "y":3118273.565088, "dkappa":0.000001}
{"kappa": -0.000157, "s": 131.516589, "theta": 1.504548, "x":691195.630103, "y":3118273.966148, "dkappa":0.000001}
{"kappa": -0.000157, "s": 131.918530, "theta": 1.504484, "x":691195.656725, "y":3118274.367207, "dkappa":0.000001}
{"kappa": -0.000156, "s": 132.320472, "theta": 1.504422, "x":691195.683371, "y":3118274.768264, "dkappa":0.000001}
{"kappa": -0.000155, "s": 132.722414, "theta": 1.504359, "x":691195.710043, "y":3118275.169320, "dkappa":0.000001}
{"kappa": -0.000155, "s": 133.124356, "theta": 1.504297, "x":691195.736740, "y":3118275.570375, "dkappa":0.000001}
{"kappa": -0.000154, "s": 133.526299, "theta": 1.504235, "x":691195.763462, "y":3118275.971429, "dkappa":0.000001}
{"kappa": -0.000154, "s": 133.928242, "theta": 1.504173, "x":691195.790208, "y":3118276.372481, "dkappa":0.000001}
{"kappa": -0.000153, "s": 134.330186, "theta": 1.504111, "x":691195.816980, "y":3118276.773532, "dkappa":0.000002}
{"kappa": -0.000152, "s": 134.732129, "theta": 1.504050, "x":691195.843776, "y":3118277.174581, "dkappa":0.000002}
{"kappa": -0.000152, "s": 135.134074, "theta": 1.503988, "x":691195.870597, "y":3118277.575630, "dkappa":0.000002}
{"kappa": -0.000151, "s": 135.536018, "theta": 1.503927, "x":691195.897442, "y":3118277.976677, "dkappa":0.000002}
{"kappa": -0.000151, "s": 135.937963, "theta": 1.503867, "x":691195.924312, "y":3118278.377723, "dkappa":0.000002}
{"kappa": -0.000150, "s": 136.339908, "theta": 1.503806, "x":691195.951206, "y":3118278.778767, "dkappa":0.000002}
{"kappa": -0.000149, "s": 136.741854, "theta": 1.503746, "x":691195.978124, "y":3118279.179811, "dkappa":0.000002}
{"kappa": -0.000149, "s": 137.143800, "theta": 1.503686, "x":691196.005067, "y":3118279.580853, "dkappa":0.000002}
{"kappa": -0.000148, "s": 137.545747, "theta": 1.503627, "x":691196.032033, "y":3118279.981894, "dkappa":0.000002}
{"kappa": -0.000147, "s": 137.947694, "theta": 1.503567, "x":691196.059023, "y":3118280.382933, "dkappa":0.000002}
{"kappa": -0.000147, "s": 138.349641, "theta": 1.503508, "x":691196.086037, "y":3118280.783972, "dkappa":0.000002}
{"kappa": -0.000146, "s": 138.751589, "theta": 1.503449, "x":691196.113075, "y":3118281.185009, "dkappa":0.000002}
{"kappa": -0.000146, "s": 139.153537, "theta": 1.503391, "x":691196.140137, "y":3118281.586045, "dkappa":0.000002}
{"kappa": -0.000145, "s": 139.555485, "theta": 1.503332, "x":691196.167221, "y":3118281.987080, "dkappa":0.000002}
{"kappa": -0.000144, "s": 139.957434, "theta": 1.503274, "x":691196.194330, "y":3118282.388114, "dkappa":0.000002}
{"kappa": -0.000144, "s": 140.359383, "theta": 1.503216, "x":691196.221461, "y":3118282.789146, "dkappa":0.000002}
{"kappa": -0.000143, "s": 140.761333, "theta": 1.503159, "x":691196.248616, "y":3118283.190178, "dkappa":0.000002}
{"kappa": -0.000142, "s": 141.163283, "theta": 1.503101, "x":691196.275793, "y":3118283.591208, "dkappa":0.000002}
{"kappa": -0.000142, "s": 141.565234, "theta": 1.503044, "x":691196.302994, "y":3118283.992237, "dkappa":0.000002}
{"kappa": -0.000141, "s": 141.967185, "theta": 1.502988, "x":691196.330218, "y":3118284.393265, "dkappa":0.000002}
{"kappa": -0.000140, "s": 142.369136, "theta": 1.502931, "x":691196.357464, "y":3118284.794292, "dkappa":0.000002}
{"kappa": -0.000140, "s": 142.771088, "theta": 1.502875, "x":691196.384733, "y":3118285.195317, "dkappa":0.000002}
{"kappa": -0.000139, "s": 143.173040, "theta": 1.502819, "x":691196.412024, "y":3118285.596342, "dkappa":0.000002}
{"kappa": -0.000138, "s": 143.574992, "theta": 1.502763, "x":691196.439338, "y":3118285.997365, "dkappa":0.000002}
{"kappa": -0.000137, "s": 143.976945, "theta": 1.502708, "x":691196.466674, "y":3118286.398388, "dkappa":0.000002}
{"kappa": -0.000137, "s": 144.378898, "theta": 1.502653, "x":691196.494032, "y":3118286.799409, "dkappa":0.000002}
{"kappa": -0.000136, "s": 144.780852, "theta": 1.502598, "x":691196.521413, "y":3118287.200429, "dkappa":0.000002}
{"kappa": -0.000135, "s": 145.182806, "theta": 1.502543, "x":691196.548815, "y":3118287.601448, "dkappa":0.000002}
{"kappa": -0.000135, "s": 145.584761, "theta": 1.502489, "x":691196.576239, "y":3118288.002466, "dkappa":0.000002}
{"kappa": -0.000134, "s": 145.986716, "theta": 1.502435, "x":691196.603685, "y":3118288.403483, "dkappa":0.000002}
{"kappa": -0.000133, "s": 146.388671, "theta": 1.502381, "x":691196.631153, "y":3118288.804498, "dkappa":0.000002}
{"kappa": -0.000133, "s": 146.790627, "theta": 1.502328, "x":691196.658642, "y":3118289.205513, "dkappa":0.000002}
{"kappa": -0.000132, "s": 147.192583, "theta": 1.502275, "x":691196.686152, "y":3118289.606527, "dkappa":0.000002}
{"kappa": -0.000131, "s": 147.594540, "theta": 1.502222, "x":691196.713684, "y":3118290.007539, "dkappa":0.000002}
{"kappa": -0.000130, "s": 147.996497, "theta": 1.502169, "x":691196.741237, "y":3118290.408551, "dkappa":0.000002}
{"kappa": -0.000130, "s": 148.398454, "theta": 1.502117, "x":691196.768811, "y":3118290.809562, "dkappa":0.000002}
{"kappa": -0.000129, "s": 148.800412, "theta": 1.502065, "x":691196.796406, "y":3118291.210571, "dkappa":0.000002}
{"kappa": -0.000128, "s": 149.202370, "theta": 1.502013, "x":691196.824022, "y":3118291.611580, "dkappa":0.000002}
{"kappa": -0.000128, "s": 149.604329, "theta": 1.501962, "x":691196.851658, "y":3118292.012587, "dkappa":0.000002}
{"kappa": -0.000127, "s": 150.006288, "theta": 1.501911, "x":691196.879315, "y":3118292.413594, "dkappa":0.000002}
{"kappa": -0.000126, "s": 150.408248, "theta": 1.501860, "x":691196.906993, "y":3118292.814599, "dkappa":0.000002}
{"kappa": -0.000125, "s": 150.810208, "theta": 1.501809, "x":691196.934691, "y":3118293.215604, "dkappa":0.000002}
{"kappa": -0.000125, "s": 151.212168, "theta": 1.501759, "x":691196.962409, "y":3118293.616607, "dkappa":0.000002}
{"kappa": -0.000124, "s": 151.614129, "theta": 1.501709, "x":691196.990147, "y":3118294.017610, "dkappa":0.000002}
{"kappa": -0.000123, "s": 152.016090, "theta": 1.501660, "x":691197.017905, "y":3118294.418612, "dkappa":0.000002}
{"kappa": -0.000122, "s": 152.418052, "theta": 1.501610, "x":691197.045683, "y":3118294.819612, "dkappa":0.000002}
{"kappa": -0.000122, "s": 152.820014, "theta": 1.501561, "x":691197.073481, "y":3118295.220612, "dkappa":0.000002}
{"kappa": -0.000121, "s": 153.221977, "theta": 1.501512, "x":691197.101299, "y":3118295.621611, "dkappa":0.000002}
{"kappa": -0.000120, "s": 153.623939, "theta": 1.501464, "x":691197.129136, "y":3118296.022609, "dkappa":0.000002}
{"kappa": -0.000119, "s": 154.025903, "theta": 1.501416, "x":691197.156992, "y":3118296.423606, "dkappa":0.000002}
{"kappa": -0.000119, "s": 154.427867, "theta": 1.501368, "x":691197.184868, "y":3118296.824602, "dkappa":0.000002}
{"kappa": -0.000118, "s": 154.829831, "theta": 1.501320, "x":691197.212763, "y":3118297.225597, "dkappa":0.000002}
{"kappa": -0.000117, "s": 155.231796, "theta": 1.501273, "x":691197.240676, "y":3118297.626591, "dkappa":0.000002}
{"kappa": -0.000116, "s": 155.633761, "theta": 1.501226, "x":691197.268609, "y":3118298.027585, "dkappa":0.000002}
{"kappa": -0.000116, "s": 156.035726, "theta": 1.501180, "x":691197.296561, "y":3118298.428577, "dkappa":0.000002}
{"kappa": -0.000115, "s": 156.437692, "theta": 1.501133, "x":691197.324531, "y":3118298.829569, "dkappa":0.000002}
{"kappa": -0.000114, "s": 156.839659, "theta": 1.501087, "x":691197.352520, "y":3118299.230560, "dkappa":0.000002}
{"kappa": -0.000113, "s": 157.241625, "theta": 1.501042, "x":691197.380527, "y":3118299.631550, "dkappa":0.000002}
{"kappa": -0.000113, "s": 157.643593, "theta": 1.500996, "x":691197.408553, "y":3118300.032539, "dkappa":0.000002}
{"kappa": -0.000112, "s": 158.045560, "theta": 1.500951, "x":691197.436596, "y":3118300.433527, "dkappa":0.000002}
{"kappa": -0.000111, "s": 158.447529, "theta": 1.500906, "x":691197.464658, "y":3118300.834514, "dkappa":0.000002}
{"kappa": -0.000110, "s": 158.849497, "theta": 1.500862, "x":691197.492738, "y":3118301.235501, "dkappa":0.000002}
{"kappa": -0.000109, "s": 159.251466, "theta": 1.500818, "x":691197.520835, "y":3118301.636487, "dkappa":0.000002}
{"kappa": -0.000109, "s": 159.653436, "theta": 1.500774, "x":691197.548950, "y":3118302.037472, "dkappa":0.000002}
{"kappa": -0.000108, "s": 160.055405, "theta": 1.500730, "x":691197.577083, "y":3118302.438456, "dkappa":0.000002}
{"kappa": -0.000107, "s": 160.457376, "theta": 1.500687, "x":691197.605233, "y":3118302.839439, "dkappa":0.000002}
{"kappa": -0.000106, "s": 160.859346, "theta": 1.500644, "x":691197.633400, "y":3118303.240422, "dkappa":0.000002}
{"kappa": -0.000106, "s": 161.261318, "theta": 1.500601, "x":691197.661585, "y":3118303.641404, "dkappa":0.000002}
{"kappa": -0.000105, "s": 161.663289, "theta": 1.500559, "x":691197.689787, "y":3118304.042385, "dkappa":0.000002}
{"kappa": -0.000104, "s": 162.065261, "theta": 1.500517, "x":691197.718005, "y":3118304.443365, "dkappa":0.000002}
{"kappa": -0.000103, "s": 162.467234, "theta": 1.500476, "x":691197.746241, "y":3118304.844345, "dkappa":0.000002}
{"kappa": -0.000103, "s": 162.869207, "theta": 1.500434, "x":691197.774493, "y":3118305.245324, "dkappa":0.000002}
{"kappa": -0.000102, "s": 163.271180, "theta": 1.500393, "x":691197.802761, "y":3118305.646302, "dkappa":0.000002}
{"kappa": -0.000101, "s": 163.673154, "theta": 1.500352, "x":691197.831046, "y":3118306.047279, "dkappa":0.000002}
{"kappa": -0.000100, "s": 164.075128, "theta": 1.500312, "x":691197.859348, "y":3118306.448256, "dkappa":0.000002}
{"kappa": -0.000099, "s": 164.477103, "theta": 1.500272, "x":691197.887665, "y":3118306.849232, "dkappa":0.000002}
{"kappa": -0.000099, "s": 164.879078, "theta": 1.500232, "x":691197.915999, "y":3118307.250207, "dkappa":0.000002}
{"kappa": -0.000098, "s": 165.281053, "theta": 1.500193, "x":691197.944348, "y":3118307.651182, "dkappa":0.000002}
{"kappa": -0.000097, "s": 165.683029, "theta": 1.500153, "x":691197.972714, "y":3118308.052156, "dkappa":0.000002}
{"kappa": -0.000096, "s": 166.085006, "theta": 1.500115, "x":691198.001095, "y":3118308.453129, "dkappa":0.000002}
{"kappa": -0.000095, "s": 166.486982, "theta": 1.500076, "x":691198.029491, "y":3118308.854102, "dkappa":0.000002}
{"kappa": -0.000095, "s": 166.888960, "theta": 1.500038, "x":691198.057903, "y":3118309.255074, "dkappa":0.000002}
{"kappa": -0.000094, "s": 167.290937, "theta": 1.500000, "x":691198.086330, "y":3118309.656045, "dkappa":0.000002}
{"kappa": -0.000093, "s": 167.692916, "theta": 1.499962, "x":691198.114773, "y":3118310.057016, "dkappa":0.000002}
{"kappa": -0.000092, "s": 168.094894, "theta": 1.499925, "x":691198.143230, "y":3118310.457986, "dkappa":0.000002}
{"kappa": -0.000091, "s": 168.496873, "theta": 1.499888, "x":691198.171702, "y":3118310.858955, "dkappa":0.000002}
{"kappa": -0.000091, "s": 168.898853, "theta": 1.499852, "x":691198.200190, "y":3118311.259924, "dkappa":0.000002}
{"kappa": -0.000090, "s": 169.300833, "theta": 1.499815, "x":691198.228691, "y":3118311.660892, "dkappa":0.000002}
{"kappa": -0.000089, "s": 169.702813, "theta": 1.499779, "x":691198.257208, "y":3118312.061860, "dkappa":0.000002}
{"kappa": -0.000088, "s": 170.104794, "theta": 1.499744, "x":691198.285738, "y":3118312.462827, "dkappa":0.000002}
{"kappa": -0.000088, "s": 170.506775, "theta": 1.499708, "x":691198.314283, "y":3118312.863793, "dkappa":0.000002}
{"kappa": -0.000087, "s": 170.908756, "theta": 1.499673, "x":691198.342842, "y":3118313.264759, "dkappa":0.000002}
{"kappa": -0.000086, "s": 171.310739, "theta": 1.499639, "x":691198.371415, "y":3118313.665724, "dkappa":0.000002}
{"kappa": -0.000085, "s": 171.712721, "theta": 1.499604, "x":691198.400002, "y":3118314.066689, "dkappa":0.000002}
{"kappa": -0.000084, "s": 172.114704, "theta": 1.499570, "x":691198.428603, "y":3118314.467653, "dkappa":0.000002}
{"kappa": -0.000084, "s": 172.516687, "theta": 1.499536, "x":691198.457217, "y":3118314.868617, "dkappa":0.000002}
{"kappa": -0.000083, "s": 172.918671, "theta": 1.499503, "x":691198.485845, "y":3118315.269580, "dkappa":0.000002}
{"kappa": -0.000082, "s": 173.320655, "theta": 1.499470, "x":691198.514486, "y":3118315.670542, "dkappa":0.000002}
{"kappa": -0.000081, "s": 173.722640, "theta": 1.499437, "x":691198.543141, "y":3118316.071504, "dkappa":0.000002}
{"kappa": -0.000080, "s": 174.124625, "theta": 1.499404, "x":691198.571808, "y":3118316.472466, "dkappa":0.000002}
{"kappa": -0.000080, "s": 174.526611, "theta": 1.499372, "x":691198.600489, "y":3118316.873427, "dkappa":0.000002}
{"kappa": -0.000079, "s": 174.928597, "theta": 1.499340, "x":691198.629182, "y":3118317.274388, "dkappa":0.000002}
{"kappa": -0.000078, "s": 175.330583, "theta": 1.499309, "x":691198.657889, "y":3118317.675348, "dkappa":0.000002}
{"kappa": -0.000077, "s": 175.732570, "theta": 1.499278, "x":691198.686607, "y":3118318.076308, "dkappa":0.000002}
{"kappa": -0.000076, "s": 176.134557, "theta": 1.499247, "x":691198.715339, "y":3118318.477267, "dkappa":0.000002}
{"kappa": -0.000076, "s": 176.536545, "theta": 1.499216, "x":691198.744082, "y":3118318.878225, "dkappa":0.000002}
{"kappa": -0.000075, "s": 176.938533, "theta": 1.499186, "x":691198.772838, "y":3118319.279184, "dkappa":0.000002}
{"kappa": -0.000074, "s": 177.340522, "theta": 1.499156, "x":691198.801606, "y":3118319.680142, "dkappa":0.000002}
{"kappa": -0.000073, "s": 177.742511, "theta": 1.499126, "x":691198.830386, "y":3118320.081099, "dkappa":0.000002}
{"kappa": -0.000073, "s": 178.144500, "theta": 1.499097, "x":691198.859178, "y":3118320.482056, "dkappa":0.000002}
{"kappa": -0.000072, "s": 178.546490, "theta": 1.499068, "x":691198.887982, "y":3118320.883013, "dkappa":0.000002}
{"kappa": -0.000071, "s": 178.948480, "theta": 1.499039, "x":691198.916797, "y":3118321.283969, "dkappa":0.000002}
{"kappa": -0.000070, "s": 179.350471, "theta": 1.499011, "x":691198.945623, "y":3118321.684925, "dkappa":0.000002}
{"kappa": -0.000069, "s": 179.752462, "theta": 1.498983, "x":691198.974461, "y":3118322.085880, "dkappa":0.000002}
{"kappa": -0.000069, "s": 180.154453, "theta": 1.498955, "x":691199.003310, "y":3118322.486835, "dkappa":0.000002}
{"kappa": -0.000068, "s": 180.556445, "theta": 1.498928, "x":691199.032171, "y":3118322.887790, "dkappa":0.000002}
{"kappa": -0.000067, "s": 180.958438, "theta": 1.498901, "x":691199.061042, "y":3118323.288744, "dkappa":0.000002}
{"kappa": -0.000066, "s": 181.360431, "theta": 1.498874, "x":691199.089924, "y":3118323.689698, "dkappa":0.000002}
{"kappa": -0.000066, "s": 181.762424, "theta": 1.498847, "x":691199.118817, "y":3118324.090652, "dkappa":0.000002}
{"kappa": -0.000065, "s": 182.164418, "theta": 1.498821, "x":691199.147720, "y":3118324.491605, "dkappa":0.000002}
{"kappa": -0.000064, "s": 182.566412, "theta": 1.498795, "x":691199.176634, "y":3118324.892558, "dkappa":0.000002}
{"kappa": -0.000063, "s": 182.968406, "theta": 1.498770, "x":691199.205558, "y":3118325.293510, "dkappa":0.000002}
{"kappa": -0.000062, "s": 183.370401, "theta": 1.498744, "x":691199.234492, "y":3118325.694463, "dkappa":0.000002}
{"kappa": -0.000062, "s": 183.772397, "theta": 1.498720, "x":691199.263437, "y":3118326.095415, "dkappa":0.000002}
{"kappa": -0.000061, "s": 184.174392, "theta": 1.498695, "x":691199.292391, "y":3118326.496366, "dkappa":0.000002}
{"kappa": -0.000060, "s": 184.576389, "theta": 1.498671, "x":691199.321356, "y":3118326.897318, "dkappa":0.000002}
{"kappa": -0.000059, "s": 184.978385, "theta": 1.498647, "x":691199.350330, "y":3118327.298269, "dkappa":0.000002}
{"kappa": -0.000059, "s": 185.380382, "theta": 1.498623, "x":691199.379313, "y":3118327.699220, "dkappa":0.000002}
{"kappa": -0.000058, "s": 185.782380, "theta": 1.498600, "x":691199.408306, "y":3118328.100170, "dkappa":0.000002}
{"kappa": -0.000057, "s": 186.184378, "theta": 1.498576, "x":691199.437309, "y":3118328.501121, "dkappa":0.000002}
{"kappa": -0.000056, "s": 186.586376, "theta": 1.498554, "x":691199.466320, "y":3118328.902071, "dkappa":0.000002}
{"kappa": -0.000056, "s": 186.988375, "theta": 1.498531, "x":691199.495341, "y":3118329.303021, "dkappa":0.000002}
{"kappa": -0.000055, "s": 187.390374, "theta": 1.498509, "x":691199.524371, "y":3118329.703970, "dkappa":0.000002}
{"kappa": -0.000054, "s": 187.792373, "theta": 1.498487, "x":691199.553409, "y":3118330.104920, "dkappa":0.000002}
{"kappa": -0.000053, "s": 188.194373, "theta": 1.498466, "x":691199.582456, "y":3118330.505869, "dkappa":0.000002}
{"kappa": -0.000052, "s": 188.596374, "theta": 1.498444, "x":691199.611512, "y":3118330.906818, "dkappa":0.000002}
{"kappa": -0.000052, "s": 188.998375, "theta": 1.498423, "x":691199.640577, "y":3118331.307766, "dkappa":0.000002}
{"kappa": -0.000051, "s": 189.400376, "theta": 1.498403, "x":691199.669649, "y":3118331.708715, "dkappa":0.000002}
{"kappa": -0.000050, "s": 189.802377, "theta": 1.498382, "x":691199.698730, "y":3118332.109663, "dkappa":0.000002}
{"kappa": -0.000049, "s": 190.204379, "theta": 1.498362, "x":691199.727820, "y":3118332.510612, "dkappa":0.000002}
{"kappa": -0.000049, "s": 190.606382, "theta": 1.498343, "x":691199.756917, "y":3118332.911560, "dkappa":0.000002}
{"kappa": -0.000048, "s": 191.008385, "theta": 1.498323, "x":691199.786022, "y":3118333.312507, "dkappa":0.000002}
{"kappa": -0.000047, "s": 191.410388, "theta": 1.498304, "x":691199.815134, "y":3118333.713455, "dkappa":0.000002}
{"kappa": -0.000047, "s": 191.812392, "theta": 1.498285, "x":691199.844255, "y":3118334.114403, "dkappa":0.000002}
{"kappa": -0.000046, "s": 192.214396, "theta": 1.498267, "x":691199.873383, "y":3118334.515350, "dkappa":0.000002}
{"kappa": -0.000045, "s": 192.616400, "theta": 1.498248, "x":691199.902518, "y":3118334.916297, "dkappa":0.000002}
{"kappa": -0.000044, "s": 193.018405, "theta": 1.498230, "x":691199.931661, "y":3118335.317245, "dkappa":0.000002}
{"kappa": -0.000044, "s": 193.420410, "theta": 1.498213, "x":691199.960811, "y":3118335.718192, "dkappa":0.000002}
{"kappa": -0.000043, "s": 193.822416, "theta": 1.498195, "x":691199.989968, "y":3118336.119139, "dkappa":0.000002}
{"kappa": -0.000042, "s": 194.224422, "theta": 1.498178, "x":691200.019131, "y":3118336.520085, "dkappa":0.000002}
{"kappa": -0.000041, "s": 194.626429, "theta": 1.498161, "x":691200.048302, "y":3118336.921032, "dkappa":0.000002}
{"kappa": -0.000041, "s": 195.028436, "theta": 1.498145, "x":691200.077480, "y":3118337.321979, "dkappa":0.000002}
{"kappa": -0.000040, "s": 195.430443, "theta": 1.498129, "x":691200.106663, "y":3118337.722925, "dkappa":0.000002}
{"kappa": -0.000039, "s": 195.832451, "theta": 1.498113, "x":691200.135854, "y":3118338.123872, "dkappa":0.000002}
{"kappa": -0.000039, "s": 196.234459, "theta": 1.498097, "x":691200.165051, "y":3118338.524818, "dkappa":0.000002}
{"kappa": -0.000038, "s": 196.636467, "theta": 1.498082, "x":691200.194254, "y":3118338.925765, "dkappa":0.000002}
{"kappa": -0.000037, "s": 197.038476, "theta": 1.498067, "x":691200.223463, "y":3118339.326711, "dkappa":0.000002}
{"kappa": -0.000036, "s": 197.440485, "theta": 1.498052, "x":691200.252678, "y":3118339.727658, "dkappa":0.000002}
{"kappa": -0.000036, "s": 197.842495, "theta": 1.498037, "x":691200.281899, "y":3118340.128604, "dkappa":0.000002}
{"kappa": -0.000035, "s": 198.244505, "theta": 1.498023, "x":691200.311126, "y":3118340.529550, "dkappa":0.000002}
{"kappa": -0.000034, "s": 198.646516, "theta": 1.498009, "x":691200.340359, "y":3118340.930496, "dkappa":0.000002}
{"kappa": -0.000063, "s": 199.048526, "theta": 1.497996, "x":691200.369597, "y":3118341.331442, "dkappa":0.000000}
{"kappa": -0.000063, "s": 199.450747, "theta": 1.497970, "x":691200.398858, "y":3118341.732597, "dkappa":0.000000}
{"kappa": -0.000063, "s": 199.852967, "theta": 1.497945, "x":691200.428129, "y":3118342.133751, "dkappa":0.000000}
{"kappa": -0.000063, "s": 200.255187, "theta": 1.497919, "x":691200.457411, "y":3118342.534904, "dkappa":0.000000}
{"kappa": -0.000063, "s": 200.657407, "theta": 1.497894, "x":691200.486703, "y":3118342.936055, "dkappa":0.000000}
{"kappa": -0.000063, "s": 201.059626, "theta": 1.497869, "x":691200.516004, "y":3118343.337206, "dkappa":0.000000}
{"kappa": -0.000063, "s": 201.461845, "theta": 1.497843, "x":691200.545316, "y":3118343.738355, "dkappa":0.000000}
{"kappa": -0.000063, "s": 201.864063, "theta": 1.497818, "x":691200.574638, "y":3118344.139503, "dkappa":0.000000}
{"kappa": -0.000063, "s": 202.266281, "theta": 1.497793, "x":691200.603970, "y":3118344.540650, "dkappa":0.000000}
{"kappa": -0.000063, "s": 202.668498, "theta": 1.497768, "x":691200.633313, "y":3118344.941796, "dkappa":0.000000}
{"kappa": -0.000062, "s": 203.070716, "theta": 1.497743, "x":691200.662665, "y":3118345.342941, "dkappa":0.000000}
{"kappa": -0.000062, "s": 203.472932, "theta": 1.497718, "x":691200.692027, "y":3118345.744084, "dkappa":0.000000}
{"kappa": -0.000062, "s": 203.875149, "theta": 1.497692, "x":691200.721400, "y":3118346.145227, "dkappa":0.000000}
{"kappa": -0.000062, "s": 204.277365, "theta": 1.497667, "x":691200.750782, "y":3118346.546368, "dkappa":0.000000}
{"kappa": -0.000062, "s": 204.679580, "theta": 1.497642, "x":691200.780174, "y":3118346.947508, "dkappa":0.000000}
{"kappa": -0.000062, "s": 205.081795, "theta": 1.497618, "x":691200.809577, "y":3118347.348647, "dkappa":0.000000}
{"kappa": -0.000062, "s": 205.484010, "theta": 1.497593, "x":691200.838989, "y":3118347.749785, "dkappa":0.000000}
{"kappa": -0.000061, "s": 205.886225, "theta": 1.497568, "x":691200.868411, "y":3118348.150922, "dkappa":0.000000}
{"kappa": -0.000061, "s": 206.288439, "theta": 1.497543, "x":691200.897843, "y":3118348.552058, "dkappa":0.000000}
{"kappa": -0.000061, "s": 206.690652, "theta": 1.497519, "x":691200.927285, "y":3118348.953192, "dkappa":0.000001}
{"kappa": -0.000061, "s": 207.092865, "theta": 1.497494, "x":691200.956737, "y":3118349.354326, "dkappa":0.000001}
{"kappa": -0.000061, "s": 207.495078, "theta": 1.497470, "x":691200.986199, "y":3118349.755458, "dkappa":0.000001}
{"kappa": -0.000060, "s": 207.897291, "theta": 1.497445, "x":691201.015670, "y":3118350.156589, "dkappa":0.000001}
{"kappa": -0.000060, "s": 208.299503, "theta": 1.497421, "x":691201.045151, "y":3118350.557719, "dkappa":0.000001}
{"kappa": -0.000060, "s": 208.701714, "theta": 1.497397, "x":691201.074642, "y":3118350.958848, "dkappa":0.000001}
{"kappa": -0.000060, "s": 209.103925, "theta": 1.497373, "x":691201.104142, "y":3118351.359976, "dkappa":0.000001}
{"kappa": -0.000059, "s": 209.506136, "theta": 1.497349, "x":691201.133652, "y":3118351.761103, "dkappa":0.000001}
{"kappa": -0.000059, "s": 209.908347, "theta": 1.497325, "x":691201.163171, "y":3118352.162229, "dkappa":0.000001}
{"kappa": -0.000059, "s": 210.310557, "theta": 1.497301, "x":691201.192700, "y":3118352.563353, "dkappa":0.000001}
{"kappa": -0.000059, "s": 210.712766, "theta": 1.497278, "x":691201.222239, "y":3118352.964477, "dkappa":0.000001}
{"kappa": -0.000058, "s": 211.114975, "theta": 1.497254, "x":691201.251787, "y":3118353.365599, "dkappa":0.000001}
{"kappa": -0.000058, "s": 211.517184, "theta": 1.497231, "x":691201.281344, "y":3118353.766720, "dkappa":0.000001}
{"kappa": -0.000058, "s": 211.919393, "theta": 1.497208, "x":691201.310911, "y":3118354.167841, "dkappa":0.000001}
{"kappa": -0.000057, "s": 212.321601, "theta": 1.497185, "x":691201.340487, "y":3118354.568960, "dkappa":0.000001}
{"kappa": -0.000057, "s": 212.723808, "theta": 1.497162, "x":691201.370072, "y":3118354.970078, "dkappa":0.000001}
{"kappa": -0.000057, "s": 213.126016, "theta": 1.497139, "x":691201.399666, "y":3118355.371195, "dkappa":0.000001}
{"kappa": -0.000056, "s": 213.528222, "theta": 1.497116, "x":691201.429269, "y":3118355.772311, "dkappa":0.000001}
{"kappa": -0.000056, "s": 213.930429, "theta": 1.497094, "x":691201.458882, "y":3118356.173426, "dkappa":0.000001}
{"kappa": -0.000055, "s": 214.332635, "theta": 1.497071, "x":691201.488503, "y":3118356.574539, "dkappa":0.000001}
{"kappa": -0.000055, "s": 214.734841, "theta": 1.497049, "x":691201.518133, "y":3118356.975652, "dkappa":0.000001}
{"kappa": -0.000055, "s": 215.137046, "theta": 1.497027, "x":691201.547772, "y":3118357.376764, "dkappa":0.000001}
{"kappa": -0.000054, "s": 215.539251, "theta": 1.497005, "x":691201.577420, "y":3118357.777874, "dkappa":0.000001}
{"kappa": -0.000054, "s": 215.941455, "theta": 1.496983, "x":691201.607077, "y":3118358.178984, "dkappa":0.000001}
{"kappa": -0.000053, "s": 216.343659, "theta": 1.496962, "x":691201.636742, "y":3118358.580093, "dkappa":0.000001}
{"kappa": -0.000053, "s": 216.745863, "theta": 1.496940, "x":691201.666416, "y":3118358.981200, "dkappa":0.000001}
{"kappa": -0.000053, "s": 217.148066, "theta": 1.496919, "x":691201.696099, "y":3118359.382306, "dkappa":0.000001}
{"kappa": -0.000052, "s": 217.550269, "theta": 1.496898, "x":691201.725790, "y":3118359.783412, "dkappa":0.000001}
{"kappa": -0.000052, "s": 217.952471, "theta": 1.496877, "x":691201.755489, "y":3118360.184516, "dkappa":0.000001}
{"kappa": -0.000051, "s": 218.354673, "theta": 1.496856, "x":691201.785197, "y":3118360.585620, "dkappa":0.000001}
{"kappa": -0.000051, "s": 218.756875, "theta": 1.496836, "x":691201.814913, "y":3118360.986722, "dkappa":0.000001}
{"kappa": -0.000050, "s": 219.159076, "theta": 1.496815, "x":691201.844637, "y":3118361.387823, "dkappa":0.000001}
{"kappa": -0.000050, "s": 219.561277, "theta": 1.496795, "x":691201.874369, "y":3118361.788924, "dkappa":0.000001}
{"kappa": -0.000049, "s": 219.963477, "theta": 1.496775, "x":691201.904109, "y":3118362.190023, "dkappa":0.000001}
{"kappa": -0.000049, "s": 220.365677, "theta": 1.496755, "x":691201.933857, "y":3118362.591121, "dkappa":0.000001}
{"kappa": -0.000048, "s": 220.767876, "theta": 1.496736, "x":691201.963613, "y":3118362.992218, "dkappa":0.000001}
{"kappa": -0.000048, "s": 221.170076, "theta": 1.496717, "x":691201.993377, "y":3118363.393315, "dkappa":0.000001}
{"kappa": -0.000047, "s": 221.572274, "theta": 1.496697, "x":691202.023148, "y":3118363.794410, "dkappa":0.000001}
{"kappa": -0.000047, "s": 221.974473, "theta": 1.496678, "x":691202.052927, "y":3118364.195504, "dkappa":0.000001}
{"kappa": -0.000046, "s": 222.376670, "theta": 1.496660, "x":691202.082714, "y":3118364.596598, "dkappa":0.000001}
{"kappa": -0.000046, "s": 222.778868, "theta": 1.496641, "x":691202.112507, "y":3118364.997690, "dkappa":0.000001}
{"kappa": -0.000045, "s": 223.181065, "theta": 1.496623, "x":691202.142309, "y":3118365.398782, "dkappa":0.000001}
{"kappa": -0.000045, "s": 223.583262, "theta": 1.496605, "x":691202.172117, "y":3118365.799872, "dkappa":0.000001}
{"kappa": -0.000044, "s": 223.985458, "theta": 1.496587, "x":691202.201933, "y":3118366.200962, "dkappa":0.000001}
{"kappa": -0.000044, "s": 224.387654, "theta": 1.496569, "x":691202.231756, "y":3118366.602050, "dkappa":0.000001}
{"kappa": -0.000043, "s": 224.789849, "theta": 1.496552, "x":691202.261586, "y":3118367.003138, "dkappa":0.000001}
{"kappa": -0.000042, "s": 225.192044, "theta": 1.496535, "x":691202.291422, "y":3118367.404225, "dkappa":0.000001}
{"kappa": -0.000042, "s": 225.594238, "theta": 1.496518, "x":691202.321266, "y":3118367.805310, "dkappa":0.000001}
{"kappa": -0.000041, "s": 225.996433, "theta": 1.496501, "x":691202.351116, "y":3118368.206395, "dkappa":0.000001}
{"kappa": -0.000041, "s": 226.398626, "theta": 1.496485, "x":691202.380973, "y":3118368.607479, "dkappa":0.000002}
{"kappa": -0.000040, "s": 226.800820, "theta": 1.496469, "x":691202.410836, "y":3118369.008562, "dkappa":0.000002}
{"kappa": -0.000039, "s": 227.203012, "theta": 1.496453, "x":691202.440706, "y":3118369.409644, "dkappa":0.000002}
{"kappa": -0.000039, "s": 227.605205, "theta": 1.496437, "x":691202.470582, "y":3118369.810726, "dkappa":0.000002}
{"kappa": -0.000038, "s": 228.007397, "theta": 1.496422, "x":691202.500464, "y":3118370.211806, "dkappa":0.000002}
{"kappa": -0.000037, "s": 228.409588, "theta": 1.496406, "x":691202.530353, "y":3118370.612885, "dkappa":0.000002}
{"kappa": -0.000037, "s": 228.811779, "theta": 1.496391, "x":691202.560247, "y":3118371.013964, "dkappa":0.000002}
{"kappa": -0.000036, "s": 229.213970, "theta": 1.496377, "x":691202.590148, "y":3118371.415042, "dkappa":0.000002}
{"kappa": -0.000036, "s": 229.616160, "theta": 1.496362, "x":691202.620054, "y":3118371.816118, "dkappa":0.000002}
{"kappa": -0.000035, "s": 230.018350, "theta": 1.496348, "x":691202.649966, "y":3118372.217194, "dkappa":0.000002}
{"kappa": -0.000034, "s": 230.420539, "theta": 1.496334, "x":691202.679883, "y":3118372.618269, "dkappa":0.000002}
{"kappa": -0.000034, "s": 230.822728, "theta": 1.496321, "x":691202.709806, "y":3118373.019344, "dkappa":0.000002}
{"kappa": -0.000033, "s": 231.224917, "theta": 1.496307, "x":691202.739734, "y":3118373.420417, "dkappa":0.000002}
{"kappa": -0.000032, "s": 231.627105, "theta": 1.496294, "x":691202.769668, "y":3118373.821490, "dkappa":0.000002}
{"kappa": -0.000031, "s": 232.029292, "theta": 1.496281, "x":691202.799606, "y":3118374.222561, "dkappa":0.000002}
{"kappa": -0.000031, "s": 232.431480, "theta": 1.496269, "x":691202.829550, "y":3118374.623632, "dkappa":0.000002}
{"kappa": -0.000030, "s": 232.833666, "theta": 1.496257, "x":691202.859499, "y":3118375.024702, "dkappa":0.000002}
{"kappa": -0.000029, "s": 233.235853, "theta": 1.496245, "x":691202.889452, "y":3118375.425772, "dkappa":0.000002}
{"kappa": -0.000029, "s": 233.638038, "theta": 1.496233, "x":691202.919410, "y":3118375.826840, "dkappa":0.000002}
{"kappa": -0.000028, "s": 234.040224, "theta": 1.496222, "x":691202.949373, "y":3118376.227908, "dkappa":0.000002}
{"kappa": -0.000027, "s": 234.442409, "theta": 1.496211, "x":691202.979340, "y":3118376.628975, "dkappa":0.000002}
{"kappa": -0.000026, "s": 234.844593, "theta": 1.496200, "x":691203.009312, "y":3118377.030041, "dkappa":0.000002}
{"kappa": -0.000026, "s": 235.246777, "theta": 1.496189, "x":691203.039288, "y":3118377.431106, "dkappa":0.000002}
{"kappa": -0.000025, "s": 235.648961, "theta": 1.496179, "x":691203.069268, "y":3118377.832171, "dkappa":0.000002}
{"kappa": -0.000024, "s": 236.051144, "theta": 1.496169, "x":691203.099252, "y":3118378.233235, "dkappa":0.000002}
{"kappa": -0.000024, "s": 236.453327, "theta": 1.496160, "x":691203.129240, "y":3118378.634298, "dkappa":0.000002}
{"kappa": -0.000023, "s": 236.855509, "theta": 1.496150, "x":691203.159231, "y":3118379.035360, "dkappa":0.000002}
{"kappa": -0.000022, "s": 237.257690, "theta": 1.496141, "x":691203.189227, "y":3118379.436422, "dkappa":0.000002}
{"kappa": -0.000021, "s": 237.659872, "theta": 1.496133, "x":691203.219225, "y":3118379.837483, "dkappa":0.000002}
{"kappa": -0.000020, "s": 238.062053, "theta": 1.496124, "x":691203.249228, "y":3118380.238543, "dkappa":0.000002}
{"kappa": -0.000020, "s": 238.464233, "theta": 1.496116, "x":691203.279233, "y":3118380.639602, "dkappa":0.000002}
{"kappa": -0.000019, "s": 238.866413, "theta": 1.496108, "x":691203.309242, "y":3118381.040661, "dkappa":0.000002}
{"kappa": -0.000018, "s": 239.268592, "theta": 1.496101, "x":691203.339253, "y":3118381.441719, "dkappa":0.000002}
{"kappa": -0.000017, "s": 239.670771, "theta": 1.496094, "x":691203.369268, "y":3118381.842777, "dkappa":0.000002}
{"kappa": -0.000017, "s": 240.072950, "theta": 1.496087, "x":691203.399285, "y":3118382.243833, "dkappa":0.000002}
{"kappa": -0.000016, "s": 240.475128, "theta": 1.496080, "x":691203.429305, "y":3118382.644889, "dkappa":0.000002}
{"kappa": -0.000015, "s": 240.877305, "theta": 1.496074, "x":691203.459327, "y":3118383.045945, "dkappa":0.000002}
{"kappa": -0.000014, "s": 241.279482, "theta": 1.496068, "x":691203.489352, "y":3118383.447000, "dkappa":0.000002}
{"kappa": -0.000013, "s": 241.681659, "theta": 1.496063, "x":691203.519379, "y":3118383.848054, "dkappa":0.000002}
{"kappa": -0.000012, "s": 242.083835, "theta": 1.496058, "x":691203.549408, "y":3118384.249107, "dkappa":0.000002}
{"kappa": -0.000012, "s": 242.486010, "theta": 1.496053, "x":691203.579439, "y":3118384.650160, "dkappa":0.000002}
{"kappa": -0.000011, "s": 242.888185, "theta": 1.496048, "x":691203.609472, "y":3118385.051212, "dkappa":0.000002}
{"kappa": -0.000010, "s": 243.290360, "theta": 1.496044, "x":691203.639506, "y":3118385.452264, "dkappa":0.000002}
{"kappa": -0.000009, "s": 243.692534, "theta": 1.496040, "x":691203.669543, "y":3118385.853315, "dkappa":0.000002}
{"kappa": -0.000008, "s": 244.094708, "theta": 1.496037, "x":691203.699580, "y":3118386.254365, "dkappa":0.000002}
{"kappa": -0.000007, "s": 244.496881, "theta": 1.496034, "x":691203.729619, "y":3118386.655415, "dkappa":0.000002}
{"kappa": -0.000007, "s": 244.899054, "theta": 1.496031, "x":691203.759659, "y":3118387.056464, "dkappa":0.000002}
{"kappa": -0.000006, "s": 245.301226, "theta": 1.496028, "x":691203.789700, "y":3118387.457513, "dkappa":0.000002}
{"kappa": -0.000005, "s": 245.703398, "theta": 1.496026, "x":691203.819743, "y":3118387.858561, "dkappa":0.000002}
{"kappa": -0.000004, "s": 246.105569, "theta": 1.496024, "x":691203.849785, "y":3118388.259608, "dkappa":0.000002}
{"kappa": -0.000003, "s": 246.507740, "theta": 1.496023, "x":691203.879829, "y":3118388.660655, "dkappa":0.000002}
{"kappa": -0.000002, "s": 246.909910, "theta": 1.496022, "x":691203.909873, "y":3118389.061701, "dkappa":0.000002}
{"kappa": -0.000001, "s": 247.312079, "theta": 1.496021, "x":691203.939917, "y":3118389.462747, "dkappa":0.000002}
{"kappa": -0.000001, "s": 247.714249, "theta": 1.496021, "x":691203.969961, "y":3118389.863793, "dkappa":0.000002}
{"kappa": 0.000000, "s": 248.116417, "theta": 1.496020, "x":691204.000006, "y":3118390.264838, "dkappa":0.000002}
{"kappa": 0.000001, "s": 248.518585, "theta": 1.496021, "x":691204.030050, "y":3118390.665882, "dkappa":0.000002}
{"kappa": 0.000002, "s": 248.920753, "theta": 1.496021, "x":691204.060094, "y":3118391.066926, "dkappa":0.000002}
{"kappa": 0.000003, "s": 249.322920, "theta": 1.496022, "x":691204.090138, "y":3118391.467969, "dkappa":0.000002}
{"kappa": 0.000004, "s": 249.725087, "theta": 1.496024, "x":691204.120181, "y":3118391.869012, "dkappa":0.000002}
{"kappa": 0.000005, "s": 250.127253, "theta": 1.496026, "x":691204.150224, "y":3118392.270054, "dkappa":0.000002}
{"kappa": 0.000006, "s": 250.529419, "theta": 1.496028, "x":691204.180266, "y":3118392.671096, "dkappa":0.000002}
{"kappa": 0.000007, "s": 250.931584, "theta": 1.496030, "x":691204.210307, "y":3118393.072138, "dkappa":0.000002}
{"kappa": 0.000008, "s": 251.333748, "theta": 1.496033, "x":691204.240346, "y":3118393.473179, "dkappa":0.000002}
{"kappa": 0.000008, "s": 251.735912, "theta": 1.496036, "x":691204.270385, "y":3118393.874220, "dkappa":0.000002}
{"kappa": 0.000009, "s": 252.138076, "theta": 1.496040, "x":691204.300422, "y":3118394.275260, "dkappa":0.000002}
{"kappa": 0.000010, "s": 252.540239, "theta": 1.496044, "x":691204.330457, "y":3118394.676300, "dkappa":0.000002}
{"kappa": 0.000011, "s": 252.942401, "theta": 1.496048, "x":691204.360491, "y":3118395.077339, "dkappa":0.000002}
{"kappa": 0.000012, "s": 253.344563, "theta": 1.496053, "x":691204.390523, "y":3118395.478378, "dkappa":0.000002}
{"kappa": 0.000013, "s": 253.746725, "theta": 1.496058, "x":691204.420553, "y":3118395.879417, "dkappa":0.000002}
{"kappa": 0.000014, "s": 254.148886, "theta": 1.496063, "x":691204.450581, "y":3118396.280455, "dkappa":0.000002}
{"kappa": 0.000015, "s": 254.551046, "theta": 1.496069, "x":691204.480607, "y":3118396.681493, "dkappa":0.000002}
{"kappa": 0.000016, "s": 254.953206, "theta": 1.496075, "x":691204.510630, "y":3118397.082531, "dkappa":0.000002}
{"kappa": 0.000017, "s": 255.355365, "theta": 1.496082, "x":691204.540650, "y":3118397.483568, "dkappa":0.000002}
{"kappa": 0.000018, "s": 255.757524, "theta": 1.496089, "x":691204.570668, "y":3118397.884605, "dkappa":0.000002}
{"kappa": 0.000019, "s": 256.159682, "theta": 1.496096, "x":691204.600683, "y":3118398.285641, "dkappa":0.000002}
{"kappa": 0.000020, "s": 256.561839, "theta": 1.496104, "x":691204.630695, "y":3118398.686677, "dkappa":0.000002}
{"kappa": 0.000021, "s": 256.963996, "theta": 1.496112, "x":691204.660703, "y":3118399.087713, "dkappa":0.000002}
{"kappa": 0.000022, "s": 257.366153, "theta": 1.496120, "x":691204.690709, "y":3118399.488749, "dkappa":0.000002}
{"kappa": 0.000023, "s": 257.768309, "theta": 1.496129, "x":691204.720710, "y":3118399.889784, "dkappa":0.000002}
{"kappa": 0.000024, "s": 258.170464, "theta": 1.496138, "x":691204.750708, "y":3118400.290819, "dkappa":0.000002}
{"kappa": 0.000024, "s": 258.572619, "theta": 1.496148, "x":691204.780703, "y":3118400.691854, "dkappa":0.000002}
{"kappa": 0.000025, "s": 258.974774, "theta": 1.496158, "x":691204.810693, "y":3118401.092889, "dkappa":0.000002}
{"kappa": 0.000026, "s": 259.376927, "theta": 1.496169, "x":691204.840679, "y":3118401.493923, "dkappa":0.000002}
{"kappa": 0.000027, "s": 259.779081, "theta": 1.496179, "x":691204.870661, "y":3118401.894957, "dkappa":0.000002}
{"kappa": 0.000028, "s": 260.181233, "theta": 1.496191, "x":691204.900638, "y":3118402.295991, "dkappa":0.000002}
{"kappa": 0.000029, "s": 260.583385, "theta": 1.496202, "x":691204.930611, "y":3118402.697024, "dkappa":0.000002}
{"kappa": 0.000030, "s": 260.985537, "theta": 1.496214, "x":691204.960579, "y":3118403.098058, "dkappa":0.000002}
{"kappa": 0.000031, "s": 261.387688, "theta": 1.496227, "x":691204.990542, "y":3118403.499091, "dkappa":0.000002}
{"kappa": 0.000032, "s": 261.789838, "theta": 1.496239, "x":691205.020500, "y":3118403.900124, "dkappa":0.000002}
{"kappa": 0.000033, "s": 262.191988, "theta": 1.496253, "x":691205.050452, "y":3118404.301156, "dkappa":0.000002}
{"kappa": 0.000034, "s": 262.594137, "theta": 1.496266, "x":691205.080399, "y":3118404.702189, "dkappa":0.000002}
{"kappa": 0.000035, "s": 262.996286, "theta": 1.496280, "x":691205.110341, "y":3118405.103221, "dkappa":0.000002}
{"kappa": 0.000036, "s": 263.398434, "theta": 1.496295, "x":691205.140277, "y":3118405.504254, "dkappa":0.000002}
{"kappa": 0.000037, "s": 263.800581, "theta": 1.496309, "x":691205.170207, "y":3118405.905286, "dkappa":0.000002}
{"kappa": 0.000038, "s": 264.202728, "theta": 1.496325, "x":691205.200131, "y":3118406.306318, "dkappa":0.000002}
{"kappa": 0.000039, "s": 264.604874, "theta": 1.496340, "x":691205.230049, "y":3118406.707350, "dkappa":0.000003}
{"kappa": 0.000040, "s": 265.007020, "theta": 1.496356, "x":691205.259960, "y":3118407.108382, "dkappa":0.000003}
{"kappa": 0.000041, "s": 265.409165, "theta": 1.496373, "x":691205.289865, "y":3118407.509413, "dkappa":0.000003}
{"kappa": 0.000042, "s": 265.811310, "theta": 1.496389, "x":691205.319763, "y":3118407.910445, "dkappa":0.000003}
{"kappa": 0.000043, "s": 266.213454, "theta": 1.496407, "x":691205.349654, "y":3118408.311476, "dkappa":0.000003}
{"kappa": 0.000044, "s": 266.615597, "theta": 1.496424, "x":691205.379538, "y":3118408.712508, "dkappa":0.000003}
{"kappa": 0.000045, "s": 267.017740, "theta": 1.496442, "x":691205.409415, "y":3118409.113539, "dkappa":0.000003}
{"kappa": 0.000046, "s": 267.419882, "theta": 1.496461, "x":691205.439285, "y":3118409.514570, "dkappa":0.000003}
{"kappa": 0.000047, "s": 267.822024, "theta": 1.496480, "x":691205.469147, "y":3118409.915602, "dkappa":0.000003}
{"kappa": 0.000048, "s": 268.224164, "theta": 1.496499, "x":691205.499002, "y":3118410.316633, "dkappa":0.000003}
{"kappa": 0.000049, "s": 268.626305, "theta": 1.496519, "x":691205.528848, "y":3118410.717664, "dkappa":0.000003}
{"kappa": 0.000050, "s": 269.028445, "theta": 1.496539, "x":691205.558687, "y":3118411.118695, "dkappa":0.000003}
{"kappa": 0.000052, "s": 269.430584, "theta": 1.496559, "x":691205.588517, "y":3118411.519727, "dkappa":0.000003}
{"kappa": 0.000053, "s": 269.832722, "theta": 1.496580, "x":691205.618339, "y":3118411.920758, "dkappa":0.000003}
{"kappa": 0.000054, "s": 270.234860, "theta": 1.496601, "x":691205.648153, "y":3118412.321789, "dkappa":0.000003}
{"kappa": 0.000055, "s": 270.636998, "theta": 1.496623, "x":691205.677957, "y":3118412.722820, "dkappa":0.000003}
{"kappa": 0.000056, "s": 271.039134, "theta": 1.496645, "x":691205.707753, "y":3118413.123852, "dkappa":0.000003}
{"kappa": 0.000057, "s": 271.441270, "theta": 1.496668, "x":691205.737540, "y":3118413.524883, "dkappa":0.000003}
{"kappa": 0.000058, "s": 271.843406, "theta": 1.496691, "x":691205.767318, "y":3118413.925915, "dkappa":0.000003}
{"kappa": 0.000059, "s": 272.245541, "theta": 1.496714, "x":691205.797086, "y":3118414.326946, "dkappa":0.000003}
{"kappa": 0.000060, "s": 272.647675, "theta": 1.496738, "x":691205.826845, "y":3118414.727978, "dkappa":0.000003}
{"kappa": 0.000061, "s": 273.049808, "theta": 1.496763, "x":691205.856594, "y":3118415.129009, "dkappa":0.000003}
{"kappa": 0.000062, "s": 273.451941, "theta": 1.496787, "x":691205.886334, "y":3118415.530041, "dkappa":0.000003}
{"kappa": 0.000063, "s": 273.854074, "theta": 1.496812, "x":691205.916063, "y":3118415.931073, "dkappa":0.000003}
{"kappa": 0.000064, "s": 274.256205, "theta": 1.496838, "x":691205.945782, "y":3118416.332105, "dkappa":0.000003}
{"kappa": 0.000065, "s": 274.658337, "theta": 1.496864, "x":691205.975491, "y":3118416.733137, "dkappa":0.000003}
{"kappa": 0.000066, "s": 275.060467, "theta": 1.496890, "x":691206.005189, "y":3118417.134170, "dkappa":0.000003}
{"kappa": 0.000067, "s": 275.462597, "theta": 1.496917, "x":691206.034876, "y":3118417.535202, "dkappa":0.000003}
{"kappa": 0.000068, "s": 275.864726, "theta": 1.496944, "x":691206.064553, "y":3118417.936235, "dkappa":0.000003}
{"kappa": 0.000069, "s": 276.266855, "theta": 1.496972, "x":691206.094219, "y":3118418.337268, "dkappa":0.000003}
{"kappa": 0.000070, "s": 276.668982, "theta": 1.497000, "x":691206.123873, "y":3118418.738301, "dkappa":0.000003}
{"kappa": 0.000071, "s": 277.071110, "theta": 1.497028, "x":691206.153516, "y":3118419.139334, "dkappa":0.000003}
{"kappa": 0.000072, "s": 277.473236, "theta": 1.497057, "x":691206.183147, "y":3118419.540367, "dkappa":0.000003}
{"kappa": 0.000073, "s": 277.875362, "theta": 1.497086, "x":691206.212767, "y":3118419.941401, "dkappa":0.000003}
{"kappa": 0.000075, "s": 278.277488, "theta": 1.497116, "x":691206.242375, "y":3118420.342435, "dkappa":0.000003}
{"kappa": 0.000076, "s": 278.679612, "theta": 1.497146, "x":691206.271971, "y":3118420.743469, "dkappa":0.000003}
{"kappa": 0.000077, "s": 279.081736, "theta": 1.497177, "x":691206.301554, "y":3118421.144503, "dkappa":0.000003}
{"kappa": 0.000078, "s": 279.483860, "theta": 1.497208, "x":691206.331125, "y":3118421.545538, "dkappa":0.000003}
{"kappa": 0.000079, "s": 279.885983, "theta": 1.497239, "x":691206.360684, "y":3118421.946573, "dkappa":0.000003}
{"kappa": 0.000080, "s": 280.288105, "theta": 1.497271, "x":691206.390230, "y":3118422.347608, "dkappa":0.000003}
{"kappa": 0.000081, "s": 280.690226, "theta": 1.497304, "x":691206.419763, "y":3118422.748643, "dkappa":0.000003}
{"kappa": 0.000082, "s": 281.092347, "theta": 1.497336, "x":691206.449282, "y":3118423.149679, "dkappa":0.000003}
{"kappa": 0.000083, "s": 281.494467, "theta": 1.497370, "x":691206.478789, "y":3118423.550715, "dkappa":0.000003}
{"kappa": 0.000084, "s": 281.896586, "theta": 1.497403, "x":691206.508282, "y":3118423.951752, "dkappa":0.000003}
{"kappa": 0.000085, "s": 282.298705, "theta": 1.497437, "x":691206.537761, "y":3118424.352788, "dkappa":0.000003}
{"kappa": 0.000086, "s": 282.700823, "theta": 1.497472, "x":691206.567227, "y":3118424.753826, "dkappa":0.000003}
{"kappa": 0.000087, "s": 283.102941, "theta": 1.497506, "x":691206.596679, "y":3118425.154863, "dkappa":0.000003}
{"kappa": 0.000088, "s": 283.505058, "theta": 1.497542, "x":691206.626116, "y":3118425.555901, "dkappa":0.000003}
{"kappa": 0.000089, "s": 283.907174, "theta": 1.497578, "x":691206.655540, "y":3118425.956939, "dkappa":0.000003}
{"kappa": 0.000090, "s": 284.309289, "theta": 1.497614, "x":691206.684949, "y":3118426.357978, "dkappa":0.000003}
{"kappa": 0.000092, "s": 284.711404, "theta": 1.497650, "x":691206.714343, "y":3118426.759017, "dkappa":0.000003}
{"kappa": 0.000093, "s": 285.113518, "theta": 1.497687, "x":691206.743722, "y":3118427.160056, "dkappa":0.000003}
{"kappa": 0.000094, "s": 285.515632, "theta": 1.497725, "x":691206.773087, "y":3118427.561096, "dkappa":0.000003}
{"kappa": 0.000095, "s": 285.917744, "theta": 1.497763, "x":691206.802436, "y":3118427.962136, "dkappa":0.000003}
{"kappa": 0.000096, "s": 286.319856, "theta": 1.497801, "x":691206.831770, "y":3118428.363177, "dkappa":0.000003}
{"kappa": 0.000097, "s": 286.721968, "theta": 1.497840, "x":691206.861089, "y":3118428.764218, "dkappa":0.000003}
{"kappa": 0.000098, "s": 287.124079, "theta": 1.497879, "x":691206.890391, "y":3118429.165260, "dkappa":0.000003}
{"kappa": 0.000099, "s": 287.526189, "theta": 1.497918, "x":691206.919678, "y":3118429.566302, "dkappa":0.000003}
{"kappa": 0.000100, "s": 287.928298, "theta": 1.497958, "x":691206.948949, "y":3118429.967345, "dkappa":0.000003}
{"kappa": 0.000101, "s": 288.330407, "theta": 1.497999, "x":691206.978204, "y":3118430.368388, "dkappa":0.000003}
{"kappa": 0.000102, "s": 288.732515, "theta": 1.498040, "x":691207.007442, "y":3118430.769431, "dkappa":0.000003}
{"kappa": 0.000103, "s": 289.134622, "theta": 1.498081, "x":691207.036664, "y":3118431.170475, "dkappa":0.000003}
{"kappa": 0.000104, "s": 289.536729, "theta": 1.498123, "x":691207.065869, "y":3118431.571520, "dkappa":0.000003}
{"kappa": 0.000105, "s": 289.938835, "theta": 1.498165, "x":691207.095058, "y":3118431.972565, "dkappa":0.000003}
{"kappa": 0.000106, "s": 290.340940, "theta": 1.498208, "x":691207.124229, "y":3118432.373611, "dkappa":0.000003}
{"kappa": 0.000108, "s": 290.743045, "theta": 1.498251, "x":691207.153383, "y":3118432.774657, "dkappa":0.000003}
{"kappa": 0.000109, "s": 291.145149, "theta": 1.498294, "x":691207.182520, "y":3118433.175704, "dkappa":0.000003}
{"kappa": 0.000110, "s": 291.547252, "theta": 1.498338, "x":691207.211639, "y":3118433.576752, "dkappa":0.000003}
{"kappa": 0.000111, "s": 291.949354, "theta": 1.498382, "x":691207.240740, "y":3118433.977800, "dkappa":0.000003}
{"kappa": 0.000112, "s": 292.351456, "theta": 1.498427, "x":691207.269823, "y":3118434.378848, "dkappa":0.000003}
{"kappa": 0.000113, "s": 292.753557, "theta": 1.498472, "x":691207.298889, "y":3118434.779898, "dkappa":0.000003}
{"kappa": 0.000114, "s": 293.155658, "theta": 1.498518, "x":691207.327936, "y":3118435.180948, "dkappa":0.000003}
{"kappa": 0.000115, "s": 293.557758, "theta": 1.498564, "x":691207.356964, "y":3118435.581998, "dkappa":0.000003}
{"kappa": 0.000116, "s": 293.959857, "theta": 1.498610, "x":691207.385974, "y":3118435.983049, "dkappa":0.000003}
{"kappa": 0.000117, "s": 294.361955, "theta": 1.498657, "x":691207.414965, "y":3118436.384101, "dkappa":0.000003}
{"kappa": 0.000118, "s": 294.764053, "theta": 1.498705, "x":691207.443938, "y":3118436.785154, "dkappa":0.000003}
{"kappa": 0.000119, "s": 295.166150, "theta": 1.498752, "x":691207.472891, "y":3118437.186207, "dkappa":0.000003}
{"kappa": 0.000120, "s": 295.568246, "theta": 1.498801, "x":691207.501825, "y":3118437.587261, "dkappa":0.000003}
{"kappa": 0.000121, "s": 295.970341, "theta": 1.498849, "x":691207.530739, "y":3118437.988316, "dkappa":0.000003}
{"kappa": 0.000122, "s": 296.372436, "theta": 1.498898, "x":691207.559634, "y":3118438.389371, "dkappa":0.000003}
{"kappa": 0.000124, "s": 296.774530, "theta": 1.498948, "x":691207.588509, "y":3118438.790427, "dkappa":0.000003}
{"kappa": 0.000125, "s": 297.176624, "theta": 1.498998, "x":691207.617364, "y":3118439.191484, "dkappa":0.000003}
{"kappa": 0.000126, "s": 297.578717, "theta": 1.499048, "x":691207.646199, "y":3118439.592541, "dkappa":0.000003}
{"kappa": 0.000127, "s": 297.980809, "theta": 1.499099, "x":691207.675013, "y":3118439.993600, "dkappa":0.000003}
{"kappa": 0.000128, "s": 298.382900, "theta": 1.499150, "x":691207.703807, "y":3118440.394659, "dkappa":0.000003}
{"kappa": 0.000129, "s": 298.784991, "theta": 1.499201, "x":691207.732581, "y":3118440.795718, "dkappa":0.000003}
{"kappa": -0.000062, "s": 299.187081, "theta": 1.499253, "x":691207.761333, "y":3118441.196779, "dkappa":0.000000}
{"kappa": -0.000062, "s": 299.591958, "theta": 1.499228, "x":691207.790280, "y":3118441.600621, "dkappa":0.000000}
{"kappa": -0.000062, "s": 299.996823, "theta": 1.499203, "x":691207.819236, "y":3118442.004449, "dkappa":0.000000}
{"kappa": -0.000062, "s": 300.401675, "theta": 1.499178, "x":691207.848200, "y":3118442.408263, "dkappa":0.000001}
{"kappa": -0.000061, "s": 300.806514, "theta": 1.499153, "x":691207.877174, "y":3118442.812064, "dkappa":0.000001}
{"kappa": -0.000061, "s": 301.211340, "theta": 1.499129, "x":691207.906158, "y":3118443.215851, "dkappa":0.000001}
{"kappa": -0.000060, "s": 301.616153, "theta": 1.499104, "x":691207.935150, "y":3118443.619625, "dkappa":0.000001}
{"kappa": -0.000060, "s": 302.020953, "theta": 1.499080, "x":691207.964151, "y":3118444.023384, "dkappa":0.000002}
{"kappa": -0.000059, "s": 302.425740, "theta": 1.499056, "x":691207.993161, "y":3118444.427131, "dkappa":0.000002}
{"kappa": -0.000058, "s": 302.830515, "theta": 1.499032, "x":691208.022179, "y":3118444.830864, "dkappa":0.000002}
{"kappa": -0.000057, "s": 303.235276, "theta": 1.499009, "x":691208.051207, "y":3118445.234583, "dkappa":0.000002}
{"kappa": -0.000056, "s": 303.640024, "theta": 1.498986, "x":691208.080242, "y":3118445.638288, "dkappa":0.000003}
{"kappa": -0.000055, "s": 304.044760, "theta": 1.498963, "x":691208.109286, "y":3118446.041980, "dkappa":0.000003}
{"kappa": -0.000054, "s": 304.449482, "theta": 1.498941, "x":691208.138338, "y":3118446.445659, "dkappa":0.000003}
{"kappa": -0.000053, "s": 304.854192, "theta": 1.498919, "x":691208.167398, "y":3118446.849324, "dkappa":0.000003}
{"kappa": -0.000052, "s": 305.258888, "theta": 1.498898, "x":691208.196466, "y":3118447.252975, "dkappa":0.000003}
{"kappa": -0.000050, "s": 305.663572, "theta": 1.498878, "x":691208.225541, "y":3118447.656613, "dkappa":0.000004}
{"kappa": -0.000049, "s": 306.068242, "theta": 1.498858, "x":691208.254623, "y":3118448.060237, "dkappa":0.000004}
{"kappa": -0.000047, "s": 306.472900, "theta": 1.498838, "x":691208.283713, "y":3118448.463847, "dkappa":0.000004}
{"kappa": -0.000045, "s": 306.877544, "theta": 1.498819, "x":691208.312809, "y":3118448.867444, "dkappa":0.000004}
{"kappa": -0.000044, "s": 307.282176, "theta": 1.498801, "x":691208.341911, "y":3118449.271028, "dkappa":0.000004}
{"kappa": -0.000042, "s": 307.686794, "theta": 1.498784, "x":691208.371020, "y":3118449.674598, "dkappa":0.000005}
{"kappa": -0.000040, "s": 308.091400, "theta": 1.498768, "x":691208.400135, "y":3118450.078154, "dkappa":0.000005}
{"kappa": -0.000038, "s": 308.495992, "theta": 1.498752, "x":691208.429255, "y":3118450.481697, "dkappa":0.000005}
{"kappa": -0.000036, "s": 308.900571, "theta": 1.498737, "x":691208.458381, "y":3118450.885227, "dkappa":0.000005}
{"kappa": -0.000034, "s": 309.305138, "theta": 1.498723, "x":691208.487511, "y":3118451.288743, "dkappa":0.000005}
{"kappa": -0.000031, "s": 309.709691, "theta": 1.498710, "x":691208.516646, "y":3118451.692246, "dkappa":0.000006}
{"kappa": -0.000029, "s": 310.114231, "theta": 1.498698, "x":691208.545785, "y":3118452.095735, "dkappa":0.000006}
{"kappa": -0.000027, "s": 310.518757, "theta": 1.498686, "x":691208.574928, "y":3118452.499210, "dkappa":0.000006}
{"kappa": -0.000024, "s": 310.923271, "theta": 1.498676, "x":691208.604074, "y":3118452.902673, "dkappa":0.000006}
{"kappa": -0.000022, "s": 311.327771, "theta": 1.498667, "x":691208.633224, "y":3118453.306122, "dkappa":0.000006}
{"kappa": -0.000019, "s": 311.732259, "theta": 1.498659, "x":691208.662375, "y":3118453.709557, "dkappa":0.000007}
{"kappa": -0.000016, "s": 312.136733, "theta": 1.498651, "x":691208.691529, "y":3118454.112979, "dkappa":0.000007}
{"kappa": -0.000014, "s": 312.541194, "theta": 1.498645, "x":691208.720685, "y":3118454.516388, "dkappa":0.000007}
{"kappa": -0.000011, "s": 312.945641, "theta": 1.498640, "x":691208.749842, "y":3118454.919783, "dkappa":0.000007}
{"kappa": -0.000008, "s": 313.350076, "theta": 1.498637, "x":691208.779000, "y":3118455.323165, "dkappa":0.000007}
{"kappa": -0.000005, "s": 313.754497, "theta": 1.498634, "x":691208.808158, "y":3118455.726533, "dkappa":0.000007}
{"kappa": -0.000002, "s": 314.158905, "theta": 1.498633, "x":691208.837316, "y":3118456.129889, "dkappa":0.000008}
{"kappa": 0.000001, "s": 314.563299, "theta": 1.498632, "x":691208.866474, "y":3118456.533231, "dkappa":0.000008}
{"kappa": 0.000004, "s": 314.967680, "theta": 1.498634, "x":691208.895630, "y":3118456.936559, "dkappa":0.000008}
{"kappa": 0.000008, "s": 315.372048, "theta": 1.498636, "x":691208.924784, "y":3118457.339875, "dkappa":0.000008}
{"kappa": 0.000011, "s": 315.776402, "theta": 1.498640, "x":691208.953937, "y":3118457.743177, "dkappa":0.000008}
{"kappa": 0.000014, "s": 316.180743, "theta": 1.498645, "x":691208.983086, "y":3118458.146466, "dkappa":0.000008}
{"kappa": 0.000018, "s": 316.585071, "theta": 1.498651, "x":691209.012232, "y":3118458.549741, "dkappa":0.000009}
{"kappa": 0.000021, "s": 316.989385, "theta": 1.498659, "x":691209.041375, "y":3118458.953004, "dkappa":0.000009}
{"kappa": 0.000025, "s": 317.393685, "theta": 1.498669, "x":691209.070513, "y":3118459.356253, "dkappa":0.000009}
{"kappa": 0.000029, "s": 317.797973, "theta": 1.498680, "x":691209.099645, "y":3118459.759489, "dkappa":0.000009}
{"kappa": 0.000032, "s": 318.202246, "theta": 1.498692, "x":691209.128773, "y":3118460.162712, "dkappa":0.000009}
{"kappa": 0.000036, "s": 318.606506, "theta": 1.498706, "x":691209.157894, "y":3118460.565922, "dkappa":0.000009}
{"kappa": 0.000040, "s": 319.010753, "theta": 1.498721, "x":691209.187008, "y":3118460.969119, "dkappa":0.000010}
{"kappa": 0.000044, "s": 319.414986, "theta": 1.498738, "x":691209.216115, "y":3118461.372302, "dkappa":0.000010}
{"kappa": 0.000048, "s": 319.819205, "theta": 1.498756, "x":691209.245213, "y":3118461.775473, "dkappa":0.000010}
{"kappa": 0.000052, "s": 320.223410, "theta": 1.498776, "x":691209.274303, "y":3118462.178630, "dkappa":0.000010}
{"kappa": 0.000056, "s": 320.627602, "theta": 1.498798, "x":691209.303383, "y":3118462.581775, "dkappa":0.000010}
{"kappa": 0.000060, "s": 321.031781, "theta": 1.498821, "x":691209.332454, "y":3118462.984906, "dkappa":0.000010}
{"kappa": 0.000064, "s": 321.435945, "theta": 1.498846, "x":691209.361513, "y":3118463.388025, "dkappa":0.000010}
{"kappa": 0.000068, "s": 321.840096, "theta": 1.498873, "x":691209.390562, "y":3118463.791130, "dkappa":0.000011}
{"kappa": 0.000072, "s": 322.244233, "theta": 1.498901, "x":691209.419598, "y":3118464.194223, "dkappa":0.000011}
{"kappa": 0.000077, "s": 322.648356, "theta": 1.498932, "x":691209.448621, "y":3118464.597302, "dkappa":0.000011}
{"kappa": 0.000081, "s": 323.052465, "theta": 1.498964, "x":691209.477631, "y":3118465.000369, "dkappa":0.000011}
{"kappa": 0.000086, "s": 323.456561, "theta": 1.498997, "x":691209.506627, "y":3118465.403423, "dkappa":0.000011}
{"kappa": 0.000090, "s": 323.860642, "theta": 1.499033, "x":691209.535607, "y":3118465.806464, "dkappa":0.000011}
{"kappa": 0.000095, "s": 324.264710, "theta": 1.499070, "x":691209.564572, "y":3118466.209492, "dkappa":0.000011}
{"kappa": 0.000099, "s": 324.668763, "theta": 1.499109, "x":691209.593521, "y":3118466.612507, "dkappa":0.000011}
{"kappa": 0.000104, "s": 325.072803, "theta": 1.499150, "x":691209.622452, "y":3118467.015510, "dkappa":0.000012}
{"kappa": 0.000109, "s": 325.476829, "theta": 1.499193, "x":691209.651366, "y":3118467.418499, "dkappa":0.000012}
{"kappa": 0.000113, "s": 325.880840, "theta": 1.499238, "x":691209.680261, "y":3118467.821476, "dkappa":0.000012}
{"kappa": 0.000118, "s": 326.284838, "theta": 1.499285, "x":691209.709136, "y":3118468.224441, "dkappa":0.000012}
{"kappa": 0.000123, "s": 326.688821, "theta": 1.499333, "x":691209.737991, "y":3118468.627392, "dkappa":0.000012}
{"kappa": 0.000128, "s": 327.092791, "theta": 1.499384, "x":691209.766826, "y":3118469.030331, "dkappa":0.000012}
{"kappa": 0.000133, "s": 327.496746, "theta": 1.499437, "x":691209.795638, "y":3118469.433257, "dkappa":0.000012}
{"kappa": 0.000138, "s": 327.900687, "theta": 1.499491, "x":691209.824428, "y":3118469.836171, "dkappa":0.000012}
{"kappa": 0.000143, "s": 328.304614, "theta": 1.499548, "x":691209.853194, "y":3118470.239072, "dkappa":0.000012}
{"kappa": 0.000148, "s": 328.708526, "theta": 1.499607, "x":691209.881936, "y":3118470.641961, "dkappa":0.000013}
{"kappa": 0.000153, "s": 329.112424, "theta": 1.499667, "x":691209.910653, "y":3118471.044837, "dkappa":0.000013}
{"kappa": 0.000158, "s": 329.516308, "theta": 1.499730, "x":691209.939344, "y":3118471.447700, "dkappa":0.000013}
{"kappa": 0.000163, "s": 329.920178, "theta": 1.499795, "x":691209.968008, "y":3118471.850551, "dkappa":0.000013}
{"kappa": 0.000169, "s": 330.324033, "theta": 1.499862, "x":691209.996645, "y":3118472.253390, "dkappa":0.000013}
{"kappa": 0.000174, "s": 330.727873, "theta": 1.499931, "x":691210.025253, "y":3118472.656216, "dkappa":0.000013}
{"kappa": 0.000179, "s": 331.131700, "theta": 1.500002, "x":691210.053832, "y":3118473.059030, "dkappa":0.000013}
{"kappa": 0.000184, "s": 331.535511, "theta": 1.500076, "x":691210.082381, "y":3118473.461831, "dkappa":0.000013}
{"kappa": 0.000190, "s": 331.939309, "theta": 1.500151, "x":691210.110899, "y":3118473.864620, "dkappa":0.000013}
{"kappa": 0.000195, "s": 332.343092, "theta": 1.500229, "x":691210.139385, "y":3118474.267397, "dkappa":0.000014}
{"kappa": 0.000201, "s": 332.746860, "theta": 1.500309, "x":691210.167838, "y":3118474.670161, "dkappa":0.000014}
{"kappa": 0.000206, "s": 333.150613, "theta": 1.500391, "x":691210.196257, "y":3118475.072913, "dkappa":0.000014}
{"kappa": 0.000212, "s": 333.554352, "theta": 1.500476, "x":691210.224642, "y":3118475.475653, "dkappa":0.000014}
{"kappa": 0.000217, "s": 333.958077, "theta": 1.500562, "x":691210.252992, "y":3118475.878381, "dkappa":0.000014}
{"kappa": 0.000223, "s": 334.361786, "theta": 1.500651, "x":691210.281305, "y":3118476.281097, "dkappa":0.000014}
{"kappa": 0.000229, "s": 334.765481, "theta": 1.500742, "x":691210.309580, "y":3118476.683800, "dkappa":0.000014}
{"kappa": 0.000234, "s": 335.169161, "theta": 1.500836, "x":691210.337818, "y":3118477.086491, "dkappa":0.000014}
{"kappa": 0.000240, "s": 335.572826, "theta": 1.500932, "x":691210.366016, "y":3118477.489170, "dkappa":0.000014}
{"kappa": 0.000246, "s": 335.976477, "theta": 1.501030, "x":691210.394174, "y":3118477.891838, "dkappa":0.000014}
{"kappa": 0.000252, "s": 336.380113, "theta": 1.501130, "x":691210.422292, "y":3118478.294493, "dkappa":0.000014}
{"kappa": 0.000257, "s": 336.783733, "theta": 1.501233, "x":691210.450367, "y":3118478.697136, "dkappa":0.000014}
{"kappa": 0.000263, "s": 337.187339, "theta": 1.501338, "x":691210.478399, "y":3118479.099767, "dkappa":0.000015}
{"kappa": 0.000269, "s": 337.590930, "theta": 1.501446, "x":691210.506388, "y":3118479.502386, "dkappa":0.000015}
{"kappa": 0.000275, "s": 337.994506, "theta": 1.501555, "x":691210.534332, "y":3118479.904994, "dkappa":0.000015}
{"kappa": 0.000281, "s": 338.398067, "theta": 1.501668, "x":691210.562230, "y":3118480.307589, "dkappa":0.000015}
{"kappa": 0.000287, "s": 338.801613, "theta": 1.501782, "x":691210.590082, "y":3118480.710173, "dkappa":0.000015}
{"kappa": 0.000293, "s": 339.205144, "theta": 1.501899, "x":691210.617885, "y":3118481.112745, "dkappa":0.000015}
{"kappa": 0.000299, "s": 339.608660, "theta": 1.502019, "x":691210.645640, "y":3118481.515305, "dkappa":0.000015}
{"kappa": 0.000305, "s": 340.012160, "theta": 1.502141, "x":691210.673346, "y":3118481.917853, "dkappa":0.000015}
{"kappa": 0.000311, "s": 340.415646, "theta": 1.502265, "x":691210.701001, "y":3118482.320390, "dkappa":0.000015}
{"kappa": 0.000317, "s": 340.819116, "theta": 1.502392, "x":691210.728604, "y":3118482.722915, "dkappa":0.000015}
{"kappa": 0.000323, "s": 341.222571, "theta": 1.502521, "x":691210.756155, "y":3118483.125428, "dkappa":0.000015}
{"kappa": 0.000330, "s": 341.626011, "theta": 1.502653, "x":691210.783652, "y":3118483.527930, "dkappa":0.000015}
{"kappa": 0.000336, "s": 342.029436, "theta": 1.502787, "x":691210.811094, "y":3118483.930420, "dkappa":0.000015}
{"kappa": 0.000342, "s": 342.432845, "theta": 1.502924, "x":691210.838481, "y":3118484.332898, "dkappa":0.000015}
{"kappa": 0.000348, "s": 342.836239, "theta": 1.503063, "x":691210.865812, "y":3118484.735366, "dkappa":0.000015}
{"kappa": 0.000354, "s": 343.239617, "theta": 1.503205, "x":691210.893085, "y":3118485.137821, "dkappa":0.000016}
{"kappa": 0.000361, "s": 343.642981, "theta": 1.503349, "x":691210.920299, "y":3118485.540265, "dkappa":0.000016}
{"kappa": 0.000367, "s": 344.046329, "theta": 1.503496, "x":691210.947454, "y":3118485.942698, "dkappa":0.000016}
{"kappa": 0.000373, "s": 344.449661, "theta": 1.503645, "x":691210.974548, "y":3118486.345119, "dkappa":0.000016}
{"kappa": 0.000380, "s": 344.852978, "theta": 1.503797, "x":691211.001580, "y":3118486.747529, "dkappa":0.000016}
{"kappa": 0.000386, "s": 345.256279, "theta": 1.503951, "x":691211.028550, "y":3118487.149928, "dkappa":0.000016}
{"kappa": 0.000392, "s": 345.659565, "theta": 1.504108, "x":691211.055456, "y":3118487.552316, "dkappa":0.000016}
{"kappa": 0.000399, "s": 346.062836, "theta": 1.504268, "x":691211.082298, "y":3118487.954692, "dkappa":0.000016}
{"kappa": 0.000405, "s": 346.466091, "theta": 1.504430, "x":691211.109073, "y":3118488.357057, "dkappa":0.000016}
{"kappa": 0.000412, "s": 346.869330, "theta": 1.504595, "x":691211.135782, "y":3118488.759411, "dkappa":0.000016}
{"kappa": 0.000418, "s": 347.272554, "theta": 1.504762, "x":691211.162423, "y":3118489.161753, "dkappa":0.000016}
{"kappa": 0.000424, "s": 347.675762, "theta": 1.504932, "x":691211.188996, "y":3118489.564085, "dkappa":0.000016}
{"kappa": 0.000431, "s": 348.078954, "theta": 1.505104, "x":691211.215498, "y":3118489.966405, "dkappa":0.000016}
{"kappa": 0.000437, "s": 348.482131, "theta": 1.505279, "x":691211.241929, "y":3118490.368715, "dkappa":0.000016}
{"kappa": 0.000444, "s": 348.885292, "theta": 1.505457, "x":691211.268289, "y":3118490.771013, "dkappa":0.000016}
{"kappa": 0.000450, "s": 349.288438, "theta": 1.505637, "x":691211.294575, "y":3118491.173301, "dkappa":0.000016}
{"kappa": 0.000457, "s": 349.691568, "theta": 1.505820, "x":691211.320788, "y":3118491.575578, "dkappa":0.000016}
{"kappa": 0.000463, "s": 350.094682, "theta": 1.506005, "x":691211.346925, "y":3118491.977843, "dkappa":0.000016}
{"kappa": 0.000470, "s": 350.497780, "theta": 1.506194, "x":691211.372986, "y":3118492.380098, "dkappa":0.000016}
{"kappa": 0.000477, "s": 350.900862, "theta": 1.506384, "x":691211.398970, "y":3118492.782342, "dkappa":0.000016}
{"kappa": 0.000483, "s": 351.303929, "theta": 1.506578, "x":691211.424875, "y":3118493.184575, "dkappa":0.000016}
{"kappa": 0.000490, "s": 351.706980, "theta": 1.506774, "x":691211.450701, "y":3118493.586798, "dkappa":0.000016}
{"kappa": 0.000496, "s": 352.110015, "theta": 1.506973, "x":691211.476447, "y":3118493.989010, "dkappa":0.000016}
{"kappa": 0.000503, "s": 352.513034, "theta": 1.507174, "x":691211.502112, "y":3118494.391211, "dkappa":0.000016}
{"kappa": 0.000509, "s": 352.916037, "theta": 1.507378, "x":691211.527693, "y":3118494.793402, "dkappa":0.000016}
{"kappa": 0.000516, "s": 353.319024, "theta": 1.507585, "x":691211.553192, "y":3118495.195581, "dkappa":0.000016}
{"kappa": 0.000523, "s": 353.721996, "theta": 1.507794, "x":691211.578605, "y":3118495.597751, "dkappa":0.000016}
{"kappa": 0.000529, "s": 354.124952, "theta": 1.508006, "x":691211.603933, "y":3118495.999910, "dkappa":0.000016}
{"kappa": 0.000536, "s": 354.527891, "theta": 1.508220, "x":691211.629174, "y":3118496.402058, "dkappa":0.000016}
{"kappa": 0.000543, "s": 354.930815, "theta": 1.508438, "x":691211.654327, "y":3118496.804196, "dkappa":0.000016}
{"kappa": 0.000549, "s": 355.333723, "theta": 1.508658, "x":691211.679392, "y":3118497.206323, "dkappa":0.000016}
{"kappa": 0.000556, "s": 355.736615, "theta": 1.508880, "x":691211.704366, "y":3118497.608440, "dkappa":0.000016}
{"kappa": 0.000563, "s": 356.139491, "theta": 1.509106, "x":691211.729249, "y":3118498.010547, "dkappa":0.000016}
{"kappa": 0.000569, "s": 356.542351, "theta": 1.509334, "x":691211.754041, "y":3118498.412644, "dkappa":0.000016}
{"kappa": 0.000576, "s": 356.945195, "theta": 1.509564, "x":691211.778739, "y":3118498.814730, "dkappa":0.000017}
{"kappa": 0.000582, "s": 357.348023, "theta": 1.509797, "x":691211.803342, "y":3118499.216806, "dkappa":0.000017}
{"kappa": 0.000589, "s": 357.750835, "theta": 1.510033, "x":691211.827851, "y":3118499.618872, "dkappa":0.000017}
{"kappa": 0.000596, "s": 358.153631, "theta": 1.510272, "x":691211.852263, "y":3118500.020927, "dkappa":0.000017}
{"kappa": 0.000602, "s": 358.556411, "theta": 1.510513, "x":691211.876578, "y":3118500.422973, "dkappa":0.000017}
{"kappa": 0.000609, "s": 358.959175, "theta": 1.510757, "x":691211.900794, "y":3118500.825008, "dkappa":0.000017}
{"kappa": 0.000616, "s": 359.361923, "theta": 1.511004, "x":691211.924910, "y":3118501.227033, "dkappa":0.000017}
{"kappa": 0.000622, "s": 359.764655, "theta": 1.511253, "x":691211.948926, "y":3118501.629049, "dkappa":0.000016}
{"kappa": 0.000629, "s": 360.167371, "theta": 1.511505, "x":691211.972841, "y":3118502.031054, "dkappa":0.000016}
{"kappa": 0.000636, "s": 360.570071, "theta": 1.511760, "x":691211.996652, "y":3118502.433050, "dkappa":0.000016}
{"kappa": 0.000642, "s": 360.972755, "theta": 1.512017, "x":691212.020360, "y":3118502.835035, "dkappa":0.000016}
{"kappa": 0.000649, "s": 361.375423, "theta": 1.512277, "x":691212.043962, "y":3118503.237011, "dkappa":0.000016}
{"kappa": 0.000656, "s": 361.778076, "theta": 1.512540, "x":691212.067459, "y":3118503.638977, "dkappa":0.000016}
{"kappa": 0.000662, "s": 362.180712, "theta": 1.512805, "x":691212.090849, "y":3118504.040933, "dkappa":0.000016}
{"kappa": 0.000669, "s": 362.583332, "theta": 1.513073, "x":691212.114130, "y":3118504.442880, "dkappa":0.000016}
{"kappa": 0.000675, "s": 362.985936, "theta": 1.513343, "x":691212.137303, "y":3118504.844816, "dkappa":0.000016}
{"kappa": 0.000682, "s": 363.388524, "theta": 1.513617, "x":691212.160365, "y":3118505.246743, "dkappa":0.000016}
{"kappa": 0.000689, "s": 363.791096, "theta": 1.513893, "x":691212.183316, "y":3118505.648661, "dkappa":0.000016}
{"kappa": 0.000695, "s": 364.193652, "theta": 1.514171, "x":691212.206155, "y":3118506.050569, "dkappa":0.000016}
{"kappa": 0.000702, "s": 364.596193, "theta": 1.514452, "x":691212.228880, "y":3118506.452467, "dkappa":0.000016}
{"kappa": 0.000708, "s": 364.998717, "theta": 1.514736, "x":691212.251491, "y":3118506.854356, "dkappa":0.000016}
{"kappa": 0.000715, "s": 365.401226, "theta": 1.515022, "x":691212.273987, "y":3118507.256235, "dkappa":0.000016}
{"kappa": 0.000721, "s": 365.803718, "theta": 1.515311, "x":691212.296366, "y":3118507.658105, "dkappa":0.000016}
{"kappa": 0.000728, "s": 366.206195, "theta": 1.515603, "x":691212.318627, "y":3118508.059965, "dkappa":0.000016}
{"kappa": 0.000734, "s": 366.608655, "theta": 1.515897, "x":691212.340770, "y":3118508.461816, "dkappa":0.000016}
{"kappa": 0.000741, "s": 367.011100, "theta": 1.516194, "x":691212.362793, "y":3118508.863658, "dkappa":0.000016}
{"kappa": 0.000747, "s": 367.413529, "theta": 1.516494, "x":691212.384696, "y":3118509.265491, "dkappa":0.000016}
{"kappa": 0.000754, "s": 367.815942, "theta": 1.516796, "x":691212.406477, "y":3118509.667314, "dkappa":0.000016}
{"kappa": 0.000760, "s": 368.218340, "theta": 1.517100, "x":691212.428135, "y":3118510.069128, "dkappa":0.000016}
{"kappa": 0.000767, "s": 368.620721, "theta": 1.517407, "x":691212.449669, "y":3118510.470933, "dkappa":0.000016}
{"kappa": 0.000773, "s": 369.023087, "theta": 1.517717, "x":691212.471079, "y":3118510.872729, "dkappa":0.000016}
{"kappa": 0.000780, "s": 369.425437, "theta": 1.518030, "x":691212.492362, "y":3118511.274516, "dkappa":0.000016}
{"kappa": 0.000786, "s": 369.827772, "theta": 1.518345, "x":691212.513519, "y":3118511.676293, "dkappa":0.000016}
{"kappa": 0.000792, "s": 370.230090, "theta": 1.518662, "x":691212.534548, "y":3118512.078062, "dkappa":0.000016}
{"kappa": 0.000799, "s": 370.632393, "theta": 1.518982, "x":691212.555448, "y":3118512.479822, "dkappa":0.000016}
{"kappa": 0.000805, "s": 371.034681, "theta": 1.519305, "x":691212.576218, "y":3118512.881573, "dkappa":0.000016}
{"kappa": 0.000811, "s": 371.436952, "theta": 1.519630, "x":691212.596858, "y":3118513.283314, "dkappa":0.000016}
{"kappa": 0.000818, "s": 371.839208, "theta": 1.519957, "x":691212.617365, "y":3118513.685047, "dkappa":0.000016}
{"kappa": 0.000824, "s": 372.241449, "theta": 1.520288, "x":691212.637739, "y":3118514.086772, "dkappa":0.000016}
{"kappa": 0.000830, "s": 372.643674, "theta": 1.520620, "x":691212.657980, "y":3118514.488487, "dkappa":0.000016}
{"kappa": 0.000836, "s": 373.045883, "theta": 1.520955, "x":691212.678086, "y":3118514.890194, "dkappa":0.000015}
{"kappa": 0.000843, "s": 373.448078, "theta": 1.521293, "x":691212.698055, "y":3118515.291892, "dkappa":0.000015}
{"kappa": 0.000849, "s": 373.850256, "theta": 1.521633, "x":691212.717888, "y":3118515.693581, "dkappa":0.000015}
{"kappa": 0.000855, "s": 374.252419, "theta": 1.521976, "x":691212.737583, "y":3118516.095262, "dkappa":0.000015}
{"kappa": 0.000861, "s": 374.654567, "theta": 1.522321, "x":691212.757139, "y":3118516.496934, "dkappa":0.000015}
{"kappa": 0.000867, "s": 375.056700, "theta": 1.522668, "x":691212.776555, "y":3118516.898598, "dkappa":0.000015}
{"kappa": 0.000873, "s": 375.458817, "theta": 1.523018, "x":691212.795830, "y":3118517.300253, "dkappa":0.000015}
{"kappa": 0.000879, "s": 375.860919, "theta": 1.523371, "x":691212.814964, "y":3118517.701899, "dkappa":0.000015}
{"kappa": 0.000885, "s": 376.263006, "theta": 1.523726, "x":691212.833955, "y":3118518.103537, "dkappa":0.000015}
{"kappa": 0.000891, "s": 376.665078, "theta": 1.524083, "x":691212.852802, "y":3118518.505167, "dkappa":0.000015}
{"kappa": 0.000897, "s": 377.067135, "theta": 1.524442, "x":691212.871505, "y":3118518.906789, "dkappa":0.000015}
{"kappa": 0.000903, "s": 377.469176, "theta": 1.524804, "x":691212.890062, "y":3118519.308402, "dkappa":0.000015}
{"kappa": 0.000909, "s": 377.871203, "theta": 1.525169, "x":691212.908472, "y":3118519.710007, "dkappa":0.000015}
{"kappa": 0.000915, "s": 378.273215, "theta": 1.525535, "x":691212.926735, "y":3118520.111603, "dkappa":0.000015}
{"kappa": 0.000921, "s": 378.675211, "theta": 1.525904, "x":691212.944849, "y":3118520.513192, "dkappa":0.000015}
{"kappa": 0.000927, "s": 379.077193, "theta": 1.526276, "x":691212.962815, "y":3118520.914772, "dkappa":0.000014}
{"kappa": 0.000933, "s": 379.479160, "theta": 1.526650, "x":691212.980629, "y":3118521.316344, "dkappa":0.000014}
{"kappa": 0.000938, "s": 379.881113, "theta": 1.527026, "x":691212.998293, "y":3118521.717908, "dkappa":0.000014}
{"kappa": 0.000944, "s": 380.283050, "theta": 1.527404, "x":691213.015805, "y":3118522.119464, "dkappa":0.000014}
{"kappa": 0.000950, "s": 380.684973, "theta": 1.527784, "x":691213.033163, "y":3118522.521012, "dkappa":0.000014}
{"kappa": 0.000955, "s": 381.086882, "theta": 1.528167, "x":691213.050368, "y":3118522.922552, "dkappa":0.000014}
{"kappa": 0.000961, "s": 381.488775, "theta": 1.528552, "x":691213.067418, "y":3118523.324084, "dkappa":0.000014}
{"kappa": 0.000967, "s": 381.890655, "theta": 1.528940, "x":691213.084312, "y":3118523.725608, "dkappa":0.000014}
{"kappa": 0.000972, "s": 382.292520, "theta": 1.529329, "x":691213.101050, "y":3118524.127124, "dkappa":0.000014}
{"kappa": 0.000978, "s": 382.694370, "theta": 1.529721, "x":691213.117630, "y":3118524.528633, "dkappa":0.000014}
{"kappa": 0.000983, "s": 383.096207, "theta": 1.530115, "x":691213.134052, "y":3118524.930134, "dkappa":0.000014}
{"kappa": 0.000989, "s": 383.498029, "theta": 1.530511, "x":691213.150314, "y":3118525.331626, "dkappa":0.000013}
{"kappa": 0.000994, "s": 383.899837, "theta": 1.530910, "x":691213.166417, "y":3118525.733112, "dkappa":0.000013}
{"kappa": 0.000999, "s": 384.301631, "theta": 1.531310, "x":691213.182359, "y":3118526.134589, "dkappa":0.000013}
{"kappa": 0.001005, "s": 384.703411, "theta": 1.531712, "x":691213.198139, "y":3118526.536059, "dkappa":0.000013}
{"kappa": 0.001010, "s": 385.105177, "theta": 1.532117, "x":691213.213756, "y":3118526.937521, "dkappa":0.000013}
{"kappa": 0.001015, "s": 385.506929, "theta": 1.532524, "x":691213.229210, "y":3118527.338976, "dkappa":0.000013}
{"kappa": 0.001020, "s": 385.908667, "theta": 1.532933, "x":691213.244500, "y":3118527.740423, "dkappa":0.000013}
{"kappa": 0.001025, "s": 386.310392, "theta": 1.533344, "x":691213.259625, "y":3118528.141863, "dkappa":0.000013}
{"kappa": 0.001030, "s": 386.712103, "theta": 1.533757, "x":691213.274583, "y":3118528.543295, "dkappa":0.000013}
{"kappa": 0.001035, "s": 387.113800, "theta": 1.534172, "x":691213.289376, "y":3118528.944720, "dkappa":0.000012}
{"kappa": 0.001040, "s": 387.515484, "theta": 1.534588, "x":691213.304000, "y":3118529.346138, "dkappa":0.000012}
{"kappa": 0.001045, "s": 387.917154, "theta": 1.535007, "x":691213.318457, "y":3118529.747548, "dkappa":0.000012}
{"kappa": 0.001050, "s": 388.318811, "theta": 1.535428, "x":691213.332744, "y":3118530.148951, "dkappa":0.000012}
{"kappa": 0.001055, "s": 388.720455, "theta": 1.535851, "x":691213.346862, "y":3118530.550346, "dkappa":0.000012}
{"kappa": 0.001060, "s": 389.122085, "theta": 1.536276, "x":691213.360809, "y":3118530.951735, "dkappa":0.000012}
{"kappa": 0.001065, "s": 389.523703, "theta": 1.536702, "x":691213.374585, "y":3118531.353116, "dkappa":0.000012}
{"kappa": 0.001069, "s": 389.925307, "theta": 1.537131, "x":691213.388188, "y":3118531.754490, "dkappa":0.000012}
{"kappa": 0.001074, "s": 390.326899, "theta": 1.537561, "x":691213.401619, "y":3118532.155857, "dkappa":0.000012}
{"kappa": 0.001079, "s": 390.728477, "theta": 1.537994, "x":691213.414876, "y":3118532.557216, "dkappa":0.000011}
{"kappa": 0.001083, "s": 391.130043, "theta": 1.538428, "x":691213.427959, "y":3118532.958569, "dkappa":0.000011}
{"kappa": 0.001088, "s": 391.531597, "theta": 1.538864, "x":691213.440867, "y":3118533.359915, "dkappa":0.000011}
{"kappa": 0.001092, "s": 391.933137, "theta": 1.539301, "x":691213.453600, "y":3118533.761253, "dkappa":0.000011}
{"kappa": 0.001096, "s": 392.334665, "theta": 1.539741, "x":691213.466156, "y":3118534.162585, "dkappa":0.000011}
{"kappa": 0.001101, "s": 392.736181, "theta": 1.540182, "x":691213.478535, "y":3118534.563910, "dkappa":0.000011}
{"kappa": 0.001105, "s": 393.137684, "theta": 1.540625, "x":691213.490736, "y":3118534.965228, "dkappa":0.000011}
{"kappa": 0.001109, "s": 393.539176, "theta": 1.541069, "x":691213.502758, "y":3118535.366539, "dkappa":0.000010}
{"kappa": 0.001113, "s": 393.940655, "theta": 1.541515, "x":691213.514602, "y":3118535.767843, "dkappa":0.000010}
{"kappa": 0.001118, "s": 394.342122, "theta": 1.541963, "x":691213.526266, "y":3118536.169141, "dkappa":0.000010}
{"kappa": 0.001122, "s": 394.743577, "theta": 1.542413, "x":691213.537749, "y":3118536.570432, "dkappa":0.000010}
{"kappa": 0.001126, "s": 395.145020, "theta": 1.542864, "x":691213.549052, "y":3118536.971716, "dkappa":0.000010}
{"kappa": 0.001129, "s": 395.546451, "theta": 1.543316, "x":691213.560173, "y":3118537.372993, "dkappa":0.000010}
{"kappa": 0.001133, "s": 395.947871, "theta": 1.543770, "x":691213.571111, "y":3118537.774264, "dkappa":0.000010}
{"kappa": 0.001137, "s": 396.349280, "theta": 1.544226, "x":691213.581867, "y":3118538.175528, "dkappa":0.000009}
{"kappa": 0.001141, "s": 396.750676, "theta": 1.544683, "x":691213.592440, "y":3118538.576786, "dkappa":0.000009}
{"kappa": 0.001144, "s": 397.152062, "theta": 1.545142, "x":691213.602828, "y":3118538.978037, "dkappa":0.000009}
{"kappa": 0.001148, "s": 397.553436, "theta": 1.545602, "x":691213.613032, "y":3118539.379281, "dkappa":0.000009}
{"kappa": 0.001152, "s": 397.954799, "theta": 1.546063, "x":691213.623050, "y":3118539.780520, "dkappa":0.000009}
{"kappa": 0.001155, "s": 398.356152, "theta": 1.546526, "x":691213.632883, "y":3118540.181751, "dkappa":0.000009}
{"kappa": 0.001158, "s": 398.757493, "theta": 1.546990, "x":691213.642529, "y":3118540.582977, "dkappa":0.000008}
{"kappa": 0.001512, "s": 399.158823, "theta": 1.547456, "x":691213.651989, "y":3118540.984195, "dkappa":-0.000000}
{"kappa": 0.001511, "s": 399.556255, "theta": 1.548057, "x":691213.661145, "y":3118541.381521, "dkappa":-0.000001}
{"kappa": 0.001511, "s": 399.953699, "theta": 1.548657, "x":691213.670063, "y":3118541.778865, "dkappa":-0.000001}
{"kappa": 0.001511, "s": 400.351156, "theta": 1.549258, "x":691213.678742, "y":3118542.176228, "dkappa":-0.000001}
{"kappa": 0.001510, "s": 400.748626, "theta": 1.549858, "x":691213.687183, "y":3118542.573608, "dkappa":-0.000001}
{"kappa": 0.001510, "s": 401.146109, "theta": 1.550458, "x":691213.695386, "y":3118542.971006, "dkappa":-0.000002}
{"kappa": 0.001509, "s": 401.543605, "theta": 1.551058, "x":691213.703350, "y":3118543.368423, "dkappa":-0.000002}
{"kappa": 0.001508, "s": 401.941115, "theta": 1.551658, "x":691213.711077, "y":3118543.765857, "dkappa":-0.000002}
{"kappa": 0.001507, "s": 402.338638, "theta": 1.552257, "x":691213.718565, "y":3118544.163310, "dkappa":-0.000002}
{"kappa": 0.001506, "s": 402.736175, "theta": 1.552856, "x":691213.725816, "y":3118544.560781, "dkappa":-0.000003}
{"kappa": 0.001505, "s": 403.133726, "theta": 1.553454, "x":691213.732829, "y":3118544.958270, "dkappa":-0.000003}
{"kappa": 0.001504, "s": 403.531290, "theta": 1.554053, "x":691213.739604, "y":3118545.355777, "dkappa":-0.000003}
{"kappa": 0.001502, "s": 403.928869, "theta": 1.554650, "x":691213.746142, "y":3118545.753302, "dkappa":-0.000003}
{"kappa": 0.001501, "s": 404.326463, "theta": 1.555247, "x":691213.752443, "y":3118546.150845, "dkappa":-0.000004}
{"kappa": 0.001500, "s": 404.724070, "theta": 1.555844, "x":691213.758506, "y":3118546.548407, "dkappa":-0.000004}
{"kappa": 0.001498, "s": 405.121693, "theta": 1.556440, "x":691213.764333, "y":3118546.945986, "dkappa":-0.000004}
{"kappa": 0.001496, "s": 405.519330, "theta": 1.557035, "x":691213.769923, "y":3118547.343584, "dkappa":-0.000004}
{"kappa": 0.001495, "s": 405.916981, "theta": 1.557630, "x":691213.775277, "y":3118547.741200, "dkappa":-0.000005}
{"kappa": 0.001493, "s": 406.314648, "theta": 1.558224, "x":691213.780394, "y":3118548.138834, "dkappa":-0.000005}
{"kappa": 0.001491, "s": 406.712330, "theta": 1.558817, "x":691213.785276, "y":3118548.536486, "dkappa":-0.000005}
{"kappa": 0.001489, "s": 407.110028, "theta": 1.559409, "x":691213.789922, "y":3118548.934156, "dkappa":-0.000005}
{"kappa": 0.001487, "s": 407.507741, "theta": 1.560001, "x":691213.794333, "y":3118549.331845, "dkappa":-0.000005}
{"kappa": 0.001484, "s": 407.905469, "theta": 1.560592, "x":691213.798509, "y":3118549.729551, "dkappa":-0.000006}
{"kappa": 0.001482, "s": 408.303214, "theta": 1.561182, "x":691213.802451, "y":3118550.127276, "dkappa":-0.000006}
{"kappa": 0.001480, "s": 408.700974, "theta": 1.561771, "x":691213.806158, "y":3118550.525019, "dkappa":-0.000006}
{"kappa": 0.001477, "s": 409.098750, "theta": 1.562359, "x":691213.809631, "y":3118550.922780, "dkappa":-0.000006}
{"kappa": 0.001475, "s": 409.496543, "theta": 1.562946, "x":691213.812870, "y":3118551.320560, "dkappa":-0.000007}
{"kappa": 0.001472, "s": 409.894351, "theta": 1.563532, "x":691213.815877, "y":3118551.718357, "dkappa":-0.000007}
{"kappa": 0.001469, "s": 410.292177, "theta": 1.564117, "x":691213.818650, "y":3118552.116173, "dkappa":-0.000007}
{"kappa": 0.001466, "s": 410.690019, "theta": 1.564701, "x":691213.821191, "y":3118552.514007, "dkappa":-0.000007}
{"kappa": 0.001464, "s": 411.087878, "theta": 1.565284, "x":691213.823500, "y":3118552.911859, "dkappa":-0.000007}
{"kappa": 0.001461, "s": 411.485753, "theta": 1.565866, "x":691213.825577, "y":3118553.309729, "dkappa":-0.000008}
{"kappa": 0.001457, "s": 411.883646, "theta": 1.566446, "x":691213.827424, "y":3118553.707618, "dkappa":-0.000008}
{"kappa": 0.001454, "s": 412.281556, "theta": 1.567026, "x":691213.829039, "y":3118554.105524, "dkappa":-0.000008}
{"kappa": 0.001451, "s": 412.679484, "theta": 1.567604, "x":691213.830425, "y":3118554.503449, "dkappa":-0.000008}
{"kappa": 0.001448, "s": 413.077429, "theta": 1.568181, "x":691213.831580, "y":3118554.901393, "dkappa":-0.000008}
{"kappa": 0.001444, "s": 413.475391, "theta": 1.568756, "x":691213.832507, "y":3118555.299354, "dkappa":-0.000009}
{"kappa": 0.001441, "s": 413.873371, "theta": 1.569330, "x":691213.833204, "y":3118555.697334, "dkappa":-0.000009}
{"kappa": 0.001437, "s": 414.271370, "theta": 1.569903, "x":691213.833674, "y":3118556.095332, "dkappa":-0.000009}
{"kappa": 0.001434, "s": 414.669386, "theta": 1.570475, "x":691213.833916, "y":3118556.493348, "dkappa":-0.000009}
{"kappa": 0.001430, "s": 415.067421, "theta": 1.571045, "x":691213.833930, "y":3118556.891383, "dkappa":-0.000009}
{"kappa": 0.001426, "s": 415.465474, "theta": 1.571613, "x":691213.833718, "y":3118557.289436, "dkappa":-0.000010}
{"kappa": 0.001423, "s": 415.863545, "theta": 1.572180, "x":691213.833280, "y":3118557.687507, "dkappa":-0.000010}
{"kappa": 0.001419, "s": 416.261635, "theta": 1.572746, "x":691213.832617, "y":3118558.085596, "dkappa":-0.000010}
{"kappa": 0.001415, "s": 416.659744, "theta": 1.573310, "x":691213.831728, "y":3118558.483704, "dkappa":-0.000010}
{"kappa": 0.001411, "s": 417.057871, "theta": 1.573872, "x":691213.830616, "y":3118558.881830, "dkappa":-0.000010}
{"kappa": 0.001407, "s": 417.456018, "theta": 1.574433, "x":691213.829279, "y":3118559.279975, "dkappa":-0.000010}
{"kappa": 0.001402, "s": 417.854184, "theta": 1.574992, "x":691213.827720, "y":3118559.678137, "dkappa":-0.000011}
{"kappa": 0.001398, "s": 418.252369, "theta": 1.575550, "x":691213.825938, "y":3118560.076318, "dkappa":-0.000011}
{"kappa": 0.001394, "s": 418.650574, "theta": 1.576106, "x":691213.823935, "y":3118560.474518, "dkappa":-0.000011}
{"kappa": 0.001389, "s": 419.048798, "theta": 1.576660, "x":691213.821710, "y":3118560.872736, "dkappa":-0.000011}
{"kappa": 0.001385, "s": 419.447042, "theta": 1.577212, "x":691213.819265, "y":3118561.270972, "dkappa":-0.000011}
{"kappa": 0.001380, "s": 419.845305, "theta": 1.577763, "x":691213.816600, "y":3118561.669227, "dkappa":-0.000011}
{"kappa": 0.001376, "s": 420.243589, "theta": 1.578312, "x":691213.813716, "y":3118562.067500, "dkappa":-0.000012}
{"kappa": 0.001371, "s": 420.641892, "theta": 1.578859, "x":691213.810613, "y":3118562.465791, "dkappa":-0.000012}
{"kappa": 0.001367, "s": 421.040216, "theta": 1.579404, "x":691213.807293, "y":3118562.864101, "dkappa":-0.000012}
{"kappa": 0.001362, "s": 421.438560, "theta": 1.579948, "x":691213.803756, "y":3118563.262430, "dkappa":-0.000012}
{"kappa": 0.001357, "s": 421.836925, "theta": 1.580489, "x":691213.800003, "y":3118563.660776, "dkappa":-0.000012}
{"kappa": 0.001352, "s": 422.235310, "theta": 1.581029, "x":691213.796034, "y":3118564.059142, "dkappa":-0.000012}
{"kappa": 0.001347, "s": 422.633715, "theta": 1.581566, "x":691213.791850, "y":3118564.457525, "dkappa":-0.000013}
{"kappa": 0.001342, "s": 423.032142, "theta": 1.582102, "x":691213.787452, "y":3118564.855928, "dkappa":-0.000013}
{"kappa": 0.001337, "s": 423.430589, "theta": 1.582636, "x":691213.782841, "y":3118565.254348, "dkappa":-0.000013}
{"kappa": 0.001332, "s": 423.829058, "theta": 1.583167, "x":691213.778018, "y":3118565.652788, "dkappa":-0.000013}
{"kappa": 0.001327, "s": 424.227547, "theta": 1.583697, "x":691213.772983, "y":3118566.051245, "dkappa":-0.000013}
{"kappa": 0.001321, "s": 424.626058, "theta": 1.584225, "x":691213.767736, "y":3118566.449721, "dkappa":-0.000013}
{"kappa": 0.001316, "s": 425.024590, "theta": 1.584750, "x":691213.762280, "y":3118566.848216, "dkappa":-0.000013}
{"kappa": 0.001311, "s": 425.423144, "theta": 1.585274, "x":691213.756615, "y":3118567.246730, "dkappa":-0.000014}
{"kappa": 0.001305, "s": 425.821719, "theta": 1.585795, "x":691213.750741, "y":3118567.645262, "dkappa":-0.000014}
{"kappa": 0.001300, "s": 426.220316, "theta": 1.586314, "x":691213.744659, "y":3118568.043812, "dkappa":-0.000014}
{"kappa": 0.001294, "s": 426.618934, "theta": 1.586831, "x":691213.738370, "y":3118568.442381, "dkappa":-0.000014}
{"kappa": 0.001289, "s": 427.017575, "theta": 1.587346, "x":691213.731876, "y":3118568.840969, "dkappa":-0.000014}
{"kappa": 0.001283, "s": 427.416238, "theta": 1.587858, "x":691213.725176, "y":3118569.239575, "dkappa":-0.000014}
{"kappa": 0.001277, "s": 427.814922, "theta": 1.588369, "x":691213.718272, "y":3118569.638200, "dkappa":-0.000014}
{"kappa": 0.001271, "s": 428.213629, "theta": 1.588877, "x":691213.711165, "y":3118570.036844, "dkappa":-0.000015}
{"kappa": 0.001266, "s": 428.612358, "theta": 1.589383, "x":691213.703855, "y":3118570.435506, "dkappa":-0.000015}
{"kappa": 0.001260, "s": 429.011110, "theta": 1.589886, "x":691213.696344, "y":3118570.834187, "dkappa":-0.000015}
{"kappa": 0.001254, "s": 429.409884, "theta": 1.590387, "x":691213.688632, "y":3118571.232886, "dkappa":-0.000015}
{"kappa": 0.001248, "s": 429.808681, "theta": 1.590886, "x":691213.680720, "y":3118571.631604, "dkappa":-0.000015}
{"kappa": 0.001242, "s": 430.207500, "theta": 1.591383, "x":691213.672609, "y":3118572.030341, "dkappa":-0.000015}
{"kappa": 0.001236, "s": 430.606343, "theta": 1.591877, "x":691213.664301, "y":3118572.429097, "dkappa":-0.000015}
{"kappa": 0.001230, "s": 431.005208, "theta": 1.592368, "x":691213.655795, "y":3118572.827871, "dkappa":-0.000015}
{"kappa": 0.001224, "s": 431.404096, "theta": 1.592858, "x":691213.647093, "y":3118573.226665, "dkappa":-0.000015}
{"kappa": 0.001217, "s": 431.803007, "theta": 1.593345, "x":691213.638196, "y":3118573.625477, "dkappa":-0.000016}
{"kappa": 0.001211, "s": 432.201941, "theta": 1.593829, "x":691213.629105, "y":3118574.024307, "dkappa":-0.000016}
{"kappa": 0.001205, "s": 432.600899, "theta": 1.594311, "x":691213.619820, "y":3118574.423157, "dkappa":-0.000016}
{"kappa": 0.001198, "s": 432.999880, "theta": 1.594790, "x":691213.610344, "y":3118574.822025, "dkappa":-0.000016}
{"kappa": 0.001192, "s": 433.398884, "theta": 1.595267, "x":691213.600676, "y":3118575.220912, "dkappa":-0.000016}
{"kappa": 0.001186, "s": 433.797911, "theta": 1.595742, "x":691213.590817, "y":3118575.619818, "dkappa":-0.000016}
{"kappa": 0.001179, "s": 434.196963, "theta": 1.596214, "x":691213.580770, "y":3118576.018743, "dkappa":-0.000016}
{"kappa": 0.001173, "s": 434.596038, "theta": 1.596683, "x":691213.570534, "y":3118576.417686, "dkappa":-0.000016}
{"kappa": 0.001166, "s": 434.995136, "theta": 1.597150, "x":691213.560110, "y":3118576.816649, "dkappa":-0.000016}
{"kappa": 0.001159, "s": 435.394259, "theta": 1.597614, "x":691213.549501, "y":3118577.215630, "dkappa":-0.000017}
{"kappa": 0.001153, "s": 435.793405, "theta": 1.598075, "x":691213.538706, "y":3118577.614631, "dkappa":-0.000017}
{"kappa": 0.001146, "s": 436.192575, "theta": 1.598534, "x":691213.527727, "y":3118578.013650, "dkappa":-0.000017}
{"kappa": 0.001139, "s": 436.591770, "theta": 1.598990, "x":691213.516564, "y":3118578.412688, "dkappa":-0.000017}
{"kappa": 0.001133, "s": 436.990988, "theta": 1.599444, "x":691213.505220, "y":3118578.811745, "dkappa":-0.000017}
{"kappa": 0.001126, "s": 437.390230, "theta": 1.599895, "x":691213.493694, "y":3118579.210821, "dkappa":-0.000017}
{"kappa": 0.001119, "s": 437.789497, "theta": 1.600343, "x":691213.481988, "y":3118579.609916, "dkappa":-0.000017}
{"kappa": 0.001112, "s": 438.188788, "theta": 1.600788, "x":691213.470103, "y":3118580.009030, "dkappa":-0.000017}
{"kappa": 0.001105, "s": 438.588103, "theta": 1.601231, "x":691213.458041, "y":3118580.408163, "dkappa":-0.000017}
{"kappa": 0.001098, "s": 438.987443, "theta": 1.601671, "x":691213.445801, "y":3118580.807315, "dkappa":-0.000017}
{"kappa": 0.001091, "s": 439.386807, "theta": 1.602108, "x":691213.433385, "y":3118581.206486, "dkappa":-0.000018}
{"kappa": 0.001084, "s": 439.786196, "theta": 1.602542, "x":691213.420795, "y":3118581.605676, "dkappa":-0.000018}
{"kappa": 0.001077, "s": 440.185609, "theta": 1.602974, "x":691213.408031, "y":3118582.004886, "dkappa":-0.000018}
{"kappa": 0.001070, "s": 440.585047, "theta": 1.603403, "x":691213.395094, "y":3118582.404114, "dkappa":-0.000018}
{"kappa": 0.001063, "s": 440.984509, "theta": 1.603829, "x":691213.381986, "y":3118582.803361, "dkappa":-0.000018}
{"kappa": 0.001056, "s": 441.383996, "theta": 1.604252, "x":691213.368708, "y":3118583.202628, "dkappa":-0.000018}
{"kappa": 0.001049, "s": 441.783508, "theta": 1.604673, "x":691213.355261, "y":3118583.601913, "dkappa":-0.000018}
{"kappa": 0.001041, "s": 442.183045, "theta": 1.605090, "x":691213.341645, "y":3118584.001218, "dkappa":-0.000018}
{"kappa": 0.001034, "s": 442.582607, "theta": 1.605505, "x":691213.327862, "y":3118584.400542, "dkappa":-0.000018}
{"kappa": 0.001027, "s": 442.982194, "theta": 1.605916, "x":691213.313914, "y":3118584.799885, "dkappa":-0.000018}
{"kappa": 0.001019, "s": 443.381805, "theta": 1.606325, "x":691213.299800, "y":3118585.199248, "dkappa":-0.000018}
{"kappa": 0.001012, "s": 443.781442, "theta": 1.606731, "x":691213.285524, "y":3118585.598629, "dkappa":-0.000018}
{"kappa": 0.001005, "s": 444.181103, "theta": 1.607134, "x":691213.271084, "y":3118585.998030, "dkappa":-0.000019}
{"kappa": 0.000997, "s": 444.580790, "theta": 1.607534, "x":691213.256484, "y":3118586.397450, "dkappa":-0.000019}
{"kappa": 0.000990, "s": 444.980502, "theta": 1.607931, "x":691213.241723, "y":3118586.796889, "dkappa":-0.000019}
{"kappa": 0.000982, "s": 445.380239, "theta": 1.608326, "x":691213.226803, "y":3118587.196348, "dkappa":-0.000019}
{"kappa": 0.000975, "s": 445.780001, "theta": 1.608717, "x":691213.211726, "y":3118587.595825, "dkappa":-0.000019}
{"kappa": 0.000967, "s": 446.179789, "theta": 1.609105, "x":691213.196492, "y":3118587.995322, "dkappa":-0.000019}
{"kappa": 0.000960, "s": 446.579601, "theta": 1.609490, "x":691213.181102, "y":3118588.394839, "dkappa":-0.000019}
{"kappa": 0.000952, "s": 446.979439, "theta": 1.609873, "x":691213.165558, "y":3118588.794375, "dkappa":-0.000019}
{"kappa": 0.000945, "s": 447.379303, "theta": 1.610252, "x":691213.149861, "y":3118589.193930, "dkappa":-0.000019}
{"kappa": 0.000937, "s": 447.779191, "theta": 1.610628, "x":691213.134012, "y":3118589.593504, "dkappa":-0.000019}
{"kappa": 0.000929, "s": 448.179105, "theta": 1.611001, "x":691213.118012, "y":3118589.993098, "dkappa":-0.000019}
{"kappa": 0.000922, "s": 448.579045, "theta": 1.611371, "x":691213.101863, "y":3118590.392711, "dkappa":-0.000019}
{"kappa": 0.000914, "s": 448.979010, "theta": 1.611738, "x":691213.085566, "y":3118590.792344, "dkappa":-0.000019}
{"kappa": 0.000906, "s": 449.379000, "theta": 1.612102, "x":691213.069121, "y":3118591.191996, "dkappa":-0.000019}
{"kappa": 0.000898, "s": 449.779016, "theta": 1.612463, "x":691213.052530, "y":3118591.591667, "dkappa":-0.000019}
{"kappa": 0.000891, "s": 450.179057, "theta": 1.612821, "x":691213.035795, "y":3118591.991358, "dkappa":-0.000019}
{"kappa": 0.000883, "s": 450.579124, "theta": 1.613176, "x":691213.018916, "y":3118592.391069, "dkappa":-0.000020}
{"kappa": 0.000875, "s": 450.979216, "theta": 1.613527, "x":691213.001895, "y":3118592.790799, "dkappa":-0.000020}
{"kappa": 0.000867, "s": 451.379333, "theta": 1.613876, "x":691212.984733, "y":3118593.190548, "dkappa":-0.000020}
{"kappa": 0.000859, "s": 451.779477, "theta": 1.614221, "x":691212.967431, "y":3118593.590317, "dkappa":-0.000020}
{"kappa": 0.000851, "s": 452.179646, "theta": 1.614564, "x":691212.949991, "y":3118593.990106, "dkappa":-0.000020}
{"kappa": 0.000843, "s": 452.579840, "theta": 1.614903, "x":691212.932413, "y":3118594.389914, "dkappa":-0.000020}
{"kappa": 0.000836, "s": 452.980060, "theta": 1.615239, "x":691212.914699, "y":3118594.789742, "dkappa":-0.000020}
{"kappa": 0.000828, "s": 453.380305, "theta": 1.615572, "x":691212.896851, "y":3118595.189589, "dkappa":-0.000020}
{"kappa": 0.000820, "s": 453.780576, "theta": 1.615901, "x":691212.878869, "y":3118595.589456, "dkappa":-0.000020}
{"kappa": 0.000812, "s": 454.180873, "theta": 1.616228, "x":691212.860754, "y":3118595.989342, "dkappa":-0.000020}
{"kappa": 0.000804, "s": 454.581195, "theta": 1.616551, "x":691212.842508, "y":3118596.389248, "dkappa":-0.000020}
{"kappa": 0.000796, "s": 454.981543, "theta": 1.616871, "x":691212.824133, "y":3118596.789174, "dkappa":-0.000020}
{"kappa": 0.000788, "s": 455.381916, "theta": 1.617188, "x":691212.805628, "y":3118597.189120, "dkappa":-0.000020}
{"kappa": 0.000780, "s": 455.782315, "theta": 1.617502, "x":691212.786997, "y":3118597.589085, "dkappa":-0.000020}
{"kappa": 0.000772, "s": 456.182739, "theta": 1.617813, "x":691212.768239, "y":3118597.989070, "dkappa":-0.000020}
{"kappa": 0.000763, "s": 456.583189, "theta": 1.618120, "x":691212.749357, "y":3118598.389074, "dkappa":-0.000020}
{"kappa": 0.000755, "s": 456.983665, "theta": 1.618424, "x":691212.730351, "y":3118598.789099, "dkappa":-0.000020}
{"kappa": 0.000747, "s": 457.384166, "theta": 1.618725, "x":691212.711223, "y":3118599.189143, "dkappa":-0.000020}
{"kappa": 0.000739, "s": 457.784693, "theta": 1.619023, "x":691212.691974, "y":3118599.589207, "dkappa":-0.000020}
{"kappa": 0.000731, "s": 458.185245, "theta": 1.619317, "x":691212.672606, "y":3118599.989290, "dkappa":-0.000020}
{"kappa": 0.000723, "s": 458.585822, "theta": 1.619608, "x":691212.653119, "y":3118600.389394, "dkappa":-0.000020}
{"kappa": 0.000715, "s": 458.986426, "theta": 1.619896, "x":691212.633514, "y":3118600.789517, "dkappa":-0.000020}
{"kappa": 0.000707, "s": 459.387054, "theta": 1.620181, "x":691212.613795, "y":3118601.189660, "dkappa":-0.000020}
{"kappa": 0.000698, "s": 459.787709, "theta": 1.620462, "x":691212.593960, "y":3118601.589823, "dkappa":-0.000020}
{"kappa": 0.000690, "s": 460.188388, "theta": 1.620740, "x":691212.574012, "y":3118601.990006, "dkappa":-0.000020}
{"kappa": 0.000682, "s": 460.589093, "theta": 1.621015, "x":691212.553953, "y":3118602.390208, "dkappa":-0.000020}
{"kappa": 0.000674, "s": 460.989824, "theta": 1.621287, "x":691212.533782, "y":3118602.790431, "dkappa":-0.000021}
{"kappa": 0.000665, "s": 461.390580, "theta": 1.621555, "x":691212.513503, "y":3118603.190673, "dkappa":-0.000021}
{"kappa": 0.000657, "s": 461.791361, "theta": 1.621820, "x":691212.493115, "y":3118603.590936, "dkappa":-0.000021}
{"kappa": 0.000649, "s": 462.192168, "theta": 1.622082, "x":691212.472621, "y":3118603.991218, "dkappa":-0.000021}
{"kappa": 0.000641, "s": 462.592999, "theta": 1.622341, "x":691212.452021, "y":3118604.391520, "dkappa":-0.000021}
{"kappa": 0.000632, "s": 462.993857, "theta": 1.622596, "x":691212.431317, "y":3118604.791842, "dkappa":-0.000021}
{"kappa": 0.000624, "s": 463.394739, "theta": 1.622848, "x":691212.410510, "y":3118605.192185, "dkappa":-0.000021}
{"kappa": 0.000616, "s": 463.795647, "theta": 1.623096, "x":691212.389602, "y":3118605.592547, "dkappa":-0.000021}
{"kappa": 0.000608, "s": 464.196580, "theta": 1.623342, "x":691212.368593, "y":3118605.992929, "dkappa":-0.000021}
{"kappa": 0.000599, "s": 464.597538, "theta": 1.623584, "x":691212.347486, "y":3118606.393332, "dkappa":-0.000021}
{"kappa": 0.000591, "s": 464.998522, "theta": 1.623822, "x":691212.326281, "y":3118606.793754, "dkappa":-0.000021}
{"kappa": 0.000583, "s": 465.399530, "theta": 1.624058, "x":691212.304980, "y":3118607.194196, "dkappa":-0.000021}
{"kappa": 0.000574, "s": 465.800564, "theta": 1.624290, "x":691212.283584, "y":3118607.594659, "dkappa":-0.000021}
{"kappa": 0.000566, "s": 466.201623, "theta": 1.624518, "x":691212.262094, "y":3118607.995141, "dkappa":-0.000021}
{"kappa": 0.000558, "s": 466.602707, "theta": 1.624744, "x":691212.240512, "y":3118608.395644, "dkappa":-0.000021}
{"kappa": 0.000550, "s": 467.003815, "theta": 1.624966, "x":691212.218839, "y":3118608.796167, "dkappa":-0.000021}
{"kappa": 0.000541, "s": 467.404949, "theta": 1.625185, "x":691212.197077, "y":3118609.196710, "dkappa":-0.000021}
{"kappa": 0.000533, "s": 467.806108, "theta": 1.625400, "x":691212.175226, "y":3118609.597273, "dkappa":-0.000021}
{"kappa": 0.000525, "s": 468.207291, "theta": 1.625612, "x":691212.153288, "y":3118609.997856, "dkappa":-0.000021}
{"kappa": 0.000516, "s": 468.608500, "theta": 1.625821, "x":691212.131265, "y":3118610.398460, "dkappa":-0.000021}
{"kappa": 0.000508, "s": 469.009733, "theta": 1.626027, "x":691212.109157, "y":3118610.799083, "dkappa":-0.000021}
{"kappa": 0.000500, "s": 469.410991, "theta": 1.626229, "x":691212.086966, "y":3118611.199727, "dkappa":-0.000021}
{"kappa": 0.000491, "s": 469.812274, "theta": 1.626427, "x":691212.064693, "y":3118611.600392, "dkappa":-0.000021}
{"kappa": 0.000483, "s": 470.213581, "theta": 1.626623, "x":691212.042340, "y":3118612.001076, "dkappa":-0.000021}
{"kappa": 0.000475, "s": 470.614913, "theta": 1.626815, "x":691212.019908, "y":3118612.401780, "dkappa":-0.000021}
{"kappa": 0.000466, "s": 471.016270, "theta": 1.627004, "x":691211.997399, "y":3118612.802505, "dkappa":-0.000021}
{"kappa": 0.000458, "s": 471.417651, "theta": 1.627189, "x":691211.974812, "y":3118613.203251, "dkappa":-0.000021}
{"kappa": 0.000450, "s": 471.819056, "theta": 1.627371, "x":691211.952151, "y":3118613.604016, "dkappa":-0.000021}
{"kappa": 0.000441, "s": 472.220487, "theta": 1.627550, "x":691211.929417, "y":3118614.004802, "dkappa":-0.000021}
{"kappa": 0.000433, "s": 472.621941, "theta": 1.627726, "x":691211.906609, "y":3118614.405608, "dkappa":-0.000021}
{"kappa": 0.000425, "s": 473.023420, "theta": 1.627898, "x":691211.883731, "y":3118614.806434, "dkappa":-0.000021}
{"kappa": 0.000416, "s": 473.424923, "theta": 1.628067, "x":691211.860783, "y":3118615.207281, "dkappa":-0.000021}
{"kappa": 0.000408, "s": 473.826450, "theta": 1.628232, "x":691211.837767, "y":3118615.608148, "dkappa":-0.000021}
{"kappa": 0.000400, "s": 474.228002, "theta": 1.628394, "x":691211.814684, "y":3118616.009036, "dkappa":-0.000021}
{"kappa": 0.000391, "s": 474.629578, "theta": 1.628553, "x":691211.791535, "y":3118616.409944, "dkappa":-0.000021}
{"kappa": 0.000383, "s": 475.031178, "theta": 1.628709, "x":691211.768321, "y":3118616.810872, "dkappa":-0.000021}
{"kappa": 0.000375, "s": 475.432802, "theta": 1.628861, "x":691211.745044, "y":3118617.211821, "dkappa":-0.000021}
{"kappa": 0.000366, "s": 475.834449, "theta": 1.629010, "x":691211.721706, "y":3118617.612790, "dkappa":-0.000021}
{"kappa": 0.000358, "s": 476.236121, "theta": 1.629155, "x":691211.698307, "y":3118618.013780, "dkappa":-0.000021}
{"kappa": 0.000350, "s": 476.637817, "theta": 1.629297, "x":691211.674850, "y":3118618.414790, "dkappa":-0.000021}
{"kappa": 0.000342, "s": 477.039536, "theta": 1.629436, "x":691211.651334, "y":3118618.815821, "dkappa":-0.000021}
{"kappa": 0.000333, "s": 477.441280, "theta": 1.629572, "x":691211.627762, "y":3118619.216872, "dkappa":-0.000021}
{"kappa": 0.000325, "s": 477.843047, "theta": 1.629704, "x":691211.604135, "y":3118619.617944, "dkappa":-0.000021}
{"kappa": 0.000317, "s": 478.244837, "theta": 1.629833, "x":691211.580454, "y":3118620.019036, "dkappa":-0.000021}
{"kappa": 0.000309, "s": 478.646651, "theta": 1.629958, "x":691211.556721, "y":3118620.420148, "dkappa":-0.000021}
{"kappa": 0.000300, "s": 479.048489, "theta": 1.630081, "x":691211.532937, "y":3118620.821282, "dkappa":-0.000020}
{"kappa": 0.000292, "s": 479.450350, "theta": 1.630200, "x":691211.509103, "y":3118621.222435, "dkappa":-0.000020}
{"kappa": 0.000284, "s": 479.852235, "theta": 1.630316, "x":691211.485220, "y":3118621.623610, "dkappa":-0.000020}
{"kappa": 0.000276, "s": 480.254143, "theta": 1.630428, "x":691211.461290, "y":3118622.024804, "dkappa":-0.000020}
{"kappa": 0.000267, "s": 480.656074, "theta": 1.630537, "x":691211.437315, "y":3118622.426020, "dkappa":-0.000020}
{"kappa": 0.000259, "s": 481.058028, "theta": 1.630643, "x":691211.413294, "y":3118622.827256, "dkappa":-0.000020}
{"kappa": 0.000251, "s": 481.460006, "theta": 1.630745, "x":691211.389231, "y":3118623.228513, "dkappa":-0.000020}
{"kappa": 0.000243, "s": 481.862006, "theta": 1.630845, "x":691211.365126, "y":3118623.629790, "dkappa":-0.000020}
{"kappa": 0.000235, "s": 482.264030, "theta": 1.630941, "x":691211.340980, "y":3118624.031088, "dkappa":-0.000020}
{"kappa": 0.000227, "s": 482.666077, "theta": 1.631033, "x":691211.316795, "y":3118624.432407, "dkappa":-0.000020}
{"kappa": 0.000218, "s": 483.068146, "theta": 1.631123, "x":691211.292572, "y":3118624.833746, "dkappa":-0.000020}
{"kappa": 0.000210, "s": 483.470239, "theta": 1.631209, "x":691211.268313, "y":3118625.235106, "dkappa":-0.000020}
{"kappa": 0.000202, "s": 483.872354, "theta": 1.631292, "x":691211.244018, "y":3118625.636486, "dkappa":-0.000020}
{"kappa": 0.000194, "s": 484.274492, "theta": 1.631372, "x":691211.219689, "y":3118626.037887, "dkappa":-0.000020}
{"kappa": 0.000186, "s": 484.676652, "theta": 1.631448, "x":691211.195328, "y":3118626.439309, "dkappa":-0.000020}
{"kappa": 0.000178, "s": 485.078835, "theta": 1.631521, "x":691211.170935, "y":3118626.840752, "dkappa":-0.000020}
{"kappa": 0.000170, "s": 485.481041, "theta": 1.631591, "x":691211.146512, "y":3118627.242216, "dkappa":-0.000020}
{"kappa": 0.000162, "s": 485.883269, "theta": 1.631658, "x":691211.122060, "y":3118627.643700, "dkappa":-0.000020}
{"kappa": 0.000154, "s": 486.285519, "theta": 1.631721, "x":691211.097580, "y":3118628.045204, "dkappa":-0.000020}
{"kappa": 0.000146, "s": 486.687792, "theta": 1.631782, "x":691211.073075, "y":3118628.446730, "dkappa":-0.000020}
{"kappa": 0.000138, "s": 487.090087, "theta": 1.631839, "x":691211.048544, "y":3118628.848276, "dkappa":-0.000020}
{"kappa": 0.000130, "s": 487.492404, "theta": 1.631893, "x":691211.023990, "y":3118629.249844, "dkappa":-0.000020}
{"kappa": 0.000122, "s": 487.894743, "theta": 1.631943, "x":691210.999414, "y":3118629.651432, "dkappa":-0.000020}
{"kappa": 0.000114, "s": 488.297105, "theta": 1.631991, "x":691210.974817, "y":3118630.053040, "dkappa":-0.000020}
{"kappa": 0.000106, "s": 488.699488, "theta": 1.632035, "x":691210.950199, "y":3118630.454670, "dkappa":-0.000020}
{"kappa": 0.000098, "s": 489.101893, "theta": 1.632076, "x":691210.925564, "y":3118630.856320, "dkappa":-0.000020}
{"kappa": 0.000090, "s": 489.504320, "theta": 1.632114, "x":691210.900911, "y":3118631.257991, "dkappa":-0.000020}
{"kappa": 0.000082, "s": 489.906769, "theta": 1.632149, "x":691210.876242, "y":3118631.659683, "dkappa":-0.000019}
{"kappa": 0.000075, "s": 490.309239, "theta": 1.632180, "x":691210.851558, "y":3118632.061396, "dkappa":-0.000019}
{"kappa": 0.000067, "s": 490.711731, "theta": 1.632209, "x":691210.826862, "y":3118632.463129, "dkappa":-0.000019}
{"kappa": 0.000059, "s": 491.114245, "theta": 1.632234, "x":691210.802153, "y":3118632.864884, "dkappa":-0.000019}
{"kappa": 0.000051, "s": 491.516780, "theta": 1.632256, "x":691210.777433, "y":3118633.266659, "dkappa":-0.000019}
{"kappa": 0.000043, "s": 491.919336, "theta": 1.632275, "x":691210.752703, "y":3118633.668455, "dkappa":-0.000019}
{"kappa": 0.000036, "s": 492.321914, "theta": 1.632291, "x":691210.727965, "y":3118634.070272, "dkappa":-0.000019}
{"kappa": 0.000028, "s": 492.724513, "theta": 1.632304, "x":691210.703221, "y":3118634.472110, "dkappa":-0.000019}
{"kappa": 0.000020, "s": 493.127133, "theta": 1.632314, "x":691210.678470, "y":3118634.873969, "dkappa":-0.000019}
{"kappa": 0.000013, "s": 493.529775, "theta": 1.632320, "x":691210.653715, "y":3118635.275849, "dkappa":-0.000019}
{"kappa": 0.000005, "s": 493.932437, "theta": 1.632324, "x":691210.628956, "y":3118635.677749, "dkappa":-0.000019}
{"kappa": -0.000003, "s": 494.335121, "theta": 1.632325, "x":691210.604195, "y":3118636.079671, "dkappa":-0.000019}
{"kappa": -0.000010, "s": 494.737825, "theta": 1.632322, "x":691210.579434, "y":3118636.481613, "dkappa":-0.000019}
{"kappa": -0.000018, "s": 495.140550, "theta": 1.632316, "x":691210.554672, "y":3118636.883577, "dkappa":-0.000019}
{"kappa": -0.000025, "s": 495.543296, "theta": 1.632308, "x":691210.529913, "y":3118637.285561, "dkappa":-0.000019}
{"kappa": -0.000033, "s": 495.946063, "theta": 1.632296, "x":691210.505156, "y":3118637.687566, "dkappa":-0.000019}
{"kappa": -0.000040, "s": 496.348850, "theta": 1.632281, "x":691210.480403, "y":3118638.089592, "dkappa":-0.000019}
{"kappa": -0.000048, "s": 496.751658, "theta": 1.632263, "x":691210.455655, "y":3118638.491639, "dkappa":-0.000018}
{"kappa": -0.000055, "s": 497.154487, "theta": 1.632243, "x":691210.430914, "y":3118638.893707, "dkappa":-0.000018}
{"kappa": -0.000063, "s": 497.557336, "theta": 1.632219, "x":691210.406181, "y":3118639.295796, "dkappa":-0.000018}
{"kappa": -0.000070, "s": 497.960205, "theta": 1.632192, "x":691210.381456, "y":3118639.697906, "dkappa":-0.000018}
{"kappa": -0.000077, "s": 498.363095, "theta": 1.632163, "x":691210.356742, "y":3118640.100037, "dkappa":-0.000018}
{"kappa": -0.000085, "s": 498.766004, "theta": 1.632130, "x":691210.332039, "y":3118640.502188, "dkappa":-0.000018}
{"kappa": -0.000092, "s": 499.168934, "theta": 1.632094, "x":691210.307348, "y":3118640.904361, "dkappa":-0.000018}
{"kappa": -0.000425, "s": 499.571884, "theta": 1.632056, "x":691210.282671, "y":3118641.306555, "dkappa":-0.000000}
{"kappa": -0.000425, "s": 499.965382, "theta": 1.631889, "x":691210.258614, "y":3118641.699316, "dkappa":-0.000000}
{"kappa": -0.000425, "s": 500.358838, "theta": 1.631722, "x":691210.234624, "y":3118642.092041, "dkappa":-0.000001}
{"kappa": -0.000425, "s": 500.752254, "theta": 1.631554, "x":691210.210703, "y":3118642.484728, "dkappa":-0.000001}
{"kappa": -0.000426, "s": 501.145627, "theta": 1.631387, "x":691210.186850, "y":3118642.877378, "dkappa":-0.000001}
{"kappa": -0.000426, "s": 501.538960, "theta": 1.631219, "x":691210.163065, "y":3118643.269990, "dkappa":-0.000001}
{"kappa": -0.000426, "s": 501.932251, "theta": 1.631052, "x":691210.139349, "y":3118643.662566, "dkappa":-0.000001}
{"kappa": -0.000427, "s": 502.325500, "theta": 1.630884, "x":691210.115701, "y":3118644.055104, "dkappa":-0.000001}
{"kappa": -0.000427, "s": 502.718709, "theta": 1.630716, "x":691210.092121, "y":3118644.447604, "dkappa":-0.000001}
{"kappa": -0.000428, "s": 503.111876, "theta": 1.630548, "x":691210.068609, "y":3118644.840068, "dkappa":-0.000002}
{"kappa": -0.000429, "s": 503.505001, "theta": 1.630379, "x":691210.045167, "y":3118645.232494, "dkappa":-0.000002}
{"kappa": -0.000429, "s": 503.898086, "theta": 1.630211, "x":691210.021792, "y":3118645.624883, "dkappa":-0.000002}
{"kappa": -0.000430, "s": 504.291129, "theta": 1.630042, "x":691209.998487, "y":3118646.017234, "dkappa":-0.000002}
{"kappa": -0.000431, "s": 504.684131, "theta": 1.629873, "x":691209.975250, "y":3118646.409548, "dkappa":-0.000002}
{"kappa": -0.000432, "s": 505.077091, "theta": 1.629703, "x":691209.952082, "y":3118646.801825, "dkappa":-0.000002}
{"kappa": -0.000433, "s": 505.470010, "theta": 1.629533, "x":691209.928983, "y":3118647.194064, "dkappa":-0.000002}
{"kappa": -0.000433, "s": 505.862887, "theta": 1.629363, "x":691209.905953, "y":3118647.586266, "dkappa":-0.000002}
{"kappa": -0.000434, "s": 506.255723, "theta": 1.629193, "x":691209.882992, "y":3118647.978431, "dkappa":-0.000002}
{"kappa": -0.000435, "s": 506.648518, "theta": 1.629022, "x":691209.860101, "y":3118648.370558, "dkappa":-0.000003}
{"kappa": -0.000436, "s": 507.041271, "theta": 1.628851, "x":691209.837279, "y":3118648.762648, "dkappa":-0.000003}
{"kappa": -0.000437, "s": 507.433983, "theta": 1.628679, "x":691209.814527, "y":3118649.154700, "dkappa":-0.000003}
{"kappa": -0.000439, "s": 507.826653, "theta": 1.628507, "x":691209.791845, "y":3118649.546714, "dkappa":-0.000003}
{"kappa": -0.000440, "s": 508.219282, "theta": 1.628335, "x":691209.769232, "y":3118649.938691, "dkappa":-0.000003}
{"kappa": -0.000441, "s": 508.611869, "theta": 1.628162, "x":691209.746689, "y":3118650.330630, "dkappa":-0.000003}
{"kappa": -0.000442, "s": 509.004414, "theta": 1.627989, "x":691209.724217, "y":3118650.722532, "dkappa":-0.000003}
{"kappa": -0.000443, "s": 509.396918, "theta": 1.627815, "x":691209.701815, "y":3118651.114396, "dkappa":-0.000003}
{"kappa": -0.000445, "s": 509.789380, "theta": 1.627641, "x":691209.679484, "y":3118651.506222, "dkappa":-0.000003}
{"kappa": -0.000446, "s": 510.181801, "theta": 1.627466, "x":691209.657223, "y":3118651.898011, "dkappa":-0.000003}
{"kappa": -0.000447, "s": 510.574179, "theta": 1.627290, "x":691209.635034, "y":3118652.289762, "dkappa":-0.000003}
{"kappa": -0.000449, "s": 510.966516, "theta": 1.627115, "x":691209.612915, "y":3118652.681474, "dkappa":-0.000004}
{"kappa": -0.000450, "s": 511.358811, "theta": 1.626938, "x":691209.590868, "y":3118653.073150, "dkappa":-0.000004}
{"kappa": -0.000452, "s": 511.751065, "theta": 1.626761, "x":691209.568892, "y":3118653.464787, "dkappa":-0.000004}
{"kappa": -0.000453, "s": 512.143276, "theta": 1.626584, "x":691209.546988, "y":3118653.856386, "dkappa":-0.000004}
{"kappa": -0.000455, "s": 512.535445, "theta": 1.626406, "x":691209.525156, "y":3118654.247947, "dkappa":-0.000004}
{"kappa": -0.000456, "s": 512.927573, "theta": 1.626228, "x":691209.503396, "y":3118654.639470, "dkappa":-0.000004}
{"kappa": -0.000458, "s": 513.319658, "theta": 1.626048, "x":691209.481708, "y":3118655.030955, "dkappa":-0.000004}
{"kappa": -0.000459, "s": 513.711701, "theta": 1.625869, "x":691209.460093, "y":3118655.422402, "dkappa":-0.000004}
{"kappa": -0.000461, "s": 514.103703, "theta": 1.625688, "x":691209.438551, "y":3118655.813811, "dkappa":-0.000004}
{"kappa": -0.000463, "s": 514.495662, "theta": 1.625507, "x":691209.417082, "y":3118656.205182, "dkappa":-0.000004}
{"kappa": -0.000464, "s": 514.887578, "theta": 1.625326, "x":691209.395686, "y":3118656.596514, "dkappa":-0.000004}
{"kappa": -0.000466, "s": 515.279453, "theta": 1.625143, "x":691209.374364, "y":3118656.987808, "dkappa":-0.000004}
{"kappa": -0.000468, "s": 515.671285, "theta": 1.624961, "x":691209.353115, "y":3118657.379064, "dkappa":-0.000004}
{"kappa": -0.000469, "s": 516.063075, "theta": 1.624777, "x":691209.331940, "y":3118657.770281, "dkappa":-0.000004}
{"kappa": -0.000471, "s": 516.454822, "theta": 1.624593, "x":691209.310840, "y":3118658.161459, "dkappa":-0.000004}
{"kappa": -0.000473, "s": 516.846527, "theta": 1.624408, "x":691209.289814, "y":3118658.552599, "dkappa":-0.000005}
{"kappa": -0.000475, "s": 517.238189, "theta": 1.624222, "x":691209.268862, "y":3118658.943701, "dkappa":-0.000005}
{"kappa": -0.000476, "s": 517.629809, "theta": 1.624036, "x":691209.247986, "y":3118659.334764, "dkappa":-0.000005}
{"kappa": -0.000478, "s": 518.021385, "theta": 1.623849, "x":691209.227185, "y":3118659.725788, "dkappa":-0.000005}
{"kappa": -0.000480, "s": 518.412920, "theta": 1.623662, "x":691209.206459, "y":3118660.116773, "dkappa":-0.000005}
{"kappa": -0.000482, "s": 518.804411, "theta": 1.623473, "x":691209.185809, "y":3118660.507719, "dkappa":-0.000005}
{"kappa": -0.000484, "s": 519.195859, "theta": 1.623284, "x":691209.165236, "y":3118660.898627, "dkappa":-0.000005}
{"kappa": -0.000486, "s": 519.587265, "theta": 1.623095, "x":691209.144738, "y":3118661.289495, "dkappa":-0.000005}
{"kappa": -0.000487, "s": 519.978628, "theta": 1.622904, "x":691209.124317, "y":3118661.680325, "dkappa":-0.000005}
{"kappa": -0.000489, "s": 520.369947, "theta": 1.622713, "x":691209.103973, "y":3118662.071115, "dkappa":-0.000005}
{"kappa": -0.000491, "s": 520.761223, "theta": 1.622521, "x":691209.083705, "y":3118662.461866, "dkappa":-0.000005}
{"kappa": -0.000493, "s": 521.152457, "theta": 1.622329, "x":691209.063515, "y":3118662.852578, "dkappa":-0.000005}
{"kappa": -0.000495, "s": 521.543646, "theta": 1.622135, "x":691209.043403, "y":3118663.243250, "dkappa":-0.000005}
{"kappa": -0.000497, "s": 521.934793, "theta": 1.621941, "x":691209.023369, "y":3118663.633883, "dkappa":-0.000005}
{"kappa": -0.000499, "s": 522.325896, "theta": 1.621747, "x":691209.003412, "y":3118664.024477, "dkappa":-0.000005}
{"kappa": -0.000501, "s": 522.716956, "theta": 1.621551, "x":691208.983535, "y":3118664.415031, "dkappa":-0.000005}
{"kappa": -0.000503, "s": 523.107972, "theta": 1.621355, "x":691208.963735, "y":3118664.805545, "dkappa":-0.000005}
{"kappa": -0.000505, "s": 523.498944, "theta": 1.621158, "x":691208.944015, "y":3118665.196020, "dkappa":-0.000005}
{"kappa": -0.000507, "s": 523.889873, "theta": 1.620960, "x":691208.924374, "y":3118665.586455, "dkappa":-0.000005}
{"kappa": -0.000509, "s": 524.280758, "theta": 1.620762, "x":691208.904813, "y":3118665.976850, "dkappa":-0.000005}
{"kappa": -0.000511, "s": 524.671599, "theta": 1.620563, "x":691208.885331, "y":3118666.367206, "dkappa":-0.000005}
{"kappa": -0.000513, "s": 525.062396, "theta": 1.620363, "x":691208.865930, "y":3118666.757521, "dkappa":-0.000005}
{"kappa": -0.000514, "s": 525.453149, "theta": 1.620162, "x":691208.846609, "y":3118667.147796, "dkappa":-0.000005}
{"kappa": -0.000516, "s": 525.843858, "theta": 1.619961, "x":691208.827368, "y":3118667.538031, "dkappa":-0.000005}
{"kappa": -0.000518, "s": 526.234523, "theta": 1.619759, "x":691208.808209, "y":3118667.928225, "dkappa":-0.000005}
{"kappa": -0.000520, "s": 526.625143, "theta": 1.619556, "x":691208.789130, "y":3118668.318380, "dkappa":-0.000005}
{"kappa": -0.000522, "s": 527.015719, "theta": 1.619352, "x":691208.770133, "y":3118668.708494, "dkappa":-0.000005}
{"kappa": -0.000524, "s": 527.406251, "theta": 1.619148, "x":691208.751218, "y":3118669.098567, "dkappa":-0.000005}
{"kappa": -0.000526, "s": 527.796738, "theta": 1.618943, "x":691208.732385, "y":3118669.488600, "dkappa":-0.000005}
{"kappa": -0.000528, "s": 528.187181, "theta": 1.618737, "x":691208.713634, "y":3118669.878592, "dkappa":-0.000005}
{"kappa": -0.000530, "s": 528.577579, "theta": 1.618530, "x":691208.694965, "y":3118670.268544, "dkappa":-0.000005}
{"kappa": -0.000532, "s": 528.967932, "theta": 1.618323, "x":691208.676379, "y":3118670.658454, "dkappa":-0.000005}
{"kappa": -0.000534, "s": 529.358241, "theta": 1.618115, "x":691208.657877, "y":3118671.048324, "dkappa":-0.000005}
{"kappa": -0.000536, "s": 529.748504, "theta": 1.617907, "x":691208.639457, "y":3118671.438152, "dkappa":-0.000005}
{"kappa": -0.000537, "s": 530.138723, "theta": 1.617697, "x":691208.621122, "y":3118671.827940, "dkappa":-0.000005}
{"kappa": -0.000539, "s": 530.528896, "theta": 1.617487, "x":691208.602870, "y":3118672.217686, "dkappa":-0.000005}
{"kappa": -0.000541, "s": 530.919024, "theta": 1.617276, "x":691208.584702, "y":3118672.607391, "dkappa":-0.000005}
{"kappa": -0.000543, "s": 531.309107, "theta": 1.617065, "x":691208.566619, "y":3118672.997055, "dkappa":-0.000005}
{"kappa": -0.000545, "s": 531.699145, "theta": 1.616853, "x":691208.548620, "y":3118673.386677, "dkappa":-0.000005}
{"kappa": -0.000547, "s": 532.089137, "theta": 1.616640, "x":691208.530706, "y":3118673.776257, "dkappa":-0.000005}
{"kappa": -0.000548, "s": 532.479083, "theta": 1.616426, "x":691208.512878, "y":3118674.165796, "dkappa":-0.000005}
{"kappa": -0.000550, "s": 532.868984, "theta": 1.616212, "x":691208.495134, "y":3118674.555293, "dkappa":-0.000005}
{"kappa": -0.000552, "s": 533.258840, "theta": 1.615997, "x":691208.477476, "y":3118674.944748, "dkappa":-0.000004}
{"kappa": -0.000554, "s": 533.648649, "theta": 1.615782, "x":691208.459905, "y":3118675.334161, "dkappa":-0.000004}
{"kappa": -0.000555, "s": 534.038413, "theta": 1.615566, "x":691208.442419, "y":3118675.723532, "dkappa":-0.000004}
{"kappa": -0.000557, "s": 534.428130, "theta": 1.615349, "x":691208.425019, "y":3118676.112861, "dkappa":-0.000004}
{"kappa": -0.000559, "s": 534.817801, "theta": 1.615132, "x":691208.407707, "y":3118676.502148, "dkappa":-0.000004}
{"kappa": -0.000560, "s": 535.207427, "theta": 1.614914, "x":691208.390480, "y":3118676.891392, "dkappa":-0.000004}
{"kappa": -0.000562, "s": 535.597006, "theta": 1.614695, "x":691208.373341, "y":3118677.280594, "dkappa":-0.000004}
{"kappa": -0.000564, "s": 535.986538, "theta": 1.614476, "x":691208.356290, "y":3118677.669753, "dkappa":-0.000004}
{"kappa": -0.000565, "s": 536.376024, "theta": 1.614256, "x":691208.339325, "y":3118678.058870, "dkappa":-0.000004}
{"kappa": -0.000567, "s": 536.765464, "theta": 1.614036, "x":691208.322448, "y":3118678.447943, "dkappa":-0.000004}
{"kappa": -0.000568, "s": 537.154857, "theta": 1.613815, "x":691208.305660, "y":3118678.836974, "dkappa":-0.000004}
{"kappa": -0.000570, "s": 537.544203, "theta": 1.613593, "x":691208.288959, "y":3118679.225962, "dkappa":-0.000004}
{"kappa": -0.000571, "s": 537.933502, "theta": 1.613371, "x":691208.272346, "y":3118679.614907, "dkappa":-0.000004}
{"kappa": -0.000572, "s": 538.322755, "theta": 1.613149, "x":691208.255822, "y":3118680.003808, "dkappa":-0.000004}
{"kappa": -0.000574, "s": 538.711960, "theta": 1.612926, "x":691208.239387, "y":3118680.392666, "dkappa":-0.000004}
{"kappa": -0.000575, "s": 539.101118, "theta": 1.612702, "x":691208.223040, "y":3118680.781481, "dkappa":-0.000003}
{"kappa": -0.000577, "s": 539.490229, "theta": 1.612478, "x":691208.206782, "y":3118681.170252, "dkappa":-0.000003}
{"kappa": -0.000578, "s": 539.879293, "theta": 1.612253, "x":691208.190614, "y":3118681.558980, "dkappa":-0.000003}
{"kappa": -0.000579, "s": 540.268309, "theta": 1.612028, "x":691208.174535, "y":3118681.947664, "dkappa":-0.000003}
{"kappa": -0.000580, "s": 540.657278, "theta": 1.611803, "x":691208.158545, "y":3118682.336304, "dkappa":-0.000003}
{"kappa": -0.000581, "s": 541.046199, "theta": 1.611577, "x":691208.142645, "y":3118682.724900, "dkappa":-0.000003}
{"kappa": -0.000583, "s": 541.435073, "theta": 1.611351, "x":691208.126835, "y":3118683.113451, "dkappa":-0.000003}
{"kappa": -0.000584, "s": 541.823898, "theta": 1.611124, "x":691208.111115, "y":3118683.501959, "dkappa":-0.000003}
{"kappa": -0.000585, "s": 542.212676, "theta": 1.610897, "x":691208.095485, "y":3118683.890422, "dkappa":-0.000003}
{"kappa": -0.000586, "s": 542.601405, "theta": 1.610669, "x":691208.079945, "y":3118684.278841, "dkappa":-0.000003}
{"kappa": -0.000587, "s": 542.990087, "theta": 1.610441, "x":691208.064496, "y":3118684.667216, "dkappa":-0.000002}
{"kappa": -0.000588, "s": 543.378720, "theta": 1.610213, "x":691208.049137, "y":3118685.055545, "dkappa":-0.000002}
{"kappa": -0.000589, "s": 543.767305, "theta": 1.609985, "x":691208.033868, "y":3118685.443830, "dkappa":-0.000002}
{"kappa": -0.000589, "s": 544.155842, "theta": 1.609756, "x":691208.018690, "y":3118685.832070, "dkappa":-0.000002}
{"kappa": -0.000590, "s": 544.544330, "theta": 1.609527, "x":691208.003603, "y":3118686.220265, "dkappa":-0.000002}
{"kappa": -0.000591, "s": 544.932769, "theta": 1.609297, "x":691207.988607, "y":3118686.608415, "dkappa":-0.000002}
{"kappa": -0.000592, "s": 545.321160, "theta": 1.609068, "x":691207.973702, "y":3118686.996519, "dkappa":-0.000002}
{"kappa": -0.000592, "s": 545.709502, "theta": 1.608838, "x":691207.958888, "y":3118687.384579, "dkappa":-0.000002}
{"kappa": -0.000593, "s": 546.097794, "theta": 1.608608, "x":691207.944165, "y":3118687.772592, "dkappa":-0.000001}
{"kappa": -0.000593, "s": 546.486038, "theta": 1.608377, "x":691207.929533, "y":3118688.160560, "dkappa":-0.000001}
{"kappa": -0.000594, "s": 546.874233, "theta": 1.608147, "x":691207.914992, "y":3118688.548483, "dkappa":-0.000001}
{"kappa": -0.000594, "s": 547.262379, "theta": 1.607916, "x":691207.900543, "y":3118688.936359, "dkappa":-0.000001}
{"kappa": -0.000595, "s": 547.650475, "theta": 1.607686, "x":691207.886185, "y":3118689.324190, "dkappa":-0.000001}
{"kappa": -0.000595, "s": 548.038522, "theta": 1.607455, "x":691207.871918, "y":3118689.711974, "dkappa":-0.000001}
{"kappa": -0.000595, "s": 548.426519, "theta": 1.607224, "x":691207.857743, "y":3118690.099712, "dkappa":-0.000001}
{"kappa": -0.000595, "s": 548.814466, "theta": 1.606993, "x":691207.843659, "y":3118690.487404, "dkappa":-0.000000}
{"kappa": -0.000596, "s": 549.202364, "theta": 1.606762, "x":691207.829666, "y":3118690.875049, "dkappa":-0.000000}
{"kappa": -0.000596, "s": 549.590212, "theta": 1.606531, "x":691207.815764, "y":3118691.262648, "dkappa":-0.000000}
{"kappa": -0.000596, "s": 549.978010, "theta": 1.606300, "x":691207.801954, "y":3118691.650200, "dkappa":0.000000}
{"kappa": -0.000596, "s": 550.365758, "theta": 1.606069, "x":691207.788236, "y":3118692.037705, "dkappa":0.000000}
{"kappa": -0.000596, "s": 550.753456, "theta": 1.605838, "x":691207.774608, "y":3118692.425163, "dkappa":0.000000}
{"kappa": -0.000595, "s": 551.141103, "theta": 1.605607, "x":691207.761072, "y":3118692.812574, "dkappa":0.000000}
{"kappa": -0.000595, "s": 551.528700, "theta": 1.605376, "x":691207.747627, "y":3118693.199938, "dkappa":0.000001}
{"kappa": -0.000595, "s": 551.916247, "theta": 1.605146, "x":691207.734273, "y":3118693.587255, "dkappa":0.000001}
{"kappa": -0.000595, "s": 552.303743, "theta": 1.604915, "x":691207.721010, "y":3118693.974524, "dkappa":0.000001}
{"kappa": -0.000594, "s": 552.691188, "theta": 1.604685, "x":691207.707837, "y":3118694.361745, "dkappa":0.000001}
{"kappa": -0.000594, "s": 553.078582, "theta": 1.604455, "x":691207.694756, "y":3118694.748918, "dkappa":0.000001}
{"kappa": -0.000593, "s": 553.465926, "theta": 1.604225, "x":691207.681766, "y":3118695.136044, "dkappa":0.000002}
{"kappa": -0.000592, "s": 553.853219, "theta": 1.603995, "x":691207.668866, "y":3118695.523122, "dkappa":0.000002}
{"kappa": -0.000592, "s": 554.240460, "theta": 1.603766, "x":691207.656057, "y":3118695.910151, "dkappa":0.000002}
{"kappa": -0.000591, "s": 554.627650, "theta": 1.603537, "x":691207.643338, "y":3118696.297133, "dkappa":0.000002}
{"kappa": -0.000590, "s": 555.014789, "theta": 1.603309, "x":691207.630709, "y":3118696.684065, "dkappa":0.000002}
{"kappa": -0.000589, "s": 555.401877, "theta": 1.603080, "x":691207.618170, "y":3118697.070950, "dkappa":0.000003}
{"kappa": -0.000588, "s": 555.788912, "theta": 1.602852, "x":691207.605722, "y":3118697.457785, "dkappa":0.000003}
{"kappa": -0.000587, "s": 556.175897, "theta": 1.602625, "x":691207.593362, "y":3118697.844572, "dkappa":0.000003}
{"kappa": -0.000586, "s": 556.562829, "theta": 1.602398, "x":691207.581093, "y":3118698.231310, "dkappa":0.000003}
{"kappa": -0.000585, "s": 556.949710, "theta": 1.602172, "x":691207.568913, "y":3118698.617999, "dkappa":0.000003}
{"kappa": -0.000583, "s": 557.336538, "theta": 1.601946, "x":691207.556821, "y":3118699.004639, "dkappa":0.000004}
{"kappa": -0.000582, "s": 557.723315, "theta": 1.601720, "x":691207.544819, "y":3118699.391229, "dkappa":0.000004}
{"kappa": -0.000580, "s": 558.110039, "theta": 1.601496, "x":691207.532905, "y":3118699.777770, "dkappa":0.000004}
{"kappa": -0.000579, "s": 558.496711, "theta": 1.601271, "x":691207.521080, "y":3118700.164261, "dkappa":0.000004}
{"kappa": -0.000577, "s": 558.883331, "theta": 1.601048, "x":691207.509343, "y":3118700.550702, "dkappa":0.000004}
{"kappa": -0.000575, "s": 559.269898, "theta": 1.600825, "x":691207.497693, "y":3118700.937094, "dkappa":0.000005}
{"kappa": -0.000574, "s": 559.656413, "theta": 1.600603, "x":691207.486131, "y":3118701.323435, "dkappa":0.000005}
{"kappa": -0.000572, "s": 560.042875, "theta": 1.600382, "x":691207.474657, "y":3118701.709727, "dkappa":0.000005}
{"kappa": -0.000570, "s": 560.429283, "theta": 1.600161, "x":691207.463269, "y":3118702.095968, "dkappa":0.000005}
{"kappa": -0.000567, "s": 560.815639, "theta": 1.599942, "x":691207.451967, "y":3118702.482159, "dkappa":0.000006}
{"kappa": -0.000565, "s": 561.201942, "theta": 1.599723, "x":691207.440752, "y":3118702.868299, "dkappa":0.000006}
{"kappa": -0.000563, "s": 561.588192, "theta": 1.599505, "x":691207.429623, "y":3118703.254388, "dkappa":0.000006}
{"kappa": -0.000560, "s": 561.974388, "theta": 1.599288, "x":691207.418579, "y":3118703.640426, "dkappa":0.000006}
{"kappa": -0.000558, "s": 562.360532, "theta": 1.599072, "x":691207.407621, "y":3118704.026414, "dkappa":0.000007}
{"kappa": -0.000555, "s": 562.746621, "theta": 1.598857, "x":691207.396746, "y":3118704.412350, "dkappa":0.000007}
{"kappa": -0.000553, "s": 563.132657, "theta": 1.598643, "x":691207.385957, "y":3118704.798235, "dkappa":0.000007}
{"kappa": -0.000550, "s": 563.518639, "theta": 1.598431, "x":691207.375251, "y":3118705.184069, "dkappa":0.000007}
{"kappa": -0.000547, "s": 563.904568, "theta": 1.598219, "x":691207.364628, "y":3118705.569851, "dkappa":0.000008}
{"kappa": -0.000544, "s": 564.290442, "theta": 1.598009, "x":691207.354088, "y":3118705.955582, "dkappa":0.000008}
{"kappa": -0.000541, "s": 564.676262, "theta": 1.597799, "x":691207.343631, "y":3118706.341260, "dkappa":0.000008}
{"kappa": -0.000537, "s": 565.062029, "theta": 1.597591, "x":691207.333255, "y":3118706.726887, "dkappa":0.000009}
{"kappa": -0.000534, "s": 565.447740, "theta": 1.597385, "x":691207.322961, "y":3118707.112462, "dkappa":0.000009}
{"kappa": -0.000531, "s": 565.833398, "theta": 1.597179, "x":691207.312748, "y":3118707.497984, "dkappa":0.000009}
{"kappa": -0.000527, "s": 566.219001, "theta": 1.596975, "x":691207.302615, "y":3118707.883454, "dkappa":0.000009}
{"kappa": -0.000523, "s": 566.604549, "theta": 1.596773, "x":691207.292562, "y":3118708.268871, "dkappa":0.000010}
{"kappa": -0.000520, "s": 566.990043, "theta": 1.596572, "x":691207.282588, "y":3118708.654236, "dkappa":0.000010}
{"kappa": -0.000516, "s": 567.375482, "theta": 1.596372, "x":691207.272693, "y":3118709.039547, "dkappa":0.000010}
{"kappa": -0.000512, "s": 567.760866, "theta": 1.596174, "x":691207.262876, "y":3118709.424806, "dkappa":0.000011}
{"kappa": -0.000508, "s": 568.146194, "theta": 1.595978, "x":691207.253136, "y":3118709.810012, "dkappa":0.000011}
{"kappa": -0.000503, "s": 568.531468, "theta": 1.595783, "x":691207.243472, "y":3118710.195164, "dkappa":0.000011}
{"kappa": -0.000499, "s": 568.916686, "theta": 1.595590, "x":691207.233885, "y":3118710.580263, "dkappa":0.000012}
{"kappa": -0.000494, "s": 569.301849, "theta": 1.595399, "x":691207.224373, "y":3118710.965309, "dkappa":0.000012}
{"kappa": -0.000490, "s": 569.686957, "theta": 1.595209, "x":691207.214936, "y":3118711.350300, "dkappa":0.000012}
{"kappa": -0.000485, "s": 570.072008, "theta": 1.595022, "x":691207.205573, "y":3118711.735238, "dkappa":0.000012}
{"kappa": -0.000480, "s": 570.457004, "theta": 1.594836, "x":691207.196283, "y":3118712.120122, "dkappa":0.000013}
{"kappa": -0.000475, "s": 570.841944, "theta": 1.594652, "x":691207.187066, "y":3118712.504952, "dkappa":0.000013}
{"kappa": -0.000470, "s": 571.226829, "theta": 1.594470, "x":691207.177920, "y":3118712.889727, "dkappa":0.000013}
{"kappa": -0.000465, "s": 571.611657, "theta": 1.594290, "x":691207.168845, "y":3118713.274448, "dkappa":0.000014}
{"kappa": -0.000459, "s": 571.996428, "theta": 1.594112, "x":691207.159841, "y":3118713.659115, "dkappa":0.000014}
{"kappa": -0.000454, "s": 572.381144, "theta": 1.593937, "x":691207.150905, "y":3118714.043726, "dkappa":0.000015}
{"kappa": -0.000449, "s": 572.765803, "theta": 1.593763, "x":691207.142039, "y":3118714.428283, "dkappa":0.000014}
{"kappa": -0.000443, "s": 573.150405, "theta": 1.593591, "x":691207.133239, "y":3118714.812785, "dkappa":0.000014}
{"kappa": -0.000438, "s": 573.534951, "theta": 1.593422, "x":691207.124507, "y":3118715.197232, "dkappa":0.000015}
{"kappa": -0.000432, "s": 573.919440, "theta": 1.593255, "x":691207.115841, "y":3118715.581623, "dkappa":0.000015}
{"kappa": -0.000426, "s": 574.303872, "theta": 1.593090, "x":691207.107239, "y":3118715.965959, "dkappa":0.000016}
{"kappa": -0.000419, "s": 574.688247, "theta": 1.592928, "x":691207.098702, "y":3118716.350239, "dkappa":0.000016}
{"kappa": -0.000413, "s": 575.072565, "theta": 1.592768, "x":691207.090228, "y":3118716.734463, "dkappa":0.000017}
{"kappa": -0.000406, "s": 575.456826, "theta": 1.592610, "x":691207.081816, "y":3118717.118632, "dkappa":0.000018}
{"kappa": -0.000400, "s": 575.841029, "theta": 1.592456, "x":691207.073466, "y":3118717.502745, "dkappa":0.000018}
{"kappa": -0.000393, "s": 576.225175, "theta": 1.592303, "x":691207.065175, "y":3118717.886801, "dkappa":0.000018}
{"kappa": -0.000385, "s": 576.609263, "theta": 1.592154, "x":691207.056944, "y":3118718.270801, "dkappa":0.000019}
{"kappa": -0.000378, "s": 576.993293, "theta": 1.592007, "x":691207.048771, "y":3118718.654744, "dkappa":0.000019}
{"kappa": -0.000370, "s": 577.377266, "theta": 1.591864, "x":691207.040655, "y":3118719.038631, "dkappa":0.000020}
{"kappa": -0.000363, "s": 577.761181, "theta": 1.591723, "x":691207.032594, "y":3118719.422461, "dkappa":0.000020}
{"kappa": -0.000355, "s": 578.145037, "theta": 1.591585, "x":691207.024589, "y":3118719.806234, "dkappa":0.000021}
{"kappa": -0.000347, "s": 578.528835, "theta": 1.591451, "x":691207.016636, "y":3118720.189950, "dkappa":0.000021}
{"kappa": -0.000338, "s": 578.912575, "theta": 1.591319, "x":691207.008736, "y":3118720.573609, "dkappa":0.000022}
{"kappa": -0.000330, "s": 579.296257, "theta": 1.591191, "x":691207.000887, "y":3118720.957210, "dkappa":0.000022}
{"kappa": -0.000321, "s": 579.679880, "theta": 1.591066, "x":691206.993088, "y":3118721.340753, "dkappa":0.000023}
{"kappa": -0.000313, "s": 580.063444, "theta": 1.590944, "x":691206.985337, "y":3118721.724239, "dkappa":0.000023}
{"kappa": -0.000304, "s": 580.446950, "theta": 1.590826, "x":691206.977634, "y":3118722.107668, "dkappa":0.000023}
{"kappa": -0.000295, "s": 580.830396, "theta": 1.590711, "x":691206.969976, "y":3118722.491038, "dkappa":0.000024}
{"kappa": -0.000285, "s": 581.213784, "theta": 1.590600, "x":691206.962363, "y":3118722.874349, "dkappa":0.000024}
{"kappa": -0.000276, "s": 581.597112, "theta": 1.590493, "x":691206.954793, "y":3118723.257603, "dkappa":0.000025}
{"kappa": -0.000267, "s": 581.980381, "theta": 1.590389, "x":691206.947264, "y":3118723.640798, "dkappa":0.000025}
{"kappa": -0.000257, "s": 582.363591, "theta": 1.590288, "x":691206.939776, "y":3118724.023935, "dkappa":0.000025}
{"kappa": -0.000247, "s": 582.746741, "theta": 1.590192, "x":691206.932327, "y":3118724.407012, "dkappa":0.000026}
{"kappa": -0.000237, "s": 583.129831, "theta": 1.590099, "x":691206.924915, "y":3118724.790031, "dkappa":0.000026}
{"kappa": -0.000227, "s": 583.512862, "theta": 1.590010, "x":691206.917539, "y":3118725.172991, "dkappa":0.000027}
{"kappa": -0.000217, "s": 583.895833, "theta": 1.589925, "x":691206.910198, "y":3118725.555891, "dkappa":0.000027}
{"kappa": -0.000206, "s": 584.278744, "theta": 1.589844, "x":691206.902889, "y":3118725.938732, "dkappa":0.000027}
{"kappa": -0.000196, "s": 584.661594, "theta": 1.589767, "x":691206.895612, "y":3118726.321514, "dkappa":0.000028}
{"kappa": -0.000185, "s": 585.044385, "theta": 1.589694, "x":691206.888364, "y":3118726.704236, "dkappa":0.000028}
{"kappa": -0.000174, "s": 585.427115, "theta": 1.589626, "x":691206.881145, "y":3118727.086898, "dkappa":0.000028}
{"kappa": -0.000163, "s": 585.809784, "theta": 1.589561, "x":691206.873953, "y":3118727.469500, "dkappa":0.000029}
{"kappa": -0.000152, "s": 586.192393, "theta": 1.589501, "x":691206.866785, "y":3118727.852041, "dkappa":0.000029}
{"kappa": -0.000141, "s": 586.574942, "theta": 1.589445, "x":691206.859641, "y":3118728.234523, "dkappa":0.000029}
{"kappa": -0.000130, "s": 586.957429, "theta": 1.589393, "x":691206.852519, "y":3118728.616944, "dkappa":0.000030}
{"kappa": -0.000118, "s": 587.339856, "theta": 1.589345, "x":691206.845417, "y":3118728.999305, "dkappa":0.000030}
{"kappa": -0.000107, "s": 587.722221, "theta": 1.589302, "x":691206.838333, "y":3118729.381604, "dkappa":0.000030}
{"kappa": -0.000095, "s": 588.104525, "theta": 1.589264, "x":691206.831266, "y":3118729.763843, "dkappa":0.000031}
{"kappa": -0.000083, "s": 588.486768, "theta": 1.589229, "x":691206.824214, "y":3118730.146021, "dkappa":0.000031}
{"kappa": -0.000072, "s": 588.868949, "theta": 1.589200, "x":691206.817175, "y":3118730.528138, "dkappa":0.000031}
{"kappa": -0.000060, "s": 589.251069, "theta": 1.589175, "x":691206.810148, "y":3118730.910193, "dkappa":0.000031}
{"kappa": -0.000048, "s": 589.633127, "theta": 1.589154, "x":691206.803131, "y":3118731.292186, "dkappa":0.000032}
{"kappa": -0.000035, "s": 590.015124, "theta": 1.589138, "x":691206.796122, "y":3118731.674118, "dkappa":0.000032}
{"kappa": -0.000023, "s": 590.397058, "theta": 1.589127, "x":691206.789119, "y":3118732.055989, "dkappa":0.000032}
{"kappa": -0.000011, "s": 590.778930, "theta": 1.589121, "x":691206.782121, "y":3118732.437797, "dkappa":0.000033}
{"kappa": 0.000002, "s": 591.160741, "theta": 1.589119, "x":691206.775126, "y":3118732.819543, "dkappa":0.000033}
{"kappa": 0.000014, "s": 591.542489, "theta": 1.589122, "x":691206.768131, "y":3118733.201227, "dkappa":0.000033}
{"kappa": 0.000027, "s": 591.924174, "theta": 1.589130, "x":691206.761135, "y":3118733.582849, "dkappa":0.000033}
{"kappa": 0.000040, "s": 592.305798, "theta": 1.589143, "x":691206.754137, "y":3118733.964408, "dkappa":0.000033}
{"kappa": 0.000052, "s": 592.687358, "theta": 1.589160, "x":691206.747134, "y":3118734.345904, "dkappa":0.000034}
{"kappa": 0.000065, "s": 593.068856, "theta": 1.589183, "x":691206.740124, "y":3118734.727337, "dkappa":0.000034}
{"kappa": 0.000078, "s": 593.450291, "theta": 1.589210, "x":691206.733106, "y":3118735.108708, "dkappa":0.000034}
{"kappa": 0.000091, "s": 593.831663, "theta": 1.589242, "x":691206.726078, "y":3118735.490015, "dkappa":0.000034}
{"kappa": 0.000104, "s": 594.212972, "theta": 1.589280, "x":691206.719038, "y":3118735.871259, "dkappa":0.000035}
{"kappa": 0.000118, "s": 594.594218, "theta": 1.589322, "x":691206.711984, "y":3118736.252440, "dkappa":0.000035}
{"kappa": 0.000131, "s": 594.975401, "theta": 1.589369, "x":691206.704914, "y":3118736.633557, "dkappa":0.000035}
{"kappa": 0.000144, "s": 595.356520, "theta": 1.589422, "x":691206.697826, "y":3118737.014610, "dkappa":0.000035}
{"kappa": 0.000158, "s": 595.737576, "theta": 1.589479, "x":691206.690718, "y":3118737.395600, "dkappa":0.000035}
{"kappa": 0.000171, "s": 596.118568, "theta": 1.589542, "x":691206.683588, "y":3118737.776525, "dkappa":0.000035}
{"kappa": 0.000184, "s": 596.499496, "theta": 1.589610, "x":691206.676435, "y":3118738.157386, "dkappa":0.000034}
{"kappa": 0.000198, "s": 596.880361, "theta": 1.589683, "x":691206.669257, "y":3118738.538183, "dkappa":0.000034}
{"kappa": 0.000211, "s": 597.261162, "theta": 1.589760, "x":691206.662050, "y":3118738.918916, "dkappa":0.000034}
{"kappa": 0.000224, "s": 597.641898, "theta": 1.589843, "x":691206.654815, "y":3118739.299584, "dkappa":0.000034}
{"kappa": 0.000237, "s": 598.022571, "theta": 1.589931, "x":691206.647548, "y":3118739.680187, "dkappa":0.000034}
{"kappa": 0.000250, "s": 598.403180, "theta": 1.590023, "x":691206.640249, "y":3118740.060726, "dkappa":0.000034}
{"kappa": 0.000263, "s": 598.783724, "theta": 1.590121, "x":691206.632914, "y":3118740.441199, "dkappa":0.000034}
{"kappa": 0.000276, "s": 599.164204, "theta": 1.590223, "x":691206.625543, "y":3118740.821608, "dkappa":0.000034}
{"kappa": 0.000289, "s": 599.544619, "theta": 1.590331, "x":691206.618132, "y":3118741.201951, "dkappa":0.000034}
{"kappa": 0.000302, "s": 599.924970, "theta": 1.590443, "x":691206.610682, "y":3118741.582228, "dkappa":0.000034}
{"kappa": 0.000314, "s": 600.305256, "theta": 1.590560, "x":691206.603189, "y":3118741.962441, "dkappa":0.000034}
{"kappa": 0.000327, "s": 600.685477, "theta": 1.590682, "x":691206.595652, "y":3118742.342587, "dkappa":0.000033}
{"kappa": 0.000340, "s": 601.065633, "theta": 1.590809, "x":691206.588068, "y":3118742.722668, "dkappa":0.000033}
{"kappa": 0.000353, "s": 601.445725, "theta": 1.590941, "x":691206.580438, "y":3118743.102683, "dkappa":0.000033}
{"kappa": 0.000365, "s": 601.825751, "theta": 1.591077, "x":691206.572757, "y":3118743.482632, "dkappa":0.000033}
{"kappa": 0.000378, "s": 602.205713, "theta": 1.591218, "x":691206.565025, "y":3118743.862514, "dkappa":0.000033}
{"kappa": 0.000390, "s": 602.585609, "theta": 1.591364, "x":691206.557240, "y":3118744.242331, "dkappa":0.000032}
{"kappa": 0.000402, "s": 602.965440, "theta": 1.591514, "x":691206.549400, "y":3118744.622081, "dkappa":0.000032}
{"kappa": 0.000414, "s": 603.345205, "theta": 1.591669, "x":691206.541503, "y":3118745.001764, "dkappa":0.000032}
{"kappa": 0.000426, "s": 603.724905, "theta": 1.591829, "x":691206.533548, "y":3118745.381381, "dkappa":0.000032}
{"kappa": 0.000438, "s": 604.104540, "theta": 1.591993, "x":691206.525533, "y":3118745.760931, "dkappa":0.000031}
{"kappa": 0.000450, "s": 604.484109, "theta": 1.592162, "x":691206.517456, "y":3118746.140414, "dkappa":0.000031}
{"kappa": 0.000462, "s": 604.863612, "theta": 1.592335, "x":691206.509316, "y":3118746.519830, "dkappa":0.000031}
{"kappa": 0.000474, "s": 605.243050, "theta": 1.592512, "x":691206.501110, "y":3118746.899179, "dkappa":0.000030}
{"kappa": 0.000485, "s": 605.622422, "theta": 1.592694, "x":691206.492838, "y":3118747.278460, "dkappa":0.000030}
{"kappa": 0.000496, "s": 606.001727, "theta": 1.592880, "x":691206.484498, "y":3118747.657675, "dkappa":0.000030}
{"kappa": 0.000507, "s": 606.380967, "theta": 1.593071, "x":691206.476087, "y":3118748.036821, "dkappa":0.000029}
{"kappa": 0.000518, "s": 606.760141, "theta": 1.593265, "x":691206.467606, "y":3118748.415900, "dkappa":0.000029}
{"kappa": 0.000529, "s": 607.139249, "theta": 1.593464, "x":691206.459051, "y":3118748.794912, "dkappa":0.000028}
{"kappa": 0.000540, "s": 607.518291, "theta": 1.593666, "x":691206.450421, "y":3118749.173855, "dkappa":0.000028}
{"kappa": 0.000550, "s": 607.897267, "theta": 1.593873, "x":691206.441716, "y":3118749.552731, "dkappa":0.000027}
{"kappa": 0.000561, "s": 608.276176, "theta": 1.594083, "x":691206.432933, "y":3118749.931539, "dkappa":0.000027}
{"kappa": 0.000571, "s": 608.655019, "theta": 1.594298, "x":691206.424071, "y":3118750.310278, "dkappa":0.000026}
{"kappa": 0.000581, "s": 609.033796, "theta": 1.594516, "x":691206.415129, "y":3118750.688949, "dkappa":0.000026}
{"kappa": 0.000591, "s": 609.412507, "theta": 1.594738, "x":691206.406105, "y":3118751.067552, "dkappa":0.000025}
{"kappa": 0.000600, "s": 609.791151, "theta": 1.594963, "x":691206.396998, "y":3118751.446087, "dkappa":0.000025}
{"kappa": 0.000609, "s": 610.169728, "theta": 1.595192, "x":691206.387807, "y":3118751.824553, "dkappa":0.000024}
{"kappa": 0.000619, "s": 610.548239, "theta": 1.595425, "x":691206.378530, "y":3118752.202950, "dkappa":0.000024}
{"kappa": 0.000627, "s": 610.926683, "theta": 1.595660, "x":691206.369166, "y":3118752.581278, "dkappa":0.000023}
{"kappa": 0.000636, "s": 611.305061, "theta": 1.595899, "x":691206.359714, "y":3118752.959538, "dkappa":0.000023}
{"kappa": 0.000645, "s": 611.683372, "theta": 1.596142, "x":691206.350172, "y":3118753.337729, "dkappa":0.000022}
{"kappa": 0.000653, "s": 612.061617, "theta": 1.596387, "x":691206.340540, "y":3118753.715851, "dkappa":0.000021}
{"kappa": 0.000661, "s": 612.439794, "theta": 1.596635, "x":691206.330817, "y":3118754.093903, "dkappa":0.000021}
{"kappa": 0.000668, "s": 612.817905, "theta": 1.596887, "x":691206.321000, "y":3118754.471887, "dkappa":0.000020}
{"kappa": 0.000676, "s": 613.195949, "theta": 1.597141, "x":691206.311090, "y":3118754.849801, "dkappa":0.000019}
{"kappa": 0.000683, "s": 613.573927, "theta": 1.597397, "x":691206.301085, "y":3118755.227646, "dkappa":0.000019}
{"kappa": 0.000690, "s": 613.951837, "theta": 1.597657, "x":691206.290985, "y":3118755.605421, "dkappa":0.000018}
{"kappa": 0.000696, "s": 614.329681, "theta": 1.597919, "x":691206.280788, "y":3118755.983127, "dkappa":0.000017}
{"kappa": 0.000703, "s": 614.707457, "theta": 1.598183, "x":691206.270493, "y":3118756.360763, "dkappa":0.000016}
{"kappa": 0.000709, "s": 615.085167, "theta": 1.598450, "x":691206.260100, "y":3118756.738330, "dkappa":0.000016}
{"kappa": 0.000715, "s": 615.462810, "theta": 1.598719, "x":691206.249607, "y":3118757.115827, "dkappa":0.000015}
{"kappa": 0.000720, "s": 615.840386, "theta": 1.598989, "x":691206.239015, "y":3118757.493254, "dkappa":0.000014}
{"kappa": 0.000725, "s": 616.217894, "theta": 1.599262, "x":691206.228321, "y":3118757.870612, "dkappa":0.000013}
{"kappa": 0.000730, "s": 616.595336, "theta": 1.599537, "x":691206.217527, "y":3118758.247899, "dkappa":0.000012}
{"kappa": 0.000735, "s": 616.972711, "theta": 1.599813, "x":691206.206630, "y":3118758.625116, "dkappa":0.000012}
{"kappa": 0.000739, "s": 617.350019, "theta": 1.600091, "x":691206.195631, "y":3118759.002264, "dkappa":0.000011}
{"kappa": 0.000743, "s": 617.727259, "theta": 1.600371, "x":691206.184529, "y":3118759.379341, "dkappa":0.000010}
{"kappa": 0.000746, "s": 618.104433, "theta": 1.600651, "x":691206.173323, "y":3118759.756348, "dkappa":0.000009}
{"kappa": 0.000749, "s": 618.481539, "theta": 1.600933, "x":691206.162013, "y":3118760.133285, "dkappa":0.000008}
{"kappa": 0.000752, "s": 618.858579, "theta": 1.601216, "x":691206.150599, "y":3118760.510151, "dkappa":0.000007}
{"kappa": 0.000755, "s": 619.235551, "theta": 1.601500, "x":691206.139079, "y":3118760.886948, "dkappa":0.000006}
{"kappa": 0.000757, "s": 619.612456, "theta": 1.601785, "x":691206.127455, "y":3118761.263674, "dkappa":0.000005}
{"kappa": 0.000758, "s": 619.989294, "theta": 1.602071, "x":691206.115726, "y":3118761.640329, "dkappa":0.000007}
{"kappa": 0.000761, "s": 620.366065, "theta": 1.602357, "x":691206.103890, "y":3118762.016914, "dkappa":0.000005}
{"kappa": 0.000762, "s": 620.742769, "theta": 1.602644, "x":691206.091949, "y":3118762.393429, "dkappa":0.000004}
{"kappa": 0.000764, "s": 621.119406, "theta": 1.602931, "x":691206.079902, "y":3118762.769873, "dkappa":0.000002}
{"kappa": 0.000764, "s": 621.495975, "theta": 1.603219, "x":691206.067749, "y":3118763.146246, "dkappa":0.000001}
{"kappa": 0.000764, "s": 621.872478, "theta": 1.603506, "x":691206.055490, "y":3118763.522549, "dkappa":-0.000001}
{"kappa": 0.000764, "s": 622.248913, "theta": 1.603794, "x":691206.043125, "y":3118763.898781, "dkappa":-0.000002}
{"kappa": 0.000763, "s": 622.625281, "theta": 1.604081, "x":691206.030654, "y":3118764.274943, "dkappa":-0.000003}
{"kappa": 0.000761, "s": 623.001582, "theta": 1.604368, "x":691206.018077, "y":3118764.651033, "dkappa":-0.000005}
{"kappa": 0.000759, "s": 623.377816, "theta": 1.604654, "x":691206.005395, "y":3118765.027054, "dkappa":-0.000006}
{"kappa": 0.000756, "s": 623.753983, "theta": 1.604939, "x":691205.992608, "y":3118765.403003, "dkappa":-0.000008}
{"kappa": 0.000753, "s": 624.130083, "theta": 1.605223, "x":691205.979716, "y":3118765.778882, "dkappa":-0.000009}
{"kappa": 0.000750, "s": 624.506115, "theta": 1.605506, "x":691205.966720, "y":3118766.154690, "dkappa":-0.000010}
{"kappa": 0.000745, "s": 624.882081, "theta": 1.605787, "x":691205.953620, "y":3118766.530427, "dkappa":-0.000012}
{"kappa": 0.000741, "s": 625.257979, "theta": 1.606066, "x":691205.940417, "y":3118766.906093, "dkappa":-0.000013}
{"kappa": 0.000735, "s": 625.633810, "theta": 1.606343, "x":691205.927112, "y":3118767.281689, "dkappa":-0.000015}
{"kappa": 0.000730, "s": 626.009575, "theta": 1.606619, "x":691205.913706, "y":3118767.657214, "dkappa":-0.000016}
{"kappa": 0.000723, "s": 626.385272, "theta": 1.606892, "x":691205.900199, "y":3118768.032668, "dkappa":-0.000017}
{"kappa": 0.000717, "s": 626.760901, "theta": 1.607162, "x":691205.886593, "y":3118768.408051, "dkappa":-0.000019}
{"kappa": 0.000709, "s": 627.136464, "theta": 1.607430, "x":691205.872888, "y":3118768.783364, "dkappa":-0.000020}
{"kappa": 0.000701, "s": 627.511960, "theta": 1.607695, "x":691205.859086, "y":3118769.158606, "dkappa":-0.000022}
{"kappa": 0.000693, "s": 627.887388, "theta": 1.607956, "x":691205.845187, "y":3118769.533777, "dkappa":-0.000023}
{"kappa": 0.000684, "s": 628.262750, "theta": 1.608215, "x":691205.831193, "y":3118769.908877, "dkappa":-0.000024}
{"kappa": 0.000675, "s": 628.638044, "theta": 1.608470, "x":691205.817106, "y":3118770.283907, "dkappa":-0.000026}
{"kappa": 0.000665, "s": 629.013272, "theta": 1.608721, "x":691205.802926, "y":3118770.658867, "dkappa":-0.000027}
{"kappa": 0.000655, "s": 629.388432, "theta": 1.608969, "x":691205.788654, "y":3118771.033755, "dkappa":-0.000028}
{"kappa": 0.000644, "s": 629.763525, "theta": 1.609212, "x":691205.774294, "y":3118771.408573, "dkappa":-0.000030}
{"kappa": 0.000632, "s": 630.138551, "theta": 1.609452, "x":691205.759845, "y":3118771.783321, "dkappa":-0.000031}
{"kappa": 0.000621, "s": 630.513509, "theta": 1.609687, "x":691205.745311, "y":3118772.157998, "dkappa":-0.000032}
{"kappa": 0.000608, "s": 630.888401, "theta": 1.609917, "x":691205.730691, "y":3118772.532604, "dkappa":-0.000034}
{"kappa": 0.000595, "s": 631.263226, "theta": 1.610143, "x":691205.715989, "y":3118772.907140, "dkappa":-0.000035}
{"kappa": 0.000582, "s": 631.637983, "theta": 1.610363, "x":691205.701206, "y":3118773.281606, "dkappa":-0.000036}
{"kappa": 0.000568, "s": 632.012673, "theta": 1.610579, "x":691205.686345, "y":3118773.656002, "dkappa":-0.000038}
{"kappa": 0.000554, "s": 632.387297, "theta": 1.610789, "x":691205.671406, "y":3118774.030327, "dkappa":-0.000039}
{"kappa": 0.000539, "s": 632.761853, "theta": 1.610993, "x":691205.656392, "y":3118774.404582, "dkappa":-0.000040}
{"kappa": 0.000524, "s": 633.136341, "theta": 1.611192, "x":691205.641305, "y":3118774.778767, "dkappa":-0.000042}
{"kappa": 0.000508, "s": 633.510763, "theta": 1.611385, "x":691205.626148, "y":3118775.152881, "dkappa":-0.000043}
{"kappa": 0.000492, "s": 633.885118, "theta": 1.611572, "x":691205.610922, "y":3118775.526926, "dkappa":-0.000044}
{"kappa": 0.000475, "s": 634.259405, "theta": 1.611753, "x":691205.595630, "y":3118775.900901, "dkappa":-0.000045}
{"kappa": 0.000458, "s": 634.633625, "theta": 1.611928, "x":691205.580275, "y":3118776.274806, "dkappa":-0.000047}
{"kappa": 0.000440, "s": 635.007778, "theta": 1.612096, "x":691205.564858, "y":3118776.648641, "dkappa":-0.000048}
{"kappa": 0.000422, "s": 635.381864, "theta": 1.612257, "x":691205.549383, "y":3118777.022406, "dkappa":-0.000049}
{"kappa": 0.000403, "s": 635.755882, "theta": 1.612411, "x":691205.533851, "y":3118777.396102, "dkappa":-0.000051}
{"kappa": 0.000384, "s": 636.129833, "theta": 1.612558, "x":691205.518266, "y":3118777.769728, "dkappa":-0.000052}
{"kappa": 0.000364, "s": 636.503717, "theta": 1.612698, "x":691205.502630, "y":3118778.143285, "dkappa":-0.000053}
{"kappa": 0.000344, "s": 636.877534, "theta": 1.612830, "x":691205.486946, "y":3118778.516773, "dkappa":-0.000054}
{"kappa": 0.000324, "s": 637.251283, "theta": 1.612955, "x":691205.471217, "y":3118778.890191, "dkappa":-0.000056}
{"kappa": 0.000303, "s": 637.624965, "theta": 1.613072, "x":691205.455446, "y":3118779.263540, "dkappa":-0.000057}
{"kappa": 0.000281, "s": 637.998579, "theta": 1.613181, "x":691205.439635, "y":3118779.636819, "dkappa":-0.000058}
{"kappa": 0.000259, "s": 638.372126, "theta": 1.613282, "x":691205.423788, "y":3118780.010030, "dkappa":-0.000059}
{"kappa": 0.000237, "s": 638.745606, "theta": 1.613375, "x":691205.407908, "y":3118780.383172, "dkappa":-0.000061}
{"kappa": 0.000214, "s": 639.119018, "theta": 1.613459, "x":691205.391997, "y":3118780.756245, "dkappa":-0.000062}
{"kappa": 0.000191, "s": 639.492363, "theta": 1.613534, "x":691205.376060, "y":3118781.129250, "dkappa":-0.000063}
{"kappa": 0.000167, "s": 639.865640, "theta": 1.613601, "x":691205.360099, "y":3118781.502186, "dkappa":-0.000064}
{"kappa": 0.000143, "s": 640.238850, "theta": 1.613659, "x":691205.344118, "y":3118781.875053, "dkappa":-0.000065}
{"kappa": 0.000118, "s": 640.611992, "theta": 1.613708, "x":691205.328119, "y":3118782.247852, "dkappa":-0.000067}
{"kappa": 0.000093, "s": 640.985067, "theta": 1.613747, "x":691205.312107, "y":3118782.620583, "dkappa":-0.000068}
{"kappa": 0.000067, "s": 641.358074, "theta": 1.613777, "x":691205.296086, "y":3118782.993246, "dkappa":-0.000069}
{"kappa": 0.000041, "s": 641.731014, "theta": 1.613797, "x":691205.280057, "y":3118783.365841, "dkappa":-0.000070}
{"kappa": 0.000015, "s": 642.103886, "theta": 1.613808, "x":691205.264026, "y":3118783.738368, "dkappa":-0.000071}
{"kappa": -0.000012, "s": 642.476690, "theta": 1.613808, "x":691205.247996, "y":3118784.110827, "dkappa":-0.000073}
{"kappa": -0.000039, "s": 642.849426, "theta": 1.613799, "x":691205.231970, "y":3118784.483219, "dkappa":-0.000074}
{"kappa": -0.000067, "s": 643.222095, "theta": 1.613779, "x":691205.215953, "y":3118784.855544, "dkappa":-0.000075}
{"kappa": -0.000094, "s": 643.594696, "theta": 1.613749, "x":691205.199948, "y":3118785.227801, "dkappa":-0.000073}
{"kappa": -0.000122, "s": 643.967229, "theta": 1.613708, "x":691205.183959, "y":3118785.599991, "dkappa":-0.000074}
{"kappa": -0.000149, "s": 644.339695, "theta": 1.613658, "x":691205.167990, "y":3118785.972114, "dkappa":-0.000074}
{"kappa": -0.000177, "s": 644.712093, "theta": 1.613597, "x":691205.152044, "y":3118786.344170, "dkappa":-0.000075}
{"kappa": -0.000205, "s": 645.084423, "theta": 1.613526, "x":691205.136126, "y":3118786.716159, "dkappa":-0.000075}
{"kappa": -0.000233, "s": 645.456685, "theta": 1.613445, "x":691205.120239, "y":3118787.088082, "dkappa":-0.000076}
{"kappa": -0.000262, "s": 645.828879, "theta": 1.613353, "x":691205.104387, "y":3118787.459939, "dkappa":-0.000077}
{"kappa": -0.000290, "s": 646.201005, "theta": 1.613250, "x":691205.088574, "y":3118787.831729, "dkappa":-0.000077}
{"kappa": -0.000319, "s": 646.573063, "theta": 1.613137, "x":691205.072804, "y":3118788.203453, "dkappa":-0.000077}
{"kappa": -0.000348, "s": 646.945054, "theta": 1.613013, "x":691205.057082, "y":3118788.575111, "dkappa":-0.000078}
{"kappa": -0.000377, "s": 647.316976, "theta": 1.612878, "x":691205.041410, "y":3118788.946703, "dkappa":-0.000078}
{"kappa": -0.000406, "s": 647.688831, "theta": 1.612732, "x":691205.025793, "y":3118789.318230, "dkappa":-0.000079}
{"kappa": -0.000435, "s": 648.060618, "theta": 1.612576, "x":691205.010235, "y":3118789.689691, "dkappa":-0.000079}
{"kappa": -0.000465, "s": 648.432336, "theta": 1.612409, "x":691204.994740, "y":3118790.061086, "dkappa":-0.000079}
{"kappa": -0.000494, "s": 648.803987, "theta": 1.612230, "x":691204.979312, "y":3118790.432417, "dkappa":-0.000080}
{"kappa": -0.000524, "s": 649.175570, "theta": 1.612041, "x":691204.963955, "y":3118790.803682, "dkappa":-0.000080}
{"kappa": -0.000554, "s": 649.547085, "theta": 1.611841, "x":691204.948673, "y":3118791.174883, "dkappa":-0.000080}
{"kappa": -0.000583, "s": 649.918532, "theta": 1.611630, "x":691204.933470, "y":3118791.546019, "dkappa":-0.000080}
{"kappa": -0.000613, "s": 650.289911, "theta": 1.611408, "x":691204.918351, "y":3118791.917090, "dkappa":-0.000080}
{"kappa": -0.000643, "s": 650.661222, "theta": 1.611175, "x":691204.903318, "y":3118792.288097, "dkappa":-0.000080}
{"kappa": -0.000673, "s": 651.032466, "theta": 1.610930, "x":691204.888377, "y":3118792.659039, "dkappa":-0.000080}
{"kappa": -0.000703, "s": 651.403641, "theta": 1.610675, "x":691204.873531, "y":3118793.029918, "dkappa":-0.000080}
{"kappa": -0.000732, "s": 651.774749, "theta": 1.610409, "x":691204.858785, "y":3118793.400732, "dkappa":-0.000080}
{"kappa": -0.000762, "s": 652.145789, "theta": 1.610132, "x":691204.844142, "y":3118793.771483, "dkappa":-0.000080}
{"kappa": -0.000792, "s": 652.516761, "theta": 1.609843, "x":691204.829606, "y":3118794.142170, "dkappa":-0.000080}
{"kappa": -0.000822, "s": 652.887665, "theta": 1.609544, "x":691204.815182, "y":3118794.512794, "dkappa":-0.000080}
{"kappa": -0.000852, "s": 653.258502, "theta": 1.609234, "x":691204.800874, "y":3118794.883355, "dkappa":-0.000080}
{"kappa": -0.000881, "s": 653.629271, "theta": 1.608913, "x":691204.786685, "y":3118795.253852, "dkappa":-0.000080}
{"kappa": -0.000911, "s": 653.999972, "theta": 1.608580, "x":691204.772620, "y":3118795.624287, "dkappa":-0.000080}
{"kappa": -0.000940, "s": 654.370606, "theta": 1.608237, "x":691204.758683, "y":3118795.994658, "dkappa":-0.000080}
{"kappa": -0.000970, "s": 654.741173, "theta": 1.607883, "x":691204.744877, "y":3118796.364968, "dkappa":-0.000079}
{"kappa": -0.000999, "s": 655.111672, "theta": 1.607519, "x":691204.731206, "y":3118796.735214, "dkappa":-0.000079}
{"kappa": -0.001028, "s": 655.482104, "theta": 1.607143, "x":691204.717675, "y":3118797.105399, "dkappa":-0.000079}
{"kappa": -0.001057, "s": 655.852468, "theta": 1.606757, "x":691204.704288, "y":3118797.475521, "dkappa":-0.000078}
{"kappa": -0.001086, "s": 656.222765, "theta": 1.606360, "x":691204.691048, "y":3118797.845582, "dkappa":-0.000078}
{"kappa": -0.001115, "s": 656.592996, "theta": 1.605952, "x":691204.677959, "y":3118798.215580, "dkappa":-0.000078}
{"kappa": -0.001144, "s": 656.963159, "theta": 1.605534, "x":691204.665025, "y":3118798.585518, "dkappa":-0.000077}
{"kappa": -0.001172, "s": 657.333255, "theta": 1.605106, "x":691204.652250, "y":3118798.955393, "dkappa":-0.000077}
{"kappa": -0.001200, "s": 657.703285, "theta": 1.604667, "x":691204.639638, "y":3118799.325208, "dkappa":-0.000076}
{"kappa": -0.001228, "s": 658.073247, "theta": 1.604218, "x":691204.627192, "y":3118799.694961, "dkappa":-0.000075}
{"kappa": -0.001256, "s": 658.443144, "theta": 1.603758, "x":691204.614917, "y":3118800.064654, "dkappa":-0.000075}
{"kappa": -0.001284, "s": 658.812974, "theta": 1.603288, "x":691204.602815, "y":3118800.434286, "dkappa":-0.000074}
{"kappa": -0.001311, "s": 659.182737, "theta": 1.602809, "x":691204.590892, "y":3118800.803857, "dkappa":-0.000074}
{"kappa": -0.001338, "s": 659.552434, "theta": 1.602319, "x":691204.579149, "y":3118801.173368, "dkappa":-0.000073}
{"kappa": -0.001365, "s": 659.922066, "theta": 1.601819, "x":691204.567591, "y":3118801.542818, "dkappa":-0.000072}
{"kappa": -0.001392, "s": 660.291631, "theta": 1.601310, "x":691204.556222, "y":3118801.912209, "dkappa":-0.000071}
{"kappa": -0.001418, "s": 660.661131, "theta": 1.600791, "x":691204.545044, "y":3118802.281539, "dkappa":-0.000071}
{"kappa": -0.001444, "s": 661.030565, "theta": 1.600262, "x":691204.534062, "y":3118802.650810, "dkappa":-0.000070}
{"kappa": -0.001469, "s": 661.399933, "theta": 1.599724, "x":691204.523279, "y":3118803.020021, "dkappa":-0.000069}
{"kappa": -0.001495, "s": 661.769237, "theta": 1.599177, "x":691204.512698, "y":3118803.389173, "dkappa":-0.000068}
{"kappa": -0.001519, "s": 662.138475, "theta": 1.598621, "x":691204.502323, "y":3118803.758265, "dkappa":-0.000067}
{"kappa": -0.001544, "s": 662.507648, "theta": 1.598055, "x":691204.492156, "y":3118804.127299, "dkappa":-0.000066}
{"kappa": -0.001568, "s": 662.876757, "theta": 1.597481, "x":691204.482202, "y":3118804.496273, "dkappa":-0.000065}
{"kappa": -0.001592, "s": 663.245801, "theta": 1.596898, "x":691204.472462, "y":3118804.865189, "dkappa":-0.000064}
{"kappa": -0.001615, "s": 663.614781, "theta": 1.596306, "x":691204.462941, "y":3118805.234046, "dkappa":-0.000063}
{"kappa": -0.001638, "s": 663.983696, "theta": 1.595706, "x":691204.453642, "y":3118805.602844, "dkappa":-0.000062}
{"kappa": -0.001661, "s": 664.352548, "theta": 1.595097, "x":691204.444567, "y":3118805.971584, "dkappa":-0.000061}
{"kappa": -0.001683, "s": 664.721336, "theta": 1.594480, "x":691204.435720, "y":3118806.340266, "dkappa":-0.000059}
{"kappa": -0.001705, "s": 665.090061, "theta": 1.593856, "x":691204.427102, "y":3118806.708890, "dkappa":-0.000058}
{"kappa": -0.001726, "s": 665.458722, "theta": 1.593223, "x":691204.418718, "y":3118807.077456, "dkappa":-0.000057}
{"kappa": -0.001747, "s": 665.827321, "theta": 1.592583, "x":691204.410570, "y":3118807.445964, "dkappa":-0.000056}
{"kappa": -0.001767, "s": 666.195856, "theta": 1.591936, "x":691204.402661, "y":3118807.814415, "dkappa":-0.000054}
{"kappa": -0.001787, "s": 666.564329, "theta": 1.591281, "x":691204.394992, "y":3118808.182808, "dkappa":-0.000054}
{"kappa": -0.001807, "s": 666.932740, "theta": 1.590619, "x":691204.387568, "y":3118808.551144, "dkappa":-0.000052}
{"kappa": -0.001826, "s": 667.301089, "theta": 1.589950, "x":691204.380390, "y":3118808.919423, "dkappa":-0.000051}
{"kappa": -0.001844, "s": 667.669376, "theta": 1.589274, "x":691204.373461, "y":3118809.287645, "dkappa":-0.000049}
{"kappa": -0.001862, "s": 668.037602, "theta": 1.588591, "x":691204.366783, "y":3118809.655810, "dkappa":-0.000047}
{"kappa": -0.001879, "s": 668.405766, "theta": 1.587903, "x":691204.360358, "y":3118810.023918, "dkappa":-0.000045}
{"kappa": -0.001895, "s": 668.773869, "theta": 1.587208, "x":691204.354189, "y":3118810.391970, "dkappa":-0.000043}
{"kappa": -0.001911, "s": 669.141912, "theta": 1.586508, "x":691204.348277, "y":3118810.759965, "dkappa":-0.000042}
{"kappa": -0.001926, "s": 669.509894, "theta": 1.585802, "x":691204.342626, "y":3118811.127904, "dkappa":-0.000040}
{"kappa": -0.001940, "s": 669.877816, "theta": 1.585091, "x":691204.337236, "y":3118811.495787, "dkappa":-0.000038}
{"kappa": -0.001954, "s": 670.245679, "theta": 1.584374, "x":691204.332109, "y":3118811.863613, "dkappa":-0.000037}
{"kappa": -0.001967, "s": 670.613481, "theta": 1.583653, "x":691204.327248, "y":3118812.231384, "dkappa":-0.000035}
{"kappa": -0.001980, "s": 670.981225, "theta": 1.582927, "x":691204.322653, "y":3118812.599099, "dkappa":-0.000034}
{"kappa": -0.001992, "s": 671.348909, "theta": 1.582197, "x":691204.318327, "y":3118812.966758, "dkappa":-0.000032}
{"kappa": -0.002004, "s": 671.716535, "theta": 1.581462, "x":691204.314271, "y":3118813.334361, "dkappa":-0.000031}
{"kappa": -0.002015, "s": 672.084103, "theta": 1.580724, "x":691204.310486, "y":3118813.701909, "dkappa":-0.000029}
{"kappa": -0.002026, "s": 672.451612, "theta": 1.579981, "x":691204.306974, "y":3118814.069402, "dkappa":-0.000028}
{"kappa": -0.002036, "s": 672.819064, "theta": 1.579235, "x":691204.303736, "y":3118814.436839, "dkappa":-0.000027}
{"kappa": -0.002045, "s": 673.186458, "theta": 1.578486, "x":691204.300773, "y":3118814.804222, "dkappa":-0.000025}
{"kappa": -0.002054, "s": 673.553795, "theta": 1.577733, "x":691204.298087, "y":3118815.171549, "dkappa":-0.000024}
{"kappa": -0.002063, "s": 673.921076, "theta": 1.576977, "x":691204.295678, "y":3118815.538821, "dkappa":-0.000023}
{"kappa": -0.002071, "s": 674.288299, "theta": 1.576218, "x":691204.293548, "y":3118815.906039, "dkappa":-0.000022}
{"kappa": -0.002079, "s": 674.655467, "theta": 1.575456, "x":691204.291697, "y":3118816.273202, "dkappa":-0.000020}
{"kappa": -0.002086, "s": 675.022579, "theta": 1.574691, "x":691204.290127, "y":3118816.640310, "dkappa":-0.000019}
{"kappa": -0.002093, "s": 675.389635, "theta": 1.573924, "x":691204.288838, "y":3118817.007364, "dkappa":-0.000018}
{"kappa": -0.002099, "s": 675.756635, "theta": 1.573155, "x":691204.287831, "y":3118817.374363, "dkappa":-0.000017}
{"kappa": -0.002105, "s": 676.123581, "theta": 1.572384, "x":691204.287107, "y":3118817.741308, "dkappa":-0.000016}
{"kappa": -0.002111, "s": 676.490472, "theta": 1.571610, "x":691204.286666, "y":3118818.108199, "dkappa":-0.000015}
{"kappa": -0.002116, "s": 676.857308, "theta": 1.570835, "x":691204.286510, "y":3118818.475035, "dkappa":-0.000014}
{"kappa": -0.002121, "s": 677.224091, "theta": 1.570058, "x":691204.286638, "y":3118818.841818, "dkappa":-0.000013}
{"kappa": -0.002126, "s": 677.590820, "theta": 1.569279, "x":691204.287052, "y":3118819.208546, "dkappa":-0.000012}
{"kappa": -0.002130, "s": 677.957495, "theta": 1.568499, "x":691204.287751, "y":3118819.575221, "dkappa":-0.000011}
{"kappa": -0.002134, "s": 678.324117, "theta": 1.567717, "x":691204.288737, "y":3118819.941842, "dkappa":-0.000010}
{"kappa": -0.002138, "s": 678.690686, "theta": 1.566934, "x":691204.290009, "y":3118820.308409, "dkappa":-0.000010}
{"kappa": -0.002141, "s": 679.057203, "theta": 1.566150, "x":691204.291568, "y":3118820.674922, "dkappa":-0.000009}
{"kappa": -0.002144, "s": 679.423667, "theta": 1.565365, "x":691204.293415, "y":3118821.041382, "dkappa":-0.000008}
{"kappa": -0.002147, "s": 679.790080, "theta": 1.564578, "x":691204.295549, "y":3118821.407788, "dkappa":-0.000007}
{"kappa": -0.002150, "s": 680.156441, "theta": 1.563791, "x":691204.297971, "y":3118821.774141, "dkappa":-0.000007}
{"kappa": -0.002152, "s": 680.522750, "theta": 1.563004, "x":691204.300681, "y":3118822.140440, "dkappa":-0.000006}
{"kappa": -0.002154, "s": 680.889008, "theta": 1.562215, "x":691204.303680, "y":3118822.506686, "dkappa":-0.000006}
{"kappa": -0.002156, "s": 681.255216, "theta": 1.561426, "x":691204.306967, "y":3118822.872879, "dkappa":-0.000005}
{"kappa": -0.002158, "s": 681.621373, "theta": 1.560636, "x":691204.310542, "y":3118823.239018, "dkappa":-0.000004}
{"kappa": -0.002159, "s": 681.987480, "theta": 1.559846, "x":691204.314407, "y":3118823.605105, "dkappa":-0.000004}
{"kappa": -0.002161, "s": 682.353536, "theta": 1.559055, "x":691204.318560, "y":3118823.971138, "dkappa":-0.000004}
{"kappa": -0.002162, "s": 682.719543, "theta": 1.558264, "x":691204.323002, "y":3118824.337118, "dkappa":-0.000003}
{"kappa": -0.002163, "s": 683.085501, "theta": 1.557473, "x":691204.327733, "y":3118824.703045, "dkappa":-0.000003}
{"kappa": -0.002164, "s": 683.451410, "theta": 1.556681, "x":691204.332753, "y":3118825.068920, "dkappa":-0.000002}
{"kappa": -0.002165, "s": 683.817270, "theta": 1.555889, "x":691204.338061, "y":3118825.434741, "dkappa":-0.000002}
{"kappa": -0.002165, "s": 684.183081, "theta": 1.555097, "x":691204.343659, "y":3118825.800509, "dkappa":-0.000002}
{"kappa": -0.002166, "s": 684.548844, "theta": 1.554305, "x":691204.349546, "y":3118826.166225, "dkappa":-0.000002}
{"kappa": -0.002167, "s": 684.914559, "theta": 1.553513, "x":691204.355722, "y":3118826.531888, "dkappa":-0.000001}
{"kappa": -0.002167, "s": 685.280226, "theta": 1.552721, "x":691204.362186, "y":3118826.897497, "dkappa":-0.000001}
{"kappa": -0.002167, "s": 685.645845, "theta": 1.551928, "x":691204.368939, "y":3118827.263055, "dkappa":-0.000001}
{"kappa": -0.002168, "s": 686.011418, "theta": 1.551136, "x":691204.375981, "y":3118827.628559, "dkappa":-0.000001}
{"kappa": -0.002168, "s": 686.376943, "theta": 1.550343, "x":691204.383312, "y":3118827.994011, "dkappa":-0.000001}
{"kappa": -0.002169, "s": 686.742421, "theta": 1.549551, "x":691204.390932, "y":3118828.359410, "dkappa":-0.000001}
{"kappa": -0.002169, "s": 687.107853, "theta": 1.548758, "x":691204.398840, "y":3118828.724756, "dkappa":-0.000001}
{"kappa": -0.002169, "s": 687.473239, "theta": 1.547966, "x":691204.407036, "y":3118829.090050, "dkappa":-0.000001}
{"kappa": -0.002170, "s": 687.838579, "theta": 1.547173, "x":691204.415521, "y":3118829.455291, "dkappa":-0.000001}
{"kappa": -0.002170, "s": 688.203873, "theta": 1.546380, "x":691204.424295, "y":3118829.820480, "dkappa":-0.000001}
{"kappa": -0.002171, "s": 688.569121, "theta": 1.545587, "x":691204.433356, "y":3118830.185616, "dkappa":-0.000002}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map/testdata | apollo_public_repos/apollo/modules/map/relative_map/testdata/multi_lane_map/chassis_info.pb.txt | engine_started: true
engine_rpm: 1739
speed_mps: 9.1833334
odometer_m: 0
fuel_range_m: 0
throttle_percentage: 24.44648
brake_percentage: 14.708171
steering_percentage: 0.23404256
steering_torque_nm: -0.3125
parking_brake: false
driving_mode: EMERGENCY_MODE
error_code: NO_ERROR
gear_location: GEAR_DRIVE
header {
timestamp_sec: 1527501470.8327246
module_name: "chassis"
sequence_num: 176167
}
signal {
turn_signal: TURN_NONE
horn: false
}
chassis_gps {
latitude: 28.175765333333331
longitude: 112.94745599999999
gps_valid: true
year: 18
month: 5
day: 28
hours: 9
minutes: 57
seconds: 50
compass_direction: 0
pdop: 1.8
is_gps_fault: false
is_inferred: false
altitude: 6
heading: 3.22
hdop: 0.8
vdop: 1.6
quality: FIX_3D
num_satellites: 18
gps_speed: 8.9408
}
engage_advice {
advice: READY_TO_ENGAGE
}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map/testdata | apollo_public_repos/apollo/modules/map/relative_map/testdata/multi_lane_map/localization_info.pb.txt | header {
timestamp_sec: 1527501470.8319213
module_name: "localization"
sequence_num: 176952
}
pose {
position {
x: 691191.96683136618
y: 3118215.5540518095
z: 23.30362852383405
}
orientation {
qx: 0.0027043943538269748
qy: -0.0025763524622062868
qz: -0.028005831279621828
qw: 0.99960078134898778
}
linear_velocity {
x: 0.56815017656420053
y: 9.29794577776848
z: 0.070138063195533729
}
linear_acceleration {
x: 0.16129097636016865
y: -0.022201902372003295
z: -0.34247738729960436
}
angular_velocity {
x: 0.022231700061022833
y: 0.0090956953400956
z: 0.0023881491174802764
}
heading: 1.5147908243102881
linear_acceleration_vrf {
x: 0.16056710121881076
y: -0.015039498765358593
z: -0.34320618266399372
}
angular_velocity_vrf {
x: 0.021699081490098211
y: 0.010338978326063303
z: 0.0022223427255290452
}
euler_angles {
x: -0.00499926808989011
y: -0.0055509637101827441
z: 1.5147908243102879
}
}
measurement_time: 1527501470.8
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/tools/navigator.md | # Navigator
## Introduction
The Navigator converts the smoothed navigation data collected by a vehicle into a `NavigationInfo` format and sends it to the real-time relative map module with the message of `FLAGS_navigation_topic` for dynamically generating relative maps.
## Usage
Example 1:
```bash
bash scripts/navigator.sh /apollo/data/bag/path_csc_middle.bag.txt.smoothed /apollo/data/bag/path_csc_left.bag.txt.smoothed /apollo/data/bag/path_csc_right.bag.txt.smoothed
```
or
```bash
cd /apollo/data/bag
bash /apollo/scripts/navigator.sh path_csc_middle.bag.txt.smoothed path_csc_left.bag.txt.smoothed path_csc_right.bag.txt.smoothed
```
Example 2:
```bash
bash scripts/navigator.sh data/bag/csc/path_csc_left.bag.txt.smoothed data/bag/csc/path_csc_right.bag.txt.smoothed
```
or
```bash
cd /apollo/data/bag/csc
bash /apollo/scripts/navigator.sh path_csc_left.bag.txt.smoothed path_csc_right.bag.txt.smoothed
```
## Other Instructions
You can change the configuration information by modifying the `/apollo/modules/map/relative_map/conf/navigator_config.pb.txt` file. | 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/tools/navigator.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include <fstream>
#include <string>
#include <thread>
#include <vector>
#include "nlohmann/json.hpp"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
#include "cyber/cyber.h"
#include "cyber/time/rate.h"
#include "modules/common/adapters/adapter_gflags.h"
#include "modules/common/util/message_util.h"
#include "modules/map/relative_map/common/relative_map_gflags.h"
#include "modules/common_msgs/planning_msgs/navigation.pb.h"
#include "modules/map/relative_map/proto/navigator_config.pb.h"
using apollo::cyber::Rate;
using apollo::relative_map::NavigationInfo;
using apollo::relative_map::NavigationPath;
using apollo::relative_map::NavigatorConfig;
using nlohmann::json;
bool ParseNavigationLineFileNames(
int argc, char** argv, std::vector<std::string>* navigation_line_filenames);
bool GetNavigationPathFromFile(const std::string& filename,
const NavigatorConfig& navigator_config,
NavigationPath* navigation_path);
void CheckConfig(const apollo::relative_map::NavigatorConfig& navigator_config);
int main(int argc, char** argv) {
google::ParseCommandLineFlags(&argc, &argv, true);
// Init the cyber framework
apollo::cyber::Init(argv[0]);
FLAGS_alsologtostderr = true;
NavigatorConfig navigator_config;
AINFO << "The navigator configuration filename is: "
<< FLAGS_navigator_config_filename;
if (!apollo::cyber::common::GetProtoFromFile(FLAGS_navigator_config_filename,
&navigator_config)) {
AERROR << "Failed to parse " << FLAGS_navigator_config_filename;
return -1;
}
CheckConfig(navigator_config);
std::vector<std::string> navigation_line_filenames;
if (!ParseNavigationLineFileNames(argc, argv, &navigation_line_filenames)) {
AERROR << "Failed to get navigation file names.";
AINFO << "Usage: \n"
<< "\t" << argv[0]
<< " navigation_filename_1 navigation_filename_2 ...\n"
<< "For example: \n"
<< "\t" << argv[0]
<< " left.txt.smoothed right.txt.smoothed middle.txt.smoothed";
return -1;
}
ADEBUG << "The flag \"navigator_down_sample\" is: "
<< navigator_config.enable_navigator_downsample();
NavigationInfo navigation_info;
int i = 0;
for (const std::string& filename : navigation_line_filenames) {
auto* navigation_path = navigation_info.add_navigation_path();
if (!GetNavigationPathFromFile(filename, navigator_config,
navigation_path)) {
AWARN << "Failed to load file: " << filename;
continue;
}
AINFO << "The file: " << filename + " is processed ";
navigation_path->set_path_priority(i);
navigation_path->mutable_path()->set_name("Navigation path " + i);
++i;
}
if (navigation_info.navigation_path_size() < 1) {
AERROR << "No navigation information is fetched.";
return -1;
}
std::shared_ptr<apollo::cyber::Node> node(
apollo::cyber::CreateNode("navigation_info"));
auto writer = node->CreateWriter<apollo::relative_map::NavigationInfo>(
FLAGS_navigation_topic);
// In theory, the message only needs to be sent once. Considering the problems
// such as the network delay, We send it several times to ensure that the data
// is sent successfully.
Rate rate(1.0);
static constexpr int kTransNum = 3;
int trans_num = 0;
while (apollo::cyber::OK()) {
if (trans_num > kTransNum) {
break;
}
apollo::common::util::FillHeader(node->Name(), &navigation_info);
writer->Write(navigation_info);
ADEBUG << "Sending navigation info:" << navigation_info.DebugString();
rate.Sleep();
++trans_num;
}
return 0;
}
bool ParseNavigationLineFileNames(
int argc, char** argv,
std::vector<std::string>* navigation_line_filenames) {
CHECK_NOTNULL(navigation_line_filenames);
bool initialized = false;
if (argc > 1) {
try {
navigation_line_filenames->resize(argc - 1);
for (int i = 0; i < argc - 1; ++i) {
navigation_line_filenames->at(i) = argv[i + 1];
}
initialized = true;
} catch (const std::exception& e) {
AERROR << "Failed to get navigation line filenames: " << e.what();
initialized = false;
}
}
return initialized;
}
bool GetNavigationPathFromFile(const std::string& filename,
const NavigatorConfig& navigator_config,
NavigationPath* navigation_path) {
CHECK_NOTNULL(navigation_path);
std::ifstream ifs(filename, std::ios::in);
if (!ifs.is_open()) {
AERROR << "Failed to open " << filename;
return false;
}
std::string line_str;
double last_sampled_s = std::numeric_limits<double>::min();
double current_sampled_s = 0.0;
double diff_s = 0.0;
double current_kappa = 0.0;
int original_points_num = 0;
int down_sampled_points_num = 0;
const auto& sample_param = navigator_config.sample_param();
while (std::getline(ifs, line_str)) {
try {
auto json_obj = json::parse(line_str);
current_sampled_s = json_obj["s"];
current_kappa = json_obj["kappa"];
diff_s = std::fabs(current_sampled_s - last_sampled_s);
bool not_down_sampling =
navigator_config.enable_navigator_downsample()
? diff_s >= sample_param.straight_sample_interval() ||
(diff_s >= sample_param.small_kappa_sample_interval() &&
std::fabs(current_kappa) > sample_param.small_kappa()) ||
(diff_s >= sample_param.middle_kappa_sample_interval() &&
std::fabs(current_kappa) > sample_param.middle_kappa()) ||
(diff_s >= sample_param.large_kappa_sample_interval() &&
std::fabs(current_kappa) > sample_param.large_kappa())
: true;
// Add a condition: !navigation_path->has_path() to keep the first point
// when down_sampling
if (not_down_sampling || !navigation_path->has_path()) {
last_sampled_s = current_sampled_s;
auto* point = navigation_path->mutable_path()->add_path_point();
point->set_x(json_obj["x"]);
point->set_y(json_obj["y"]);
point->set_s(current_sampled_s);
point->set_theta(json_obj["theta"]);
point->set_kappa(current_kappa);
point->set_dkappa(json_obj["dkappa"]);
++down_sampled_points_num;
ADEBUG << "down_sample_x: " << json_obj["x"]
<< ", down_sample_y: " << json_obj["y"];
}
++original_points_num;
} catch (const std::exception& e) {
AERROR << "Failed to parse JSON data: " << e.what();
return false;
}
}
AINFO << "The number of original points is: " << original_points_num
<< " and the number of down sampled points is: "
<< down_sampled_points_num << " in the file: " << filename;
return true;
}
void CheckConfig(
const apollo::relative_map::NavigatorConfig& navigator_config) {
ACHECK(navigator_config.has_sample_param());
const auto& sample_param = navigator_config.sample_param();
ACHECK(sample_param.has_straight_sample_interval());
ACHECK(sample_param.has_small_kappa_sample_interval());
ACHECK(sample_param.has_middle_kappa_sample_interval());
ACHECK(sample_param.has_large_kappa_sample_interval());
ACHECK(sample_param.has_small_kappa());
ACHECK(sample_param.has_middle_kappa());
ACHECK(sample_param.has_large_kappa());
}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/tools/navigation_dummy.cc | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "gflags/gflags.h"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
#include "cyber/cyber.h"
#include "cyber/time/rate.h"
#include "modules/common/adapters/adapter_gflags.h"
#include "modules/common/util/message_util.h"
#include "modules/common_msgs/planning_msgs/navigation.pb.h"
using apollo::cyber::Rate;
DEFINE_string(navigation_dummy_file,
"modules/map/testdata/navigation_dummy/navigation_info.pb.txt",
"Used for sending navigation result to relative_map node.");
int main(int argc, char** argv) {
google::ParseCommandLineFlags(&argc, &argv, true);
// Init the cyber framework
apollo::cyber::Init(argv[0]);
FLAGS_alsologtostderr = true;
apollo::relative_map::NavigationInfo navigation_info;
if (!apollo::cyber::common::GetProtoFromFile(FLAGS_navigation_dummy_file,
&navigation_info)) {
AERROR << "failed to load file: " << FLAGS_navigation_dummy_file;
return -1;
}
std::shared_ptr<apollo::cyber::Node> node(
apollo::cyber::CreateNode("navigation_info"));
auto writer = node->CreateWriter<apollo::relative_map::NavigationInfo>(
FLAGS_navigation_topic);
Rate rate(0.3);
while (apollo::cyber::OK()) {
apollo::common::util::FillHeader(node->Name(), &navigation_info);
writer->Write(navigation_info);
ADEBUG << "Sending navigation info:" << navigation_info.DebugString();
rate.Sleep();
}
return 0;
}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/tools/BUILD | load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//tools:cpplint.bzl", "cpplint")
load("//tools/install:install.bzl", "install")
package(default_visibility = ["//visibility:public"])
MAP_COPTS = ["-DMODULE_NAME=\\\"map\\\""]
install(
name = "install",
runtime_dest = "map/bin",
targets = [
":navigation_dummy",
":navigator",
],
visibility = ["//visibility:public"],
)
cc_binary(
name = "navigation_dummy",
srcs = ["navigation_dummy.cc"],
copts = MAP_COPTS,
deps = [
"//cyber",
"//modules/common/adapters:adapter_gflags",
"//modules/common/util",
"//modules/map/relative_map:relative_map_lib",
],
)
cc_binary(
name = "navigator",
srcs = ["navigator.cc"],
copts = MAP_COPTS,
deps = [
"//cyber",
"//modules/common/adapters:adapter_gflags",
"//modules/common/util",
"//modules/map/relative_map:relative_map_lib",
"//modules/map/relative_map/proto:navigator_config_cc_proto",
"@com_github_nlohmann_json//:json",
],
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/proto/navigator_config.proto | syntax = "proto2";
package apollo.relative_map;
message SampleParam {
// Sampling interval for a straight line.
optional double straight_sample_interval = 1 [default = 3.0];
// Sampling interval for a curve segment with a small curvature.
optional double small_kappa_sample_interval = 2 [default = 1.0];
// Sampling interval for a curve segment with a middle curvature.
optional double middle_kappa_sample_interval = 3 [default = 0.4];
// Sampling interval for a curve segment with a large curvature.
optional double large_kappa_sample_interval = 4 [default = 0.1];
// Small curvature threshold.
optional double small_kappa = 5 [default = 0.002];
// Middle curvature threshold.
optional double middle_kappa = 6 [default = 0.008];
// Large curvature threshold.
optional double large_kappa = 7 [default = 0.02];
}
message NavigatorConfig {
// When a navigation line is sent, the original data is downsampled to reduce
// unnecessary memory consumption.
optional bool enable_navigator_downsample = 1 [default = true];
// Smapling paramters.
optional SampleParam sample_param = 2;
}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/proto/relative_map_config.proto | syntax = "proto2";
package apollo.relative_map;
message MapGenerationParam {
optional double default_left_width = 1 [default = 1.75];
optional double default_right_width = 2 [default = 1.75];
optional double default_speed_limit = 3
[default = 29.0576]; // default is 65mph
}
message NavigationLaneConfig {
optional double min_lane_marker_quality = 1 [default = 0.5];
enum LaneSource {
PERCEPTION = 1;
OFFLINE_GENERATED = 2;
}
optional LaneSource lane_source = 2;
// max navigation path length from navigation line
optional double max_len_from_navigation_line = 3 [default = 250.0];
// min generated navigation lane length
optional double min_len_for_navigation_lane = 4 [default = 150.0];
// max generated navigation lane length
optional double max_len_for_navigation_lane = 5 [default = 250.0];
// navigation lane length to adv speed ratio
optional double ratio_navigation_lane_len_to_speed = 6 [default = 8.0];
// max distance to navigation line in navigation mode
optional double max_distance_to_navigation_line = 7 [default = 15.0];
// min view range to use lane_marker
optional double min_view_range_to_use_lane_marker = 8 [default = 0.5];
// min lane half width in meters
optional double min_lane_half_width = 9 [default = 1.5];
// max lane half width in meters
optional double max_lane_half_width = 10 [default = 2.0];
// weight based on the lane marking detection result when the navigation line
// is generated.
optional double lane_marker_weight = 11 [default = 0.1];
}
message RelativeMapConfig {
optional MapGenerationParam map_param = 1;
optional NavigationLaneConfig navigation_lane = 2;
}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/proto/BUILD | ## Auto generated by `proto_build_generator.py`
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
load("//tools:python_rules.bzl", "py_proto_library")
load("//tools/install:install.bzl", "install", "install_files")
package(default_visibility = ["//visibility:public"])
install_files(
name = "py_pb_map",
dest = "map/python/modules/map/relative_map/proto",
files = [
":navigator_config_py_pb2",
":relative_map_config_py_pb2",
]
)
cc_proto_library(
name = "navigator_config_cc_proto",
deps = [
":navigator_config_proto",
],
)
proto_library(
name = "navigator_config_proto",
srcs = ["navigator_config.proto"],
)
py_proto_library(
name = "navigator_config_py_pb2",
deps = [
":navigator_config_proto",
],
)
cc_proto_library(
name = "relative_map_config_cc_proto",
deps = [
":relative_map_config_proto",
],
)
proto_library(
name = "relative_map_config_proto",
srcs = ["relative_map_config.proto"],
)
py_proto_library(
name = "relative_map_config_py_pb2",
deps = [
":relative_map_config_proto",
],
)
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/launch/relative_map.launch | <cyber>
<module>
<name>relative_map</name>
<dag_conf>/apollo/modules/map/relative_map/dag/relative_map.dag</dag_conf>
<process_name>relative_map</process_name>
</module>
</cyber>
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/dag/relative_map.dag | module_config {
module_library : "/apollo/bazel-bin/modules/map/relative_map/librelative_map_component.so"
timer_components {
class_name : "RelativeMapComponent"
config {
name: "relative_map"
flag_file_path: "/apollo/modules/map/relative_map/conf/relative_map.conf"
interval: 100
}
}
}
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/common/relative_map_gflags.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/relative_map/common/relative_map_gflags.h"
DEFINE_string(
relative_map_config_filename,
"/apollo/modules/map/relative_map/conf/relative_map_config.pb.txt",
"Relative map configuration file");
DEFINE_string(navigator_config_filename,
"/apollo/modules/map/relative_map/conf/navigator_config.pb.txt",
"navigator config file name.");
DEFINE_int32(relative_map_loop_rate, 10, "Loop rate for relative_map node");
DEFINE_bool(enable_cyclic_rerouting, false,
"Enable auto rerouting in a in a cyclic/circular navigaton line.");
DEFINE_bool(relative_map_generate_left_boundray, true,
"Generate left boundary for detected lanes.");
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/common/BUILD | load("@rules_cc//cc:defs.bzl", "cc_library")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "relative_map_gflags",
srcs = ["relative_map_gflags.cc"],
hdrs = ["relative_map_gflags.h"],
deps = [
"@com_github_gflags_gflags//:gflags",
],
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/common/relative_map_gflags.h | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include "gflags/gflags.h"
DECLARE_string(relative_map_config_filename);
DECLARE_string(navigator_config_filename);
DECLARE_int32(relative_map_loop_rate);
DECLARE_bool(enable_cyclic_rerouting);
DECLARE_bool(relative_map_generate_left_boundray);
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/conf/relative_map.conf | --flagfile=/apollo/modules/common/data/global_flagfile.txt
--use_navigation_mode
--relative_map_config_filename=/apollo/modules/map/relative_map/conf/relative_map_config.pb.txt
--enable_cyclic_rerouting=1
| 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/conf/navigator_config.pb.txt | enable_navigator_downsample: true
sample_param {
straight_sample_interval: 3.0
small_kappa_sample_interval: 1.0
middle_kappa_sample_interval: 0.4
large_kappa_sample_interval: 0.1
small_kappa: 0.002
middle_kappa: 0.008
large_kappa: 0.02
} | 0 |
apollo_public_repos/apollo/modules/map/relative_map | apollo_public_repos/apollo/modules/map/relative_map/conf/relative_map_config.pb.txt | map_param {
default_left_width: 1.875
default_right_width: 1.875
default_speed_limit : 29.06 # 65 mph
}
navigation_lane {
min_lane_marker_quality: 0.49
lane_source: OFFLINE_GENERATED
max_len_from_navigation_line: 250.0
min_len_for_navigation_lane: 150.0
max_len_for_navigation_lane: 250.0
ratio_navigation_lane_len_to_speed: 8.0
max_distance_to_navigation_line: 15.0
min_view_range_to_use_lane_marker: 0.5
min_lane_half_width: 1.5
max_lane_half_width: 2.0
lane_marker_weight: 0.1
}
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_common_test.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "gtest/gtest.h"
#include "modules/map/hdmap/hdmap_impl.h"
namespace apollo {
namespace hdmap {
class HDMapCommonTestSuite : public ::testing::Test {
protected:
HDMapCommonTestSuite() {}
virtual ~HDMapCommonTestSuite() {}
virtual void SetUp() {}
virtual void TearDown() {}
void InitLaneObj(Lane* lane);
void InitJunctionObj(Junction* junction);
void InitSignalObj(Signal* signal);
void InitCrosswalkObj(Crosswalk* crosswalk);
void InitStopSignObj(StopSign* stop_sign);
void InitYieldSignObj(YieldSign* yield_sign);
void InitClearAreaObj(ClearArea* clear_area);
void InitSpeedBumpObj(SpeedBump* speed_bump);
void InitRoadObj(Road* road);
void InitParkingSpaceObj(ParkingSpace* parking_space);
};
void HDMapCommonTestSuite::InitLaneObj(Lane* lane) {
lane->mutable_id()->set_id("lane_1");
CurveSegment* curve_segment = lane->mutable_central_curve()->add_segment();
LineSegment* line_segment = curve_segment->mutable_line_segment();
apollo::common::PointENU* pt = line_segment->add_point();
pt->set_x(170001.0);
pt->set_y(1.0);
pt = line_segment->add_point();
pt->set_x(170002.0);
pt->set_y(1.0);
pt = line_segment->add_point();
pt->set_x(170003.0);
pt->set_y(1.0);
pt = line_segment->add_point();
pt->set_x(170004.0);
pt->set_y(1.0);
pt = line_segment->add_point();
pt->set_x(170005.0);
pt->set_y(1.0);
LaneSampleAssociation* lane_sample = lane->add_left_sample();
lane_sample->set_s(0.0);
lane_sample->set_width(1.5);
lane_sample = lane->add_left_sample();
lane_sample->set_s(1.0);
lane_sample->set_width(1.5);
lane_sample = lane->add_left_sample();
lane_sample->set_s(2.0);
lane_sample->set_width(1.5);
lane_sample = lane->add_left_sample();
lane_sample->set_s(3.0);
lane_sample->set_width(1.2);
lane_sample = lane->add_left_sample();
lane_sample->set_s(4.0);
lane_sample->set_width(1.2);
lane_sample = lane->add_right_sample();
lane_sample->set_s(0.0);
lane_sample->set_width(1.5);
lane_sample = lane->add_right_sample();
lane_sample->set_s(1.0);
lane_sample->set_width(1.5);
lane_sample = lane->add_right_sample();
lane_sample->set_s(2.0);
lane_sample->set_width(1.5);
lane_sample = lane->add_right_sample();
lane_sample->set_s(3.0);
lane_sample->set_width(1.2);
lane_sample = lane->add_right_sample();
lane_sample->set_s(4.0);
lane_sample->set_width(1.2);
lane->set_type(Lane::CITY_DRIVING);
}
void HDMapCommonTestSuite::InitJunctionObj(Junction* junction) {
junction->mutable_id()->set_id("junction_1");
Polygon* polygon = junction->mutable_polygon();
apollo::common::PointENU* pt = polygon->add_point();
pt->set_x(170001.0);
pt->set_y(170001.0);
pt = polygon->add_point();
pt->set_x(170002.0);
pt->set_y(170001.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170001.0);
pt = polygon->add_point();
pt->set_x(170004.0);
pt->set_y(170001.0);
pt = polygon->add_point();
pt->set_x(170005.0);
pt->set_y(170001.0);
pt = polygon->add_point();
pt->set_x(170005.0);
pt->set_y(170001.0);
pt = polygon->add_point();
pt->set_x(170005.0);
pt->set_y(170002.0);
pt = polygon->add_point();
pt->set_x(170001.0);
pt->set_y(170002.0);
pt = polygon->add_point();
pt->set_x(170001.0);
pt->set_y(170001.0);
}
void HDMapCommonTestSuite::InitSignalObj(Signal* signal) {
signal->mutable_id()->set_id("signal_1");
Polygon* polygon = signal->mutable_boundary();
apollo::common::PointENU* pt = polygon->add_point();
pt->set_x(170001.0);
pt->set_y(1.0);
pt->set_z(1.0);
pt = polygon->add_point();
pt->set_x(170001.0);
pt->set_y(1.0);
pt->set_z(5.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(1.0);
pt->set_z(5.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(1.0);
pt->set_z(1.0);
Subsignal* sub_signal = signal->add_subsignal();
sub_signal->mutable_id()->set_id("sub_signal_1");
pt = sub_signal->mutable_location();
pt->set_x(170002.0);
pt->set_y(1.0);
pt->set_z(4.0);
sub_signal = signal->add_subsignal();
sub_signal->mutable_id()->set_id("sub_signal_2");
pt = sub_signal->mutable_location();
pt->set_x(170002.0);
pt->set_y(1.0);
pt->set_z(3.0);
sub_signal = signal->add_subsignal();
sub_signal->mutable_id()->set_id("sub_signal_3");
pt = sub_signal->mutable_location();
pt->set_x(170002.0);
pt->set_y(1.0);
pt->set_z(2.0);
CurveSegment* curve_segment = signal->add_stop_line()->add_segment();
LineSegment* line_segment = curve_segment->mutable_line_segment();
pt = line_segment->add_point();
pt->set_x(170000.0);
pt->set_y(4.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170001.0);
pt->set_y(4.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170002.0);
pt->set_y(4.0);
pt->set_z(0.0);
curve_segment = signal->add_stop_line()->add_segment();
line_segment = curve_segment->mutable_line_segment();
pt = line_segment->add_point();
pt->set_x(170002.0);
pt->set_y(4.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170003.0);
pt->set_y(4.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170004.0);
pt->set_y(4.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitCrosswalkObj(Crosswalk* crosswalk) {
crosswalk->mutable_id()->set_id("crosswalk_1");
Polygon* polygon = crosswalk->mutable_polygon();
apollo::common::PointENU* pt = polygon->add_point();
pt->set_x(170000.0);
pt->set_y(170000.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170000.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170003.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170000.0);
pt->set_y(170003.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitStopSignObj(StopSign* stop_sign) {
stop_sign->mutable_id()->set_id("stop_sign_1");
CurveSegment* curve_segment = stop_sign->add_stop_line()->add_segment();
LineSegment* line_segment = curve_segment->mutable_line_segment();
apollo::common::PointENU* pt = line_segment->add_point();
pt->set_x(170000.0);
pt->set_y(0.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170001.0);
pt->set_y(0.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170002.0);
pt->set_y(0.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitYieldSignObj(YieldSign* yield_sign) {
yield_sign->mutable_id()->set_id("yield_sign_1");
CurveSegment* curve_segment = yield_sign->add_stop_line()->add_segment();
LineSegment* line_segment = curve_segment->mutable_line_segment();
apollo::common::PointENU* pt = line_segment->add_point();
pt->set_x(170000.0);
pt->set_y(0.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170001.0);
pt->set_y(0.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170002.0);
pt->set_y(0.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitClearAreaObj(ClearArea* clear_area) {
clear_area->mutable_id()->set_id("clear_area_1");
Polygon* polygon = clear_area->mutable_polygon();
apollo::common::PointENU* pt = polygon->add_point();
pt->set_x(170000.0);
pt->set_y(170000.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170000.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170003.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170000.0);
pt->set_y(170003.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitSpeedBumpObj(SpeedBump* speed_bump) {
speed_bump->mutable_id()->set_id("speed_bump_1");
CurveSegment* curve_segment = speed_bump->add_position()->add_segment();
LineSegment* line_segment = curve_segment->mutable_line_segment();
apollo::common::PointENU* pt = line_segment->add_point();
pt->set_x(170000.0);
pt->set_y(0.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170001.0);
pt->set_y(0.0);
pt->set_z(0.0);
pt = line_segment->add_point();
pt->set_x(170002.0);
pt->set_y(0.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitParkingSpaceObj(ParkingSpace* parking_space) {
parking_space->mutable_id()->set_id("parking_space_1");
Polygon* polygon = parking_space->mutable_polygon();
apollo::common::PointENU* pt = polygon->add_point();
pt->set_x(170000.0);
pt->set_y(170000.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170000.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170003.0);
pt->set_y(170003.0);
pt->set_z(0.0);
pt = polygon->add_point();
pt->set_x(170000.0);
pt->set_y(170003.0);
pt->set_z(0.0);
}
void HDMapCommonTestSuite::InitRoadObj(Road* road) {
road->mutable_id()->set_id("road_1");
road->mutable_junction_id()->set_id("junction_1");
RoadSection* section = road->add_section();
section->mutable_id()->set_id("section_1");
section->add_lane_id()->set_id("section_1_1");
section->add_lane_id()->set_id("section_1_2");
section = road->add_section();
section->mutable_id()->set_id("section_2");
section->add_lane_id()->set_id("section_2_1");
}
TEST_F(HDMapCommonTestSuite, TestLaneInfo) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
EXPECT_EQ(lane.id().id(), lane_info.id().id());
EXPECT_EQ(lane.central_curve().segment(0).line_segment().point_size(),
lane_info.points().size());
for (int i = 0; i < static_cast<int>(lane_info.points().size()); ++i) {
EXPECT_NEAR(lane.central_curve().segment(0).line_segment().point(i).x(),
lane_info.points()[i].x(), 1E-5);
EXPECT_NEAR(lane.central_curve().segment(0).line_segment().point(i).y(),
lane_info.points()[i].y(), 1E-5);
}
EXPECT_EQ(lane.central_curve().segment(0).line_segment().point_size() - 1,
lane_info.segments().size());
for (const auto& segment : lane_info.segments()) {
EXPECT_NEAR(1.0, segment.length(), 1E-4);
}
EXPECT_EQ(lane_info.unit_directions().size(),
lane_info.segments().size() + 1);
for (size_t i = 0; i < lane_info.segments().size(); ++i) {
EXPECT_EQ(lane_info.segments()[i].unit_direction(),
lane_info.unit_directions()[i]);
}
EXPECT_EQ(lane.central_curve().segment(0).line_segment().point_size(),
lane_info.accumulate_s().size());
for (size_t i = 0; i < lane_info.accumulate_s().size(); ++i) {
EXPECT_NEAR(static_cast<double>(i) * 1.0,
lane_info.accumulate_s()[static_cast<int>(i)], 1E-4);
}
EXPECT_EQ(lane.central_curve().segment(0).line_segment().point_size(),
lane_info.headings().size());
for (size_t i = 0; i < lane_info.headings().size(); ++i) {
EXPECT_NEAR(lane_info.unit_directions()[i].Angle(), lane_info.headings()[i],
1E-3);
}
double left_width = 0.0;
double right_width = 0.0;
lane_info.GetWidth(2.0, &left_width, &right_width);
EXPECT_NEAR(1.5, left_width, 1E-3);
EXPECT_NEAR(1.5, right_width, 1E-3);
lane_info.GetWidth(3.5, &left_width, &right_width);
EXPECT_NEAR(1.2, left_width, 1E-3);
EXPECT_NEAR(1.2, right_width, 1E-3);
EXPECT_NEAR(4.0, lane_info.total_length(), 1E-3);
}
TEST_F(HDMapCommonTestSuite, GetWidth) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
EXPECT_NEAR(3.0, lane_info.GetWidth(2.0), 1E-3);
EXPECT_NEAR(2.4, lane_info.GetWidth(3.5), 1E-3);
}
TEST_F(HDMapCommonTestSuite, GetEffectiveWidth) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
EXPECT_NEAR(3.0, lane_info.GetEffectiveWidth(2.0), 1E-3);
EXPECT_NEAR(2.4, lane_info.GetEffectiveWidth(3.5), 1E-3);
}
TEST_F(HDMapCommonTestSuite, PointIsOnLane) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
EXPECT_TRUE(lane_info.IsOnLane({170001.5, 1.5}));
EXPECT_TRUE(lane_info.IsOnLane({170001.5, 0.5}));
EXPECT_FALSE(lane_info.IsOnLane({170000.5, 1.5}));
EXPECT_FALSE(lane_info.IsOnLane({170001.5, 3}));
}
TEST_F(HDMapCommonTestSuite, BoxIsOnLane) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
apollo::common::math::Box2d target_in_box(
apollo::common::math::LineSegment2d({170002, 1}, {170003, 1}), 0.5);
EXPECT_TRUE(lane_info.IsOnLane(target_in_box));
apollo::common::math::Box2d target_out_box(
apollo::common::math::LineSegment2d({170002, 1}, {170003, 1}), 4);
EXPECT_FALSE(lane_info.IsOnLane(target_out_box));
}
TEST_F(HDMapCommonTestSuite, GetSmoothPoint) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
auto smooth_point = lane_info.GetSmoothPoint(1.5);
EXPECT_NEAR(smooth_point.x(), 170002.5, 1E-3);
EXPECT_NEAR(smooth_point.y(), 1.0, 1E-3);
}
TEST_F(HDMapCommonTestSuite, DistanceTo) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
double distance = lane_info.DistanceTo({170002.5, 3.0});
EXPECT_NEAR(distance, 2.0, 1E-3);
distance = lane_info.DistanceTo({170000.5, 3.0});
EXPECT_NEAR(distance, 2.0615, 1E-3);
}
TEST_F(HDMapCommonTestSuite, DistanceToWithMoreInfo) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
apollo::common::math::Vec2d foot_point;
double s_offset = 0.0;
int s_offset_index = 0;
double distance = lane_info.DistanceTo({170002.5, 3.0}, &foot_point,
&s_offset, &s_offset_index);
EXPECT_NEAR(distance, 2.0, 1E-3);
EXPECT_NEAR(foot_point.x(), 170002.5, 1E-3);
EXPECT_NEAR(foot_point.y(), 1.0, 1E-3);
EXPECT_NEAR(s_offset, 1.5, 1E-3);
distance = lane_info.DistanceTo({170000.5, 3.0}, &foot_point, &s_offset,
&s_offset_index);
EXPECT_NEAR(distance, 2.06155, 1E-3);
EXPECT_NEAR(foot_point.x(), 170001.0, 1E-3);
EXPECT_NEAR(foot_point.y(), 1.0, 1E-3);
EXPECT_NEAR(s_offset, 0.0, 1E-3);
}
TEST_F(HDMapCommonTestSuite, GetNearestPoint) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
double distance = 0.0;
auto nearest_point = lane_info.GetNearestPoint({170002.4, 3.0}, &distance);
EXPECT_NEAR(nearest_point.x(), 170002.4, 1E-3);
EXPECT_NEAR(nearest_point.y(), 1.0, 1E-3);
nearest_point = lane_info.GetNearestPoint({170000.5, 3.0}, &distance);
EXPECT_NEAR(nearest_point.x(), 170001.0, 1E-3);
EXPECT_NEAR(nearest_point.y(), 1.0, 1E-3);
nearest_point = lane_info.GetNearestPoint({170010.5, 3.0}, &distance);
EXPECT_NEAR(nearest_point.x(), 170005.0, 1E-3);
EXPECT_NEAR(nearest_point.y(), 1.0, 1E-3);
}
TEST_F(HDMapCommonTestSuite, GetProjection) {
Lane lane;
InitLaneObj(&lane);
LaneInfo lane_info(lane);
double accumulate_s = 0.0;
double lateral = 0.0;
bool success =
lane_info.GetProjection({170002.4, 3.0}, &accumulate_s, &lateral);
EXPECT_TRUE(success);
EXPECT_NEAR(accumulate_s, 1.4, 1E-3);
EXPECT_NEAR(lateral, 2.0, 1E-3);
success = lane_info.GetProjection({170000.5, 3.0}, &accumulate_s, &lateral);
EXPECT_TRUE(success);
EXPECT_NEAR(accumulate_s, -0.5, 1E-3);
EXPECT_NEAR(lateral, 2.0, 1E-3);
success = lane_info.GetProjection({170010.5, 3.0}, &accumulate_s, &lateral);
EXPECT_TRUE(success);
EXPECT_NEAR(accumulate_s, 9.5, 1E-3);
EXPECT_NEAR(lateral, 2.0, 1E-3);
}
TEST_F(HDMapCommonTestSuite, TestJunctionInfo) {
Junction junction;
InitJunctionObj(&junction);
JunctionInfo junction_info(junction);
EXPECT_EQ(junction.id().id(), junction_info.id().id());
EXPECT_EQ(7, junction_info.polygon().points().size());
for (size_t i = 0; i < 5; ++i) {
EXPECT_NEAR(static_cast<double>(i + 170001) * 1.0,
junction_info.polygon().points()[i].x(), 1E-3);
}
EXPECT_NEAR(170005.0, junction_info.polygon().points()[5].x(), 1E-3);
EXPECT_NEAR(170002.0, junction_info.polygon().points()[5].y(), 1E-3);
EXPECT_NEAR(170001.0, junction_info.polygon().points()[6].x(), 1E-3);
EXPECT_NEAR(170002.0, junction_info.polygon().points()[6].y(), 1E-3);
}
TEST_F(HDMapCommonTestSuite, TestSignalInfo) {
Signal signal;
InitSignalObj(&signal);
SignalInfo signal_info(signal);
EXPECT_EQ(signal.id().id(), signal_info.id().id());
EXPECT_EQ(4, signal_info.signal().boundary().point_size());
int segment_size = 0;
for (const auto& stop_line : signal.stop_line()) {
segment_size += stop_line.segment(0).line_segment().point_size() - 1;
}
EXPECT_EQ(segment_size, signal_info.segments().size());
for (const auto& segment : signal_info.segments()) {
EXPECT_NEAR(1.0, segment.length(), 1E-4);
}
}
TEST_F(HDMapCommonTestSuite, TestCrosswalkInfo) {
Crosswalk crosswalk;
InitCrosswalkObj(&crosswalk);
CrosswalkInfo crosswalk_info(crosswalk);
EXPECT_EQ(crosswalk.id().id(), crosswalk_info.id().id());
EXPECT_EQ(4, crosswalk_info.crosswalk().polygon().point_size());
EXPECT_NEAR(170000.0, crosswalk_info.polygon().points()[0].x(), 1E-3);
EXPECT_NEAR(170000.0, crosswalk_info.polygon().points()[0].y(), 1E-3);
EXPECT_NEAR(170003.0, crosswalk_info.polygon().points()[1].x(), 1E-3);
EXPECT_NEAR(170000.0, crosswalk_info.polygon().points()[1].y(), 1E-3);
EXPECT_NEAR(170003.0, crosswalk_info.polygon().points()[2].x(), 1E-3);
EXPECT_NEAR(170003.0, crosswalk_info.polygon().points()[2].y(), 1E-3);
EXPECT_NEAR(170000.0, crosswalk_info.polygon().points()[3].x(), 1E-3);
EXPECT_NEAR(170003.0, crosswalk_info.polygon().points()[3].y(), 1E-3);
}
TEST_F(HDMapCommonTestSuite, TestStopSignInfo) {
StopSign stop_sign;
InitStopSignObj(&stop_sign);
StopSignInfo stop_sign_info(stop_sign);
EXPECT_EQ(stop_sign.id().id(), stop_sign_info.id().id());
EXPECT_EQ(stop_sign.stop_line(0).segment(0).line_segment().point_size() - 1,
stop_sign_info.segments().size());
for (const auto& segment : stop_sign_info.segments()) {
EXPECT_NEAR(1.0, segment.length(), 1E-4);
}
}
TEST_F(HDMapCommonTestSuite, TestYieldSignInfo) {
YieldSign yield_sign;
InitYieldSignObj(&yield_sign);
YieldSignInfo yield_sign_info(yield_sign);
EXPECT_EQ(yield_sign.id().id(), yield_sign_info.id().id());
EXPECT_EQ(yield_sign.stop_line(0).segment(0).line_segment().point_size() - 1,
yield_sign_info.segments().size());
for (const auto& segment : yield_sign_info.segments()) {
EXPECT_NEAR(1.0, segment.length(), 1E-4);
}
}
TEST_F(HDMapCommonTestSuite, TestClearAreaInfo) {
ClearArea clear_area;
InitClearAreaObj(&clear_area);
ClearAreaInfo clear_area_info(clear_area);
EXPECT_EQ(clear_area.id().id(), clear_area_info.id().id());
EXPECT_EQ(4, clear_area_info.clear_area().polygon().point_size());
EXPECT_NEAR(170000.0, clear_area_info.polygon().points()[0].x(), 1E-3);
EXPECT_NEAR(170000.0, clear_area_info.polygon().points()[0].y(), 1E-3);
EXPECT_NEAR(170003.0, clear_area_info.polygon().points()[1].x(), 1E-3);
EXPECT_NEAR(170000.0, clear_area_info.polygon().points()[1].y(), 1E-3);
EXPECT_NEAR(170003.0, clear_area_info.polygon().points()[2].x(), 1E-3);
EXPECT_NEAR(170003.0, clear_area_info.polygon().points()[2].y(), 1E-3);
EXPECT_NEAR(170000.0, clear_area_info.polygon().points()[3].x(), 1E-3);
EXPECT_NEAR(170003.0, clear_area_info.polygon().points()[3].y(), 1E-3);
}
TEST_F(HDMapCommonTestSuite, TestSpeedBumpInfo) {
SpeedBump speed_bump;
InitSpeedBumpObj(&speed_bump);
SpeedBumpInfo speed_bump_info(speed_bump);
EXPECT_EQ(speed_bump.id().id(), speed_bump_info.id().id());
EXPECT_EQ(speed_bump.position(0).segment(0).line_segment().point_size() - 1,
speed_bump_info.segments().size());
for (const auto& segment : speed_bump_info.segments()) {
EXPECT_NEAR(1.0, segment.length(), 1E-4);
}
}
TEST_F(HDMapCommonTestSuite, TestRoadInfo) {
Road road;
InitRoadObj(&road);
RoadInfo road_info(road);
EXPECT_EQ(road.id().id(), road_info.id().id());
EXPECT_EQ(2, road_info.sections().size());
const RoadSection& section0 = road_info.sections()[0];
EXPECT_EQ(section0.id().id(), "section_1");
EXPECT_EQ(section0.lane_id_size(), 2);
EXPECT_EQ(section0.lane_id(0).id(), "section_1_1");
EXPECT_EQ(section0.lane_id(1).id(), "section_1_2");
const RoadSection& section1 = road_info.sections()[1];
EXPECT_EQ(section1.id().id(), "section_2");
EXPECT_EQ(section1.lane_id_size(), 1);
EXPECT_EQ(section1.lane_id(0).id(), "section_2_1");
}
TEST_F(HDMapCommonTestSuite, TestParkingSpaceInfo) {
ParkingSpace parking_space;
InitParkingSpaceObj(&parking_space);
ParkingSpaceInfo parking_space_info(parking_space);
EXPECT_EQ(parking_space.id().id(), parking_space_info.id().id());
EXPECT_EQ(4, parking_space_info.parking_space().polygon().point_size());
EXPECT_NEAR(170000.0, parking_space_info.polygon().points()[0].x(), 1E-3);
EXPECT_NEAR(170000.0, parking_space_info.polygon().points()[0].y(), 1E-3);
EXPECT_NEAR(170003.0, parking_space_info.polygon().points()[1].x(), 1E-3);
EXPECT_NEAR(170000.0, parking_space_info.polygon().points()[1].y(), 1E-3);
EXPECT_NEAR(170003.0, parking_space_info.polygon().points()[2].x(), 1E-3);
EXPECT_NEAR(170003.0, parking_space_info.polygon().points()[2].y(), 1E-3);
EXPECT_NEAR(170000.0, parking_space_info.polygon().points()[3].x(), 1E-3);
EXPECT_NEAR(170003.0, parking_space_info.polygon().points()[3].y(), 1E-3);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_util_test.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "modules/map/hdmap/hdmap_util.h"
#include "gtest/gtest.h"
namespace apollo {
namespace hdmap {
class HDMapUtilTestSuite : public ::testing::Test {
protected:
HDMapUtilTestSuite() {}
virtual ~HDMapUtilTestSuite() {}
virtual void SetUp() {}
virtual void TearDown() {}
void InitMapProto(Map* map_proto);
};
void HDMapUtilTestSuite::InitMapProto(Map* map_proto) {
auto* lane = map_proto->add_lane();
lane->mutable_id()->set_id("lane_1");
CurveSegment* curve_segment = lane->mutable_central_curve()->add_segment();
LineSegment* line_segment = curve_segment->mutable_line_segment();
double delta_s = 0.2;
double heading = M_PI / 2.0;
double x0 = 0.0;
double y0 = 0.0;
for (double s = 0; s < 200; s += delta_s) {
auto* pt = line_segment->add_point();
pt->set_x(x0 + s * cos(heading));
pt->set_y(y0 + s * sin(heading));
auto* left_sample = lane->add_left_sample();
left_sample->set_s(s);
left_sample->set_width(1.5);
auto* right_sample = lane->add_right_sample();
right_sample->set_s(s);
right_sample->set_width(1.5);
}
lane->set_type(Lane::CITY_DRIVING);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap.h | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#pragma once
#include <string>
#include <utility>
#include <vector>
#include "cyber/common/macros.h"
#include "modules/common_msgs/basic_msgs/geometry.pb.h"
#include "modules/common_msgs/map_msgs/map_clear_area.pb.h"
#include "modules/common_msgs/map_msgs/map_crosswalk.pb.h"
#include "modules/common_msgs/map_msgs/map_junction.pb.h"
#include "modules/common_msgs/map_msgs/map_lane.pb.h"
#include "modules/common_msgs/map_msgs/map_overlap.pb.h"
#include "modules/common_msgs/map_msgs/map_parking_space.pb.h"
#include "modules/common_msgs/map_msgs/map_road.pb.h"
#include "modules/common_msgs/map_msgs/map_signal.pb.h"
#include "modules/common_msgs/map_msgs/map_speed_bump.pb.h"
#include "modules/common_msgs/map_msgs/map_stop_sign.pb.h"
#include "modules/common_msgs/map_msgs/map_yield_sign.pb.h"
#include "modules/map/hdmap/hdmap_common.h"
#include "modules/map/hdmap/hdmap_impl.h"
/**
* @namespace apollo::hdmap
* @brief apollo::hdmap
*/
namespace apollo {
namespace hdmap {
/**
* @class HDMap
*
* @brief High-precision map loader interface.
*/
class HDMap {
public:
/**
* @brief load map from local file
* @param map_filename path of map data file
* @return 0:success, otherwise failed
*/
int LoadMapFromFile(const std::string& map_filename);
/**
* @brief load map from a given protobuf message.
* @param map_proto map data in protobuf format
* @return 0:success, otherwise failed
*/
int LoadMapFromProto(const Map& map_proto);
LaneInfoConstPtr GetLaneById(const Id& id) const;
JunctionInfoConstPtr GetJunctionById(const Id& id) const;
SignalInfoConstPtr GetSignalById(const Id& id) const;
CrosswalkInfoConstPtr GetCrosswalkById(const Id& id) const;
StopSignInfoConstPtr GetStopSignById(const Id& id) const;
YieldSignInfoConstPtr GetYieldSignById(const Id& id) const;
ClearAreaInfoConstPtr GetClearAreaById(const Id& id) const;
SpeedBumpInfoConstPtr GetSpeedBumpById(const Id& id) const;
OverlapInfoConstPtr GetOverlapById(const Id& id) const;
RoadInfoConstPtr GetRoadById(const Id& id) const;
ParkingSpaceInfoConstPtr GetParkingSpaceById(const Id& id) const;
PNCJunctionInfoConstPtr GetPNCJunctionById(const Id& id) const;
RSUInfoConstPtr GetRSUById(const Id& id) const;
/**
* @brief get all lanes in certain range
* @param point the central point of the range
* @param distance the search radius
* @param lanes store all lanes in target range
* @return 0:success, otherwise failed
*/
int GetLanes(const apollo::common::PointENU& point, double distance,
std::vector<LaneInfoConstPtr>* lanes) const;
/**
* @brief get all junctions in certain range
* @param point the central point of the range
* @param distance the search radius
* @param junctions store all junctions in target range
* @return 0:success, otherwise failed
*/
int GetJunctions(const apollo::common::PointENU& point, double distance,
std::vector<JunctionInfoConstPtr>* junctions) const;
/**
* @brief get all signals in certain range
* @param point the central point of the range
* @param distance the search radius
* @param signals store all signals in target range
* @return 0:success, otherwise failed
*/
int GetSignals(const apollo::common::PointENU& point, double distance,
std::vector<SignalInfoConstPtr>* signals) const;
/**
* @brief get all crosswalks in certain range
* @param point the central point of the range
* @param distance the search radius
* @param crosswalks store all crosswalks in target range
* @return 0:success, otherwise failed
*/
int GetCrosswalks(const apollo::common::PointENU& point, double distance,
std::vector<CrosswalkInfoConstPtr>* crosswalks) const;
/**
* @brief get all stop signs in certain range
* @param point the central point of the range
* @param distance the search radius
* @param stop signs store all stop signs in target range
* @return 0:success, otherwise failed
*/
int GetStopSigns(const apollo::common::PointENU& point, double distance,
std::vector<StopSignInfoConstPtr>* stop_signs) const;
/**
* @brief get all yield signs in certain range
* @param point the central point of the range
* @param distance the search radius
* @param yield signs store all yield signs in target range
* @return 0:success, otherwise failed
*/
int GetYieldSigns(const apollo::common::PointENU& point, double distance,
std::vector<YieldSignInfoConstPtr>* yield_signs) const;
/**
* @brief get all clear areas in certain range
* @param point the central point of the range
* @param distance the search radius
* @param clear_areas store all clear areas in target range
* @return 0:success, otherwise failed
*/
int GetClearAreas(const apollo::common::PointENU& point, double distance,
std::vector<ClearAreaInfoConstPtr>* clear_areas) const;
/**
* @brief get all speed bumps in certain range
* @param point the central point of the range
* @param distance the search radius
* @param speed_bumps store all speed bumps in target range
* @return 0:success, otherwise failed
*/
int GetSpeedBumps(const apollo::common::PointENU& point, double distance,
std::vector<SpeedBumpInfoConstPtr>* speed_bumps) const;
/**
* @brief get all roads in certain range
* @param point the central point of the range
* @param distance the search radius
* @param roads store all roads in target range
* @return 0:success, otherwise failed
*/
int GetRoads(const apollo::common::PointENU& point, double distance,
std::vector<RoadInfoConstPtr>* roads) const;
/**
* @brief get all parking spaces in certain range
* @param point the central point of the range
* @param distance the search radius
* @param parking spaces store all clear areas in target range
* @return 0:success, otherwise failed
*/
int GetParkingSpaces(
const apollo::common::PointENU& point, double distance,
std::vector<ParkingSpaceInfoConstPtr>* parking_spaces) const;
/**
* @brief get all pnc junctions in certain range
* @param point the central point of the range
* @param distance the search radius
* @param junctions store all junctions in target range
* @return 0:success, otherwise failed
*/
int GetPNCJunctions(
const apollo::common::PointENU& point, double distance,
std::vector<PNCJunctionInfoConstPtr>* pnc_junctions) const;
/**
* @brief get nearest lane from target point,
* @param point the target point
* @param nearest_lane the nearest lane that match search conditions
* @param nearest_s the offset from lane start point along lane center line
* @param nearest_l the lateral offset from lane center line
* @return 0:success, otherwise, failed.
*/
int GetNearestLane(const apollo::common::PointENU& point,
LaneInfoConstPtr* nearest_lane, double* nearest_s,
double* nearest_l) const;
/**
* @brief get the nearest lane within a certain range by pose
* @param point the target position
* @param distance the search radius
* @param central_heading the base heading
* @param max_heading_difference the heading range
* @param nearest_lane the nearest lane that match search conditions
* @param nearest_s the offset from lane start point along lane center line
* @param nearest_l the lateral offset from lane center line
* @return 0:success, otherwise, failed.
*/
int GetNearestLaneWithHeading(const apollo::common::PointENU& point,
const double distance,
const double central_heading,
const double max_heading_difference,
LaneInfoConstPtr* nearest_lane,
double* nearest_s, double* nearest_l) const;
/**
* @brief get all lanes within a certain range by pose
* @param point the target position
* @param distance the search radius
* @param central_heading the base heading
* @param max_heading_difference the heading range
* @param nearest_lane all lanes that match search conditions
* @return 0:success, otherwise, failed.
*/
int GetLanesWithHeading(const apollo::common::PointENU& point,
const double distance, const double central_heading,
const double max_heading_difference,
std::vector<LaneInfoConstPtr>* lanes) const;
/**
* @brief get all road and junctions boundaries within certain range
* @param point the target position
* @param radius the search radius
* @param road_boundaries the roads' boundaries
* @param junctions the junctions' boundaries
* @return 0:success, otherwise failed
*/
int GetRoadBoundaries(const apollo::common::PointENU& point, double radius,
std::vector<RoadROIBoundaryPtr>* road_boundaries,
std::vector<JunctionBoundaryPtr>* junctions) const;
/**
* @brief get all road boundaries and junctions within certain range
* @param point the target position
* @param radius the search radius
* @param road_boundaries the roads' boundaries
* @param junctions the junctions
* @return 0:success, otherwise failed
*/
int GetRoadBoundaries(const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* road_boundaries,
std::vector<JunctionInfoConstPtr>* junctions) const;
/**
* @brief get ROI within certain range
* @param point the target position
* @param radius the search radius
* @param roads_roi the roads' boundaries
* @param polygons_roi the junctions' boundaries
* @return 0:success, otherwise failed
*/
int GetRoi(const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* roads_roi,
std::vector<PolygonRoiPtr>* polygons_roi);
/**
* @brief get forward nearest signals within certain range on the lane
* if there are two signals related to one stop line,
* return both signals.
* @param point the target position
* @param distance the forward search distance
* @param signals all signals match conditions
* @return 0:success, otherwise failed
*/
int GetForwardNearestSignalsOnLane(
const apollo::common::PointENU& point, const double distance,
std::vector<SignalInfoConstPtr>* signals) const;
/**
* @brief get all other stop signs associated with a stop sign
* in the same junction
* @param id id of stop sign
* @param stop_signs stop signs associated
* @return 0:success, otherwise failed
*/
int GetStopSignAssociatedStopSigns(
const Id& id, std::vector<StopSignInfoConstPtr>* stop_signs) const;
/**
* @brief get all lanes associated with a stop sign in the same junction
* @param id id of stop sign
* @param lanes all lanes match conditions
* @return 0:success, otherwise failed
*/
int GetStopSignAssociatedLanes(const Id& id,
std::vector<LaneInfoConstPtr>* lanes) const;
/**
* @brief get a local map which is identical to the origin map except that all
* map elements without overlap with the given region are deleted.
* @param point the target position
* @param range the size of local map region, [width, height]
* @param local_map local map in proto format
* @return 0:success, otherwise failed
*/
int GetLocalMap(const apollo::common::PointENU& point,
const std::pair<double, double>& range, Map* local_map) const;
/**
* @brief get forward nearest rsus within certain range
* @param point the target position
* @param distance the forward search distance
* @param central_heading the base heading
* @param max_heading_difference the heading range
* @param rsus all rsus that match search conditions
* @return 0:success, otherwise failed
*/
int GetForwardNearestRSUs(const apollo::common::PointENU& point,
double distance, double central_heading,
double max_heading_difference,
std::vector<RSUInfoConstPtr>* rsus) const;
private:
HDMapImpl impl_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_impl_test.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include <chrono>
#include "absl/strings/str_cat.h"
#include "gflags/gflags.h"
#include "gtest/gtest.h"
#include "cyber/common/file.h"
#include "modules/map/hdmap/hdmap_impl.h"
DEFINE_string(output_dir, "/tmp", "output map directory");
namespace {
constexpr char kMapFilename[] = "modules/map/hdmap/test-data/base_map.bin";
} // namespace
namespace apollo {
namespace hdmap {
class HDMapImplTestSuite : public ::testing::Test {
public:
HDMapImplTestSuite() {
EXPECT_EQ(0, hdmap_impl_.LoadMapFromFile(kMapFilename));
}
public:
HDMapImpl hdmap_impl_;
};
TEST_F(HDMapImplTestSuite, GetLaneById) {
Id lane_id;
lane_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetLaneById(lane_id));
lane_id.set_id("1272_1_-1");
LaneInfoConstPtr lane_ptr = hdmap_impl_.GetLaneById(lane_id);
EXPECT_NE(nullptr, lane_ptr);
EXPECT_STREQ(lane_id.id().c_str(), lane_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetJunctionById) {
Id junction_id;
junction_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetJunctionById(junction_id));
junction_id.set_id("1183");
JunctionInfoConstPtr junction_ptr = hdmap_impl_.GetJunctionById(junction_id);
EXPECT_NE(nullptr, junction_ptr);
EXPECT_STREQ(junction_id.id().c_str(), junction_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetSignalById) {
Id signal_id;
signal_id.set_id("abc");
EXPECT_EQ(nullptr, hdmap_impl_.GetSignalById(signal_id));
signal_id.set_id("1278");
SignalInfoConstPtr signal_ptr = hdmap_impl_.GetSignalById(signal_id);
EXPECT_NE(nullptr, signal_ptr);
EXPECT_STREQ(signal_id.id().c_str(), signal_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetCrosswalkById) {
Id crosswalk_id;
crosswalk_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetCrosswalkById(crosswalk_id));
crosswalk_id.set_id("1277");
CrosswalkInfoConstPtr crosswalk_ptr =
hdmap_impl_.GetCrosswalkById(crosswalk_id);
EXPECT_NE(nullptr, crosswalk_ptr);
EXPECT_STREQ(crosswalk_id.id().c_str(), crosswalk_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetStopSignById) {
Id stop_sign_id;
stop_sign_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetStopSignById(stop_sign_id));
stop_sign_id.set_id("1276");
StopSignInfoConstPtr stop_sign_ptr =
hdmap_impl_.GetStopSignById(stop_sign_id);
EXPECT_NE(nullptr, stop_sign_ptr);
EXPECT_STREQ(stop_sign_id.id().c_str(), stop_sign_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetYieldSignById) {
Id yield_sign_id;
yield_sign_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetYieldSignById(yield_sign_id));
yield_sign_id.set_id("1275");
YieldSignInfoConstPtr yield_sign_ptr =
hdmap_impl_.GetYieldSignById(yield_sign_id);
EXPECT_NE(nullptr, yield_sign_ptr);
EXPECT_STREQ(yield_sign_id.id().c_str(), yield_sign_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetClearAreaById) {
Id clear_area_id;
clear_area_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetClearAreaById(clear_area_id));
clear_area_id.set_id("1254");
ClearAreaInfoConstPtr clear_area_ptr =
hdmap_impl_.GetClearAreaById(clear_area_id);
EXPECT_NE(nullptr, clear_area_ptr);
EXPECT_STREQ(clear_area_id.id().c_str(), clear_area_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetSpeedBumpById) {
Id speed_bump_id;
speed_bump_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetSpeedBumpById(speed_bump_id));
}
TEST_F(HDMapImplTestSuite, GetOverlapById) {
Id overlap_id;
overlap_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetOverlapById(overlap_id));
overlap_id.set_id("overlap_20");
OverlapInfoConstPtr overlap_ptr = hdmap_impl_.GetOverlapById(overlap_id);
EXPECT_NE(nullptr, overlap_ptr);
EXPECT_STREQ(overlap_id.id().c_str(), overlap_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetRoadById) {
Id road_id;
road_id.set_id("1");
EXPECT_EQ(nullptr, hdmap_impl_.GetRoadById(road_id));
road_id.set_id("1272");
RoadInfoConstPtr road_ptr = hdmap_impl_.GetRoadById(road_id);
EXPECT_NE(nullptr, road_ptr);
EXPECT_STREQ(road_id.id().c_str(), road_ptr->id().id().c_str());
}
TEST_F(HDMapImplTestSuite, GetLanes) {
std::vector<LaneInfoConstPtr> lanes;
apollo::common::PointENU point;
point.set_x(586424.09);
point.set_y(4140727.02);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetLanes(point, 1e-6, &lanes));
EXPECT_EQ(0, lanes.size());
EXPECT_EQ(0, hdmap_impl_.GetLanes(point, 5, &lanes));
EXPECT_EQ(1, lanes.size());
std::vector<std::string> ids;
for (const auto& lane : lanes) {
ids.push_back(lane->id().id());
}
EXPECT_EQ("773_1_-2", ids[0]);
}
TEST_F(HDMapImplTestSuite, GetNearestLaneWithHeading) {
apollo::common::PointENU point;
point.set_x(586424.09);
point.set_y(4140727.02);
point.set_z(0.0);
LaneInfoConstPtr nearest_lane;
double nearest_s = 0.0;
double nearest_l = 0.0;
EXPECT_EQ(-1,
hdmap_impl_.GetNearestLaneWithHeading(
point, 1e-6, 0.86, 0.2, &nearest_lane, &nearest_s, &nearest_l));
EXPECT_EQ(0,
hdmap_impl_.GetNearestLaneWithHeading(
point, 5, -2.35, 1.0, &nearest_lane, &nearest_s, &nearest_l));
EXPECT_EQ("773_1_-2", nearest_lane->id().id());
EXPECT_NEAR(nearest_l, -3.257, 1E-3);
EXPECT_NEAR(nearest_s, 25.891, 1E-3);
}
TEST_F(HDMapImplTestSuite, GetLanesWithHeading) {
apollo::common::PointENU point;
point.set_x(586424.09);
point.set_y(4140727.02);
point.set_z(0.0);
std::vector<LaneInfoConstPtr> lanes;
EXPECT_EQ(-1,
hdmap_impl_.GetLanesWithHeading(point, 1e-6, 0.86, 0.2, &lanes));
EXPECT_EQ(0, hdmap_impl_.GetLanesWithHeading(point, 5, -2.35, 1.0, &lanes));
EXPECT_EQ(1, lanes.size());
EXPECT_EQ("773_1_-2", lanes[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetJunctions) {
std::vector<JunctionInfoConstPtr> junctions;
apollo::common::PointENU point;
point.set_x(586441.61);
point.set_y(4140746.48);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetJunctions(point, 1, &junctions));
EXPECT_EQ(0, junctions.size());
EXPECT_EQ(0, hdmap_impl_.GetJunctions(point, 3, &junctions));
EXPECT_EQ(1, junctions.size());
EXPECT_EQ("1183", junctions[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetCrosswalks) {
std::vector<CrosswalkInfoConstPtr> crosswalks;
apollo::common::PointENU point;
point.set_x(586449.32);
point.set_y(4140789.59);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetCrosswalks(point, 1, &crosswalks));
EXPECT_EQ(0, crosswalks.size());
EXPECT_EQ(0, hdmap_impl_.GetCrosswalks(point, 3, &crosswalks));
EXPECT_EQ(1, crosswalks.size());
EXPECT_EQ("1277", crosswalks[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetSignals) {
std::vector<SignalInfoConstPtr> signals;
apollo::common::PointENU point;
point.set_x(586440.37);
point.set_y(4140738.64);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetSignals(point, 7.0, &signals));
EXPECT_EQ(0, signals.size());
EXPECT_EQ(0, hdmap_impl_.GetSignals(point, 12, &signals));
EXPECT_EQ(1, signals.size());
EXPECT_EQ("1278", signals[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetStopSigns) {
std::vector<StopSignInfoConstPtr> stop_signs;
apollo::common::PointENU point;
point.set_x(586418.82);
point.set_y(4140779.06);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetStopSigns(point, 100.0, &stop_signs));
EXPECT_EQ(1, stop_signs.size());
EXPECT_EQ("1276", stop_signs[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetYieldSigns) {
std::vector<YieldSignInfoConstPtr> yield_signs;
apollo::common::PointENU point;
point.set_x(586376.08);
point.set_y(4140785.77);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetYieldSigns(point, 100.0, &yield_signs));
EXPECT_EQ(1, yield_signs.size());
EXPECT_EQ("1275", yield_signs[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetClearAreas) {
std::vector<ClearAreaInfoConstPtr> clear_areas;
apollo::common::PointENU point;
point.set_x(586426.24);
point.set_y(4140680.01);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetClearAreas(point, 4.0, &clear_areas));
EXPECT_EQ(1, clear_areas.size());
EXPECT_EQ("1254", clear_areas[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetSpeedBumps) {
std::vector<SpeedBumpInfoConstPtr> speed_bumps;
apollo::common::PointENU point;
point.set_x(586410.13);
point.set_y(4140679.01);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetSpeedBumps(point, 4.0, &speed_bumps));
EXPECT_EQ(0, speed_bumps.size());
}
TEST_F(HDMapImplTestSuite, GetRoads) {
std::vector<RoadInfoConstPtr> roads;
apollo::common::PointENU point;
point.set_x(586427.18);
point.set_y(4140741.36);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetRoads(point, 4.0, &roads));
EXPECT_EQ(1, roads.size());
EXPECT_EQ(roads[0]->id().id(), "773");
EXPECT_FALSE(roads[0]->has_junction_id());
EXPECT_EQ(1, roads[0]->sections().size());
const apollo::hdmap::RoadSection& section = roads[0]->sections()[0];
EXPECT_EQ(section.id().id(), "1");
EXPECT_EQ(section.lane_id_size(), 2);
std::set<std::string> lane_ids;
lane_ids.insert("773_1_-1");
lane_ids.insert("773_1_-2");
for (int i = 0; i < section.lane_id_size(); ++i) {
const apollo::hdmap::Id& lane_id = section.lane_id(i);
EXPECT_GT(lane_ids.count(lane_id.id()), 0);
}
}
TEST_F(HDMapImplTestSuite, GetNearestLane) {
LaneInfoConstPtr lane;
double s = 0.0;
double l = 0.0;
apollo::common::PointENU point;
point.set_x(586424.09);
point.set_y(4140727.02);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetNearestLane(point, &lane, &s, &l));
EXPECT_EQ("773_1_-2", lane->id().id());
EXPECT_NEAR(s, 25.891, 1e-3);
EXPECT_NEAR(l, -3.257, 1e-3);
}
TEST_F(HDMapImplTestSuite, GetRoadBoundaries) {
apollo::common::PointENU point;
point.set_x(586427.58);
point.set_y(4140749.35);
point.set_z(0.0);
std::vector<RoadROIBoundaryPtr> road_boundaries;
std::vector<JunctionBoundaryPtr> junctions;
EXPECT_EQ(-1, hdmap_impl_.GetRoadBoundaries(point, 3.0, &road_boundaries,
&junctions));
point.set_x(586434.75);
point.set_y(4140746.94);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetRoadBoundaries(point, 2.0, &road_boundaries,
&junctions));
EXPECT_EQ(1, road_boundaries.size());
EXPECT_EQ(0, junctions.size());
point.set_x(586434.75);
point.set_y(4140746.94);
point.set_z(0.0);
EXPECT_EQ(0, hdmap_impl_.GetRoadBoundaries(point, 4.5, &road_boundaries,
&junctions));
EXPECT_EQ(1, road_boundaries.size());
EXPECT_EQ(1, junctions.size());
}
TEST_F(HDMapImplTestSuite, GetForwardNearestSignalsOnLane) {
apollo::common::PointENU point;
point.set_x(586441.73);
point.set_y(4140745.25);
point.set_z(0.0);
std::vector<SignalInfoConstPtr> signals;
EXPECT_EQ(0,
hdmap_impl_.GetForwardNearestSignalsOnLane(point, 10.0, &signals));
EXPECT_EQ(1, signals.size());
EXPECT_EQ("1278", signals[0]->id().id());
EXPECT_EQ(0,
hdmap_impl_.GetForwardNearestSignalsOnLane(point, 3.0, &signals));
EXPECT_EQ(0, signals.size());
point.set_x(586443.28);
point.set_y(4140751.22);
EXPECT_EQ(0,
hdmap_impl_.GetForwardNearestSignalsOnLane(point, 10.0, &signals));
EXPECT_EQ(1, signals.size());
EXPECT_EQ("1278", signals[0]->id().id());
}
TEST_F(HDMapImplTestSuite, GetRoi) {
apollo::common::PointENU point;
point.set_x(586441.73);
point.set_y(4140745.25);
double distance = 100.0;
std::vector<RoadRoiPtr> roads_roi;
std::vector<PolygonRoiPtr> polygons_roi;
ASSERT_EQ(0, hdmap_impl_.GetRoi(point, distance, &roads_roi, &polygons_roi));
ASSERT_EQ(5, roads_roi.size());
ASSERT_EQ(1, polygons_roi.size());
distance = 1.0;
ASSERT_EQ(0, hdmap_impl_.GetRoi(point, distance, &roads_roi, &polygons_roi));
ASSERT_EQ(1, roads_roi.size());
ASSERT_EQ(0, polygons_roi.size());
}
TEST_F(HDMapImplTestSuite, GetRoadBounrariesAndJunctions) {
apollo::common::PointENU point;
point.set_x(586441.73);
point.set_y(4140745.25);
double distance = 100.0;
std::vector<RoadRoiPtr> roads_roi;
std::vector<JunctionInfoConstPtr> junctions;
ASSERT_EQ(0, hdmap_impl_.GetRoadBoundaries(point, distance, &roads_roi,
&junctions));
ASSERT_EQ(5, roads_roi.size());
ASSERT_EQ(1, junctions.size());
distance = 1.0;
ASSERT_EQ(0, hdmap_impl_.GetRoadBoundaries(point, distance, &roads_roi,
&junctions));
ASSERT_EQ(1, roads_roi.size());
ASSERT_EQ(0, junctions.size());
}
TEST_F(HDMapImplTestSuite, GetLocalMap) {
apollo::common::PointENU point;
point.set_x(586441.73);
point.set_y(4140745.25);
Map local_map;
std::pair<double, double> range{10.0, 10.0};
ASSERT_EQ(0, hdmap_impl_.GetLocalMap(point, range, &local_map));
const std::string time_since_epoch = std::to_string(
std::chrono::steady_clock::now().time_since_epoch().count());
const std::string output_bin_file =
absl::StrCat(FLAGS_output_dir, "/base_map_", time_since_epoch, " .bin");
ACHECK(cyber::common::SetProtoToBinaryFile(local_map, output_bin_file))
<< "failed to output binary format base map";
local_map.Clear();
ACHECK(cyber::common::GetProtoFromFile(output_bin_file, &local_map))
<< "failed to load map";
cyber::common::DeleteFile(output_bin_file);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_util.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "modules/map/hdmap/hdmap_util.h"
#include <string>
#include <vector>
#include "absl/strings/str_split.h"
#include "cyber/common/file.h"
namespace apollo {
namespace hdmap {
using apollo::relative_map::MapMsg;
namespace {
// Find the first existing file from a list of candidates: "file_a|file_b|...".
std::string FindFirstExist(const std::string& dir, const std::string& files) {
const std::vector<std::string> candidates = absl::StrSplit(files, '|');
for (const auto& filename : candidates) {
const std::string file_path = absl::StrCat(FLAGS_map_dir, "/", filename);
if (cyber::common::PathExists(file_path)) {
return file_path;
}
}
AERROR << "No existing file found in " << dir << "/" << files
<< ". Fallback to first candidate as default result.";
ACHECK(!candidates.empty()) << "Please specify at least one map.";
return absl::StrCat(FLAGS_map_dir, "/", candidates[0]);
}
} // namespace
std::string BaseMapFile() {
if (FLAGS_use_navigation_mode) {
AWARN << "base_map file is not used when FLAGS_use_navigation_mode is true";
}
return FLAGS_test_base_map_filename.empty()
? FindFirstExist(FLAGS_map_dir, FLAGS_base_map_filename)
: FindFirstExist(FLAGS_map_dir, FLAGS_test_base_map_filename);
}
std::string SimMapFile() {
if (FLAGS_use_navigation_mode) {
AWARN << "sim_map file is not used when FLAGS_use_navigation_mode is true";
}
return FindFirstExist(FLAGS_map_dir, FLAGS_sim_map_filename);
}
std::string RoutingMapFile() {
if (FLAGS_use_navigation_mode) {
AWARN << "routing_map file is not used when FLAGS_use_navigation_mode is "
"true";
}
return FindFirstExist(FLAGS_map_dir, FLAGS_routing_map_filename);
}
std::unique_ptr<HDMap> CreateMap(const std::string& map_file_path) {
std::unique_ptr<HDMap> hdmap(new HDMap());
if (hdmap->LoadMapFromFile(map_file_path) != 0) {
AERROR << "Failed to load HDMap " << map_file_path;
return nullptr;
}
AINFO << "Load HDMap success: " << map_file_path;
return hdmap;
}
std::unique_ptr<HDMap> CreateMap(const MapMsg& map_msg) {
std::unique_ptr<HDMap> hdmap(new HDMap());
if (hdmap->LoadMapFromProto(map_msg.hdmap()) != 0) {
AERROR << "Failed to load RelativeMap: "
<< map_msg.header().ShortDebugString();
return nullptr;
}
return hdmap;
}
std::unique_ptr<HDMap> HDMapUtil::base_map_ = nullptr;
uint64_t HDMapUtil::base_map_seq_ = 0;
std::mutex HDMapUtil::base_map_mutex_;
std::unique_ptr<HDMap> HDMapUtil::sim_map_ = nullptr;
std::mutex HDMapUtil::sim_map_mutex_;
const HDMap* HDMapUtil::BaseMapPtr(const MapMsg& map_msg) {
std::lock_guard<std::mutex> lock(base_map_mutex_);
if (base_map_ != nullptr &&
base_map_seq_ == map_msg.header().sequence_num()) {
// avoid re-create map in the same cycle.
return base_map_.get();
} else {
base_map_ = CreateMap(map_msg);
base_map_seq_ = map_msg.header().sequence_num();
}
return base_map_.get();
}
const HDMap* HDMapUtil::BaseMapPtr() {
// TODO(all) Those logics should be removed to planning
/*if (FLAGS_use_navigation_mode) {
std::lock_guard<std::mutex> lock(base_map_mutex_);
auto* relative_map = AdapterManager::GetRelativeMap();
if (!relative_map) {
AERROR << "RelativeMap adapter is not registered";
return nullptr;
}
if (relative_map->Empty()) {
AERROR << "RelativeMap is empty";
return nullptr;
}
const auto& latest = relative_map->GetLatestObserved();
if (base_map_ != nullptr &&
base_map_seq_ == latest.header().sequence_num()) {
// avoid re-create map in the same cycle.
return base_map_.get();
} else {
base_map_ = CreateMap(latest);
base_map_seq_ = latest.header().sequence_num();
}
} else*/
if (base_map_ == nullptr) {
std::lock_guard<std::mutex> lock(base_map_mutex_);
if (base_map_ == nullptr) { // Double check.
base_map_ = CreateMap(BaseMapFile());
}
}
return base_map_.get();
}
const HDMap& HDMapUtil::BaseMap() { return *CHECK_NOTNULL(BaseMapPtr()); }
const HDMap* HDMapUtil::SimMapPtr() {
if (FLAGS_use_navigation_mode) {
return BaseMapPtr();
} else if (sim_map_ == nullptr) {
std::lock_guard<std::mutex> lock(sim_map_mutex_);
if (sim_map_ == nullptr) { // Double check.
sim_map_ = CreateMap(SimMapFile());
}
}
return sim_map_.get();
}
const HDMap& HDMapUtil::SimMap() { return *CHECK_NOTNULL(SimMapPtr()); }
bool HDMapUtil::ReloadMaps() {
{
std::lock_guard<std::mutex> lock(base_map_mutex_);
base_map_ = CreateMap(BaseMapFile());
}
{
std::lock_guard<std::mutex> lock(sim_map_mutex_);
sim_map_ = CreateMap(SimMapFile());
}
return base_map_ != nullptr && sim_map_ != nullptr;
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_common.h | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#pragma once
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "modules/common/math/aabox2d.h"
#include "modules/common/math/aaboxkdtree2d.h"
#include "modules/common/math/math_utils.h"
#include "modules/common/math/polygon2d.h"
#include "modules/common/math/vec2d.h"
#include "modules/common_msgs/map_msgs/map_clear_area.pb.h"
#include "modules/common_msgs/map_msgs/map_crosswalk.pb.h"
#include "modules/common_msgs/map_msgs/map_id.pb.h"
#include "modules/common_msgs/map_msgs/map_junction.pb.h"
#include "modules/common_msgs/map_msgs/map_lane.pb.h"
#include "modules/common_msgs/map_msgs/map_overlap.pb.h"
#include "modules/common_msgs/map_msgs/map_parking_space.pb.h"
#include "modules/common_msgs/map_msgs/map_pnc_junction.pb.h"
#include "modules/common_msgs/map_msgs/map_road.pb.h"
#include "modules/common_msgs/map_msgs/map_signal.pb.h"
#include "modules/common_msgs/map_msgs/map_speed_bump.pb.h"
#include "modules/common_msgs/map_msgs/map_stop_sign.pb.h"
#include "modules/common_msgs/map_msgs/map_yield_sign.pb.h"
#include "modules/common_msgs/map_msgs/map_rsu.pb.h"
/**
* @namespace apollo::hdmap
* @brief apollo::hdmap
*/
namespace apollo {
namespace hdmap {
template <class Object, class GeoObject>
class ObjectWithAABox {
public:
ObjectWithAABox(const apollo::common::math::AABox2d &aabox,
const Object *object, const GeoObject *geo_object,
const int id)
: aabox_(aabox), object_(object), geo_object_(geo_object), id_(id) {}
~ObjectWithAABox() {}
const apollo::common::math::AABox2d &aabox() const { return aabox_; }
double DistanceTo(const apollo::common::math::Vec2d &point) const {
return geo_object_->DistanceTo(point);
}
double DistanceSquareTo(const apollo::common::math::Vec2d &point) const {
return geo_object_->DistanceSquareTo(point);
}
const Object *object() const { return object_; }
const GeoObject *geo_object() const { return geo_object_; }
int id() const { return id_; }
private:
apollo::common::math::AABox2d aabox_;
const Object *object_;
const GeoObject *geo_object_;
int id_;
};
class LaneInfo;
class JunctionInfo;
class CrosswalkInfo;
class SignalInfo;
class StopSignInfo;
class YieldSignInfo;
class OverlapInfo;
class ClearAreaInfo;
class SpeedBumpInfo;
class RoadInfo;
class ParkingSpaceInfo;
class PNCJunctionInfo;
class RSUInfo;
class HDMapImpl;
struct LineBoundary {
std::vector<apollo::common::PointENU> line_points;
};
struct PolygonBoundary {
std::vector<apollo::common::PointENU> polygon_points;
};
enum class PolygonType {
JUNCTION_POLYGON = 0,
PARKINGSPACE_POLYGON = 1,
ROAD_HOLE_POLYGON = 2,
};
struct RoiAttribute {
PolygonType type;
Id id;
};
struct PolygonRoi {
apollo::common::math::Polygon2d polygon;
RoiAttribute attribute;
};
struct RoadRoi {
Id id;
LineBoundary left_boundary;
LineBoundary right_boundary;
std::vector<PolygonBoundary> holes_boundary;
};
using LaneSegmentBox =
ObjectWithAABox<LaneInfo, apollo::common::math::LineSegment2d>;
using LaneSegmentKDTree = apollo::common::math::AABoxKDTree2d<LaneSegmentBox>;
using OverlapInfoConstPtr = std::shared_ptr<const OverlapInfo>;
using LaneInfoConstPtr = std::shared_ptr<const LaneInfo>;
using JunctionInfoConstPtr = std::shared_ptr<const JunctionInfo>;
using SignalInfoConstPtr = std::shared_ptr<const SignalInfo>;
using CrosswalkInfoConstPtr = std::shared_ptr<const CrosswalkInfo>;
using StopSignInfoConstPtr = std::shared_ptr<const StopSignInfo>;
using YieldSignInfoConstPtr = std::shared_ptr<const YieldSignInfo>;
using ClearAreaInfoConstPtr = std::shared_ptr<const ClearAreaInfo>;
using SpeedBumpInfoConstPtr = std::shared_ptr<const SpeedBumpInfo>;
using RoadInfoConstPtr = std::shared_ptr<const RoadInfo>;
using ParkingSpaceInfoConstPtr = std::shared_ptr<const ParkingSpaceInfo>;
using RoadROIBoundaryPtr = std::shared_ptr<RoadROIBoundary>;
using PolygonRoiPtr = std::shared_ptr<PolygonRoi>;
using RoadRoiPtr = std::shared_ptr<RoadRoi>;
using PNCJunctionInfoConstPtr = std::shared_ptr<const PNCJunctionInfo>;
using RSUInfoConstPtr = std::shared_ptr<const RSUInfo>;
class LaneInfo {
public:
explicit LaneInfo(const Lane &lane);
const Id &id() const { return lane_.id(); }
const Id &road_id() const { return road_id_; }
const Id §ion_id() const { return section_id_; }
const Lane &lane() const { return lane_; }
const std::vector<apollo::common::math::Vec2d> &points() const {
return points_;
}
const std::vector<apollo::common::math::Vec2d> &unit_directions() const {
return unit_directions_;
}
double Heading(const double s) const;
double Curvature(const double s) const;
const std::vector<double> &headings() const { return headings_; }
const std::vector<apollo::common::math::LineSegment2d> &segments() const {
return segments_;
}
const std::vector<double> &accumulate_s() const { return accumulated_s_; }
const std::vector<OverlapInfoConstPtr> &overlaps() const { return overlaps_; }
const std::vector<OverlapInfoConstPtr> &cross_lanes() const {
return cross_lanes_;
}
const std::vector<OverlapInfoConstPtr> &signals() const { return signals_; }
const std::vector<OverlapInfoConstPtr> &yield_signs() const {
return yield_signs_;
}
const std::vector<OverlapInfoConstPtr> &stop_signs() const {
return stop_signs_;
}
const std::vector<OverlapInfoConstPtr> &crosswalks() const {
return crosswalks_;
}
const std::vector<OverlapInfoConstPtr> &junctions() const {
return junctions_;
}
const std::vector<OverlapInfoConstPtr> &clear_areas() const {
return clear_areas_;
}
const std::vector<OverlapInfoConstPtr> &speed_bumps() const {
return speed_bumps_;
}
const std::vector<OverlapInfoConstPtr> &parking_spaces() const {
return parking_spaces_;
}
const std::vector<OverlapInfoConstPtr> &pnc_junctions() const {
return pnc_junctions_;
}
double total_length() const { return total_length_; }
using SampledWidth = std::pair<double, double>;
const std::vector<SampledWidth> &sampled_left_width() const {
return sampled_left_width_;
}
const std::vector<SampledWidth> &sampled_right_width() const {
return sampled_right_width_;
}
void GetWidth(const double s, double *left_width, double *right_width) const;
double GetWidth(const double s) const;
double GetEffectiveWidth(const double s) const;
const std::vector<SampledWidth> &sampled_left_road_width() const {
return sampled_left_road_width_;
}
const std::vector<SampledWidth> &sampled_right_road_width() const {
return sampled_right_road_width_;
}
void GetRoadWidth(const double s, double *left_width,
double *right_width) const;
double GetRoadWidth(const double s) const;
bool IsOnLane(const apollo::common::math::Vec2d &point) const;
bool IsOnLane(const apollo::common::math::Box2d &box) const;
apollo::common::PointENU GetSmoothPoint(double s) const;
double DistanceTo(const apollo::common::math::Vec2d &point) const;
double DistanceTo(const apollo::common::math::Vec2d &point,
apollo::common::math::Vec2d *map_point, double *s_offset,
int *s_offset_index) const;
apollo::common::PointENU GetNearestPoint(
const apollo::common::math::Vec2d &point, double *distance) const;
bool GetProjection(const apollo::common::math::Vec2d &point,
double *accumulate_s, double *lateral) const;
private:
friend class HDMapImpl;
friend class RoadInfo;
void Init();
void PostProcess(const HDMapImpl &map_instance);
void UpdateOverlaps(const HDMapImpl &map_instance);
double GetWidthFromSample(const std::vector<LaneInfo::SampledWidth> &samples,
const double s) const;
void CreateKDTree();
void set_road_id(const Id &road_id) { road_id_ = road_id; }
void set_section_id(const Id §ion_id) { section_id_ = section_id; }
private:
const Lane &lane_;
std::vector<apollo::common::math::Vec2d> points_;
std::vector<apollo::common::math::Vec2d> unit_directions_;
std::vector<double> headings_;
std::vector<apollo::common::math::LineSegment2d> segments_;
std::vector<double> accumulated_s_;
std::vector<std::string> overlap_ids_;
std::vector<OverlapInfoConstPtr> overlaps_;
std::vector<OverlapInfoConstPtr> cross_lanes_;
std::vector<OverlapInfoConstPtr> signals_;
std::vector<OverlapInfoConstPtr> yield_signs_;
std::vector<OverlapInfoConstPtr> stop_signs_;
std::vector<OverlapInfoConstPtr> crosswalks_;
std::vector<OverlapInfoConstPtr> junctions_;
std::vector<OverlapInfoConstPtr> clear_areas_;
std::vector<OverlapInfoConstPtr> speed_bumps_;
std::vector<OverlapInfoConstPtr> parking_spaces_;
std::vector<OverlapInfoConstPtr> pnc_junctions_;
double total_length_ = 0.0;
std::vector<SampledWidth> sampled_left_width_;
std::vector<SampledWidth> sampled_right_width_;
std::vector<SampledWidth> sampled_left_road_width_;
std::vector<SampledWidth> sampled_right_road_width_;
std::vector<LaneSegmentBox> segment_box_list_;
std::unique_ptr<LaneSegmentKDTree> lane_segment_kdtree_;
Id road_id_;
Id section_id_;
};
class JunctionInfo {
public:
explicit JunctionInfo(const Junction &junction);
const Id &id() const { return junction_.id(); }
const Junction &junction() const { return junction_; }
const apollo::common::math::Polygon2d &polygon() const { return polygon_; }
const std::vector<Id> &OverlapStopSignIds() const {
return overlap_stop_sign_ids_;
}
private:
friend class HDMapImpl;
void Init();
void PostProcess(const HDMapImpl &map_instance);
void UpdateOverlaps(const HDMapImpl &map_instance);
private:
const Junction &junction_;
apollo::common::math::Polygon2d polygon_;
std::vector<Id> overlap_stop_sign_ids_;
std::vector<Id> overlap_ids_;
};
using JunctionPolygonBox =
ObjectWithAABox<JunctionInfo, apollo::common::math::Polygon2d>;
using JunctionPolygonKDTree =
apollo::common::math::AABoxKDTree2d<JunctionPolygonBox>;
class SignalInfo {
public:
explicit SignalInfo(const Signal &signal);
const Id &id() const { return signal_.id(); }
const Signal &signal() const { return signal_; }
const std::vector<apollo::common::math::LineSegment2d> &segments() const {
return segments_;
}
private:
void Init();
private:
const Signal &signal_;
std::vector<apollo::common::math::LineSegment2d> segments_;
};
using SignalSegmentBox =
ObjectWithAABox<SignalInfo, apollo::common::math::LineSegment2d>;
using SignalSegmentKDTree =
apollo::common::math::AABoxKDTree2d<SignalSegmentBox>;
class CrosswalkInfo {
public:
explicit CrosswalkInfo(const Crosswalk &crosswalk);
const Id &id() const { return crosswalk_.id(); }
const Crosswalk &crosswalk() const { return crosswalk_; }
const apollo::common::math::Polygon2d &polygon() const { return polygon_; }
private:
void Init();
private:
const Crosswalk &crosswalk_;
apollo::common::math::Polygon2d polygon_;
};
using CrosswalkPolygonBox =
ObjectWithAABox<CrosswalkInfo, apollo::common::math::Polygon2d>;
using CrosswalkPolygonKDTree =
apollo::common::math::AABoxKDTree2d<CrosswalkPolygonBox>;
class StopSignInfo {
public:
explicit StopSignInfo(const StopSign &stop_sign);
const Id &id() const { return stop_sign_.id(); }
const StopSign &stop_sign() const { return stop_sign_; }
const std::vector<apollo::common::math::LineSegment2d> &segments() const {
return segments_;
}
const std::vector<Id> &OverlapLaneIds() const { return overlap_lane_ids_; }
const std::vector<Id> &OverlapJunctionIds() const {
return overlap_junction_ids_;
}
private:
friend class HDMapImpl;
void init();
void PostProcess(const HDMapImpl &map_instance);
void UpdateOverlaps(const HDMapImpl &map_instance);
private:
const StopSign &stop_sign_;
std::vector<apollo::common::math::LineSegment2d> segments_;
std::vector<Id> overlap_lane_ids_;
std::vector<Id> overlap_junction_ids_;
std::vector<Id> overlap_ids_;
};
using StopSignSegmentBox =
ObjectWithAABox<StopSignInfo, apollo::common::math::LineSegment2d>;
using StopSignSegmentKDTree =
apollo::common::math::AABoxKDTree2d<StopSignSegmentBox>;
class YieldSignInfo {
public:
explicit YieldSignInfo(const YieldSign &yield_sign);
const Id &id() const { return yield_sign_.id(); }
const YieldSign &yield_sign() const { return yield_sign_; }
const std::vector<apollo::common::math::LineSegment2d> &segments() const {
return segments_;
}
private:
void Init();
private:
const YieldSign &yield_sign_;
std::vector<apollo::common::math::LineSegment2d> segments_;
};
using YieldSignSegmentBox =
ObjectWithAABox<YieldSignInfo, apollo::common::math::LineSegment2d>;
using YieldSignSegmentKDTree =
apollo::common::math::AABoxKDTree2d<YieldSignSegmentBox>;
class ClearAreaInfo {
public:
explicit ClearAreaInfo(const ClearArea &clear_area);
const Id &id() const { return clear_area_.id(); }
const ClearArea &clear_area() const { return clear_area_; }
const apollo::common::math::Polygon2d &polygon() const { return polygon_; }
private:
void Init();
private:
const ClearArea &clear_area_;
apollo::common::math::Polygon2d polygon_;
};
using ClearAreaPolygonBox =
ObjectWithAABox<ClearAreaInfo, apollo::common::math::Polygon2d>;
using ClearAreaPolygonKDTree =
apollo::common::math::AABoxKDTree2d<ClearAreaPolygonBox>;
class SpeedBumpInfo {
public:
explicit SpeedBumpInfo(const SpeedBump &speed_bump);
const Id &id() const { return speed_bump_.id(); }
const SpeedBump &speed_bump() const { return speed_bump_; }
const std::vector<apollo::common::math::LineSegment2d> &segments() const {
return segments_;
}
private:
void Init();
private:
const SpeedBump &speed_bump_;
std::vector<apollo::common::math::LineSegment2d> segments_;
};
using SpeedBumpSegmentBox =
ObjectWithAABox<SpeedBumpInfo, apollo::common::math::LineSegment2d>;
using SpeedBumpSegmentKDTree =
apollo::common::math::AABoxKDTree2d<SpeedBumpSegmentBox>;
class OverlapInfo {
public:
explicit OverlapInfo(const Overlap &overlap);
const Id &id() const { return overlap_.id(); }
const Overlap &overlap() const { return overlap_; }
const ObjectOverlapInfo *GetObjectOverlapInfo(const Id &id) const;
private:
const Overlap &overlap_;
};
class RoadInfo {
public:
explicit RoadInfo(const Road &road);
const Id &id() const { return road_.id(); }
const Road &road() const { return road_; }
const std::vector<RoadSection> §ions() const { return sections_; }
const Id &junction_id() const { return road_.junction_id(); }
bool has_junction_id() const { return road_.has_junction_id(); }
const std::vector<RoadBoundary> &GetBoundaries() const;
apollo::hdmap::Road_Type type() const { return road_.type(); }
private:
Road road_;
std::vector<RoadSection> sections_;
std::vector<RoadBoundary> road_boundaries_;
};
class ParkingSpaceInfo {
public:
explicit ParkingSpaceInfo(const ParkingSpace &parkingspace);
const Id &id() const { return parking_space_.id(); }
const ParkingSpace &parking_space() const { return parking_space_; }
const apollo::common::math::Polygon2d &polygon() const { return polygon_; }
private:
void Init();
private:
const ParkingSpace &parking_space_;
apollo::common::math::Polygon2d polygon_;
};
using ParkingSpacePolygonBox =
ObjectWithAABox<ParkingSpaceInfo, apollo::common::math::Polygon2d>;
using ParkingSpacePolygonKDTree =
apollo::common::math::AABoxKDTree2d<ParkingSpacePolygonBox>;
class PNCJunctionInfo {
public:
explicit PNCJunctionInfo(const PNCJunction &pnc_junction);
const Id &id() const { return junction_.id(); }
const PNCJunction &pnc_junction() const { return junction_; }
const apollo::common::math::Polygon2d &polygon() const { return polygon_; }
private:
void Init();
private:
const PNCJunction &junction_;
apollo::common::math::Polygon2d polygon_;
std::vector<Id> overlap_ids_;
};
using PNCJunctionPolygonBox =
ObjectWithAABox<PNCJunctionInfo, apollo::common::math::Polygon2d>;
using PNCJunctionPolygonKDTree =
apollo::common::math::AABoxKDTree2d<PNCJunctionPolygonBox>;
struct JunctionBoundary {
JunctionInfoConstPtr junction_info;
};
using JunctionBoundaryPtr = std::shared_ptr<JunctionBoundary>;
class RSUInfo {
public:
explicit RSUInfo(const RSU& rsu);
const Id& id() const {
return _rsu.id();
}
const RSU& rsu() const {
return _rsu;
}
private:
RSU _rsu;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_util.h | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#pragma once
#include <memory>
#include <string>
#include "absl/strings/str_cat.h"
#include "modules/common_msgs/map_msgs/map_id.pb.h"
#include "modules/common_msgs/planning_msgs/navigation.pb.h"
#include "modules/common/configs/config_gflags.h"
#include "modules/map/hdmap/hdmap.h"
/**
* @namespace apollo::hdmap
* @brief apollo::hdmap
*/
namespace apollo {
namespace hdmap {
/**
* @brief get base map file path from flags.
* @return base map path
*/
std::string BaseMapFile();
/**
* @brief get simulation map file path from flags.
* @return simulation map path
*/
std::string SimMapFile();
/**
* @brief get routing map file path from flags.
* @return routing map path
*/
std::string RoutingMapFile();
/**
* @brief get end way point file path from flags.
* @return end way point file path
*/
inline std::string EndWayPointFile() {
if (FLAGS_use_navigation_mode) {
return absl::StrCat(FLAGS_navigation_mode_end_way_point_file);
} else {
return absl::StrCat(FLAGS_map_dir, "/", FLAGS_end_way_point_filename);
}
}
/**
* @brief get default routing file path from flags.
* @return default routing points file path
*/
inline std::string DefaultRoutingFile() {
return absl::StrCat(FLAGS_map_dir, "_", FLAGS_default_routing_filename);
}
/**
* @brief get park and go routings file path from flags.
* @return park and routng routings file path
*/
inline std::string ParkGoRoutingFile() {
return absl::StrCat(FLAGS_map_dir, "_", FLAGS_park_go_routing_filename);
}
/**
* @brief create a Map ID given a string.
* @param id a string id
* @return a Map ID instance
*/
inline apollo::hdmap::Id MakeMapId(const std::string& id) {
apollo::hdmap::Id map_id;
map_id.set_id(id);
return map_id;
}
std::unique_ptr<HDMap> CreateMap(const std::string& map_file_path);
class HDMapUtil {
public:
// Get default base map from the file specified by global flags.
// Return nullptr if failed to load.
static const HDMap* BaseMapPtr();
static const HDMap* BaseMapPtr(const relative_map::MapMsg& map_msg);
// Guarantee to return a valid base_map, or else raise fatal error.
static const HDMap& BaseMap();
// Get default sim_map from the file specified by global flags.
// Return nullptr if failed to load.
static const HDMap* SimMapPtr();
// Guarantee to return a valid sim_map, or else raise fatal error.
static const HDMap& SimMap();
// Reload maps from the file specified by global flags.
static bool ReloadMaps();
private:
HDMapUtil() = delete;
static std::unique_ptr<HDMap> base_map_;
static uint64_t base_map_seq_;
static std::mutex base_map_mutex_;
static std::unique_ptr<HDMap> sim_map_;
static std::mutex sim_map_mutex_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "modules/map/hdmap/hdmap.h"
#include "modules/map/hdmap/hdmap_util.h"
namespace apollo {
namespace hdmap {
int HDMap::LoadMapFromFile(const std::string& map_filename) {
AINFO << "Loading HDMap: " << map_filename << " ...";
return impl_.LoadMapFromFile(map_filename);
}
int HDMap::LoadMapFromProto(const Map& map_proto) {
ADEBUG << "Loading HDMap with header: "
<< map_proto.header().ShortDebugString();
return impl_.LoadMapFromProto(map_proto);
}
LaneInfoConstPtr HDMap::GetLaneById(const Id& id) const {
return impl_.GetLaneById(id);
}
JunctionInfoConstPtr HDMap::GetJunctionById(const Id& id) const {
return impl_.GetJunctionById(id);
}
SignalInfoConstPtr HDMap::GetSignalById(const Id& id) const {
return impl_.GetSignalById(id);
}
CrosswalkInfoConstPtr HDMap::GetCrosswalkById(const Id& id) const {
return impl_.GetCrosswalkById(id);
}
StopSignInfoConstPtr HDMap::GetStopSignById(const Id& id) const {
return impl_.GetStopSignById(id);
}
YieldSignInfoConstPtr HDMap::GetYieldSignById(const Id& id) const {
return impl_.GetYieldSignById(id);
}
ClearAreaInfoConstPtr HDMap::GetClearAreaById(const Id& id) const {
return impl_.GetClearAreaById(id);
}
SpeedBumpInfoConstPtr HDMap::GetSpeedBumpById(const Id& id) const {
return impl_.GetSpeedBumpById(id);
}
OverlapInfoConstPtr HDMap::GetOverlapById(const Id& id) const {
return impl_.GetOverlapById(id);
}
RoadInfoConstPtr HDMap::GetRoadById(const Id& id) const {
return impl_.GetRoadById(id);
}
ParkingSpaceInfoConstPtr HDMap::GetParkingSpaceById(const Id& id) const {
return impl_.GetParkingSpaceById(id);
}
PNCJunctionInfoConstPtr HDMap::GetPNCJunctionById(const Id& id) const {
return impl_.GetPNCJunctionById(id);
}
int HDMap::GetLanes(const apollo::common::PointENU& point, double distance,
std::vector<LaneInfoConstPtr>* lanes) const {
return impl_.GetLanes(point, distance, lanes);
}
int HDMap::GetJunctions(const apollo::common::PointENU& point, double distance,
std::vector<JunctionInfoConstPtr>* junctions) const {
return impl_.GetJunctions(point, distance, junctions);
}
int HDMap::GetSignals(const apollo::common::PointENU& point, double distance,
std::vector<SignalInfoConstPtr>* signals) const {
return impl_.GetSignals(point, distance, signals);
}
int HDMap::GetCrosswalks(const apollo::common::PointENU& point, double distance,
std::vector<CrosswalkInfoConstPtr>* crosswalks) const {
return impl_.GetCrosswalks(point, distance, crosswalks);
}
int HDMap::GetStopSigns(const apollo::common::PointENU& point, double distance,
std::vector<StopSignInfoConstPtr>* stop_signs) const {
return impl_.GetStopSigns(point, distance, stop_signs);
}
int HDMap::GetYieldSigns(
const apollo::common::PointENU& point, double distance,
std::vector<YieldSignInfoConstPtr>* yield_signs) const {
return impl_.GetYieldSigns(point, distance, yield_signs);
}
int HDMap::GetClearAreas(
const apollo::common::PointENU& point, double distance,
std::vector<ClearAreaInfoConstPtr>* clear_areas) const {
return impl_.GetClearAreas(point, distance, clear_areas);
}
int HDMap::GetSpeedBumps(
const apollo::common::PointENU& point, double distance,
std::vector<SpeedBumpInfoConstPtr>* speed_bumps) const {
return impl_.GetSpeedBumps(point, distance, speed_bumps);
}
int HDMap::GetRoads(const apollo::common::PointENU& point, double distance,
std::vector<RoadInfoConstPtr>* roads) const {
return impl_.GetRoads(point, distance, roads);
}
int HDMap::GetParkingSpaces(
const apollo::common::PointENU& point, double distance,
std::vector<ParkingSpaceInfoConstPtr>* parking_spaces) const {
return impl_.GetParkingSpaces(point, distance, parking_spaces);
}
int HDMap::GetPNCJunctions(
const apollo::common::PointENU& point, double distance,
std::vector<PNCJunctionInfoConstPtr>* pnc_junctions) const {
return impl_.GetPNCJunctions(point, distance, pnc_junctions);
}
int HDMap::GetNearestLane(const common::PointENU& point,
LaneInfoConstPtr* nearest_lane, double* nearest_s,
double* nearest_l) const {
return impl_.GetNearestLane(point, nearest_lane, nearest_s, nearest_l);
}
int HDMap::GetNearestLaneWithHeading(const apollo::common::PointENU& point,
const double distance,
const double central_heading,
const double max_heading_difference,
LaneInfoConstPtr* nearest_lane,
double* nearest_s,
double* nearest_l) const {
return impl_.GetNearestLaneWithHeading(point, distance, central_heading,
max_heading_difference, nearest_lane,
nearest_s, nearest_l);
}
int HDMap::GetLanesWithHeading(const apollo::common::PointENU& point,
const double distance,
const double central_heading,
const double max_heading_difference,
std::vector<LaneInfoConstPtr>* lanes) const {
return impl_.GetLanesWithHeading(point, distance, central_heading,
max_heading_difference, lanes);
}
int HDMap::GetRoadBoundaries(
const apollo::common::PointENU& point, double radius,
std::vector<RoadROIBoundaryPtr>* road_boundaries,
std::vector<JunctionBoundaryPtr>* junctions) const {
return impl_.GetRoadBoundaries(point, radius, road_boundaries, junctions);
}
int HDMap::GetRoadBoundaries(
const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* road_boundaries,
std::vector<JunctionInfoConstPtr>* junctions) const {
return impl_.GetRoadBoundaries(point, radius, road_boundaries, junctions);
}
int HDMap::GetRoi(const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* roads_roi,
std::vector<PolygonRoiPtr>* polygons_roi) {
return impl_.GetRoi(point, radius, roads_roi, polygons_roi);
}
int HDMap::GetForwardNearestSignalsOnLane(
const apollo::common::PointENU& point, const double distance,
std::vector<SignalInfoConstPtr>* signals) const {
return impl_.GetForwardNearestSignalsOnLane(point, distance, signals);
}
int HDMap::GetStopSignAssociatedStopSigns(
const Id& id, std::vector<StopSignInfoConstPtr>* stop_signs) const {
return impl_.GetStopSignAssociatedStopSigns(id, stop_signs);
}
int HDMap::GetStopSignAssociatedLanes(
const Id& id, std::vector<LaneInfoConstPtr>* lanes) const {
return impl_.GetStopSignAssociatedLanes(id, lanes);
}
int HDMap::GetLocalMap(const apollo::common::PointENU& point,
const std::pair<double, double>& range,
Map* local_map) const {
return impl_.GetLocalMap(point, range, local_map);
}
int HDMap::GetForwardNearestRSUs(const apollo::common::PointENU& point,
double distance, double central_heading,
double max_heading_difference,
std::vector<RSUInfoConstPtr>* rsus) const {
return impl_.GetForwardNearestRSUs(point, distance,
central_heading,
max_heading_difference, rsus);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/BUILD | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
load("//tools/install:install.bzl", "install")
MAP_COPTS = ["-DMODULE_NAME=\\\"map\\\""]
install(
name = "install",
library_dest = "map/lib",
targets = [
":libhdmap.so",
":libhdmap_util.so"
],
visibility = ["//visibility:public"],
)
cc_binary(
name = "libhdmap.so",
srcs = [
"hdmap.cc",
"hdmap_common.cc",
"hdmap_impl.cc",
"hdmap.h",
"hdmap_common.h",
"hdmap_impl.h",
"hdmap_util.h",
],
linkshared = True,
linkstatic = True,
copts = MAP_COPTS,
deps = [
"//cyber",
"//modules/common_msgs/map_msgs:map_cc_proto",
"//modules/common_msgs/planning_msgs:navigation_cc_proto",
"//modules/common/configs:config_gflags",
"//modules/common/math",
"//modules/common/util:util_tool",
"//modules/map/hdmap/adapter:opendrive_adapter",
"@com_google_absl//:absl",
"@com_github_google_glog//:glog",
"@eigen",
],
)
cc_library(
name = "hdmap",
srcs = ["libhdmap.so"],
hdrs = [
"hdmap.h",
"hdmap_common.h",
"hdmap_impl.h",
],
copts = MAP_COPTS,
deps = [
"//cyber",
"//modules/common_msgs/map_msgs:map_cc_proto",
"//modules/common/configs:config_gflags",
"//modules/common/math",
"//modules/common/util:util_tool",
"//modules/map/hdmap/adapter:opendrive_adapter",
],
visibility = ["//visibility:public"],
)
cc_binary(
name = "libhdmap_util.so",
srcs = [
"hdmap_util.cc",
"hdmap_util.h",
],
linkshared = True,
linkstatic = True,
copts = MAP_COPTS,
deps = [
":hdmap",
"//cyber",
"//modules/common_msgs/map_msgs:map_id_cc_proto",
"//modules/common_msgs/planning_msgs:navigation_cc_proto",
"//modules/common/configs:config_gflags",
"@com_google_absl//:absl",
],
)
cc_library(
name = "hdmap_util",
srcs = ["libhdmap_util.so"],
hdrs = ["hdmap_util.h"],
copts = MAP_COPTS,
deps = [
":hdmap",
"//cyber",
"//modules/common_msgs/map_msgs:map_id_cc_proto",
"//modules/common_msgs/planning_msgs:navigation_cc_proto",
"//modules/common/configs:config_gflags",
"@com_google_absl//:absl",
],
visibility = ["//visibility:public"],
)
filegroup(
name = "testdata",
srcs = glob([
"test-data/*",
]),
)
cc_test(
name = "hdmap_map_test",
size = "small",
timeout = "short",
srcs = [
"hdmap_common_test.cc",
"hdmap_impl_test.cc",
],
tags = ["exclude"],
data = [
":testdata",
#"//modules/common/util",
],
deps = [
":hdmap",
"//cyber",
"@com_github_google_glog//:glog",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "hdmap_util_test",
size = "small",
timeout = "short",
srcs = ["hdmap_util_test.cc"],
data = [
":testdata",
],
deps = [
":hdmap_util",
"@com_google_absl//:absl",
"@com_github_google_glog//:glog",
"@com_google_googletest//:gtest_main",
],
linkstatic = True,
)
cpplint()
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_impl.h | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#pragma once
#include <memory>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "modules/common/math/aabox2d.h"
#include "modules/common/math/aaboxkdtree2d.h"
#include "modules/common/math/line_segment2d.h"
#include "modules/common/math/polygon2d.h"
#include "modules/common/math/vec2d.h"
#include "modules/map/hdmap/hdmap_common.h"
#include "modules/common_msgs/map_msgs/map.pb.h"
#include "modules/common_msgs/map_msgs/map_clear_area.pb.h"
#include "modules/common_msgs/map_msgs/map_crosswalk.pb.h"
#include "modules/common_msgs/map_msgs/map_geometry.pb.h"
#include "modules/common_msgs/map_msgs/map_junction.pb.h"
#include "modules/common_msgs/map_msgs/map_lane.pb.h"
#include "modules/common_msgs/map_msgs/map_overlap.pb.h"
#include "modules/common_msgs/map_msgs/map_parking_space.pb.h"
#include "modules/common_msgs/map_msgs/map_pnc_junction.pb.h"
#include "modules/common_msgs/map_msgs/map_signal.pb.h"
#include "modules/common_msgs/map_msgs/map_speed_bump.pb.h"
#include "modules/common_msgs/map_msgs/map_stop_sign.pb.h"
#include "modules/common_msgs/map_msgs/map_yield_sign.pb.h"
/**
* @namespace apollo::hdmap
* @brief apollo::hdmap
*/
namespace apollo {
namespace hdmap {
/**
* @class HDMapImpl
*
* @brief High-precision map loader implement.
*/
class HDMapImpl {
public:
using LaneTable = std::unordered_map<std::string, std::shared_ptr<LaneInfo>>;
using JunctionTable =
std::unordered_map<std::string, std::shared_ptr<JunctionInfo>>;
using SignalTable =
std::unordered_map<std::string, std::shared_ptr<SignalInfo>>;
using CrosswalkTable =
std::unordered_map<std::string, std::shared_ptr<CrosswalkInfo>>;
using StopSignTable =
std::unordered_map<std::string, std::shared_ptr<StopSignInfo>>;
using YieldSignTable =
std::unordered_map<std::string, std::shared_ptr<YieldSignInfo>>;
using ClearAreaTable =
std::unordered_map<std::string, std::shared_ptr<ClearAreaInfo>>;
using SpeedBumpTable =
std::unordered_map<std::string, std::shared_ptr<SpeedBumpInfo>>;
using OverlapTable =
std::unordered_map<std::string, std::shared_ptr<OverlapInfo>>;
using RoadTable = std::unordered_map<std::string, std::shared_ptr<RoadInfo>>;
using ParkingSpaceTable =
std::unordered_map<std::string, std::shared_ptr<ParkingSpaceInfo>>;
using PNCJunctionTable =
std::unordered_map<std::string, std::shared_ptr<PNCJunctionInfo>>;
using RSUTable =
std::unordered_map<std::string, std::shared_ptr<RSUInfo>>;
public:
/**
* @brief load map from local file
* @param map_filename path of map data file
* @return 0:success, otherwise failed
*/
int LoadMapFromFile(const std::string& map_filename);
/**
* @brief load map from a protobuf message
* @param map_proto map data in protobuf format
* @return 0:success, otherwise failed
*/
int LoadMapFromProto(const Map& map_proto);
LaneInfoConstPtr GetLaneById(const Id& id) const;
JunctionInfoConstPtr GetJunctionById(const Id& id) const;
SignalInfoConstPtr GetSignalById(const Id& id) const;
CrosswalkInfoConstPtr GetCrosswalkById(const Id& id) const;
StopSignInfoConstPtr GetStopSignById(const Id& id) const;
YieldSignInfoConstPtr GetYieldSignById(const Id& id) const;
ClearAreaInfoConstPtr GetClearAreaById(const Id& id) const;
SpeedBumpInfoConstPtr GetSpeedBumpById(const Id& id) const;
OverlapInfoConstPtr GetOverlapById(const Id& id) const;
RoadInfoConstPtr GetRoadById(const Id& id) const;
ParkingSpaceInfoConstPtr GetParkingSpaceById(const Id& id) const;
PNCJunctionInfoConstPtr GetPNCJunctionById(const Id& id) const;
RSUInfoConstPtr GetRSUById(const Id& id) const;
/**
* @brief get all lanes in certain range
* @param point the central point of the range
* @param distance the search radius
* @param lanes store all lanes in target range
* @return 0:success, otherwise failed
*/
int GetLanes(const apollo::common::PointENU& point, double distance,
std::vector<LaneInfoConstPtr>* lanes) const;
/**
* @brief get all junctions in certain range
* @param point the central point of the range
* @param distance the search radius
* @param junctions store all junctions in target range
* @return 0:success, otherwise failed
*/
int GetJunctions(const apollo::common::PointENU& point, double distance,
std::vector<JunctionInfoConstPtr>* junctions) const;
/**
* @brief get all crosswalks in certain range
* @param point the central point of the range
* @param distance the search radius
* @param crosswalks store all crosswalks in target range
* @return 0:success, otherwise failed
*/
int GetCrosswalks(const apollo::common::PointENU& point, double distance,
std::vector<CrosswalkInfoConstPtr>* crosswalks) const;
/**
* @brief get all signals in certain range
* @param point the central point of the range
* @param distance the search radius
* @param signals store all signals in target range
* @return 0:success, otherwise failed
*/
int GetSignals(const apollo::common::PointENU& point, double distance,
std::vector<SignalInfoConstPtr>* signals) const;
/**
* @brief get all stop signs in certain range
* @param point the central point of the range
* @param distance the search radius
* @param stop signs store all stop signs in target range
* @return 0:success, otherwise failed
*/
int GetStopSigns(const apollo::common::PointENU& point, double distance,
std::vector<StopSignInfoConstPtr>* stop_signs) const;
/**
* @brief get all yield signs in certain range
* @param point the central point of the range
* @param distance the search radius
* @param yield signs store all yield signs in target range
* @return 0:success, otherwise failed
*/
int GetYieldSigns(const apollo::common::PointENU& point, double distance,
std::vector<YieldSignInfoConstPtr>* yield_signs) const;
/**
* @brief get all clear areas in certain range
* @param point the central point of the range
* @param distance the search radius
* @param clear_areas store all clear areas in target range
* @return 0:success, otherwise failed
*/
int GetClearAreas(const apollo::common::PointENU& point, double distance,
std::vector<ClearAreaInfoConstPtr>* clear_areas) const;
/**
* @brief get all speed bumps in certain range
* @param point the central point of the range
* @param distance the search radius
* @param speed_bumps store all speed bumps in target range
* @return 0:success, otherwise failed
*/
int GetSpeedBumps(const apollo::common::PointENU& point, double distance,
std::vector<SpeedBumpInfoConstPtr>* speed_bumps) const;
/**
* @brief get all roads in certain range
* @param point the central point of the range
* @param distance the search radius
* @param roads store all roads in target range
* @return 0:success, otherwise failed
*/
int GetRoads(const apollo::common::PointENU& point, double distance,
std::vector<RoadInfoConstPtr>* roads) const;
/**
* @brief get all parking space in certain range
* @param point the central point of the range
* @param distance the search radius
* @param parking_spaces store all parking spaces in target range
* @return 0:success, otherwise failed
*/
int GetParkingSpaces(
const apollo::common::PointENU& point, double distance,
std::vector<ParkingSpaceInfoConstPtr>* parking_spaces) const;
/**
* @brief get all pnc junctions in certain range
* @param point the central point of the range
* @param distance the search radius
* @param junctions store all junctions in target range
* @return 0:success, otherwise failed
*/
int GetPNCJunctions(
const apollo::common::PointENU& point, double distance,
std::vector<PNCJunctionInfoConstPtr>* pnc_junctions) const;
/**
* @brief get nearest lane from target point,
* @param point the target point
* @param nearest_lane the nearest lane that match search conditions
* @param nearest_s the offset from lane start point along lane center line
* @param nearest_l the lateral offset from lane center line
* @return 0:success, otherwise, failed.
*/
int GetNearestLane(const apollo::common::PointENU& point,
LaneInfoConstPtr* nearest_lane, double* nearest_s,
double* nearest_l) const;
/**
* @brief get the nearest lane within a certain range by pose
* @param point the target position
* @param distance the search radius
* @param central_heading the base heading
* @param max_heading_difference the heading range
* @param nearest_lane the nearest lane that match search conditions
* @param nearest_s the offset from lane start point along lane center line
* @param nearest_l the lateral offset from lane center line
* @return 0:success, otherwise, failed.
*/
int GetNearestLaneWithHeading(const apollo::common::PointENU& point,
const double distance,
const double central_heading,
const double max_heading_difference,
LaneInfoConstPtr* nearest_lane,
double* nearest_s, double* nearest_l) const;
/**
* @brief get all lanes within a certain range by pose
* @param point the target position
* @param distance the search radius
* @param central_heading the base heading
* @param max_heading_difference the heading range
* @param nearest_lane all lanes that match search conditions
* @return 0:success, otherwise, failed.
*/
int GetLanesWithHeading(const apollo::common::PointENU& point,
const double distance, const double central_heading,
const double max_heading_difference,
std::vector<LaneInfoConstPtr>* lanes) const;
/**
* @brief get all road and junctions boundaries within certain range
* @param point the target position
* @param radius the search radius
* @param road_boundaries the roads' boundaries
* @param junctions the junctions' boundaries
* @return 0:success, otherwise failed
*/
int GetRoadBoundaries(const apollo::common::PointENU& point, double radius,
std::vector<RoadROIBoundaryPtr>* road_boundaries,
std::vector<JunctionBoundaryPtr>* junctions) const;
/**
* @brief get all road boundaries and junctions within certain range
* @param point the target position
* @param radius the search radius
* @param road_boundaries the roads' boundaries
* @param junctions the junctions
* @return 0:success, otherwise failed
*/
int GetRoadBoundaries(const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* road_boundaries,
std::vector<JunctionInfoConstPtr>* junctions) const;
/**
* @brief get ROI within certain range
* @param point the target position
* @param radius the search radius
* @param roads_roi the roads' boundaries
* @param polygons_roi the junctions' boundaries
* @return 0:success, otherwise failed
*/
int GetRoi(const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* roads_roi,
std::vector<PolygonRoiPtr>* polygons_roi);
/**
* @brief get forward nearest signals within certain range on the lane
* if there are two signals related to one stop line,
* return both signals.
* @param point the target position
* @param distance the forward search distance
* @param signals all signals match conditions
* @return 0:success, otherwise failed
*/
int GetForwardNearestSignalsOnLane(
const apollo::common::PointENU& point, const double distance,
std::vector<SignalInfoConstPtr>* signals) const;
/**
* @brief get all other stop signs associated with a stop sign
* in the same junction
* @param id id of stop sign
* @param stop_signs stop signs associated
* @return 0:success, otherwise failed
*/
int GetStopSignAssociatedStopSigns(
const Id& id, std::vector<StopSignInfoConstPtr>* stop_signs) const;
/**
* @brief get all lanes associated with a stop sign in the same junction
* @param id id of stop sign
* @param lanes all lanes match conditions
* @return 0:success, otherwise failed
*/
int GetStopSignAssociatedLanes(const Id& id,
std::vector<LaneInfoConstPtr>* lanes) const;
/**
* @brief get a local map which is identical to the origin map except that all
* map elements without overlap with the given region are deleted.
* @param point the target position
* @param range the size of local map region, [width, height]
* @param local_map local map in proto format
* @return 0:success, otherwise failed
*/
int GetLocalMap(const apollo::common::PointENU& point,
const std::pair<double, double>& range, Map* local_map) const;
/**
* @brief get forward nearest rsus within certain range
* @param point the target position
* @param distance the forward search distance
* @param central_heading the base heading
* @param max_heading_difference the heading range
* @param rsus all rsus that match search conditions
* @return 0:success, otherwise failed
*/
int GetForwardNearestRSUs(const apollo::common::PointENU& point,
double distance, double central_heading,
double max_heading_difference,
std::vector<RSUInfoConstPtr>* rsus) const;
private:
int GetLanes(const apollo::common::math::Vec2d& point, double distance,
std::vector<LaneInfoConstPtr>* lanes) const;
int GetJunctions(const apollo::common::math::Vec2d& point, double distance,
std::vector<JunctionInfoConstPtr>* junctions) const;
int GetCrosswalks(const apollo::common::math::Vec2d& point, double distance,
std::vector<CrosswalkInfoConstPtr>* crosswalks) const;
int GetSignals(const apollo::common::math::Vec2d& point, double distance,
std::vector<SignalInfoConstPtr>* signals) const;
int GetStopSigns(const apollo::common::math::Vec2d& point, double distance,
std::vector<StopSignInfoConstPtr>* stop_signs) const;
int GetYieldSigns(const apollo::common::math::Vec2d& point, double distance,
std::vector<YieldSignInfoConstPtr>* yield_signs) const;
int GetClearAreas(const apollo::common::math::Vec2d& point, double distance,
std::vector<ClearAreaInfoConstPtr>* clear_areas) const;
int GetSpeedBumps(const apollo::common::math::Vec2d& point, double distance,
std::vector<SpeedBumpInfoConstPtr>* speed_bumps) const;
int GetParkingSpaces(
const apollo::common::math::Vec2d& point, double distance,
std::vector<ParkingSpaceInfoConstPtr>* parking_spaces) const;
int GetPNCJunctions(
const apollo::common::math::Vec2d& point, double distance,
std::vector<PNCJunctionInfoConstPtr>* pnc_junctions) const;
int GetNearestLane(const apollo::common::math::Vec2d& point,
LaneInfoConstPtr* nearest_lane, double* nearest_s,
double* nearest_l) const;
int GetNearestLaneWithHeading(const apollo::common::math::Vec2d& point,
const double distance,
const double central_heading,
const double max_heading_difference,
LaneInfoConstPtr* nearest_lane,
double* nearest_s, double* nearest_l) const;
int GetLanesWithHeading(const apollo::common::math::Vec2d& point,
const double distance, const double central_heading,
const double max_heading_difference,
std::vector<LaneInfoConstPtr>* lanes) const;
int GetRoads(const apollo::common::math::Vec2d& point, double distance,
std::vector<RoadInfoConstPtr>* roads) const;
template <class Table, class BoxTable, class KDTree>
static void BuildSegmentKDTree(
const Table& table, const apollo::common::math::AABoxKDTreeParams& params,
BoxTable* const box_table, std::unique_ptr<KDTree>* const kdtree);
template <class Table, class BoxTable, class KDTree>
static void BuildPolygonKDTree(
const Table& table, const apollo::common::math::AABoxKDTreeParams& params,
BoxTable* const box_table, std::unique_ptr<KDTree>* const kdtree);
void BuildLaneSegmentKDTree();
void BuildJunctionPolygonKDTree();
void BuildCrosswalkPolygonKDTree();
void BuildSignalSegmentKDTree();
void BuildStopSignSegmentKDTree();
void BuildYieldSignSegmentKDTree();
void BuildClearAreaPolygonKDTree();
void BuildSpeedBumpSegmentKDTree();
void BuildParkingSpacePolygonKDTree();
void BuildPNCJunctionPolygonKDTree();
template <class KDTree>
static int SearchObjects(const apollo::common::math::Vec2d& center,
const double radius, const KDTree& kdtree,
std::vector<std::string>* const results);
void Clear();
private:
Map map_;
LaneTable lane_table_;
JunctionTable junction_table_;
CrosswalkTable crosswalk_table_;
SignalTable signal_table_;
StopSignTable stop_sign_table_;
YieldSignTable yield_sign_table_;
ClearAreaTable clear_area_table_;
SpeedBumpTable speed_bump_table_;
OverlapTable overlap_table_;
RoadTable road_table_;
ParkingSpaceTable parking_space_table_;
PNCJunctionTable pnc_junction_table_;
RSUTable rsu_table_;
std::vector<LaneSegmentBox> lane_segment_boxes_;
std::unique_ptr<LaneSegmentKDTree> lane_segment_kdtree_;
std::vector<JunctionPolygonBox> junction_polygon_boxes_;
std::unique_ptr<JunctionPolygonKDTree> junction_polygon_kdtree_;
std::vector<CrosswalkPolygonBox> crosswalk_polygon_boxes_;
std::unique_ptr<CrosswalkPolygonKDTree> crosswalk_polygon_kdtree_;
std::vector<SignalSegmentBox> signal_segment_boxes_;
std::unique_ptr<SignalSegmentKDTree> signal_segment_kdtree_;
std::vector<StopSignSegmentBox> stop_sign_segment_boxes_;
std::unique_ptr<StopSignSegmentKDTree> stop_sign_segment_kdtree_;
std::vector<YieldSignSegmentBox> yield_sign_segment_boxes_;
std::unique_ptr<YieldSignSegmentKDTree> yield_sign_segment_kdtree_;
std::vector<ClearAreaPolygonBox> clear_area_polygon_boxes_;
std::unique_ptr<ClearAreaPolygonKDTree> clear_area_polygon_kdtree_;
std::vector<SpeedBumpSegmentBox> speed_bump_segment_boxes_;
std::unique_ptr<SpeedBumpSegmentKDTree> speed_bump_segment_kdtree_;
std::vector<ParkingSpacePolygonBox> parking_space_polygon_boxes_;
std::unique_ptr<ParkingSpacePolygonKDTree> parking_space_polygon_kdtree_;
std::vector<PNCJunctionPolygonBox> pnc_junction_polygon_boxes_;
std::unique_ptr<PNCJunctionPolygonKDTree> pnc_junction_polygon_kdtree_;
};
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_common.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "modules/map/hdmap/hdmap_common.h"
#include <algorithm>
#include <limits>
#include "cyber/common/log.h"
#include "modules/common/math/linear_interpolation.h"
#include "modules/common/math/math_utils.h"
#include "modules/map/hdmap/hdmap_impl.h"
#include "modules/map/hdmap/hdmap_util.h"
namespace apollo {
namespace hdmap {
namespace {
using apollo::common::PointENU;
using apollo::common::math::Vec2d;
// Minimum error in lane segmentation.
// const double kSegmentationEpsilon = 0.2;
// Minimum distance to remove duplicated points.
constexpr double kDuplicatedPointsEpsilon = 1e-7;
// Margin for comparation
constexpr double kEpsilon = 0.1;
void RemoveDuplicates(std::vector<Vec2d> *points) {
RETURN_IF_NULL(points);
int count = 0;
const double limit = kDuplicatedPointsEpsilon * kDuplicatedPointsEpsilon;
for (const auto &point : *points) {
if (count == 0 || point.DistanceSquareTo((*points)[count - 1]) > limit) {
(*points)[count++] = point;
}
}
points->resize(count);
}
void PointsFromCurve(const Curve &input_curve, std::vector<Vec2d> *points) {
RETURN_IF_NULL(points);
points->clear();
for (const auto &curve : input_curve.segment()) {
if (curve.has_line_segment()) {
for (const auto &point : curve.line_segment().point()) {
points->emplace_back(point.x(), point.y());
}
} else {
AERROR << "Can not handle curve type.";
}
}
RemoveDuplicates(points);
}
apollo::common::math::Polygon2d ConvertToPolygon2d(const Polygon &polygon) {
std::vector<Vec2d> points;
points.reserve(polygon.point_size());
for (const auto &point : polygon.point()) {
points.emplace_back(point.x(), point.y());
}
RemoveDuplicates(&points);
while (points.size() >= 2 && points[0].DistanceTo(points.back()) <=
apollo::common::math::kMathEpsilon) {
points.pop_back();
}
return apollo::common::math::Polygon2d(points);
}
void SegmentsFromCurve(
const Curve &curve,
std::vector<apollo::common::math::LineSegment2d> *segments) {
RETURN_IF_NULL(segments);
std::vector<Vec2d> points;
PointsFromCurve(curve, &points);
for (size_t i = 0; i + 1 < points.size(); ++i) {
segments->emplace_back(points[i], points[i + 1]);
}
}
PointENU PointFromVec2d(const Vec2d &point) {
PointENU pt;
pt.set_x(point.x());
pt.set_y(point.y());
return pt;
}
} // namespace
LaneInfo::LaneInfo(const Lane &lane) : lane_(lane) { Init(); }
void LaneInfo::Init() {
PointsFromCurve(lane_.central_curve(), &points_);
CHECK_GE(points_.size(), 2U);
segments_.clear();
accumulated_s_.clear();
unit_directions_.clear();
headings_.clear();
double s = 0;
for (size_t i = 0; i + 1 < points_.size(); ++i) {
segments_.emplace_back(points_[i], points_[i + 1]);
accumulated_s_.push_back(s);
unit_directions_.push_back(segments_.back().unit_direction());
s += segments_.back().length();
}
accumulated_s_.push_back(s);
total_length_ = s;
ACHECK(!unit_directions_.empty());
unit_directions_.push_back(unit_directions_.back());
for (const auto &direction : unit_directions_) {
headings_.push_back(direction.Angle());
}
for (const auto &overlap_id : lane_.overlap_id()) {
overlap_ids_.emplace_back(overlap_id.id());
}
ACHECK(!segments_.empty());
sampled_left_width_.clear();
sampled_right_width_.clear();
for (const auto &sample : lane_.left_sample()) {
sampled_left_width_.emplace_back(sample.s(), sample.width());
}
for (const auto &sample : lane_.right_sample()) {
sampled_right_width_.emplace_back(sample.s(), sample.width());
}
if (lane_.has_type()) {
if (lane_.type() == Lane::CITY_DRIVING) {
for (const auto &p : sampled_left_width_) {
if (p.second < FLAGS_half_vehicle_width) {
AERROR
<< "lane[id = " << lane_.id().DebugString()
<< "]. sampled_left_width_[" << p.second
<< "] is too small. It should be larger than half vehicle width["
<< FLAGS_half_vehicle_width << "].";
}
}
for (const auto &p : sampled_right_width_) {
if (p.second < FLAGS_half_vehicle_width) {
AERROR
<< "lane[id = " << lane_.id().DebugString()
<< "]. sampled_right_width_[" << p.second
<< "] is too small. It should be larger than half vehicle width["
<< FLAGS_half_vehicle_width << "].";
}
}
} else if (lane_.type() == Lane::NONE) {
AERROR << "lane_[id = " << lane_.id().DebugString() << "] type is NONE.";
}
} else {
AERROR << "lane_[id = " << lane_.id().DebugString() << "] has NO type.";
}
sampled_left_road_width_.clear();
sampled_right_road_width_.clear();
for (const auto &sample : lane_.left_road_sample()) {
sampled_left_road_width_.emplace_back(sample.s(), sample.width());
}
for (const auto &sample : lane_.right_road_sample()) {
sampled_right_road_width_.emplace_back(sample.s(), sample.width());
}
CreateKDTree();
}
void LaneInfo::GetWidth(const double s, double *left_width,
double *right_width) const {
if (left_width != nullptr) {
*left_width = GetWidthFromSample(sampled_left_width_, s);
}
if (right_width != nullptr) {
*right_width = GetWidthFromSample(sampled_right_width_, s);
}
}
double LaneInfo::Heading(const double s) const {
if (accumulated_s_.empty()) {
return 0.0;
}
const double kEpsilon = 0.001;
if (s + kEpsilon < accumulated_s_.front()) {
AWARN << "s:" << s << " should be >= " << accumulated_s_.front();
return headings_.front();
}
if (s - kEpsilon > accumulated_s_.back()) {
AWARN << "s:" << s << " should be <= " << accumulated_s_.back();
return headings_.back();
}
auto iter = std::lower_bound(accumulated_s_.begin(), accumulated_s_.end(), s);
int index = static_cast<int>(std::distance(accumulated_s_.begin(), iter));
if (index == 0 || *iter - s <= common::math::kMathEpsilon) {
return headings_[index];
}
return common::math::slerp(headings_[index - 1], accumulated_s_[index - 1],
headings_[index], accumulated_s_[index], s);
}
double LaneInfo::Curvature(const double s) const {
if (points_.size() < 2U) {
AERROR << "Not enough points to compute curvature.";
return 0.0;
}
const double kEpsilon = 0.001;
if (s + kEpsilon < accumulated_s_.front()) {
AERROR << "s:" << s << " should be >= " << accumulated_s_.front();
return 0.0;
}
if (s > accumulated_s_.back() + kEpsilon) {
AERROR << "s:" << s << " should be <= " << accumulated_s_.back();
return 0.0;
}
auto iter = std::lower_bound(accumulated_s_.begin(), accumulated_s_.end(), s);
if (iter == accumulated_s_.end()) {
ADEBUG << "Reach the end of lane.";
return 0.0;
}
int index = static_cast<int>(std::distance(accumulated_s_.begin(), iter));
if (index == 0) {
ADEBUG << "Reach the beginning of lane";
return 0.0;
}
return (headings_[index] - headings_[index - 1]) /
(accumulated_s_[index] - accumulated_s_[index - 1] + kEpsilon);
}
double LaneInfo::GetWidth(const double s) const {
double left_width = 0.0;
double right_width = 0.0;
GetWidth(s, &left_width, &right_width);
return left_width + right_width;
}
double LaneInfo::GetEffectiveWidth(const double s) const {
double left_width = 0.0;
double right_width = 0.0;
GetWidth(s, &left_width, &right_width);
return 2 * std::min(left_width, right_width);
}
void LaneInfo::GetRoadWidth(const double s, double *left_width,
double *right_width) const {
if (left_width != nullptr) {
*left_width = GetWidthFromSample(sampled_left_road_width_, s);
}
if (right_width != nullptr) {
*right_width = GetWidthFromSample(sampled_right_road_width_, s);
}
}
double LaneInfo::GetRoadWidth(const double s) const {
double left_width = 0.0;
double right_width = 0.0;
GetRoadWidth(s, &left_width, &right_width);
return left_width + right_width;
}
double LaneInfo::GetWidthFromSample(
const std::vector<LaneInfo::SampledWidth> &samples, const double s) const {
if (samples.empty()) {
return 0.0;
}
if (s <= samples[0].first) {
return samples[0].second;
}
if (s >= samples.back().first) {
return samples.back().second;
}
int low = 0;
int high = static_cast<int>(samples.size());
while (low + 1 < high) {
const int mid = (low + high) / 2;
if (samples[mid].first <= s) {
low = mid;
} else {
high = mid;
}
}
const LaneInfo::SampledWidth &sample1 = samples[low];
const LaneInfo::SampledWidth &sample2 = samples[high];
const double ratio = (sample2.first - s) / (sample2.first - sample1.first);
return sample1.second * ratio + sample2.second * (1.0 - ratio);
}
bool LaneInfo::IsOnLane(const Vec2d &point) const {
double accumulate_s = 0.0;
double lateral = 0.0;
if (!GetProjection(point, &accumulate_s, &lateral)) {
return false;
}
if (accumulate_s > (total_length() + kEpsilon) ||
(accumulate_s + kEpsilon) < 0.0) {
return false;
}
double left_width = 0.0;
double right_width = 0.0;
GetWidth(accumulate_s, &left_width, &right_width);
if (lateral < left_width && lateral > -right_width) {
return true;
}
return false;
}
bool LaneInfo::IsOnLane(const apollo::common::math::Box2d &box) const {
std::vector<Vec2d> corners;
box.GetAllCorners(&corners);
for (const auto &corner : corners) {
if (!IsOnLane(corner)) {
return false;
}
}
return true;
}
PointENU LaneInfo::GetSmoothPoint(double s) const {
PointENU point;
RETURN_VAL_IF(points_.size() < 2, point);
if (s <= 0.0) {
return PointFromVec2d(points_[0]);
}
if (s >= total_length()) {
return PointFromVec2d(points_.back());
}
const auto low_itr =
std::lower_bound(accumulated_s_.begin(), accumulated_s_.end(), s);
RETURN_VAL_IF(low_itr == accumulated_s_.end(), point);
size_t index = low_itr - accumulated_s_.begin();
double delta_s = *low_itr - s;
if (delta_s < apollo::common::math::kMathEpsilon) {
return PointFromVec2d(points_[index]);
}
auto smooth_point = points_[index] - unit_directions_[index - 1] * delta_s;
return PointFromVec2d(smooth_point);
}
double LaneInfo::DistanceTo(const Vec2d &point) const {
const auto segment_box = lane_segment_kdtree_->GetNearestObject(point);
RETURN_VAL_IF_NULL(segment_box, 0.0);
return segment_box->DistanceTo(point);
}
double LaneInfo::DistanceTo(const Vec2d &point, Vec2d *map_point,
double *s_offset, int *s_offset_index) const {
RETURN_VAL_IF_NULL(map_point, 0.0);
RETURN_VAL_IF_NULL(s_offset, 0.0);
RETURN_VAL_IF_NULL(s_offset_index, 0.0);
const auto segment_box = lane_segment_kdtree_->GetNearestObject(point);
RETURN_VAL_IF_NULL(segment_box, 0.0);
int index = segment_box->id();
double distance = segments_[index].DistanceTo(point, map_point);
*s_offset_index = index;
*s_offset =
accumulated_s_[index] + segments_[index].start().DistanceTo(*map_point);
return distance;
}
PointENU LaneInfo::GetNearestPoint(const Vec2d &point, double *distance) const {
PointENU empty_point;
RETURN_VAL_IF_NULL(distance, empty_point);
const auto segment_box = lane_segment_kdtree_->GetNearestObject(point);
RETURN_VAL_IF_NULL(segment_box, empty_point);
int index = segment_box->id();
Vec2d nearest_point;
*distance = segments_[index].DistanceTo(point, &nearest_point);
return PointFromVec2d(nearest_point);
}
bool LaneInfo::GetProjection(const Vec2d &point, double *accumulate_s,
double *lateral) const {
RETURN_VAL_IF_NULL(accumulate_s, false);
RETURN_VAL_IF_NULL(lateral, false);
if (segments_.empty()) {
return false;
}
double min_dist = std::numeric_limits<double>::infinity();
int seg_num = static_cast<int>(segments_.size());
int min_index = 0;
for (int i = 0; i < seg_num; ++i) {
const double distance = segments_[i].DistanceSquareTo(point);
if (distance < min_dist) {
min_index = i;
min_dist = distance;
}
}
min_dist = std::sqrt(min_dist);
const auto &nearest_seg = segments_[min_index];
const auto prod = nearest_seg.ProductOntoUnit(point);
const auto proj = nearest_seg.ProjectOntoUnit(point);
if (min_index == 0) {
*accumulate_s = std::min(proj, nearest_seg.length());
if (proj < 0) {
*lateral = prod;
} else {
*lateral = (prod > 0.0 ? 1 : -1) * min_dist;
}
} else if (min_index == seg_num - 1) {
*accumulate_s = accumulated_s_[min_index] + std::max(0.0, proj);
if (proj > 0) {
*lateral = prod;
} else {
*lateral = (prod > 0.0 ? 1 : -1) * min_dist;
}
} else {
*accumulate_s = accumulated_s_[min_index] +
std::max(0.0, std::min(proj, nearest_seg.length()));
*lateral = (prod > 0.0 ? 1 : -1) * min_dist;
}
return true;
}
void LaneInfo::PostProcess(const HDMapImpl &map_instance) {
UpdateOverlaps(map_instance);
}
void LaneInfo::UpdateOverlaps(const HDMapImpl &map_instance) {
for (const auto &overlap_id : overlap_ids_) {
const auto &overlap_ptr =
map_instance.GetOverlapById(MakeMapId(overlap_id));
if (overlap_ptr == nullptr) {
continue;
}
overlaps_.emplace_back(overlap_ptr);
for (const auto &object : overlap_ptr->overlap().object()) {
const auto &object_id = object.id().id();
if (object_id == lane_.id().id()) {
continue;
}
const auto &object_map_id = MakeMapId(object_id);
if (map_instance.GetLaneById(object_map_id) != nullptr) {
cross_lanes_.emplace_back(overlap_ptr);
}
if (map_instance.GetSignalById(object_map_id) != nullptr) {
signals_.emplace_back(overlap_ptr);
}
if (map_instance.GetYieldSignById(object_map_id) != nullptr) {
yield_signs_.emplace_back(overlap_ptr);
}
if (map_instance.GetStopSignById(object_map_id) != nullptr) {
stop_signs_.emplace_back(overlap_ptr);
}
if (map_instance.GetCrosswalkById(object_map_id) != nullptr) {
crosswalks_.emplace_back(overlap_ptr);
}
if (map_instance.GetJunctionById(object_map_id) != nullptr) {
junctions_.emplace_back(overlap_ptr);
}
if (map_instance.GetClearAreaById(object_map_id) != nullptr) {
clear_areas_.emplace_back(overlap_ptr);
}
if (map_instance.GetSpeedBumpById(object_map_id) != nullptr) {
speed_bumps_.emplace_back(overlap_ptr);
}
if (map_instance.GetParkingSpaceById(object_map_id) != nullptr) {
parking_spaces_.emplace_back(overlap_ptr);
}
if (map_instance.GetPNCJunctionById(object_map_id) != nullptr) {
pnc_junctions_.emplace_back(overlap_ptr);
}
}
}
}
void LaneInfo::CreateKDTree() {
apollo::common::math::AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 16;
segment_box_list_.clear();
for (size_t id = 0; id < segments_.size(); ++id) {
const auto &segment = segments_[id];
segment_box_list_.emplace_back(
apollo::common::math::AABox2d(segment.start(), segment.end()), this,
&segment, id);
}
lane_segment_kdtree_.reset(new LaneSegmentKDTree(segment_box_list_, params));
}
JunctionInfo::JunctionInfo(const Junction &junction) : junction_(junction) {
Init();
}
void JunctionInfo::Init() {
polygon_ = ConvertToPolygon2d(junction_.polygon());
CHECK_GT(polygon_.num_points(), 2);
for (const auto &overlap_id : junction_.overlap_id()) {
overlap_ids_.emplace_back(overlap_id);
}
}
void JunctionInfo::PostProcess(const HDMapImpl &map_instance) {
UpdateOverlaps(map_instance);
}
void JunctionInfo::UpdateOverlaps(const HDMapImpl &map_instance) {
for (const auto &overlap_id : overlap_ids_) {
const auto &overlap_ptr = map_instance.GetOverlapById(overlap_id);
if (overlap_ptr == nullptr) {
continue;
}
for (const auto &object : overlap_ptr->overlap().object()) {
const auto &object_id = object.id().id();
if (object_id == id().id()) {
continue;
}
if (object.has_stop_sign_overlap_info()) {
overlap_stop_sign_ids_.push_back(object.id());
}
}
}
}
SignalInfo::SignalInfo(const Signal &signal) : signal_(signal) { Init(); }
void SignalInfo::Init() {
for (const auto &stop_line : signal_.stop_line()) {
SegmentsFromCurve(stop_line, &segments_);
}
ACHECK(!segments_.empty());
std::vector<Vec2d> points;
for (const auto &segment : segments_) {
points.emplace_back(segment.start());
points.emplace_back(segment.end());
}
CHECK_GT(points.size(), 0U);
}
CrosswalkInfo::CrosswalkInfo(const Crosswalk &crosswalk)
: crosswalk_(crosswalk) {
Init();
}
void CrosswalkInfo::Init() {
polygon_ = ConvertToPolygon2d(crosswalk_.polygon());
CHECK_GT(polygon_.num_points(), 2);
}
StopSignInfo::StopSignInfo(const StopSign &stop_sign) : stop_sign_(stop_sign) {
init();
}
void StopSignInfo::init() {
for (const auto &stop_line : stop_sign_.stop_line()) {
SegmentsFromCurve(stop_line, &segments_);
}
ACHECK(!segments_.empty());
for (const auto &overlap_id : stop_sign_.overlap_id()) {
overlap_ids_.emplace_back(overlap_id);
}
}
void StopSignInfo::PostProcess(const HDMapImpl &map_instance) {
UpdateOverlaps(map_instance);
}
void StopSignInfo::UpdateOverlaps(const HDMapImpl &map_instance) {
for (const auto &overlap_id : overlap_ids_) {
const auto &overlap_ptr = map_instance.GetOverlapById(overlap_id);
if (overlap_ptr == nullptr) {
continue;
}
for (const auto &object : overlap_ptr->overlap().object()) {
const auto &object_id = object.id().id();
if (object_id == id().id()) {
continue;
}
if (object.has_junction_overlap_info()) {
overlap_junction_ids_.push_back(object.id());
} else if (object.has_lane_overlap_info()) {
overlap_lane_ids_.push_back(object.id());
}
}
}
if (overlap_junction_ids_.empty()) {
AWARN << "stop sign " << id().id() << "has no overlap with any junction.";
}
}
YieldSignInfo::YieldSignInfo(const YieldSign &yield_sign)
: yield_sign_(yield_sign) {
Init();
}
void YieldSignInfo::Init() {
for (const auto &stop_line : yield_sign_.stop_line()) {
SegmentsFromCurve(stop_line, &segments_);
}
// segments_from_curve(yield_sign_.stop_line(), &segments_);
ACHECK(!segments_.empty());
}
ClearAreaInfo::ClearAreaInfo(const ClearArea &clear_area)
: clear_area_(clear_area) {
Init();
}
void ClearAreaInfo::Init() {
polygon_ = ConvertToPolygon2d(clear_area_.polygon());
CHECK_GT(polygon_.num_points(), 2);
}
SpeedBumpInfo::SpeedBumpInfo(const SpeedBump &speed_bump)
: speed_bump_(speed_bump) {
Init();
}
void SpeedBumpInfo::Init() {
for (const auto &stop_line : speed_bump_.position()) {
SegmentsFromCurve(stop_line, &segments_);
}
ACHECK(!segments_.empty());
}
OverlapInfo::OverlapInfo(const Overlap &overlap) : overlap_(overlap) {}
const ObjectOverlapInfo *OverlapInfo::GetObjectOverlapInfo(const Id &id) const {
for (const auto &object : overlap_.object()) {
if (object.id().id() == id.id()) {
return &object;
}
}
return nullptr;
}
RoadInfo::RoadInfo(const Road &road) : road_(road) {
for (const auto §ion : road_.section()) {
sections_.push_back(section);
road_boundaries_.push_back(section.boundary());
}
}
const std::vector<RoadBoundary> &RoadInfo::GetBoundaries() const {
return road_boundaries_;
}
ParkingSpaceInfo::ParkingSpaceInfo(const ParkingSpace &parking_space)
: parking_space_(parking_space) {
Init();
}
void ParkingSpaceInfo::Init() {
polygon_ = ConvertToPolygon2d(parking_space_.polygon());
CHECK_GT(polygon_.num_points(), 2);
}
PNCJunctionInfo::PNCJunctionInfo(const PNCJunction &pnc_junction)
: junction_(pnc_junction) {
Init();
}
void PNCJunctionInfo::Init() {
polygon_ = ConvertToPolygon2d(junction_.polygon());
CHECK_GT(polygon_.num_points(), 2);
for (const auto &overlap_id : junction_.overlap_id()) {
overlap_ids_.emplace_back(overlap_id);
}
}
RSUInfo::RSUInfo(const RSU &rsu) : _rsu(rsu) {}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map | apollo_public_repos/apollo/modules/map/hdmap/hdmap_impl.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "modules/map/hdmap/hdmap_impl.h"
#include <algorithm>
#include <limits>
#include <mutex>
#include <set>
#include <unordered_set>
#include "absl/strings/match.h"
#include "cyber/common/file.h"
#include "modules/common/util/util.h"
#include "modules/map/hdmap/adapter/opendrive_adapter.h"
namespace apollo {
namespace hdmap {
namespace {
using apollo::common::PointENU;
using apollo::common::math::AABoxKDTreeParams;
using apollo::common::math::Vec2d;
Id CreateHDMapId(const std::string& string_id) {
Id id;
id.set_id(string_id);
return id;
}
// default lanes search radius in GetForwardNearestSignalsOnLane
constexpr double kLanesSearchRange = 10.0;
// backward search distance in GetForwardNearestSignalsOnLane
constexpr int kBackwardDistance = 4;
} // namespace
int HDMapImpl::LoadMapFromFile(const std::string& map_filename) {
Clear();
// TODO(All) seems map_ can be changed to a local variable of this
// function, but test will fail if I do so. if so.
if (absl::EndsWith(map_filename, ".xml")) {
if (!adapter::OpendriveAdapter::LoadData(map_filename, &map_)) {
return -1;
}
} else if (!cyber::common::GetProtoFromFile(map_filename, &map_)) {
return -1;
}
return LoadMapFromProto(map_);
}
int HDMapImpl::LoadMapFromProto(const Map& map_proto) {
if (&map_proto != &map_) { // avoid an unnecessary copy
Clear();
map_ = map_proto;
}
for (const auto& lane : map_.lane()) {
lane_table_[lane.id().id()].reset(new LaneInfo(lane));
}
for (const auto& junction : map_.junction()) {
junction_table_[junction.id().id()].reset(new JunctionInfo(junction));
}
for (const auto& signal : map_.signal()) {
signal_table_[signal.id().id()].reset(new SignalInfo(signal));
}
for (const auto& crosswalk : map_.crosswalk()) {
crosswalk_table_[crosswalk.id().id()].reset(new CrosswalkInfo(crosswalk));
}
for (const auto& stop_sign : map_.stop_sign()) {
stop_sign_table_[stop_sign.id().id()].reset(new StopSignInfo(stop_sign));
}
for (const auto& yield_sign : map_.yield()) {
yield_sign_table_[yield_sign.id().id()].reset(
new YieldSignInfo(yield_sign));
}
for (const auto& clear_area : map_.clear_area()) {
clear_area_table_[clear_area.id().id()].reset(
new ClearAreaInfo(clear_area));
}
for (const auto& speed_bump : map_.speed_bump()) {
speed_bump_table_[speed_bump.id().id()].reset(
new SpeedBumpInfo(speed_bump));
}
for (const auto& parking_space : map_.parking_space()) {
parking_space_table_[parking_space.id().id()].reset(
new ParkingSpaceInfo(parking_space));
}
for (const auto& pnc_junction : map_.pnc_junction()) {
pnc_junction_table_[pnc_junction.id().id()].reset(
new PNCJunctionInfo(pnc_junction));
}
for (const auto& rsu : map_.rsu()) {
rsu_table_[rsu.id().id()].reset(new RSUInfo(rsu));
}
for (const auto& overlap : map_.overlap()) {
overlap_table_[overlap.id().id()].reset(new OverlapInfo(overlap));
}
for (const auto& road : map_.road()) {
road_table_[road.id().id()].reset(new RoadInfo(road));
}
for (const auto& rsu : map_.rsu()) {
rsu_table_[rsu.id().id()].reset(new RSUInfo(rsu));
}
for (const auto& road_ptr_pair : road_table_) {
const auto& road_id = road_ptr_pair.second->id();
for (const auto& road_section : road_ptr_pair.second->sections()) {
const auto& section_id = road_section.id();
for (const auto& lane_id : road_section.lane_id()) {
auto iter = lane_table_.find(lane_id.id());
if (iter != lane_table_.end()) {
iter->second->set_road_id(road_id);
iter->second->set_section_id(section_id);
} else {
AFATAL << "Unknown lane id: " << lane_id.id();
}
}
}
}
for (const auto& lane_ptr_pair : lane_table_) {
lane_ptr_pair.second->PostProcess(*this);
}
for (const auto& junction_ptr_pair : junction_table_) {
junction_ptr_pair.second->PostProcess(*this);
}
for (const auto& stop_sign_ptr_pair : stop_sign_table_) {
stop_sign_ptr_pair.second->PostProcess(*this);
}
BuildLaneSegmentKDTree();
BuildJunctionPolygonKDTree();
BuildSignalSegmentKDTree();
BuildCrosswalkPolygonKDTree();
BuildStopSignSegmentKDTree();
BuildYieldSignSegmentKDTree();
BuildClearAreaPolygonKDTree();
BuildSpeedBumpSegmentKDTree();
BuildParkingSpacePolygonKDTree();
BuildPNCJunctionPolygonKDTree();
return 0;
}
LaneInfoConstPtr HDMapImpl::GetLaneById(const Id& id) const {
LaneTable::const_iterator it = lane_table_.find(id.id());
return it != lane_table_.end() ? it->second : nullptr;
}
JunctionInfoConstPtr HDMapImpl::GetJunctionById(const Id& id) const {
JunctionTable::const_iterator it = junction_table_.find(id.id());
return it != junction_table_.end() ? it->second : nullptr;
}
SignalInfoConstPtr HDMapImpl::GetSignalById(const Id& id) const {
SignalTable::const_iterator it = signal_table_.find(id.id());
return it != signal_table_.end() ? it->second : nullptr;
}
CrosswalkInfoConstPtr HDMapImpl::GetCrosswalkById(const Id& id) const {
CrosswalkTable::const_iterator it = crosswalk_table_.find(id.id());
return it != crosswalk_table_.end() ? it->second : nullptr;
}
StopSignInfoConstPtr HDMapImpl::GetStopSignById(const Id& id) const {
StopSignTable::const_iterator it = stop_sign_table_.find(id.id());
return it != stop_sign_table_.end() ? it->second : nullptr;
}
YieldSignInfoConstPtr HDMapImpl::GetYieldSignById(const Id& id) const {
YieldSignTable::const_iterator it = yield_sign_table_.find(id.id());
return it != yield_sign_table_.end() ? it->second : nullptr;
}
ClearAreaInfoConstPtr HDMapImpl::GetClearAreaById(const Id& id) const {
ClearAreaTable::const_iterator it = clear_area_table_.find(id.id());
return it != clear_area_table_.end() ? it->second : nullptr;
}
SpeedBumpInfoConstPtr HDMapImpl::GetSpeedBumpById(const Id& id) const {
SpeedBumpTable::const_iterator it = speed_bump_table_.find(id.id());
return it != speed_bump_table_.end() ? it->second : nullptr;
}
OverlapInfoConstPtr HDMapImpl::GetOverlapById(const Id& id) const {
OverlapTable::const_iterator it = overlap_table_.find(id.id());
return it != overlap_table_.end() ? it->second : nullptr;
}
RoadInfoConstPtr HDMapImpl::GetRoadById(const Id& id) const {
RoadTable::const_iterator it = road_table_.find(id.id());
return it != road_table_.end() ? it->second : nullptr;
}
ParkingSpaceInfoConstPtr HDMapImpl::GetParkingSpaceById(const Id& id) const {
ParkingSpaceTable::const_iterator it = parking_space_table_.find(id.id());
return it != parking_space_table_.end() ? it->second : nullptr;
}
PNCJunctionInfoConstPtr HDMapImpl::GetPNCJunctionById(const Id& id) const {
PNCJunctionTable::const_iterator it = pnc_junction_table_.find(id.id());
return it != pnc_junction_table_.end() ? it->second : nullptr;
}
RSUInfoConstPtr HDMapImpl::GetRSUById(const Id& id) const {
RSUTable::const_iterator it = rsu_table_.find(id.id());
return it != rsu_table_.end() ? it->second : nullptr;
}
int HDMapImpl::GetLanes(const PointENU& point, double distance,
std::vector<LaneInfoConstPtr>* lanes) const {
return GetLanes({point.x(), point.y()}, distance, lanes);
}
int HDMapImpl::GetLanes(const Vec2d& point, double distance,
std::vector<LaneInfoConstPtr>* lanes) const {
if (lanes == nullptr || lane_segment_kdtree_ == nullptr) {
return -1;
}
lanes->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *lane_segment_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
lanes->emplace_back(GetLaneById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetRoads(const PointENU& point, double distance,
std::vector<RoadInfoConstPtr>* roads) const {
return GetRoads({point.x(), point.y()}, distance, roads);
}
int HDMapImpl::GetRoads(const Vec2d& point, double distance,
std::vector<RoadInfoConstPtr>* roads) const {
std::vector<LaneInfoConstPtr> lanes;
if (GetLanes(point, distance, &lanes) != 0) {
return -1;
}
std::unordered_set<std::string> road_ids;
for (auto& lane : lanes) {
if (!lane->road_id().id().empty()) {
road_ids.insert(lane->road_id().id());
}
}
for (auto& road_id : road_ids) {
RoadInfoConstPtr road = GetRoadById(CreateHDMapId(road_id));
CHECK_NOTNULL(road);
roads->push_back(road);
}
return 0;
}
int HDMapImpl::GetJunctions(
const PointENU& point, double distance,
std::vector<JunctionInfoConstPtr>* junctions) const {
return GetJunctions({point.x(), point.y()}, distance, junctions);
}
int HDMapImpl::GetJunctions(
const Vec2d& point, double distance,
std::vector<JunctionInfoConstPtr>* junctions) const {
if (junctions == nullptr || junction_polygon_kdtree_ == nullptr) {
return -1;
}
junctions->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *junction_polygon_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
junctions->emplace_back(GetJunctionById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetSignals(const PointENU& point, double distance,
std::vector<SignalInfoConstPtr>* signals) const {
return GetSignals({point.x(), point.y()}, distance, signals);
}
int HDMapImpl::GetSignals(const Vec2d& point, double distance,
std::vector<SignalInfoConstPtr>* signals) const {
if (signals == nullptr || signal_segment_kdtree_ == nullptr) {
return -1;
}
signals->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *signal_segment_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
signals->emplace_back(GetSignalById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetCrosswalks(
const PointENU& point, double distance,
std::vector<CrosswalkInfoConstPtr>* crosswalks) const {
return GetCrosswalks({point.x(), point.y()}, distance, crosswalks);
}
int HDMapImpl::GetCrosswalks(
const Vec2d& point, double distance,
std::vector<CrosswalkInfoConstPtr>* crosswalks) const {
if (crosswalks == nullptr || crosswalk_polygon_kdtree_ == nullptr) {
return -1;
}
crosswalks->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *crosswalk_polygon_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
crosswalks->emplace_back(GetCrosswalkById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetStopSigns(
const PointENU& point, double distance,
std::vector<StopSignInfoConstPtr>* stop_signs) const {
return GetStopSigns({point.x(), point.y()}, distance, stop_signs);
}
int HDMapImpl::GetStopSigns(
const Vec2d& point, double distance,
std::vector<StopSignInfoConstPtr>* stop_signs) const {
if (stop_signs == nullptr || stop_sign_segment_kdtree_ == nullptr) {
return -1;
}
stop_signs->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *stop_sign_segment_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
stop_signs->emplace_back(GetStopSignById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetYieldSigns(
const PointENU& point, double distance,
std::vector<YieldSignInfoConstPtr>* yield_signs) const {
return GetYieldSigns({point.x(), point.y()}, distance, yield_signs);
}
int HDMapImpl::GetYieldSigns(
const Vec2d& point, double distance,
std::vector<YieldSignInfoConstPtr>* yield_signs) const {
if (yield_signs == nullptr || yield_sign_segment_kdtree_ == nullptr) {
return -1;
}
yield_signs->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *yield_sign_segment_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
yield_signs->emplace_back(GetYieldSignById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetClearAreas(
const PointENU& point, double distance,
std::vector<ClearAreaInfoConstPtr>* clear_areas) const {
return GetClearAreas({point.x(), point.y()}, distance, clear_areas);
}
int HDMapImpl::GetClearAreas(
const Vec2d& point, double distance,
std::vector<ClearAreaInfoConstPtr>* clear_areas) const {
if (clear_areas == nullptr || clear_area_polygon_kdtree_ == nullptr) {
return -1;
}
clear_areas->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *clear_area_polygon_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
clear_areas->emplace_back(GetClearAreaById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetSpeedBumps(
const PointENU& point, double distance,
std::vector<SpeedBumpInfoConstPtr>* speed_bumps) const {
return GetSpeedBumps({point.x(), point.y()}, distance, speed_bumps);
}
int HDMapImpl::GetSpeedBumps(
const Vec2d& point, double distance,
std::vector<SpeedBumpInfoConstPtr>* speed_bumps) const {
if (speed_bumps == nullptr || speed_bump_segment_kdtree_ == nullptr) {
return -1;
}
speed_bumps->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *speed_bump_segment_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
speed_bumps->emplace_back(GetSpeedBumpById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetParkingSpaces(
const PointENU& point, double distance,
std::vector<ParkingSpaceInfoConstPtr>* parking_spaces) const {
return GetParkingSpaces({point.x(), point.y()}, distance, parking_spaces);
}
int HDMapImpl::GetParkingSpaces(
const Vec2d& point, double distance,
std::vector<ParkingSpaceInfoConstPtr>* parking_spaces) const {
if (parking_spaces == nullptr || parking_space_polygon_kdtree_ == nullptr) {
return -1;
}
parking_spaces->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *parking_space_polygon_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
parking_spaces->emplace_back(GetParkingSpaceById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetPNCJunctions(
const apollo::common::PointENU& point, double distance,
std::vector<PNCJunctionInfoConstPtr>* pnc_junctions) const {
return GetPNCJunctions({point.x(), point.y()}, distance, pnc_junctions);
}
int HDMapImpl::GetPNCJunctions(
const apollo::common::math::Vec2d& point, double distance,
std::vector<PNCJunctionInfoConstPtr>* pnc_junctions) const {
if (pnc_junctions == nullptr || pnc_junction_polygon_kdtree_ == nullptr) {
return -1;
}
pnc_junctions->clear();
std::vector<std::string> ids;
const int status =
SearchObjects(point, distance, *pnc_junction_polygon_kdtree_, &ids);
if (status < 0) {
return status;
}
for (const auto& id : ids) {
pnc_junctions->emplace_back(GetPNCJunctionById(CreateHDMapId(id)));
}
return 0;
}
int HDMapImpl::GetNearestLane(const PointENU& point,
LaneInfoConstPtr* nearest_lane, double* nearest_s,
double* nearest_l) const {
return GetNearestLane({point.x(), point.y()}, nearest_lane, nearest_s,
nearest_l);
}
int HDMapImpl::GetNearestLane(const Vec2d& point,
LaneInfoConstPtr* nearest_lane, double* nearest_s,
double* nearest_l) const {
CHECK_NOTNULL(nearest_lane);
CHECK_NOTNULL(nearest_s);
CHECK_NOTNULL(nearest_l);
const auto* segment_object = lane_segment_kdtree_->GetNearestObject(point);
if (segment_object == nullptr) {
return -1;
}
const Id& lane_id = segment_object->object()->id();
*nearest_lane = GetLaneById(lane_id);
ACHECK(*nearest_lane);
const int id = segment_object->id();
const auto& segment = (*nearest_lane)->segments()[id];
Vec2d nearest_pt;
segment.DistanceTo(point, &nearest_pt);
*nearest_s = (*nearest_lane)->accumulate_s()[id] +
nearest_pt.DistanceTo(segment.start());
*nearest_l = segment.unit_direction().CrossProd(point - segment.start());
return 0;
}
int HDMapImpl::GetNearestLaneWithHeading(
const PointENU& point, const double distance, const double central_heading,
const double max_heading_difference, LaneInfoConstPtr* nearest_lane,
double* nearest_s, double* nearest_l) const {
return GetNearestLaneWithHeading({point.x(), point.y()}, distance,
central_heading, max_heading_difference,
nearest_lane, nearest_s, nearest_l);
}
int HDMapImpl::GetNearestLaneWithHeading(
const Vec2d& point, const double distance, const double central_heading,
const double max_heading_difference, LaneInfoConstPtr* nearest_lane,
double* nearest_s, double* nearest_l) const {
CHECK_NOTNULL(nearest_lane);
CHECK_NOTNULL(nearest_s);
CHECK_NOTNULL(nearest_l);
std::vector<LaneInfoConstPtr> lanes;
if (GetLanesWithHeading(point, distance, central_heading,
max_heading_difference, &lanes) != 0) {
return -1;
}
double s = 0;
size_t s_index = 0;
Vec2d map_point;
double min_distance = distance;
for (const auto& lane : lanes) {
double s_offset = 0.0;
int s_offset_index = 0;
double distance =
lane->DistanceTo(point, &map_point, &s_offset, &s_offset_index);
if (distance < min_distance) {
min_distance = distance;
*nearest_lane = lane;
s = s_offset;
s_index = s_offset_index;
}
}
if (*nearest_lane == nullptr) {
return -1;
}
*nearest_s = s;
int segment_index = static_cast<int>(
std::min(s_index, (*nearest_lane)->segments().size() - 1));
const auto& segment_2d = (*nearest_lane)->segments()[segment_index];
*nearest_l =
segment_2d.unit_direction().CrossProd(point - segment_2d.start());
return 0;
}
int HDMapImpl::GetLanesWithHeading(const PointENU& point, const double distance,
const double central_heading,
const double max_heading_difference,
std::vector<LaneInfoConstPtr>* lanes) const {
return GetLanesWithHeading({point.x(), point.y()}, distance, central_heading,
max_heading_difference, lanes);
}
int HDMapImpl::GetLanesWithHeading(const Vec2d& point, const double distance,
const double central_heading,
const double max_heading_difference,
std::vector<LaneInfoConstPtr>* lanes) const {
CHECK_NOTNULL(lanes);
std::vector<LaneInfoConstPtr> all_lanes;
const int status = GetLanes(point, distance, &all_lanes);
if (status < 0 || all_lanes.empty()) {
return -1;
}
lanes->clear();
for (auto& lane : all_lanes) {
Vec2d proj_pt(0.0, 0.0);
double s_offset = 0.0;
int s_offset_index = 0;
double dis = lane->DistanceTo(point, &proj_pt, &s_offset, &s_offset_index);
if (dis <= distance) {
double heading_diff =
fabs(lane->headings()[s_offset_index] - central_heading);
if (fabs(apollo::common::math::NormalizeAngle(heading_diff)) <=
max_heading_difference) {
lanes->push_back(lane);
}
}
}
return 0;
}
int HDMapImpl::GetRoadBoundaries(
const PointENU& point, double radius,
std::vector<RoadROIBoundaryPtr>* road_boundaries,
std::vector<JunctionBoundaryPtr>* junctions) const {
CHECK_NOTNULL(road_boundaries);
CHECK_NOTNULL(junctions);
road_boundaries->clear();
junctions->clear();
std::vector<LaneInfoConstPtr> lanes;
if (GetLanes(point, radius, &lanes) != 0 || lanes.empty()) {
return -1;
}
std::unordered_set<std::string> junction_id_set;
std::unordered_set<std::string> road_section_id_set;
for (const auto& lane : lanes) {
const auto road_id = lane->road_id();
const auto section_id = lane->section_id();
std::string unique_id = road_id.id() + section_id.id();
if (road_section_id_set.count(unique_id) > 0) {
continue;
}
road_section_id_set.insert(unique_id);
const auto road_ptr = GetRoadById(road_id);
if (road_ptr == nullptr) {
AERROR << "road id [" << road_id.id() << "] is not found.";
continue;
}
if (road_ptr->has_junction_id()) {
const Id junction_id = road_ptr->junction_id();
if (junction_id_set.count(junction_id.id()) > 0) {
continue;
}
junction_id_set.insert(junction_id.id());
JunctionBoundaryPtr junction_boundary_ptr(new JunctionBoundary());
junction_boundary_ptr->junction_info = GetJunctionById(junction_id);
if (junction_boundary_ptr->junction_info == nullptr) {
AERROR << "junction id [" << junction_id.id() << "] is not found.";
continue;
}
junctions->push_back(junction_boundary_ptr);
} else {
RoadROIBoundaryPtr road_boundary_ptr(new RoadROIBoundary());
road_boundary_ptr->mutable_id()->CopyFrom(road_ptr->id());
for (const auto& section : road_ptr->sections()) {
if (section.id().id() == section_id.id()) {
road_boundary_ptr->add_road_boundaries()->CopyFrom(
section.boundary());
}
}
road_boundaries->push_back(road_boundary_ptr);
}
}
return 0;
}
int HDMapImpl::GetRoadBoundaries(
const PointENU& point, double radius,
std::vector<RoadRoiPtr>* road_boundaries,
std::vector<JunctionInfoConstPtr>* junctions) const {
if (road_boundaries == nullptr || junctions == nullptr) {
AERROR << "the pointer in parameter is null";
return -1;
}
road_boundaries->clear();
junctions->clear();
std::set<std::string> junction_id_set;
std::vector<RoadInfoConstPtr> roads;
if (GetRoads(point, radius, &roads) != 0) {
AERROR << "can not get roads in the range.";
return -1;
}
for (const auto& road_ptr : roads) {
if (road_ptr->has_junction_id()) {
JunctionInfoConstPtr junction_ptr =
GetJunctionById(road_ptr->junction_id());
if (junction_id_set.find(junction_ptr->id().id()) ==
junction_id_set.end()) {
junctions->push_back(junction_ptr);
junction_id_set.insert(junction_ptr->id().id());
}
} else {
RoadRoiPtr road_boundary_ptr(new RoadRoi());
const std::vector<apollo::hdmap::RoadBoundary>& temp_road_boundaries =
road_ptr->GetBoundaries();
road_boundary_ptr->id = road_ptr->id();
for (const auto& temp_road_boundary : temp_road_boundaries) {
apollo::hdmap::BoundaryPolygon boundary_polygon =
temp_road_boundary.outer_polygon();
for (const auto& edge : boundary_polygon.edge()) {
if (edge.type() == apollo::hdmap::BoundaryEdge::LEFT_BOUNDARY) {
for (const auto& s : edge.curve().segment()) {
for (const auto& p : s.line_segment().point()) {
road_boundary_ptr->left_boundary.line_points.push_back(p);
}
}
}
if (edge.type() == apollo::hdmap::BoundaryEdge::RIGHT_BOUNDARY) {
for (const auto& s : edge.curve().segment()) {
for (const auto& p : s.line_segment().point()) {
road_boundary_ptr->right_boundary.line_points.push_back(p);
}
}
}
}
if (temp_road_boundary.hole_size() != 0) {
for (const auto& hole : temp_road_boundary.hole()) {
PolygonBoundary hole_boundary;
for (const auto& edge : hole.edge()) {
if (edge.type() == apollo::hdmap::BoundaryEdge::NORMAL) {
for (const auto& s : edge.curve().segment()) {
for (const auto& p : s.line_segment().point()) {
hole_boundary.polygon_points.push_back(p);
}
}
}
}
road_boundary_ptr->holes_boundary.push_back(hole_boundary);
}
}
}
road_boundaries->push_back(road_boundary_ptr);
}
}
return 0;
}
int HDMapImpl::GetRoi(const apollo::common::PointENU& point, double radius,
std::vector<RoadRoiPtr>* roads_roi,
std::vector<PolygonRoiPtr>* polygons_roi) {
if (roads_roi == nullptr || polygons_roi == nullptr) {
AERROR << "the pointer in parameter is null";
return -1;
}
roads_roi->clear();
polygons_roi->clear();
std::set<std::string> polygon_id_set;
std::vector<RoadInfoConstPtr> roads;
std::vector<LaneInfoConstPtr> lanes;
if (GetRoads(point, radius, &roads) != 0) {
AERROR << "can not get roads in the range.";
return -1;
}
if (GetLanes(point, radius, &lanes) != 0) {
AERROR << "can not get lanes in the range.";
return -1;
}
for (const auto& road_ptr : roads) {
// get junction polygon
if (road_ptr->has_junction_id()) {
JunctionInfoConstPtr junction_ptr =
GetJunctionById(road_ptr->junction_id());
if (polygon_id_set.find(junction_ptr->id().id()) ==
polygon_id_set.end()) {
PolygonRoiPtr polygon_roi_ptr(new PolygonRoi());
polygon_roi_ptr->polygon = junction_ptr->polygon();
polygon_roi_ptr->attribute.type = PolygonType::JUNCTION_POLYGON;
polygon_roi_ptr->attribute.id = junction_ptr->id();
polygons_roi->push_back(polygon_roi_ptr);
polygon_id_set.insert(junction_ptr->id().id());
}
} else {
// get road boundary
RoadRoiPtr road_boundary_ptr(new RoadRoi());
std::vector<apollo::hdmap::RoadBoundary> temp_roads_roi;
temp_roads_roi = road_ptr->GetBoundaries();
if (!temp_roads_roi.empty()) {
road_boundary_ptr->id = road_ptr->id();
for (const auto& temp_road_boundary : temp_roads_roi) {
apollo::hdmap::BoundaryPolygon boundary_polygon =
temp_road_boundary.outer_polygon();
for (const auto& edge : boundary_polygon.edge()) {
if (edge.type() == apollo::hdmap::BoundaryEdge::LEFT_BOUNDARY) {
for (const auto& s : edge.curve().segment()) {
for (const auto& p : s.line_segment().point()) {
road_boundary_ptr->left_boundary.line_points.push_back(p);
}
}
}
if (edge.type() == apollo::hdmap::BoundaryEdge::RIGHT_BOUNDARY) {
for (const auto& s : edge.curve().segment()) {
for (const auto& p : s.line_segment().point()) {
road_boundary_ptr->right_boundary.line_points.push_back(p);
}
}
}
}
if (temp_road_boundary.hole_size() != 0) {
for (const auto& hole : temp_road_boundary.hole()) {
PolygonBoundary hole_boundary;
for (const auto& edge : hole.edge()) {
if (edge.type() == apollo::hdmap::BoundaryEdge::NORMAL) {
for (const auto& s : edge.curve().segment()) {
for (const auto& p : s.line_segment().point()) {
hole_boundary.polygon_points.push_back(p);
}
}
}
}
road_boundary_ptr->holes_boundary.push_back(hole_boundary);
}
}
}
roads_roi->push_back(road_boundary_ptr);
}
}
}
for (const auto& lane_ptr : lanes) {
// get parking space polygon
for (const auto& overlap_id : lane_ptr->lane().overlap_id()) {
OverlapInfoConstPtr overlap_ptr = GetOverlapById(overlap_id);
for (int i = 0; i < overlap_ptr->overlap().object_size(); ++i) {
if (overlap_ptr->overlap().object(i).id().id() == lane_ptr->id().id()) {
continue;
} else {
ParkingSpaceInfoConstPtr parkingspace_ptr =
GetParkingSpaceById(overlap_ptr->overlap().object(i).id());
if (parkingspace_ptr != nullptr) {
if (polygon_id_set.find(parkingspace_ptr->id().id()) ==
polygon_id_set.end()) {
PolygonRoiPtr polygon_roi_ptr(new PolygonRoi());
polygon_roi_ptr->polygon = parkingspace_ptr->polygon();
polygon_roi_ptr->attribute.type =
PolygonType::PARKINGSPACE_POLYGON;
polygon_roi_ptr->attribute.id = parkingspace_ptr->id();
polygons_roi->push_back(polygon_roi_ptr);
polygon_id_set.insert(parkingspace_ptr->id().id());
}
}
}
}
}
}
return 0;
}
int HDMapImpl::GetForwardNearestSignalsOnLane(
const apollo::common::PointENU& point, const double distance,
std::vector<SignalInfoConstPtr>* signals) const {
CHECK_NOTNULL(signals);
signals->clear();
LaneInfoConstPtr lane_ptr = nullptr;
double nearest_s = 0.0;
double nearest_l = 0.0;
std::vector<LaneInfoConstPtr> temp_surrounding_lanes;
std::vector<LaneInfoConstPtr> surrounding_lanes;
int s_index = 0;
apollo::common::math::Vec2d car_point;
car_point.set_x(point.x());
car_point.set_y(point.y());
apollo::common::math::Vec2d map_point;
if (GetLanes(point, kLanesSearchRange, &temp_surrounding_lanes) == -1) {
AINFO << "Can not find lanes around car.";
return -1;
}
for (const auto& surround_lane : temp_surrounding_lanes) {
if (surround_lane->IsOnLane(car_point)) {
surrounding_lanes.push_back(surround_lane);
}
}
if (surrounding_lanes.empty()) {
AINFO << "Car is not on lane.";
return -1;
}
for (const auto& lane : surrounding_lanes) {
if (!lane->signals().empty()) {
lane_ptr = lane;
nearest_l =
lane_ptr->DistanceTo(car_point, &map_point, &nearest_s, &s_index);
break;
}
}
if (lane_ptr == nullptr) {
GetNearestLane(point, &lane_ptr, &nearest_s, &nearest_l);
if (lane_ptr == nullptr) {
return -1;
}
}
double unused_distance = distance + kBackwardDistance;
double back_distance = kBackwardDistance;
double s = nearest_s;
while (s < back_distance) {
for (const auto& predecessor_lane_id : lane_ptr->lane().predecessor_id()) {
lane_ptr = GetLaneById(predecessor_lane_id);
if (lane_ptr->lane().turn() == apollo::hdmap::Lane::NO_TURN) {
break;
}
}
back_distance = back_distance - s;
s = lane_ptr->total_length();
}
double s_start = s - back_distance;
while (lane_ptr != nullptr) {
double signal_min_dist = std::numeric_limits<double>::infinity();
std::vector<SignalInfoConstPtr> min_dist_signal_ptr;
for (const auto& overlap_id : lane_ptr->lane().overlap_id()) {
OverlapInfoConstPtr overlap_ptr = GetOverlapById(overlap_id);
double lane_overlap_offset_s = 0.0;
SignalInfoConstPtr signal_ptr = nullptr;
for (int i = 0; i < overlap_ptr->overlap().object_size(); ++i) {
if (overlap_ptr->overlap().object(i).id().id() == lane_ptr->id().id()) {
lane_overlap_offset_s =
overlap_ptr->overlap().object(i).lane_overlap_info().start_s() -
s_start;
continue;
}
signal_ptr = GetSignalById(overlap_ptr->overlap().object(i).id());
if (signal_ptr == nullptr || lane_overlap_offset_s < 0.0) {
break;
}
if (lane_overlap_offset_s < signal_min_dist) {
signal_min_dist = lane_overlap_offset_s;
min_dist_signal_ptr.clear();
min_dist_signal_ptr.push_back(signal_ptr);
} else if (lane_overlap_offset_s < (signal_min_dist + 0.1) &&
lane_overlap_offset_s > (signal_min_dist - 0.1)) {
min_dist_signal_ptr.push_back(signal_ptr);
}
}
}
if (!min_dist_signal_ptr.empty() && unused_distance >= signal_min_dist) {
*signals = min_dist_signal_ptr;
break;
}
unused_distance = unused_distance - (lane_ptr->total_length() - s_start);
if (unused_distance <= 0) {
break;
}
LaneInfoConstPtr tmp_lane_ptr = nullptr;
for (const auto& successor_lane_id : lane_ptr->lane().successor_id()) {
tmp_lane_ptr = GetLaneById(successor_lane_id);
if (tmp_lane_ptr->lane().turn() == apollo::hdmap::Lane::NO_TURN) {
break;
}
}
lane_ptr = tmp_lane_ptr;
s_start = 0;
}
return 0;
}
int HDMapImpl::GetStopSignAssociatedStopSigns(
const Id& id, std::vector<StopSignInfoConstPtr>* stop_signs) const {
CHECK_NOTNULL(stop_signs);
const auto& stop_sign = GetStopSignById(id);
if (stop_sign == nullptr) {
return -1;
}
std::vector<Id> associate_stop_sign_ids;
const auto junction_ids = stop_sign->OverlapJunctionIds();
for (const auto& junction_id : junction_ids) {
const auto& junction = GetJunctionById(junction_id);
if (junction == nullptr) {
continue;
}
const auto stop_sign_ids = junction->OverlapStopSignIds();
std::copy(stop_sign_ids.begin(), stop_sign_ids.end(),
std::back_inserter(associate_stop_sign_ids));
}
std::vector<Id> associate_lane_ids;
for (const auto& stop_sign_id : associate_stop_sign_ids) {
if (stop_sign_id.id() == id.id()) {
// exclude current stop sign
continue;
}
const auto& stop_sign = GetStopSignById(stop_sign_id);
if (stop_sign == nullptr) {
continue;
}
stop_signs->push_back(stop_sign);
}
return 0;
}
int HDMapImpl::GetStopSignAssociatedLanes(
const Id& id, std::vector<LaneInfoConstPtr>* lanes) const {
CHECK_NOTNULL(lanes);
const auto& stop_sign = GetStopSignById(id);
if (stop_sign == nullptr) {
return -1;
}
std::vector<Id> associate_stop_sign_ids;
const auto junction_ids = stop_sign->OverlapJunctionIds();
for (const auto& junction_id : junction_ids) {
const auto& junction = GetJunctionById(junction_id);
if (junction == nullptr) {
continue;
}
const auto stop_sign_ids = junction->OverlapStopSignIds();
std::copy(stop_sign_ids.begin(), stop_sign_ids.end(),
std::back_inserter(associate_stop_sign_ids));
}
std::vector<Id> associate_lane_ids;
for (const auto& stop_sign_id : associate_stop_sign_ids) {
if (stop_sign_id.id() == id.id()) {
// exclude current stop sign
continue;
}
const auto& stop_sign = GetStopSignById(stop_sign_id);
if (stop_sign == nullptr) {
continue;
}
const auto lane_ids = stop_sign->OverlapLaneIds();
std::copy(lane_ids.begin(), lane_ids.end(),
std::back_inserter(associate_lane_ids));
}
for (const auto lane_id : associate_lane_ids) {
const auto& lane = GetLaneById(lane_id);
if (lane == nullptr) {
continue;
}
lanes->push_back(lane);
}
return 0;
}
int HDMapImpl::GetLocalMap(const apollo::common::PointENU& point,
const std::pair<double, double>& range,
Map* local_map) const {
CHECK_NOTNULL(local_map);
double distance = std::max(range.first, range.second);
CHECK_GT(distance, 0.0);
std::vector<LaneInfoConstPtr> lanes;
GetLanes(point, distance, &lanes);
std::vector<JunctionInfoConstPtr> junctions;
GetJunctions(point, distance, &junctions);
std::vector<CrosswalkInfoConstPtr> crosswalks;
GetCrosswalks(point, distance, &crosswalks);
std::vector<SignalInfoConstPtr> signals;
GetSignals(point, distance, &signals);
std::vector<StopSignInfoConstPtr> stop_signs;
GetStopSigns(point, distance, &stop_signs);
std::vector<YieldSignInfoConstPtr> yield_signs;
GetYieldSigns(point, distance, &yield_signs);
std::vector<ClearAreaInfoConstPtr> clear_areas;
GetClearAreas(point, distance, &clear_areas);
std::vector<SpeedBumpInfoConstPtr> speed_bumps;
GetSpeedBumps(point, distance, &speed_bumps);
std::vector<RoadInfoConstPtr> roads;
GetRoads(point, distance, &roads);
std::vector<ParkingSpaceInfoConstPtr> parking_spaces;
GetParkingSpaces(point, distance, &parking_spaces);
std::unordered_set<std::string> map_element_ids;
std::vector<Id> overlap_ids;
for (auto& lane_ptr : lanes) {
map_element_ids.insert(lane_ptr->id().id());
std::copy(lane_ptr->lane().overlap_id().begin(),
lane_ptr->lane().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_lane() = lane_ptr->lane();
}
for (auto& crosswalk_ptr : crosswalks) {
map_element_ids.insert(crosswalk_ptr->id().id());
std::copy(crosswalk_ptr->crosswalk().overlap_id().begin(),
crosswalk_ptr->crosswalk().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_crosswalk() = crosswalk_ptr->crosswalk();
}
for (auto& junction_ptr : junctions) {
map_element_ids.insert(junction_ptr->id().id());
std::copy(junction_ptr->junction().overlap_id().begin(),
junction_ptr->junction().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_junction() = junction_ptr->junction();
}
for (auto& signal_ptr : signals) {
map_element_ids.insert(signal_ptr->id().id());
std::copy(signal_ptr->signal().overlap_id().begin(),
signal_ptr->signal().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_signal() = signal_ptr->signal();
}
for (auto& stop_sign_ptr : stop_signs) {
map_element_ids.insert(stop_sign_ptr->id().id());
std::copy(stop_sign_ptr->stop_sign().overlap_id().begin(),
stop_sign_ptr->stop_sign().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_stop_sign() = stop_sign_ptr->stop_sign();
}
for (auto& yield_sign_ptr : yield_signs) {
std::copy(yield_sign_ptr->yield_sign().overlap_id().begin(),
yield_sign_ptr->yield_sign().overlap_id().end(),
std::back_inserter(overlap_ids));
map_element_ids.insert(yield_sign_ptr->id().id());
*local_map->add_yield() = yield_sign_ptr->yield_sign();
}
for (auto& clear_area_ptr : clear_areas) {
map_element_ids.insert(clear_area_ptr->id().id());
std::copy(clear_area_ptr->clear_area().overlap_id().begin(),
clear_area_ptr->clear_area().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_clear_area() = clear_area_ptr->clear_area();
}
for (auto& speed_bump_ptr : speed_bumps) {
map_element_ids.insert(speed_bump_ptr->id().id());
std::copy(speed_bump_ptr->speed_bump().overlap_id().begin(),
speed_bump_ptr->speed_bump().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_speed_bump() = speed_bump_ptr->speed_bump();
}
for (auto& road_ptr : roads) {
map_element_ids.insert(road_ptr->id().id());
*local_map->add_road() = road_ptr->road();
}
for (auto& parking_space_ptr : parking_spaces) {
map_element_ids.insert(parking_space_ptr->id().id());
std::copy(parking_space_ptr->parking_space().overlap_id().begin(),
parking_space_ptr->parking_space().overlap_id().end(),
std::back_inserter(overlap_ids));
*local_map->add_parking_space() = parking_space_ptr->parking_space();
}
for (auto& overlap_id : overlap_ids) {
auto overlap_ptr = GetOverlapById(overlap_id);
if (overlap_ptr == nullptr) {
AERROR << "overlpa id [" << overlap_id.id() << "] is not found.";
continue;
}
bool need_delete = false;
for (auto& overlap_object : overlap_ptr->overlap().object()) {
if (map_element_ids.count(overlap_object.id().id()) <= 0) {
need_delete = true;
}
}
if (!need_delete) {
*local_map->add_overlap() = overlap_ptr->overlap();
}
}
return 0;
}
int HDMapImpl::GetForwardNearestRSUs(const apollo::common::PointENU& point,
double distance, double central_heading,
double max_heading_difference,
std::vector<RSUInfoConstPtr>* rsus) const {
CHECK_NOTNULL(rsus);
rsus->clear();
LaneInfoConstPtr lane_ptr = nullptr;
apollo::common::math::Vec2d target_point(point.x(), point.y());
double nearest_s = 0.0;
double nearest_l = 0.0;
if (GetNearestLaneWithHeading(target_point,
distance,
central_heading,
max_heading_difference,
&lane_ptr,
&nearest_s,
&nearest_l) == -1) {
AERROR << "Fail to get nearest lanes";
return -1;
}
if (lane_ptr == nullptr) {
AERROR << "Fail to get nearest lanes";
return -1;
}
double s = 0;
double real_distance = distance + nearest_s;
const std::string nearst_lane_id = lane_ptr->id().id();
while (s < real_distance) {
s += lane_ptr->total_length();
std::vector<std::pair<double, JunctionInfoConstPtr>> overlap_junctions;
double start_s = 0;
for (size_t x = 0; x < lane_ptr->junctions().size(); ++x) {
const auto overlap_ptr = lane_ptr->junctions()[x];
for (int i = 0; i < overlap_ptr->overlap().object_size(); ++i) {
const auto& overlap_object = overlap_ptr->overlap().object(i);
if (overlap_object.id().id() == lane_ptr->id().id()) {
start_s = overlap_object.lane_overlap_info().start_s();
continue;
}
const auto junction_ptr = GetJunctionById(overlap_object.id());
CHECK_NOTNULL(junction_ptr);
if (nearst_lane_id == lane_ptr->id().id()
&& !junction_ptr->polygon().IsPointIn(target_point)) {
if (nearest_s > start_s) {
continue;
}
}
overlap_junctions.push_back(std::make_pair(start_s, junction_ptr));
}
}
std::sort(overlap_junctions.begin(), overlap_junctions.end());
std::set<std::string> duplicate_checker;
for (const auto& overlap_junction : overlap_junctions) {
const auto& junction = overlap_junction.second;
if (duplicate_checker.count(junction->id().id()) > 0) {
continue;
}
duplicate_checker.insert(junction->id().id());
for (const auto& overlap_id : junction->junction().overlap_id()) {
OverlapInfoConstPtr overlap_ptr = GetOverlapById(overlap_id);
CHECK_NOTNULL(overlap_ptr);
for (int i = 0; i < overlap_ptr->overlap().object_size(); ++i) {
const auto& overlap_object = overlap_ptr->overlap().object(i);
if (!overlap_object.has_rsu_overlap_info()) {
continue;
}
const auto rsu_ptr = GetRSUById(overlap_object.id());
if (rsu_ptr != nullptr) {
rsus->push_back(rsu_ptr);
}
}
}
if (!rsus->empty()) {
break;
}
}
if (!rsus->empty()) {
break;
}
for (const auto suc_lane_id : lane_ptr->lane().successor_id()) {
LaneInfoConstPtr suc_lane_ptr = GetLaneById(suc_lane_id);
if (lane_ptr->lane().successor_id_size() > 1) {
if (suc_lane_ptr->lane().turn() == apollo::hdmap::Lane::NO_TURN) {
lane_ptr = suc_lane_ptr;
break;
}
} else {
lane_ptr = suc_lane_ptr;
break;
}
}
}
if (rsus->empty()) {
return -1;
}
return 0;
}
template <class Table, class BoxTable, class KDTree>
void HDMapImpl::BuildSegmentKDTree(const Table& table,
const AABoxKDTreeParams& params,
BoxTable* const box_table,
std::unique_ptr<KDTree>* const kdtree) {
box_table->clear();
for (const auto& info_with_id : table) {
const auto* info = info_with_id.second.get();
for (size_t id = 0; id < info->segments().size(); ++id) {
const auto& segment = info->segments()[id];
box_table->emplace_back(
apollo::common::math::AABox2d(segment.start(), segment.end()), info,
&segment, id);
}
}
kdtree->reset(new KDTree(*box_table, params));
}
template <class Table, class BoxTable, class KDTree>
void HDMapImpl::BuildPolygonKDTree(const Table& table,
const AABoxKDTreeParams& params,
BoxTable* const box_table,
std::unique_ptr<KDTree>* const kdtree) {
box_table->clear();
for (const auto& info_with_id : table) {
const auto* info = info_with_id.second.get();
const auto& polygon = info->polygon();
box_table->emplace_back(polygon.AABoundingBox(), info, &polygon, 0);
}
kdtree->reset(new KDTree(*box_table, params));
}
void HDMapImpl::BuildLaneSegmentKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 16;
BuildSegmentKDTree(lane_table_, params, &lane_segment_boxes_,
&lane_segment_kdtree_);
}
void HDMapImpl::BuildJunctionPolygonKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 1;
BuildPolygonKDTree(junction_table_, params, &junction_polygon_boxes_,
&junction_polygon_kdtree_);
}
void HDMapImpl::BuildCrosswalkPolygonKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 1;
BuildPolygonKDTree(crosswalk_table_, params, &crosswalk_polygon_boxes_,
&crosswalk_polygon_kdtree_);
}
void HDMapImpl::BuildSignalSegmentKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 4;
BuildSegmentKDTree(signal_table_, params, &signal_segment_boxes_,
&signal_segment_kdtree_);
}
void HDMapImpl::BuildStopSignSegmentKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 4;
BuildSegmentKDTree(stop_sign_table_, params, &stop_sign_segment_boxes_,
&stop_sign_segment_kdtree_);
}
void HDMapImpl::BuildYieldSignSegmentKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 4;
BuildSegmentKDTree(yield_sign_table_, params, &yield_sign_segment_boxes_,
&yield_sign_segment_kdtree_);
}
void HDMapImpl::BuildClearAreaPolygonKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 4;
BuildPolygonKDTree(clear_area_table_, params, &clear_area_polygon_boxes_,
&clear_area_polygon_kdtree_);
}
void HDMapImpl::BuildSpeedBumpSegmentKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 4;
BuildSegmentKDTree(speed_bump_table_, params, &speed_bump_segment_boxes_,
&speed_bump_segment_kdtree_);
}
void HDMapImpl::BuildParkingSpacePolygonKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 4;
BuildPolygonKDTree(parking_space_table_, params,
&parking_space_polygon_boxes_,
&parking_space_polygon_kdtree_);
}
void HDMapImpl::BuildPNCJunctionPolygonKDTree() {
AABoxKDTreeParams params;
params.max_leaf_dimension = 5.0; // meters.
params.max_leaf_size = 1;
BuildPolygonKDTree(pnc_junction_table_, params, &pnc_junction_polygon_boxes_,
&pnc_junction_polygon_kdtree_);
}
template <class KDTree>
int HDMapImpl::SearchObjects(const Vec2d& center, const double radius,
const KDTree& kdtree,
std::vector<std::string>* const results) {
static std::mutex mutex_search_object;
UNIQUE_LOCK_MULTITHREAD(mutex_search_object);
if (results == nullptr) {
return -1;
}
auto objects = kdtree.GetObjects(center, radius);
std::unordered_set<std::string> result_ids;
result_ids.reserve(objects.size());
for (const auto* object_ptr : objects) {
result_ids.insert(object_ptr->object()->id().id());
}
results->reserve(result_ids.size());
results->assign(result_ids.begin(), result_ids.end());
return 0;
}
void HDMapImpl::Clear() {
map_.Clear();
lane_table_.clear();
junction_table_.clear();
signal_table_.clear();
crosswalk_table_.clear();
stop_sign_table_.clear();
yield_sign_table_.clear();
overlap_table_.clear();
rsu_table_.clear();
lane_segment_boxes_.clear();
lane_segment_kdtree_.reset(nullptr);
junction_polygon_boxes_.clear();
junction_polygon_kdtree_.reset(nullptr);
crosswalk_polygon_boxes_.clear();
crosswalk_polygon_kdtree_.reset(nullptr);
signal_segment_boxes_.clear();
signal_segment_kdtree_.reset(nullptr);
stop_sign_segment_boxes_.clear();
stop_sign_segment_kdtree_.reset(nullptr);
yield_sign_segment_boxes_.clear();
yield_sign_segment_kdtree_.reset(nullptr);
clear_area_polygon_boxes_.clear();
clear_area_polygon_kdtree_.reset(nullptr);
speed_bump_segment_boxes_.clear();
speed_bump_segment_kdtree_.reset(nullptr);
parking_space_polygon_boxes_.clear();
parking_space_polygon_kdtree_.reset(nullptr);
pnc_junction_polygon_boxes_.clear();
pnc_junction_polygon_kdtree_.reset(nullptr);
}
} // namespace hdmap
} // namespace apollo
| 0 |
apollo_public_repos/apollo/modules/map/hdmap | apollo_public_repos/apollo/modules/map/hdmap/adapter/proto_organizer.cc | /* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include "modules/map/hdmap/adapter/proto_organizer.h"
#include <unordered_set>
#include "absl/strings/str_cat.h"
#include "cyber/common/log.h"
#include "modules/common/math/polygon2d.h"
#include "modules/common/math/vec2d.h"
namespace {
std::string CreateOverlapId() {
static int count = 0;
++count;
return absl::StrCat("overlap_", count);
}
} // namespace
namespace apollo {
namespace hdmap {
namespace adapter {
using apollo::common::util::PairHash;
void ProtoOrganizer::GetRoadElements(std::vector<RoadInternal>* roads) {
for (auto& road_internal : *roads) {
// lanes
for (auto& section_internal : road_internal.sections) {
for (auto& lane_internal : section_internal.lanes) {
std::string lane_id = lane_internal.lane.id().id();
proto_data_.pb_lanes[lane_id] = lane_internal.lane;
section_internal.section.add_lane_id()->set_id(lane_id);
}
(*road_internal.road.add_section()) = section_internal.section;
proto_data_.pb_roads[road_internal.id] = road_internal.road;
}
// crosswalks
for (auto& crosswalk : road_internal.crosswalks) {
proto_data_.pb_crosswalks[crosswalk.id().id()] = crosswalk;
}
// parking_spaces
for (auto& parking_space : road_internal.parking_spaces) {
proto_data_.pb_parking_spaces[parking_space.id().id()] = parking_space;
}
// clear areas
for (auto& clear_area : road_internal.clear_areas) {
proto_data_.pb_clear_areas[clear_area.id().id()] = clear_area;
}
// speed_bump
for (auto& speed_bump : road_internal.speed_bumps) {
proto_data_.pb_speed_bumps[speed_bump.id().id()] = speed_bump;
}
// stop lines
for (auto& stop_line_internal : road_internal.stop_lines) {
proto_data_.pb_stop_lines[stop_line_internal.id] = stop_line_internal;
}
// traffic_lights
for (auto& traffic_light_internal : road_internal.traffic_lights) {
auto& traffic_light = traffic_light_internal.traffic_light;
for (auto stop_line_id : traffic_light_internal.stop_line_ids) {
CHECK_GT(proto_data_.pb_stop_lines.count(stop_line_id), 0U);
auto& stop_line_curve = proto_data_.pb_stop_lines[stop_line_id].curve;
(*traffic_light.add_stop_line()) = stop_line_curve;
}
proto_data_.pb_signals[traffic_light.id().id()] = traffic_light;
}
// stop signs
for (auto& stop_sign_internal : road_internal.stop_signs) {
auto& stop_sign = stop_sign_internal.stop_sign;
for (auto stop_line_id : stop_sign_internal.stop_line_ids) {
CHECK_GT(proto_data_.pb_stop_lines.count(stop_line_id), 0U);
auto& stop_line_curve = proto_data_.pb_stop_lines[stop_line_id].curve;
(*stop_sign.add_stop_line()) = stop_line_curve;
}
proto_data_.pb_stop_signs[stop_sign.id().id()] = stop_sign;
}
// yield signs
for (auto& yield_sign_internal : road_internal.yield_signs) {
auto& yield_sign = yield_sign_internal.yield_sign;
for (auto stop_line_id : yield_sign_internal.stop_line_ids) {
CHECK_GT(proto_data_.pb_stop_lines.count(stop_line_id), 0U);
auto& stop_line_curve = proto_data_.pb_stop_lines[stop_line_id].curve;
(*yield_sign.add_stop_line()) = stop_line_curve;
}
proto_data_.pb_yield_signs[yield_sign.id().id()] = yield_sign;
}
// pnc junctions
for (auto& pnc_junction : road_internal.pnc_junctions) {
proto_data_.pb_pnc_junctions[pnc_junction.id().id()] = pnc_junction;
}
}
}
void ProtoOrganizer::GetJunctionElements(
const std::vector<JunctionInternal>& junctions) {
for (auto& junction_internal : junctions) {
std::string junction_id = junction_internal.junction.id().id();
proto_data_.pb_junctions[junction_id] = junction_internal.junction;
}
}
void ProtoOrganizer::GetLaneObjectOverlapElements(
const std::string& lane_id,
const std::vector<OverlapWithLane>& overlap_with_lanes) {
for (auto& overlap_object : overlap_with_lanes) {
std::string object_id = overlap_object.object_id;
if (proto_data_.pb_crosswalks.count(object_id) <= 0 &&
proto_data_.pb_clear_areas.count(object_id) <= 0 &&
proto_data_.pb_speed_bumps.count(object_id) <= 0 &&
proto_data_.pb_parking_spaces.count(object_id) <= 0 &&
proto_data_.pb_pnc_junctions.count(object_id) <= 0) {
continue;
}
PbOverlap overlap;
std::string overlap_id = CreateOverlapId();
overlap.mutable_id()->set_id(overlap_id);
for (auto& region_overlap : overlap_object.region_overlaps) {
*(overlap.add_region_overlap()) = region_overlap;
}
PbObjectOverlapInfo* object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(lane_id);
object_overlap->mutable_lane_overlap_info()->set_start_s(
overlap_object.start_s);
object_overlap->mutable_lane_overlap_info()->set_end_s(
overlap_object.end_s);
object_overlap->mutable_lane_overlap_info()->set_is_merge(
overlap_object.is_merge);
if (!overlap_object.region_overlap_id.empty()) {
object_overlap->mutable_lane_overlap_info()
->mutable_region_overlap_id()
->set_id(overlap_object.region_overlap_id);
}
object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(object_id);
if (proto_data_.pb_crosswalks.count(object_id) > 0) {
proto_data_.pb_crosswalks[object_id].add_overlap_id()->set_id(overlap_id);
if (!overlap_object.region_overlap_id.empty()) {
object_overlap->mutable_crosswalk_overlap_info()
->mutable_region_overlap_id()
->set_id(overlap_object.region_overlap_id);
}
object_overlap->mutable_crosswalk_overlap_info();
} else if (proto_data_.pb_clear_areas.count(object_id) > 0) {
object_overlap->mutable_clear_area_overlap_info();
proto_data_.pb_clear_areas[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_speed_bumps.count(object_id)) {
object_overlap->mutable_speed_bump_overlap_info();
proto_data_.pb_speed_bumps[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_parking_spaces.count(object_id)) {
object_overlap->mutable_parking_space_overlap_info();
proto_data_.pb_parking_spaces[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_pnc_junctions.count(object_id)) {
object_overlap->mutable_pnc_junction_overlap_info();
proto_data_.pb_pnc_junctions[object_id].add_overlap_id()->set_id(
overlap_id);
} else {
AERROR << "unknown object, object id:" << object_id;
}
proto_data_.pb_lanes[lane_id].add_overlap_id()->set_id(overlap_id);
proto_data_.pb_overlaps[overlap_id] = overlap;
}
}
void ProtoOrganizer::GetObjectElements(const ObjectInternal& objects) {
for (const auto& rsu_internal : objects.rsus) {
const std::string& rsu_id = rsu_internal.rsu.id().id();
proto_data_.pb_rsus[rsu_id] = rsu_internal.rsu;
}
}
void ProtoOrganizer::GetLaneSignalOverlapElements(
const std::string& lane_id,
const std::vector<OverlapWithLane>& overlap_with_lanes) {
for (auto& overlap_signal : overlap_with_lanes) {
std::string object_id = overlap_signal.object_id;
if (proto_data_.pb_signals.count(object_id) <= 0 &&
proto_data_.pb_stop_signs.count(object_id) <= 0 &&
proto_data_.pb_yield_signs.count(object_id) <= 0) {
AINFO << "cannot find signal object_id:" << object_id;
continue;
}
PbOverlap overlap;
std::string overlap_id = CreateOverlapId();
overlap.mutable_id()->set_id(overlap_id);
PbObjectOverlapInfo* object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(lane_id);
object_overlap->mutable_lane_overlap_info()->set_start_s(
overlap_signal.start_s);
object_overlap->mutable_lane_overlap_info()->set_end_s(
overlap_signal.end_s);
object_overlap->mutable_lane_overlap_info()->set_is_merge(
overlap_signal.is_merge);
object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(object_id);
if (proto_data_.pb_signals.count(object_id) > 0) {
object_overlap->mutable_signal_overlap_info();
proto_data_.pb_signals[object_id].add_overlap_id()->set_id(overlap_id);
} else if (proto_data_.pb_stop_signs.count(object_id) > 0) {
object_overlap->mutable_stop_sign_overlap_info();
proto_data_.pb_stop_signs[object_id].add_overlap_id()->set_id(overlap_id);
} else if (proto_data_.pb_yield_signs.count(object_id) > 0) {
object_overlap->mutable_yield_sign_overlap_info();
proto_data_.pb_yield_signs[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_rsus.count(object_id) > 0) {
object_overlap->mutable_rsu_overlap_info();
proto_data_.pb_rsus[object_id].add_overlap_id()->set_id(overlap_id);
} else {
AERROR << "unknown signal, signal id:" << object_id;
}
proto_data_.pb_lanes[lane_id].add_overlap_id()->set_id(overlap_id);
proto_data_.pb_overlaps[overlap_id] = overlap;
}
}
void ProtoOrganizer::GetLaneJunctionOverlapElements(
const std::string& lane_id,
const std::vector<OverlapWithLane>& overlap_with_lanes) {
for (auto& overlap_junction : overlap_with_lanes) {
std::string object_id = overlap_junction.object_id;
if (proto_data_.pb_junctions.count(object_id) <= 0) {
AINFO << "cannot find junction object " << object_id;
continue;
}
PbOverlap overlap;
std::string overlap_id = CreateOverlapId();
overlap.mutable_id()->set_id(overlap_id);
PbObjectOverlapInfo* object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(lane_id);
object_overlap->mutable_lane_overlap_info()->set_start_s(
overlap_junction.start_s);
object_overlap->mutable_lane_overlap_info()->set_end_s(
overlap_junction.end_s);
object_overlap->mutable_lane_overlap_info()->set_is_merge(
overlap_junction.is_merge);
object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(object_id);
if (proto_data_.pb_junctions.count(object_id) > 0) {
object_overlap->mutable_junction_overlap_info();
proto_data_.pb_junctions[object_id].add_overlap_id()->set_id(overlap_id);
} else {
AERROR << "unknown junction overlap, id:" << object_id;
}
proto_data_.pb_lanes[lane_id].add_overlap_id()->set_id(overlap_id);
proto_data_.pb_overlaps[overlap_id] = overlap;
}
}
void ProtoOrganizer::GetLaneLaneOverlapElements(
const std::unordered_map<std::pair<std::string, std::string>,
OverlapWithLane, PairHash>& lane_lane_overlaps) {
std::unordered_set<std::string> close_set;
for (auto& overlap_lane_pair : lane_lane_overlaps) {
auto& lane_id = overlap_lane_pair.first.first;
auto& overlap_lane = overlap_lane_pair.second;
std::string object_id = overlap_lane.object_id;
std::string unique_object_id = lane_id + "_" + object_id;
if (close_set.count(unique_object_id) > 0) {
continue;
}
unique_object_id = object_id + "_" + lane_id;
if (close_set.count(unique_object_id) > 0) {
continue;
}
close_set.insert(unique_object_id);
PbOverlap overlap;
std::string overlap_id = CreateOverlapId();
overlap.mutable_id()->set_id(overlap_id);
PbObjectOverlapInfo* object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(lane_id);
object_overlap->mutable_lane_overlap_info()->set_start_s(
overlap_lane.start_s);
object_overlap->mutable_lane_overlap_info()->set_end_s(overlap_lane.end_s);
object_overlap->mutable_lane_overlap_info()->set_is_merge(
overlap_lane.is_merge);
object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(object_id);
if (proto_data_.pb_lanes.count(object_id) <= 0) {
AERROR << "unknown overlap lane, id:" << object_id;
continue;
}
if (lane_lane_overlaps.count(make_pair(object_id, lane_id)) <= 0) {
AERROR << "lane overlap is not symmetrical " << overlap_id;
continue;
}
proto_data_.pb_lanes[lane_id].add_overlap_id()->set_id(overlap_id);
auto& lane_lane_overlap =
lane_lane_overlaps.at(make_pair(object_id, lane_id));
object_overlap->mutable_lane_overlap_info()->set_start_s(
lane_lane_overlap.start_s);
object_overlap->mutable_lane_overlap_info()->set_end_s(
lane_lane_overlap.end_s);
object_overlap->mutable_lane_overlap_info()->set_is_merge(
lane_lane_overlap.is_merge);
proto_data_.pb_lanes[object_id].add_overlap_id()->set_id(overlap_id);
proto_data_.pb_overlaps[overlap_id] = overlap;
}
}
void ProtoOrganizer::GetJunctionObjectOverlapElements(
const std::vector<JunctionInternal>& junctions) {
for (auto& junction_internal : junctions) {
const auto& junction_id = junction_internal.junction.id().id();
for (auto& overlap_junction : junction_internal.overlap_with_junctions) {
PbOverlap overlap;
std::string overlap_id = CreateOverlapId();
overlap.mutable_id()->set_id(overlap_id);
PbObjectOverlapInfo* object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(junction_id);
object_overlap->mutable_junction_overlap_info();
std::string object_id = overlap_junction.object_id;
object_overlap = overlap.add_object();
object_overlap->mutable_id()->set_id(object_id);
if (proto_data_.pb_crosswalks.count(object_id) > 0) {
object_overlap->mutable_crosswalk_overlap_info();
proto_data_.pb_crosswalks[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_clear_areas.count(object_id) > 0) {
object_overlap->mutable_clear_area_overlap_info();
proto_data_.pb_clear_areas[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_stop_signs.count(object_id) > 0) {
object_overlap->mutable_stop_sign_overlap_info();
proto_data_.pb_stop_signs[object_id].add_overlap_id()->set_id(
overlap_id);
} else if (proto_data_.pb_signals.count(object_id) > 0) {
object_overlap->mutable_signal_overlap_info();
proto_data_.pb_signals[object_id].add_overlap_id()->set_id(overlap_id);
} else if (proto_data_.pb_rsus.count(object_id) > 0) {
object_overlap->mutable_rsu_overlap_info();
proto_data_.pb_rsus[object_id].add_overlap_id()->set_id(overlap_id);
} else {
continue;
}
proto_data_.pb_junctions[junction_id].add_overlap_id()->set_id(
overlap_id);
proto_data_.pb_overlaps[overlap_id] = overlap;
}
}
}
void ProtoOrganizer::GetOverlapElements(
const std::vector<RoadInternal>& roads,
const std::vector<JunctionInternal>& junctions) {
std::unordered_map<std::pair<std::string, std::string>, OverlapWithLane,
PairHash>
lane_lane_overlaps;
// overlap
for (auto& road_internal : roads) {
for (auto& road_section : road_internal.sections) {
for (auto& lane_internal : road_section.lanes) {
std::string lane_id = lane_internal.lane.id().id();
GetLaneObjectOverlapElements(lane_id, lane_internal.overlap_objects);
GetLaneSignalOverlapElements(lane_id, lane_internal.overlap_signals);
GetLaneJunctionOverlapElements(lane_id,
lane_internal.overlap_junctions);
for (auto& overlap_lane : lane_internal.overlap_lanes) {
lane_lane_overlaps[make_pair(lane_id, overlap_lane.object_id)] =
overlap_lane;
}
}
}
}
GetLaneLaneOverlapElements(lane_lane_overlaps);
GetJunctionObjectOverlapElements(junctions);
}
void ProtoOrganizer::OutputData(apollo::hdmap::Map* pb_map) {
for (auto& road_pair : proto_data_.pb_roads) {
*(pb_map->add_road()) = road_pair.second;
}
for (auto& lane_pair : proto_data_.pb_lanes) {
*(pb_map->add_lane()) = lane_pair.second;
}
for (auto& crosswalk_pair : proto_data_.pb_crosswalks) {
*(pb_map->add_crosswalk()) = crosswalk_pair.second;
}
for (auto& parking_space_pair : proto_data_.pb_parking_spaces) {
*(pb_map->add_parking_space()) = parking_space_pair.second;
}
for (auto& clear_area_pair : proto_data_.pb_clear_areas) {
*(pb_map->add_clear_area()) = clear_area_pair.second;
}
for (auto& speed_bump_pair : proto_data_.pb_speed_bumps) {
*(pb_map->add_speed_bump()) = speed_bump_pair.second;
}
for (auto& signal_pair : proto_data_.pb_signals) {
*(pb_map->add_signal()) = signal_pair.second;
}
for (auto& stop_sign_pair : proto_data_.pb_stop_signs) {
*(pb_map->add_stop_sign()) = stop_sign_pair.second;
}
for (auto& yield_sign_pair : proto_data_.pb_yield_signs) {
*(pb_map->add_yield()) = yield_sign_pair.second;
}
for (auto& pnc_junction_pair : proto_data_.pb_pnc_junctions) {
*(pb_map->add_pnc_junction()) = pnc_junction_pair.second;
}
for (auto& junction_pair : proto_data_.pb_junctions) {
*(pb_map->add_junction()) = junction_pair.second;
}
for (auto& rsu_pair : proto_data_.pb_rsus) {
*(pb_map->add_rsu()) = rsu_pair.second;
}
for (auto& overlap_pair : proto_data_.pb_overlaps) {
*(pb_map->add_overlap()) = overlap_pair.second;
}
AINFO << "hdmap statistics: roads-" << proto_data_.pb_roads.size()
<< ",lanes-" << proto_data_.pb_lanes.size() << ",crosswalks-"
<< proto_data_.pb_crosswalks.size() << ",parking spaces-"
<< proto_data_.pb_parking_spaces.size() << ",clear areas-"
<< proto_data_.pb_clear_areas.size() << ",speed bumps-"
<< proto_data_.pb_speed_bumps.size() << ",signals-"
<< proto_data_.pb_signals.size() << ",stop signs-"
<< proto_data_.pb_stop_signs.size() << ",yield signs-"
<< proto_data_.pb_yield_signs.size() << ",pnc-junctions-"
<< proto_data_.pb_pnc_junctions.size() << ",junctions-"
<< proto_data_.pb_junctions.size() << ",overlaps-"
<< proto_data_.pb_rsus.size() << ",rsus-"
<< proto_data_.pb_overlaps.size();
}
} // namespace adapter
} // namespace hdmap
} // namespace apollo
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.