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

RosFaceNoob's profile - activity

2017-04-20 17:37:14 -0500 marked best answer convert iplImage to sensor_msgs::ImageConstPtr

Hi everyone,
I have some problem to understand how to convert images with cvbridge. I red the tutorial : http://wiki.ros.org/cv_bridge/Tutoria... .

But I can't find a way to convert a openCV images to ROS images message. I succed to convert from ROS to openCV. I wanted to use the function toImageMsg() but it returns a sensor_msgs::Image but I want a sensor_msgs::ImageConstPtr.
Can somebody help me please?
Thank you.

2015-03-24 05:08:33 -0500 received badge  Nice Question (source)
2015-01-29 14:19:51 -0500 received badge  Taxonomist
2014-11-18 01:07:25 -0500 received badge  Famous Question (source)
2014-10-11 17:59:31 -0500 received badge  Famous Question (source)
2014-08-04 07:51:52 -0500 received badge  Notable Question (source)
2014-08-04 07:25:52 -0500 commented question ERROR: invalid message type: face_recognition/FRClientGoal

I add the dependecies and it worked once and now it doen't work anymore...

2014-08-04 06:49:51 -0500 commented question ERROR: invalid message type: face_recognition/FRClientGoal

I use the code on github. i didn' modify it. I was jsut trying to migrate it to catkin

2014-08-04 06:18:28 -0500 commented question ERROR: invalid message type: face_recognition/FRClientGoal

If I delete the folder, they are built again and I hav the same error. I use this https://github.com/procrob/procrob_functional/tree/master/face_recognition

2014-08-04 04:41:44 -0500 received badge  Popular Question (source)
2014-08-04 03:51:54 -0500 commented question ERROR: invalid message type: face_recognition/FRClientGoal

I have the same error

2014-08-04 03:19:37 -0500 commented question ERROR: invalid message type: face_recognition/FRClientGoal

When you use the FaceRecognition.action did it automatically generate the FRClientgoal? because in my case it did'nt and I copy and plaste the old one. Maybe that's why it's not working.

2014-08-04 02:39:07 -0500 asked a question 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_... 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/18798... but I seams that it still doesn't work. Can somebody help me please? thank you

2014-08-01 07:49:42 -0500 commented answer CMake error : Attempt to add a custom rule to output

Finaly I moved the executable in the right folder mnually but the program doen't understand the message FRclientGoal. what should I do ? Thanks for your help

2014-08-01 07:48:03 -0500 commented answer CMake error : Attempt to add a custom rule to output

I add manually FRClientGoal.msg in the Cmakefile. it generatage a FRClientGoal.h file. I can compile the project but when I try to make a rosrun, I have a message that says that the executables are not found. They are in the folder /ros/devel/lib/face_recognition and it looks only in the package folder src/face_recognition. How can I tell him to look in another folder?

2014-08-01 03:24:33 -0500 commented answer CMake error : Attempt to add a custom rule to output

FRClientGoal.msg should be generate from an action like all the other headers but it's not. that's the problem

2014-08-01 02:38:08 -0500 commented answer CMake error : Attempt to add a custom rule to output

