Having trouble compiling action messages

Hello! I am currently trying to compile the action server for the Ros basics (python) rosject and I get the following error when I catkin_make:

I followed all the instructions for making custom message files and I pretty sure I have all the dependencies in my CMakeLists.txt and package.xml files but I will copy them here

my CMakeList.txt:

Blockquote

find_package(catkin REQUIRED COMPONENTS
  std_msgs
  actionlib_msgs
  message_generation
  
    )
    add_action_files(
      FILES
      OdomRecord.action
    )

    generate_messages(
      DEPENDENCIES
      std_msgs
      actionlib_msgs
      
    )
catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES rosject_1
  CATKIN_DEPENDS 
  rospy message_runtime
#  DEPENDS system_lib
)
include_directories(

# include

${catkin_INCLUDE_DIRS}

)

My Package.xml file

Blockquote

<?xml version="1.0"?>
  <package format="2">
<name>rosject_1</name>
<version>0.0.0</version>
<description>The rosject_1 package</description>


<maintainer email="user@todo.todo">user</maintainer>


<license>TODO</license>



<buildtool_depend>catkin</buildtool_depend>
<build_depend>actionlib</build_depend>
<build_depend>nav_msgs</build_depend>
<build_depend>actionlib_msgs</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>message_generation</build_depend>
<build_export_depend>nav_msgs</build_export_depend>
<build_export_depend>actionlib</build_export_depend>
<build_export_depend>actionlib_msgs</build_export_depend>
<build_export_depend>rospy</build_export_depend>
<exec_depend>nav_msgs</exec_depend>
<exec_depend>actionlib</exec_depend>
<exec_depend>actionlib_msgs</exec_depend>
<exec_depend>rospy</exec_depend>
<build_export_depend>std_msgs</build_export_depend>
<exec_depend>std_msgs</exec_depend>
<build_export_depend>message_runtime</build_export_depend>
<exec_depend>message_runtime</exec_depend>


<!-- The export tag contains other, unspecified, tags -->
<export>
  <!-- Other tools can request additional information be placed here -->

</export>

I appreciate all the help. Thanks!

Hi, maybe you have changed the name of the package so the install folder is out of date.

Try deleting it and then compiling again:

cd ~/catkin_ws
rm -rf /build /devel
catkin_make
source devel/setup.bash
rospack profile

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.