3Eigen::Vector3d
rigidBodyVelocity(Eigen::Vector3d v, Eigen::Vector3d r, Eigen::Vector3d omega)
5 return (v + omega.cross(r));
9 Eigen::Vector3d a, Eigen::Vector3d r, Eigen::Vector3d omega, Eigen::Vector3d alpha)
11 return (a + omega.cross(omega.cross(r)) + alpha.cross(r));
16 Eigen::AngleAxisd rollAngle(-angles.x(), Eigen::Vector3d::UnitX());
17 Eigen::AngleAxisd yawAngle(-angles.z(), Eigen::Vector3d::UnitZ());
18 Eigen::AngleAxisd pitchAngle(-angles.y(), Eigen::Vector3d::UnitY());
21 Eigen::Quaternion<double> q = rollAngle * pitchAngle * yawAngle;
23 Eigen::Matrix3d rotationMatrix = q.matrix();
24 return rotationMatrix;
31 return (-rotationMatrix * trans);
40 for (
auto& lm : in.
list)
43 temp.
position = rotationMatrix * lm.position;
46 out.
list.push_back(temp);
63 temp.
position = rotationMatrix * lm.position;
72 temp.
position = rotationMatrix * lm.position;
81 temp.
position = rotationMatrix * lm.position;
91 temp1.
position = rotationMatrix * gate.first.position;
93 temp1.
id = gate.first.id;
95 temp2.
position = rotationMatrix * gate.second.position;
97 temp2.
id = gate.second.id;
std::vector< Landmark > list
std::vector< std::pair< Landmark, Landmark > > time_keeping_gates
std::vector< Landmark > left_lane
bool lanesFirstWithLastConnected
std::vector< Landmark > unknown
std::vector< Landmark > right_lane