ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Without the actual console output from your catkin_make invocation (and the error message), the below is just a guess, but:

[..] we should comment out

add_message_files(FILES Num.msg)
add_service_files(FILES AddTwoInts.srv)

this two line, which means it should be like this: #add.......

if you don't do this, you will find something wrong when you try to use catkin_make

I don't think your suggested changes are needed.

Do you still have the Num.msg and AddTwoInts.srv files in the msg and srv subdirectories of your package from the Creating a ROS msg and srv tutorial? If you don't, then catkin_make will probably fail, as it cannot find those files.

The Writing a Simple Publisher and Subscriber (C++) tutorial explicitly states (under 1.3 Building your nodes):

The generated CMakeLists.txt should look like this (with modifications from the Creating Msgs and Srvs tutorial and unused comments and examples removed)

And then shows the lines you added to your OP.

If msg/Num.msg and srv/AddTwoInts.srv are no longer in your package, then you should comment the lines you suggested. But in general they should be there, as the next tutorials (Writing a Simple Service and Client (C++) fi) depend on them.

Without the actual console output from your catkin_make invocation (and the error message), the below is just a guess, but:

[..] we should comment out

add_message_files(FILES Num.msg)
add_service_files(FILES AddTwoInts.srv)

this two line, which means it should be like this: #add.......

if you don't do this, you will find something wrong when you try to use catkin_make

I don't think your suggested changes are needed.

Do you still have the Num.msg and AddTwoInts.srv files in the msg and srv subdirectories of your package from the Creating a ROS msg and srv tutorial? If you don't, then catkin_make will probably fail, as it cannot find those files.

The Writing a Simple Publisher and Subscriber (C++) tutorial explicitly states (under 1.3 Building your nodes):) (emphasis mine):

The generated CMakeLists.txt should look like this (with modifications from the Creating Msgs and Srvs tutorial and unused comments and examples removed)

And then shows the lines you added to your OP.

If msg/Num.msg and srv/AddTwoInts.srv are no longer in your package, then you should comment the lines you suggested. But in general they should be there, as the next tutorials (Writing a Simple Service and Client (C++) fi) depend on them.

Without the actual console output from your catkin_make invocation (and the error message), the below is just a guess, but:

[..] we should comment out

add_message_files(FILES Num.msg)
add_service_files(FILES AddTwoInts.srv)

this two line, which means it should be like this: #add.......

if you don't do this, you will find something wrong when you try to use catkin_make

I don't think your suggested changes are needed.

Do you still have the Num.msg and AddTwoInts.srv files in the msg and srv subdirectories of your package from the Creating a ROS msg and srv tutorial? If you don't, then catkin_make will probably fail, as it cannot find those files.

The Writing a Simple Publisher and Subscriber (C++) tutorial explicitly states (under 1.3 Building your nodes) (emphasis mine):

The generated CMakeLists.txt should look like this (with modifications from the Creating Msgs and Srvs Srvs tutorial and unused comments and examples removed)

And then shows the lines you added to your OP.

If msg/Num.msg and srv/AddTwoInts.srv are no longer in your package, then you should comment the lines you suggested. But in general they should be there, as the next tutorials (Writing a Simple Service and Client (C++) fi) depend on them.