I'm a beginner in ROS and started to learn the basics. So I have installed ROS and I am going through some tutorials. I have created two nodes (publisher and subscriber). Actually I was doing this ROS.org tutorial
1: At Step 3. Building your nodes, I get an error if I type catkin_make
. Everything is setup like in the tutorial but its not working.
The error is:
add_message_files() directory not found
And
Makefile:710: recipe for target 'cmake_check_build_system' failed
I don't know what to do here.
2: Is there a possibility to make an output without using launchfiles? I have looked it up and I noticed that you have to use launchfiles only if you want to run more than one node. In this Youtube tutorial 6:06 min the guy is using a cout in his callback function. I have also tried it like him and I changed my cmakelists equally like his but I don't get an output in my terminal. He does. In the next part the guy is changing some parts in his cmakelists but it doesn't help to get an output in the terminal.
So my question summarized is: How do I use cout
and ROS_INFO
or ROS_DEBUG
correctly?