Commit 22d9874d authored by oscar's avatar oscar

提交修改

parent a9ef6cbe
......@@ -24,7 +24,7 @@ float to360(float rot_y,float lidar_x_angle)
float tmp_angle = 0.0f;
float car_angle = angle / _PI_ * 180.0f;
tmp_angle = lidar_x_angle - car_angle;
SDK_LOG(SDK_INFO, "car_angle = %f, tmp_angle = %f,lidar_x_angle = %d", car_angle, tmp_angle, lidar_x_angle);
SDK_LOG(SDK_INFO, "car_angle = %f, tmp_angle = %f,lidar_x_angle = %f", car_angle, tmp_angle, lidar_x_angle);
tmp_angle += 360;
while (tmp_angle > 360)
{
......@@ -75,7 +75,7 @@ void TrackingRos::Init(ros::NodeHandle& nh)
SDK_LOG(SDK_INFO, "kf_gpu = %d",gpu);
m_tracker.SetGPU(gpu);
nh.param<float>("lidar_x_angle", m_lidar_x_angle, 354.102412638);
nh.param<float>("lidar_x_angle", m_lidar_x_angle, 354.102);
SDK_LOG(SDK_INFO, "m_lidar_x_angle = %f", m_lidar_x_angle);
YAML::Node config = YAML::LoadFile(file.c_str());
......
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