Commit 39f4bbda authored by oscar's avatar oscar

去除多余的handle

parent b349f740
......@@ -23,7 +23,7 @@ int EventsRos::loadConfig(ros::NodeHandle& nh)
if (run_mode == 1)
{
std::string entry_yaml;
private_nh.param<std::string>("entry_yaml", entry_yaml, "/home/nvidia/oscar/catkin_ws/src/jfx_yolo5/");
nh.param<std::string>("entry_yaml", entry_yaml, "/home/nvidia/oscar/catkin_ws/src/jfx_yolo5/");
QichechengYamlParser parser;
int ret = parser.parse_yaml(entry_yaml, m_root_dir);
if (ret != 0)return -1;
......@@ -32,7 +32,7 @@ int EventsRos::loadConfig(ros::NodeHandle& nh)
}
else
{
private_nh.param<std::string>("unittest_yaml", config_yaml, "");
nh.param<std::string>("unittest_yaml", config_yaml, "");
m_config = YAML::LoadFile(config_yaml);
}
......
......@@ -32,8 +32,6 @@
*/
class EventsRos
{
private:
ros::NodeHandle private_nh;
public:
EventsRos() {}
~EventsRos() {}
......
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