Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ERROR: invalid message type: face_recognition/FRClientGoal

Hi everyone, I am trying to move the face recognition package to catkin. Itried with http://wiki.ros.org/catkin/migrating_from_rosbuild but it doesn't work. So I create a new catkin workspace and I tried to add every folder one by one as if it was a new project. When I try to do a catkin_make I have this message :

ERROR: invalid message type: face_recognition/FRClientGoal.
If this is a valid message type, perhaps you need to type 'rosmake face_recognition'

I tried to do a rosmake but I still have this error. My Cmakelist.txt is like this:

cmake_minimum_required(VERSION 2.8.3)
project(face_recognition)
find_package(catkin REQUIRED COMPONENTS
actionlib
  actionlib_msgs
  cv_bridge
  image_transport
  #opencv2
  roscpp
  roslib
  rospy
  std_msgs
)
 add_message_files(
    FILES
    #FaceRecognitionAction.msg
    #FaceRecognitionActionFeedback.msg
    #FaceRecognitionActionGoal.msg
    #FaceRecognitionActionResult.msg
    #FaceRecognitionFeedback.msg
    #FaceRecognitionGoal.msg
    #FaceRecognitionResult.msg
    FRClientGoal.msg
 )

 find_package( OpenCV REQUIRED )

   add_action_files(
      FILES
      FaceRecognition.action
    )

   ## Generate added messages and services with any dependencies listed here
   generate_messages(
     DEPENDENCIES
     actionlib_msgs
     std_msgs
    )
     include_directories(  ${catkin_INCLUDE_DIRS}  ${OpenCV_INCLUDE_DIRS} )
     add_executable(Fserver src/face_recognition.cpp)
     add_executable(Fclient src/face_rec_client.cpp)
     add_dependencies(Fserver ${face_recognition_EXPORTED_TARGETS})
     add_dependencies(Fclient ${face_recognition_EXPORTED_TARGETS})
      target_link_libraries(Fserver
       ${catkin_LIBRARIES}
      )
      target_link_libraries(Fclient
       ${catkin_LIBRARIES}
      )

Can somebody help me please? thank you

ERROR: invalid message type: face_recognition/FRClientGoal

Hi everyone, I am trying to move the face recognition package to catkin. Itried with http://wiki.ros.org/catkin/migrating_from_rosbuild but it doesn't work. So I create a new catkin workspace and I tried to add every folder one by one as if it was a new project. When I try to do a catkin_make I have this message :

ERROR: invalid message type: face_recognition/FRClientGoal.
If this is a valid message type, perhaps you need to type 'rosmake face_recognition'

I tried to do a rosmake but I still have this error. My Cmakelist.txt is like this:

cmake_minimum_required(VERSION 2.8.3)
project(face_recognition)
find_package(catkin REQUIRED COMPONENTS
actionlib
  actionlib_msgs
  cv_bridge
  image_transport
  #opencv2
  roscpp
  roslib
  rospy
  std_msgs
)
 add_message_files(
    FILES
    #FaceRecognitionAction.msg
    #FaceRecognitionActionFeedback.msg
    #FaceRecognitionActionGoal.msg
    #FaceRecognitionActionResult.msg
    #FaceRecognitionFeedback.msg
    #FaceRecognitionGoal.msg
    #FaceRecognitionResult.msg
    FRClientGoal.msg
 )

 find_package( OpenCV REQUIRED )

   add_action_files(
      FILES
      FaceRecognition.action
    )

   ## Generate added messages and services with any dependencies listed here
   generate_messages(
     DEPENDENCIES
     actionlib_msgs
     std_msgs
    )
     include_directories(  ${catkin_INCLUDE_DIRS}  ${OpenCV_INCLUDE_DIRS} )
     add_executable(Fserver src/face_recognition.cpp)
     add_executable(Fclient src/face_rec_client.cpp)
     add_dependencies(Fserver ${face_recognition_EXPORTED_TARGETS})
     add_dependencies(Fclient ${face_recognition_EXPORTED_TARGETS})
      target_link_libraries(Fserver
       ${catkin_LIBRARIES}
      )
      target_link_libraries(Fclient
       ${catkin_LIBRARIES}
      )

