提交 63499df7 编写于 作者: S siyangy 提交者: Calvin Miao

[Dreamview] Minor: rename a function

上级 673a4b22
......@@ -238,8 +238,8 @@ bool MapService::GetPointsFromRouting(const RoutingResponse &routing,
return true;
}
bool MapService::GetPoseWithLane(const double x, const double y, double *theta,
double *s) const {
bool MapService::GetPoseWithRegardToLane(const double x, const double y,
double *theta, double *s) const {
apollo::common::PointENU point;
point.set_x(x);
point.set_y(y);
......
......@@ -77,11 +77,11 @@ class MapService {
// javascript clients.
::apollo::hdmap::Map RetrieveMapElements(const MapElementIds &ids) const;
bool GetPoseWithLane(const double x, const double y, double *theta,
double *s) const;
bool GetPoseWithRegardToLane(const double x, const double y, double *theta,
double *s) const;
private:
const ::apollo::hdmap::HDMap& BaseMap() const {
const ::apollo::hdmap::HDMap &BaseMap() const {
return pnc_map_.HDMap();
}
......
......@@ -83,7 +83,7 @@ void SimControl::SetStartPoint(const RoutingResponse& routing) {
double theta = 0.0;
double s = 0.0;
if (!map_service_->GetPoseWithLane(p->x(), p->y(), &theta, &s)) {
if (!map_service_->GetPoseWithRegardToLane(p->x(), p->y(), &theta, &s)) {
AERROR << "Failed to get heading!";
}
p->set_theta(theta);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册