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

Revision history [back]

In order to help cmake generate your messages you need to have some declarations on your CMakeLists.txt For example, for insub you should have something like this:

cmake_minimum_required(VERSION 2.8.3)
project(insub)

find_package(catkin REQUIRED COMPONENTS
  std_msgs
  message_generation
)

add_message_files(
  FILES
  TwoInts.msg
)

generate_messages(
    DEPENDENCIES
    std_msgs
)

catkin_package(CATKIN_DEPENDS std_msgs)

Of course this is just a speculation, but it would most definitely work for you. Also, you will have to create the corresponding package.xml file, just like you've done for inpub.

Good luck!

In order to help cmake generate your messages you need to have some declarations on your CMakeLists.txt For example, for insub you should have something like this:

cmake_minimum_required(VERSION 2.8.3)
project(insub)

find_package(catkin REQUIRED COMPONENTS
  std_msgs
  message_generation
)

add_message_files(
  FILES
  TwoInts.msg
)

generate_messages(
    DEPENDENCIES
    std_msgs
)

catkin_package(CATKIN_DEPENDS std_msgs)

Of course this is just a speculation, but it would most definitely work for you. Also, you will have to create the corresponding package.xml file, just like you've done for inpub.

Good luck!

P.S. The "no module named insub" error could be due to wrong or non-existent CMakeLists.txt and package.xml for insub, or wrong catkin workspace configuration. Check if you have these lines inside your ~/.bashrc:

source /opt/ros/$ROS_DISTRO/setup.bash

and

source ~/catkin_ws/devel/setup.bash