I already had some poblems that I tried to manage, see http://answers.ros.org/question/187981/cmake-error-attempt-to-add-a-custom-rule-to-output/ but I seams that it still doesn't work. Can somebody help me please? thank you

ERROR: invalid message type: face_recognition/FRClientGoal

Hi everyone, I am trying to move the face recognition package to catkin. Itried with http://wiki.ros.org/catkin/migrating_from_rosbuild but it doesn't work. So I create a new catkin workspace and I tried to add every folder one by one as if it was a new project. When I try to do a catkin_make I have this message :

ERROR: invalid message type: face_recognition/FRClientGoal.
If this is a valid message type, perhaps you need to type 'rosmake face_recognition'

I tried to do a rosmake but I still have this error. My Cmakelist.txt is like this:

cmake_minimum_required(VERSION 2.8.3)
project(face_recognition)
find_package(catkin REQUIRED COMPONENTS
actionlib
  actionlib_msgs
  cv_bridge
  image_transport
  #opencv2
  roscpp
  roslib
  rospy
  std_msgs
)
 add_message_files(
    FILES
    #FaceRecognitionAction.msg
    #FaceRecognitionActionFeedback.msg
    #FaceRecognitionActionGoal.msg
    #FaceRecognitionActionResult.msg
    #FaceRecognitionFeedback.msg
    #FaceRecognitionGoal.msg
    #FaceRecognitionResult.msg
    FRClientGoal.msg
 )

 find_package( OpenCV REQUIRED )

   add_action_files(
      FILES
      FaceRecognition.action
    )

   ## Generate added messages and services with any dependencies listed here
   generate_messages(
     DEPENDENCIES
     actionlib_msgs
     std_msgs
    )
     include_directories(  ${catkin_INCLUDE_DIRS}  ${OpenCV_INCLUDE_DIRS} )
     add_executable(Fserver src/face_recognition.cpp)
     add_executable(Fclient src/face_rec_client.cpp)
     add_dependencies(Fserver ${face_recognition_EXPORTED_TARGETS})
     add_dependencies(Fclient ${face_recognition_EXPORTED_TARGETS})
      target_link_libraries(Fserver
       ${catkin_LIBRARIES}
      )
      target_link_libraries(Fclient
       ${catkin_LIBRARIES}
      )

and my package.xml is like this :

      <?xml version="1.0"?>
      <package>
       <name>face_recognition</name>
       <version>0.0.0</version>
       <description>The face_recognition package</description>
      <maintainer email="www@todo.todo">www</maintainer>
      <license>TODO</license>
      <buildtool_depend>catkin</buildtool_depend>
        <build_depend>actionlib</build_depend>
        <build_depend>actionlib_msgs</build_depend>
        <build_depend>cv_bridge</build_depend>
        <build_depend>image_transport</build_depend>
        <!-- <build_depend>opencv2</build_depend> -->
        <build_depend>roscpp</build_depend>
        <build_depend>roslib</build_depend>
        <build_depend>rospy</build_depend>
        <build_depend>std_msgs</build_depend>
        <run_depend>actionlib</run_depend>
        <run_depend>actionlib_msgs</run_depend>
        <run_depend>cv_bridge</run_depend>
        <run_depend>image_transport</run_depend>
        <!-- <run_depend>opencv2</run_depend> -->
        <run_depend>roscpp</run_depend>
        <run_depend>roslib</run_depend>
        <run_depend>rospy</run_depend>
        <run_depend>std_msgs</run_depend>
      <export>
        </export>
      </package>

I already had some poblems that I tried to manage, see http://answers.ros.org/question/187981/cmake-error-attempt-to-add-a-custom-rule-to-output/ but I seams that it still doesn't work. Can somebody help me please? thank you