It is possible to create a different Publisher and Listener in the same NodeHandle ?
Hi,
My question is in the title.
Actually, I have this :
subscriber = select.subscribe("select", 1, &Node::selectCallback, this);
publisher = select.advertise<std_msgs::String>("select", 1);
I would like the program receive vectors but publish only one string. It works for the vector but not for the string, it seems impossible to handle two differents information.
[ERROR] [1596527879.014894165]: Client [/select] wants topic /select to have datatype/md5sum [msg/select/6b204e294ba3cb6f15defcb9cd6b3d7c], but our version has [std_msgs/String/992ce8a1687cec8c8bd883ec73ca41d1]. Dropping connection.
Do I have to create a new NodeHandle or can I use only one topic for this ?
Thanks