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

How can I publish camera footage from Insta 360 camera?

asked 2018-08-18 05:02:26 -0500

Katta Nigam gravatar image

Hi,I have used usb_cam node for publishing a single camera footage earlier. But when I connected the Insta 360 degree camera and tired to publish it I see nothing a screen with dots half and green half at bottom.So can any one please help me how to publish the live footage of Insta 360 Camera in Ros.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-08-18 18:53:26 -0500

This is the launch setup, we've been using with the Insta360:

<launch>
  <arg name="camera_name" default="camera360" />
  <arg name="frame_id" default="$(arg camera_name)_center_link"/>
  <arg name="calibration_name" default="insta360"/>

  <node pkg="nodelet" type="nodelet"
    name="$(arg camera_name)_nodelet_manager" args="manager"
    output="screen"
    respawn="true"/>

  <node pkg="nodelet" type="nodelet"
    name="$(arg camera_name)_nodelet_loader" 
    args="load libuvc_camera/driver $(arg camera_name)_nodelet_manager" 
    output="screen"
    respawn="true">

    <!-- Parameters used to find the camera -->
    <param name="vendor" value="0x2e1a"/>
    <param name="product" value="0x1000"/>
    <param name="serial" value="0"/>
    <!-- If the above parameters aren't unique, choose the first match: -->
    <param name="index" value="0"/>

    <!-- Image size and type -->
    <param name="width" value="3008"/>
    <param name="height" value="1504"/>
    <!-- choose whichever uncompressed format the camera supports: -->
    <param name="video_mode" value="mjpeg"/> <!-- or yuyv/nv12/mjpeg -->
    <param name="frame_rate" value="30"/>
    <param name="pub_every_n_th_image" value="3"/>

    <param name="timestamp_method" value="start"/> <!-- start of frame -->
    <param name="camera_info_url" value=""/>

    <param name="brightness" value="100"/>

    <remap from ="/image_raw" to="/$(arg camera_name)/image_raw"/> -->
    <remap from ="/camera_info" to="/$(arg camera_name)/camera_info"/>
    <remap from ="/set_camera_info" to="/$(arg camera_name)/set_camera_info"/>    
  </node>   

</launch>
edit flag offensive delete link more

Comments

Thankyou@Stefan Kohlbrecher. Yes I tried what you suggested,but when I try to launch it I have got this as an output. " Unable to open camera calibration file [/home/bittu/.ros/camera_info/camera.yaml]" So can explain me how to get this file.

Katta Nigam gravatar image Katta Nigam  ( 2018-08-21 04:15:39 -0500 )edit

You normally obtain this by standard camera calibration. As such calibration is meaningless for the Insta360's dual fisheye output, you should be able to ignore this warning. Or is this a error that causes the driver to not come up correctly?

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2018-08-28 16:26:30 -0500 )edit

Thank you for the reply.Yes,I was able to ignore that and was successful in publishing the footage.

Katta Nigam gravatar image Katta Nigam  ( 2018-08-29 07:55:11 -0500 )edit

This launch file worked with which camera version? Insta360 nano, pro, pro2? Did work for 3D streaming?

h66 gravatar image h66  ( 2018-11-05 10:50:25 -0500 )edit

Dear @Katta Nigam,

might I please ask how you got the Insta360 to be connected properly to Ubuntu?

For us, launching the above launch file throws the error: uvc_find_device: No such device (-4) Looking at dmesg upon connecting the camera, we get the error: [sdb] No Caching mode page found [sdb] Assuming drive cache: write through

Could you point us in the right direction?

JunTuck gravatar image JunTuck  ( 2020-03-06 06:13:53 -0500 )edit

@h66
We have used Insta 360 Air android device. And we have used http://wiki.ros.org/video_stream_opencv package.

Katta Nigam gravatar image Katta Nigam  ( 2020-03-06 07:27:59 -0500 )edit

Thanks for the blazing response, @Katta Nigam ! :) Unfortunately for us, the Insta360 is not even listed as a /dev/device .... it seems we are still missing something low-level that is crucial. Did you face this problem as well? Or did everything work cleanly from the get go?

JunTuck gravatar image JunTuck  ( 2020-03-06 07:49:09 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-08-18 05:02:26 -0500

Seen: 1,823 times

Last updated: Aug 18 '18