How to connect a topic to a node [closed]
I have a node /gazebo which publishes the topic /main/image_raw. I have another node /whycon which publishes several topics /whycon/poses etc. But i want the /whycon node to subscribe to the topic /main/image_raw. But I cant find any way to do that can somebody help me solve this problem.
EDIT: The /whycon and the /gazebo node is not made by me. These were already there when I downloaded the whycon and task_1 package.
What have you tried so far? Can you please post the code? Also, are you using
C++
,Python
, or another of the supported languages?The whycon node is not made by me so i cant subscribe it to the /main/image_raw topic . So where do I put the new node I make.
You should update your question with more information because as is it looks like you're trying to subscribe to multiple topics from a node that you wrote. If you're trying to remap then this is a completely different situation.
Now this looks like a duplicate of another one of your questions.
Yes so how can i remap the topic /main/image_raw in an already made node /whycon node. The /main/inage_raw topic is published by node /gazebo by launching the task_1_1.launch file