ROS教程里已经讲的差不多了。
问题是
make[2]: * No rule to make target ‘/home/hdh/ros_samples/dynamic_reconfigure/src/dynamic_tutorials/nodes/server.cpp’, needed by ‘dynamic_tutorials/CMakeFiles/server.dir/nodes/server.cpp.o’。
一直报错。 其他的参数、CMakeLists.txt也没写错。弄了很久,回去看了一下ROSwiki,这么说的
Go back to our dynamic_tutorials package, create a new directory called nodes, and create a file called server.cpp. Drop the following code into server.cpp
就是把程序放到nodes文件夹里而不是src文件夹里。没想到错误这么简单。。。