garamizo / dear-rex

Teleoperated wheeled robot to watch your house while you are gone
0 stars 0 forks source link

Error while launching Stereo Camera #3

Open cmodi1 opened 6 years ago

cmodi1 commented 6 years ago

Error: [ERROR] [1531867243.908835120]: VIDIOC_STREAMON error 12, Cannot allocate memory

garamizo commented 6 years ago

Did you try running only 1 camera? Also, how is the Pi's storage memory? Could you check?

cmodi1 commented 6 years ago

I didn’t use pi as of now since I didn’t find its adaptor. Any one of the camera works fine and other one crashes.

On Tue, 17 Jul 2018 at 8:32 PM, Guilherme Aramizo Ribeiro < notifications@github.com> wrote:

Did you try running only 1 camera? Also, how is the Pi's storage memory? Could you check?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/garamizo/dear-rex/issues/3#issuecomment-405771087, or mute the thread https://github.com/notifications/unsubscribe-auth/AceclXuqvTC7fgQXobhfl5yOSG27h4Y-ks5uHoIBgaJpZM4VTrAO .

garamizo commented 6 years ago

Try decreasing the frame rate or resolution. Like this:

<launch>

    <node name="right" pkg="usb_cam" type="usb_cam_node" output="screen" >
      <param name="video_device" value="/dev/video0" />
      <param name="image_width" value="320" />
      <param name="image_height" value="240" />
      <param name="pixel_format" value="yuyv" />
      <param name="camera_frame_id" value="right_cam" />
      <param name="io_method" value="mmap"/>
      <param name="framerate" value="15" />
      <param name="camera_name" value="minoru_right" />
    </node>

    <node name="left" pkg="usb_cam" type="usb_cam_node" output="screen" >
      <param name="video_device" value="/dev/video1" />
      <param name="image_width" value="320" />
      <param name="image_height" value="240" />
      <param name="pixel_format" value="yuyv" />
      <param name="camera_frame_id" value="left_cam" />
      <param name="io_method" value="mmap"/>
      <param name="framerate" value="15" />
      <param name="camera_name" value="minoru_left" />
    </node>

</launch>
cmodi1 commented 6 years ago

I tried with the frame rate of 15 as well and tried it on both laptop and desktop. I’ll try reducing the resolution. But the laptop’s camera and stereo’s one camera launches just fine.

On Tue, 17 Jul 2018 at 8:39 PM, Guilherme Aramizo Ribeiro < notifications@github.com> wrote:

Try decreasing the frame rate or resolution. Like this:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/garamizo/dear-rex/issues/3#issuecomment-405772176, or mute the thread https://github.com/notifications/unsubscribe-auth/AceclXLqXoUUs0dc4VCSandB2T37Y0L_ks5uHoO-gaJpZM4VTrAO .

garamizo commented 6 years ago

You can connect the Pi to the laptop via Ethernet cable and use the Pi headless (and without wifi adapter). It was working on the Pi.

cmodi1 commented 6 years ago

I meant power adapter, to power the pi.

On Tue, 17 Jul 2018 at 8:55 PM, Guilherme Aramizo Ribeiro < notifications@github.com> wrote:

You can connect the Pi to the laptop via Ethernet cable and use the Pi headless (and without wifi adapter). It was working on the Pi.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/garamizo/dear-rex/issues/3#issuecomment-405774479, or mute the thread https://github.com/notifications/unsubscribe-auth/AceclVWV-0312Caqh9MdvtFZB-bJl5BBks5uHoeJgaJpZM4VTrAO .

garamizo commented 6 years ago

The smart car had a small red board to convert the voltage down to the Pi's level. Is it wired? (Please see device's datasheet before wiring anything)

cmodi1 commented 6 years ago

Okay I’ll do that!

On Tue, 17 Jul 2018 at 9:00 PM, Guilherme Aramizo Ribeiro < notifications@github.com> wrote:

The smart car had a small red board to convert the voltage down to the Pi's level. Is it wired? (Please see device's datasheet before wiring anything)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/garamizo/dear-rex/issues/3#issuecomment-405775147, or mute the thread https://github.com/notifications/unsubscribe-auth/AcecldcTKRjGxjaUNkg9jzhW8cbKC9xGks5uHoiZgaJpZM4VTrAO .