Having two NodeHandle, one in each class.
I have a question regards to node handler in C++. Say I have two classes, located in different files: A.h:
class A
{
private:
ros::NodeHandle n;
ros::subscriber subA;
}
B.h:
class B
{
private:
ros::NodeHandle n;
}
And in main.cpp, I included both A.h and B.h. Will there be any conflict here?