Commit 4b3d84b7 authored by oscar's avatar oscar

加入namespace

parent 62dc6f09
......@@ -244,8 +244,8 @@ void TrackingRos::ThreadTrackingProcess()
box.pose.position.x = obj.x;
box.pose.position.y = obj.y;
box.pose.position.z = obj.z;
AngleAxisd V3(obj.rot_y/180*3.1415926, Vector3d(0, 0, 1));
Quaterniond R_quat(V3);
Eigen::AngleAxisd V3(obj.rot_y/180*3.1415926, Vector3d(0, 0, 1));
Eigen::Quaterniond R_quat(V3);
box.pose.orientation.x = R_quat.x();
box.pose.orientation.y = R_quat.y();
box.pose.orientation.z = R_quat.z();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment