First time here? Check out the FAQ!


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

gscam::GSCam::init_stream(): assertion failed: (outpad)

asked Apr 30 '14

hvn gravatar image

updated May 2 '14

Hi,

I want to view a cam on armhf. To do so, I first export GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb,width=640,height=480,framerate=24/1 ! ffmpegcolorspace ! identity name=ros ! fakesink". This is tested using gst-launch with xvimagesink and it works. However, after the export, rosrun gscam gscam fails with "bool gscam::GSCam::init_stream(): assertion failed: (outpad) Aborted (core dumped)". I tried replacing and leaving out xvimagesink, changing the resolution, framerate but it still doesn't work. Any clues ?

Addition: ERROR:/tmp/buildd/ros-groovy-gscam-0.1.1-0precise-20140131-0203/src/gscam.cpp:131:bool gscam::GSCam::init_stream(): assertion failed: (outpad)

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered Jun 25 '14

Edmodi gravatar image

Hi, I also have the same problem but I use this GSCAM_CONFIG="v4l2src device=/dev/video1 ! video/x-raw-yuv,format=(fourcc)YUY2,width=320,height=240 ! xvimagesink".

By change, could you solved it? My goal is get the image in yuv2 format

Thanks

Preview: (hide)

Comments

Hi, I'm not using the gscam driver anymore. On recommendation I've changed both ROS version (to Hydro) and cam driver (to uvc_camera). This works.

hvn gravatar image hvn  ( Jun 25 '14 )edit

Thanks for your recommendation. Could you give me a launch file parameters to configure yuv2 format to run uvc_camera node? Thanks

Edmodi gravatar image Edmodi  ( Jun 25 '14 )edit

Sorry, can't help you with that since I'm not using yuv2.

hvn gravatar image hvn  ( Jun 25 '14 )edit

Ok Thanks for your time

Edmodi gravatar image Edmodi  ( Jun 25 '14 )edit

No problem.

hvn gravatar image hvn  ( Jun 25 '14 )edit

Why do you need YUV2? I'm not sure the image topic will be in yuv format even if the camera is, and you can always do the colorspace conversion in your subscriber if you want to do image processing in yuv2.

ahendrix gravatar image ahendrix  ( Jun 29 '14 )edit

Thanks for your reply. I use YUV2 because my vision artificial algorithm uses this colorspace. So, if I can save this time, the algorithm is faster

Edmodi gravatar image Edmodi  ( Jun 30 '14 )edit

Question Tools

1 follower

Stats

Asked: Apr 30 '14

Seen: 653 times

Last updated: Jun 25 '14