ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It could be that in your CMakelists.txt
(see page 55 at the end of the page on the same book) you must define where your cpp files are in your system:
(from the book):
rosbuild_add_executable(example1_a src/example1_a.cpp)
rosbuild_add_executable(example1_b src/example1_b.cpp)
for this reason be sure that the path and the name of the .cpp files are right.
if you didn't create a src/
folder in your chapter2_tutorials/
folder then you need to remove it from your CMakelists.txt
file. For example it would be:
rosbuild_add_executable(example1_a example1_a.cpp)
rosbuild_add_executable(example1_b example1_b.cpp)
I hope that this solve your problem. And don't forget to source your file in your terminal:
source devel/setup.bash
Ciao
2 | No.2 Revision |
It could be that in your CMakelists.txt
(see page 55 at the end of the page on the same book) you must define where your cpp files are in your system:
(from the book):
rosbuild_add_executable(example1_a src/example1_a.cpp)
rosbuild_add_executable(example1_b src/example1_b.cpp)
for this reason be sure that the path and the name of the .cpp files are right.
if you didn't create a src/
folder in your chapter2_tutorials/
folder then you need to remove it from your CMakelists.txt
file. For example it would be:
rosbuild_add_executable(example1_a example1_a.cpp)
rosbuild_add_executable(example1_b example1_b.cpp)
I hope that this solve your problem. And don't forget to source your file in your terminal:
source devel/setup.bash
EDIT: you picked up the only book that is made entirely from the tutorials online. For using and learning ROS I would suggest you to use the tutorials online since they are updated and much more detailed than the book. As an exercise can you lately switch to the book again and try to develop its robot's examples with the stuff you learned.
Ciao