Apollo 10.0
自动驾驶开放平台
sim_control_base.cc
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2019 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
18
19namespace apollo {
20namespace dreamview {
27
29 const Quaternion& orientation,
30 Point3D* point_vrf) {
31 Eigen::Vector3d v_mrf(point_mrf.x(), point_mrf.y(), point_mrf.z());
32 auto v_vrf = InverseQuaternionRotate(orientation, v_mrf);
33 point_vrf->set_x(v_vrf.x());
34 point_vrf->set_y(v_vrf.y());
35 point_vrf->set_z(v_vrf.z());
36}
37
38} // namespace dreamview
39} // namespace apollo
void TransformToVRF(const apollo::common::Point3D &point_mrf, const apollo::common::Quaternion &orientation, apollo::common::Point3D *point_vrf)
Eigen::Quaternion< T > HeadingToQuaternion(T heading)
Definition quaternion.h:88
Eigen::Vector3d InverseQuaternionRotate(const Quaternion &orientation, const Eigen::Vector3d &rotated)
Definition quaternion.h:110
double QuaternionToHeading(const double qw, const double qx, const double qy, const double qz)
Definition quaternion.h:56
double NormalizeAngle(const double angle)
Normalize angle to [-PI, PI).
Definition math_utils.cc:53
class register implement
Definition arena_queue.h:37