I am running ROS Indigo on Ubuntu 14.04. Here is my package and cmake file:
CMAKELIST:
cmake_minimum_required(VERSION 2.8.3)
project(semantic_label_publisher)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
message_generation
)
## Generate messages in the 'msg' folder
add_message_files(
FILES
SemLabel.msg
# Message2.msg
)
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs # Or other packages containing msgs
)
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES semantic_label_publisher
CATKIN_DEPENDS rospy std_msgs
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
)
package.xml File:
semantic_label_publisher 0.0.0 The semantic_label_publisher package xxx TODO catkin rospy std_msgs message_generation message_runtime rospy std_msgs
I built my package, did everything, but when I run
rosrun semantic_label_publisher semantic_label_publisher_node.py
I get the following error:
ImportError: No module named semantic_label_publish.msg
Is there something I am doing wrong? If you need anymore info let me know.
Thanks
↧