I am back to my first error:
Linking CXX executable /home/www/ros/devel/lib/face_recognition/Fserver
[100%] Built target Fserver
Scanning dependencies of target face_recognition_generate_messages
[100%] Built target face_recognition_generate_messages
/home/www/ros/src/face_recognition/src/face_rec_client.cpp:13:43: erreur fatale:
face_recognition/FRClientGoal.h : Aucun fichier ou dossier de ce type compilation terminée. (the file doesn't exist) make[2]: *** [face_recognition/CMakeFiles/Fclient.dir/src/face_rec_client.cpp.o] Erreur 1
make[1]: *** [face_recognition/CMakeFiles/Fclient.dir/all] Erreur 2
make: *** [all] Erreur 2
Invoking "make" failed
I think I am in an infinite loop

2014-07-31 08:12:56 -0500 commented answer CMake error : Attempt to add a custom rule to output

I add to my CMakeLists.txt : add_dependencies(Fserver ${face_recognition_EXPORTED_TARGETS}) add_dependencies(Fclient ${face_recognition_EXPORTED_TARGETS}) Now I have this error: face_recognition.cpp:(.text._ZN3ros13serialization16VectorSerializerIfSaIfEvE5writeINS0_7OStreamEEEvRT_RKSt6vectorIfS2_E[void ros::serialization::VectorSerializer<float, std::allocator<float="">, void>::write<ros::serialization::ostream>(ros::serialization::OStream&, std::vector<float, std::allocator<float=""> > const&)]+0xae): undefined reference to `ros::serialization::throwStreamOverrun()' collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [/home/www/ros/devel/lib/face_recognition/Fserver] Erreur 1 make[1]: *** [face_recognition/CMakeFiles/Fserver.dir/all] Erreur 2 make[1]: *** Attente des tâches non terminées.... make[2]: *** [face_recognition/CMakeFiles/Fclient.dir/src/face_rec_client.cpp.o] Erreur 1 make[1]: *** [face_recognition/CMakeFiles/Fclient.dir/all] Erreur 2 make: *** [all] Erreur 2

2014-07-30 02:39:58 -0500 received badge  Famous Question (source)
2014-07-30 02:27:09 -0500 commented answer CMake error : Attempt to add a custom rule to output

When I try that, I still have the error about my FaceRecognitionAction.h that doesn't exist. I don't understand why it wasn't auto genrated.

2014-07-29 02:46:30 -0500 commented answer CMake error : Attempt to add a custom rule to output

I think it's the FaceRecognitionaction.h auto created from my action that also generate messages. I clean the message folder so the message can be built automatically and try to buil again but I still have the error about the FaceRecognitionaction.h missing. My folder devel/include is empty.

2014-07-29 02:23:57 -0500 commented answer CMake error : Attempt to add a custom rule to output

The error message says that the file FaceRecognitionAction.h doesn't exist but actually it exists and it's in my include folder. I don't know where I should put it so the program can find it. In the include file, I put all my headers. I don't know where else should I put them.

2014-07-29 02:19:56 -0500 commented answer CMake error : Attempt to add a custom rule to output

Yes that's what I am trying to do. I just did a catkin_make, the generation is done automatically.

2014-07-29 02:14:58 -0500 received badge  Notable Question (source)
2014-07-28 12:23:13 -0500 received badge  Popular Question (source)
2014-07-28 09:43:33 -0500 commented answer CMake error : Attempt to add a custom rule to output

I rename my action as FaceReco.action and it worked. but now I have a message : /home/www/ros/src/face_recognition/src/face_rec_client.cpp:12:52: fatal error: face_recognition/FaceRecognitionAction.h : Any file or folder of this type. I try to include a .h that I put in the folder include but I guess that's not where I should put it?

2014-07-28 07:14:50 -0500 received badge  Student (source)
2014-07-28 07:12:32 -0500 commented question CMake error : Attempt to add a custom rule to output

I edited my post

2014-07-28 07:12:22 -0500 edited question CMake error : Attempt to add a custom rule to output

Hi everybody, I am trying to migrate the face_recognition package to catkin but I have lots of problems. I tried with : http://wiki.ros.org/catkin/migrating_...
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 :

CMake Error: Attempt to add a custom rule to output "/home/www/ros/devel/include/face_recognition/FaceRecognitionAction.h.rule" which already has a custom rule.
CMake Error: Attempt to add a custom rule to output "/home/www/ros/devel/share/common-lisp/ros/face_recognition/msg/FaceRecognitionAction.lisp.rule" which already has a custom rule.
CMake Error: Attempt to add a custom rule to output "/home/www/ros/devel/lib/python2.7/dist-packages/face_recognition/msg/_FaceRecognitionAction.py.rule" which already has a custom rule.
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Erreur 1
Invoking "make cmake_check_build_system" failed

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)

Can somebody help me please? thank you

2014-07-28 03:24:17 -0500 received badge  Famous Question (source)
2014-06-15 01:59:26 -0500 received badge  Popular Question (source)
2014-06-15 01:59:26 -0500 received badge  Notable Question (source)
2014-04-29 10:30:52 -0500 received badge  Notable Question (source)
2014-04-20 14:25:36 -0500 marked best answer Can't build the face recognition package

Hi, I got face recognition tutorial on ros wiki page:

www.ros.org/wiki/face_recognition

but i can't build it. I tried to build the workspace using catkin_make and rosmake. I use the command "catkin-make" in the face_recognition workaspace but it already contains a CMakeLists.txt so the command doesn't work. I also tried the "rosmake face_recognition" but I have this error "ERROR: No arguments could be parsed into valid package or stack names." despite the fact that there is a "stack.xml" file in the folder.

Can somebody help me please? Thank you

2014-04-20 06:57:15 -0500 marked best answer Display problem with gscam

Hi everybody,

I am trying to install gscam http://wiki.ros.org/gscam ans I have many problems . First, when I did the command rosrun gscam gscam I had the warning
"Camera calibration file .ros/camera_info/camera.yaml not found."
So I find a camera.yaml and add it. Now I have the warning
"[camera] does not match name ~ in file .ros/camera_info/camera.yaml"
I think I have to add the camera name in the file but I can't find it with lsusb. If someone knows how to find it, it will really help me.

And as it is only a warning, I think I still can run the command. I have something like :

and my webcam is turned on but when I tried to display it with "rosrun image_view image_view image:=/gscam/image_raw" a small blank window pops up, but without any picture or video from my camera.
So I did a "rostopic hz --window=1000 /gscam/image_raw" to see what is published, but there are no messages published by the node.

When I list the topic, I have all topics published by gscam .
/camera/camera_info
/camera/image_raw
/camera/image_raw/compressed
/camera/image_raw/compressed/parameter_descriptions
/camera/image_raw/compressed/parameter_updates
/camera/image_raw/compressedDepth
/camera/image_raw/compressedDepth/parameter_descriptions
/camera/image_raw/compressedDepth/parameter_updates
/camera/image_raw/theora
/camera/image_raw/theora/parameter_descriptions
/camera/image_raw/theora/parameter_updates
/rosout /rosout_agg

And "rosrun rqt_graph rqt_graph" shows me the /gscam_publisher node and the /image_view nodeb and they are not linked.

I don't know what to do. Can somedody help me please?
Thank you