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 2014-04-30 03:45:57 -0500

hvn gravatar image

updated 2014-05-01 23:00:19 -0500

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)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-06-25 03:50:03 -0500

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

edit flag offensive delete link more

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  ( 2014-06-25 05:15:36 -0500 )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  ( 2014-06-25 06:16:18 -0500 )edit

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

hvn gravatar image hvn  ( 2014-06-25 06:26:22 -0500 )edit

Ok Thanks for your time

Edmodi gravatar image Edmodi  ( 2014-06-25 06:37:08 -0500 )edit

No problem.

hvn gravatar image hvn  ( 2014-06-25 07:07:34 -0500 )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  ( 2014-06-29 15:49:26 -0500 )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  ( 2014-06-30 01:00:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-30 03:45:57 -0500

Seen: 613 times

Last updated: Jun 25 '14