Commit c546d668 authored by oscar's avatar oscar

修复被删除的nodeName的代码。

parent 3628d386
......@@ -245,6 +245,8 @@ void TrackingRos::Init(ros::NodeHandle& nh)
if (ret != 0)return;
m_config = parser.entry["TRACKING_YAML_NODE"];
config = m_config;
m_nodeName = parser.node_name;
SDK_LOG(SDK_INFO, "m_nodeName = %s", m_nodeName.c_str());
}
else
{
......@@ -667,6 +669,7 @@ void TrackingRos::ThreadTrackingProcess()
box.pose.orientation.y = R_quat.y();
box.pose.orientation.z = R_quat.z();
box.pose.orientation.w = R_quat.w();
obj.device = m_nodeName;
sendBoxes.boxes.emplace_back(box);
sendObjs.array.emplace_back(obj);
#ifdef _SEND_ABUZHABI_
......
......@@ -63,5 +63,6 @@ public:
float m_lidar_x_angle = 0.0f;//修改rot_y的参数,从配置里读取
std::string m_root_dir;//存储统一的根目录路径
std::string m_nodeName;//点位信息,现在就是10-1,1-1等信息
YAML::Node m_config;//配置的yaml文件
};
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