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

I'm not sure, but is Creating a ROS msg and srv is "the ros tutorial" you refer to?

Can you tell us where it asks you to add genmsg? I can't find it on that page.

Also , how do I decide on what dependencies to add when creating a .msg file ? Thank you in advance.

Please see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions (in addition to the tutorial you linked).

I'm not sure, but is Creating a ROS msg and srv is "the ros tutorial" you refer to?

Can you tell us where it asks you to add genmsg? I can't find it on that page.

Also , how do I decide on what dependencies to add when creating a .msg file ? Thank you in advance.

Please see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions (in addition to the tutorial you linked).

When I catkin_make install after this , a CMake error related to genmsg-cmake is popping up and when I exclude genmsg from CMakeList file, the error disappeared.

Btw: when asking questions about "errors" it would help if you would include those errors, as we cannot guess what you are seeing, and that makes it very hard to help you.

I'm not sure, but is Creating a ROS msg and srv is "the ros the "ros tutorial" you refer to?

Can you tell us where it asks you to add genmsg? I can't find it on that page.

Also , how do I decide on what dependencies to add when creating a .msg file ? Thank you in advance.

Please see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions (in addition to the tutorial you linked).

When I catkin_make install after this , a CMake error related to genmsg-cmake is popping up and when I exclude genmsg from CMakeList file, the error disappeared.

Btw: when asking questions about "errors" it would help if you would include those errors, as we cannot guess what you are seeing, and that makes it very hard to help you.

I'm not sure, but is Creating a ROS msg and srv the "ros tutorial" you refer to?

Can you tell us where it asks you to add genmsg? I can't find it on that page.

Also , how do I decide on what dependencies to add when creating a .msg file ? Thank you in advance.

Please see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions (in addition to the tutorial you linked).

When I catkin_make install after this , a CMake error related to genmsg-cmake is popping up and when I exclude genmsg from CMakeList file, the error disappeared.

Btw: when asking questions about "errors" it would help if you would include those errors, as we cannot guess what you are seeing, and that makes it very hard to help you.


Edit:

2 . Since the particular example used only std_msgs as a dependency , I was thinking if genmsg could also be added as another dependency ?

No. genmsg is a package that is related to msg code generation, but should not be directly used when creating message packages, such as you are doing.

how do we decide which package our created .msg file should depend on ?

Well, same as how you decide which package you depend on for other things: which package provides the message definition that you use in your own .msg file? For anything from std_msgs, specify a dependency on std_msgs. For anything you use from geometry_msgs, specify a dependency on geometry_msgs. Etc.

3 . So, after adding genmsg as well ,to the dependency list in CMakeLists.txt, the following error popped up when I catkin_make install ( the last step in creating the message , "common step for msg and srv" as the tutorial mentions. ) C:\fakepath\2.png

I don't think it makes sense to try and debug this: don't add genmsg as a dependency when you just want to create your own messages. It's not needed.

Please also see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions for additional information.

I'm not sure, but is Creating a ROS msg and srv the "ros tutorial" you refer to?

Can you tell us where it asks you to add genmsg? I can't find it on that page.

Also , how do I decide on what dependencies to add when creating a .msg file ? Thank you in advance.

Please see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions (in addition to the tutorial you linked).

When I catkin_make install after this , a CMake error related to genmsg-cmake is popping up and when I exclude genmsg from CMakeList file, the error disappeared.

Btw: when asking questions about "errors" it would help if you would include those errors, as we cannot guess what you are seeing, and that makes it very hard to help you.


Edit:

2 . Since the particular example used only std_msgs as a dependency , I was thinking if genmsg could also be added as another dependency ?

No. genmsg is a package that is related to msg code generation, but should not be directly used when creating message packages, such as you are doing.

The tutorial also does not ask you to include that package, anywhere.

how do we decide which package our created .msg file should depend on ?

Well, same as how you decide which package you depend on for other things: which package provides the message definition that you use in your own .msg file? For anything from std_msgs, specify a dependency on std_msgs. For anything you use from geometry_msgs, specify a dependency on geometry_msgs. Etc.

3 . So, after adding genmsg as well ,to the dependency list in CMakeLists.txt, the following error popped up when I catkin_make install ( the last step in creating the message , "common step for msg and srv" as the tutorial mentions. ) C:\fakepath\2.png

I don't think it makes sense to try and debug this: don't add genmsg as a dependency when you just want to create your own messages. It's not needed.

Please also see catkin 0.7.4 documentation » How to do common tasks » Package format 2 (recommended) » Building messages, services or actions for additional information.