Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start multiple camera nodes from single roslaunch XML #22

Closed
nmertins opened this issue Apr 7, 2016 · 5 comments
Closed

Start multiple camera nodes from single roslaunch XML #22

nmertins opened this issue Apr 7, 2016 · 5 comments

Comments

@nmertins
Copy link

nmertins commented Apr 7, 2016

System Configuration

Version Known Good Your Configuration
Operating System ubuntu 14.04 ubuntu 14.04
Kernel Version 4.4.0-13 4.4.0-040400-generic
R200 FW 1.0.72.06 1.0.72.06
librealsense 0.9.1 0.9.1

It'd be nice to be able to start up multiple camera nodes from a single .launch file. For example:

<launch>
    <include file="$(find realsense_camera)/launch/realsense_r200_rgbd.launch">
        <arg name="camera"      value="rs1" />
        <arg name="serial_no"   value="1234567890" />
    </include>

    <include file="$(find realsense_camera)/launch/realsense_r200_rgbd.launch">
        <arg name="camera"      value="rs2" />
        <arg name="serial_no"   value="0987654321" />
    </include>
</launch>

Running the script above results in the following error which brings down the process:

[ERROR] [1460047172.302085622]: RealSense Camera - Error calling rs_create_context ( api_version:4 ): 
UVCIOC_CTRL_QUERY:UVC_SET_CUR error 5, Input/output error
@mdhorn
Copy link

mdhorn commented Apr 11, 2016

Official support for Multiple cameras is being release soon.
Launching multiple camera from a single launch file wasn't in our original acceptable criteria, but we've capture this and it will get addressed -- may not be in the first release.

@prarobo
Copy link

prarobo commented Apr 26, 2016

@mdhorn Do you have a timeline for this release?

@mdhorn
Copy link

mdhorn commented Apr 28, 2016

We don't have a hard date for this fix. It is high on the list, but there are a couple of other items that are in front of it.

The issue stems from librealsense assuming all cameras would be started from the same process/thread whereas our ROS module launches each as a separate process via a nodelet.

@reaganlo
Copy link

@nmertins @prarobo This required some changes at the librealsense level, which has been implemented in their latest "master" branch IntelRealSense/librealsense@bff3ab5

We are waiting for librealsense to make a "release", to update our ROS repo with the related launch file changes. In the mean time, you could do the following:

  • Download the latest librealsense "master" branch as mentioned above.
  • Copy the file "realsense_r200_multiple_cameras.launch.xml" in the attachment into the "launch/includes" folder.
  • Copy the file "realsense_r200_multiple_cameras.launch" in the attachment into the "launch" folder. Make sure to read the comments in the file and make the changes accordingly. Then launch the file.

multiple_cameras.zip

Thank you for your patience and please let us know if this works.

@mdhorn mdhorn mentioned this issue Jun 4, 2016
@mdhorn
Copy link

mdhorn commented Jun 7, 2016

Fixed in Release 1.1.0

@mdhorn mdhorn closed this as completed Jun 7, 2016
mdhorn pushed a commit to mdhorn/realsense that referenced this issue Jul 13, 2016
…atrix-rotation

Rar 153 identity matrix rotation
icarpis pushed a commit to icarpis/realsense that referenced this issue Sep 17, 2017
@comwise comwise mentioned this issue Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants