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

error roslaunch realsense_camera realsense_r200_nodelet_standalone_preset.launch #37

Closed
WeJay opened this issue May 9, 2016 · 12 comments
Labels

Comments

@WeJay
Copy link

WeJay commented May 9, 2016

System Configuration

Please complete Your Configuration detail below.

Version Best Known Your Configuration
Operating System Ubuntu 14.04.4 LTS Ubuntu 14.04.4 LTS
Kernel 4.4.0-040400-generic 4.4.0-040400-generic
Backend video4linux Video4Linux backend
ROS indigo indigo
ROS RealSense Latest Release Latest Release
librealsense 0.9.1 0.9.1
R200 Firmware 1.0.72.06 1.0.72.06

HI! I'm Wejay
I have same problem like issue #26,I'm not really good at linux,please tell me how to solve this
problem.
And I can not run cpp-capture by command line,but running within QT creator works.
It shows:
RealSense error calling rs_create_context(api_version:4):
uvc_open2(...) returned Access denied
In https://github.com/IntelRealSense/librealsense/issues/81,I really can not understand how to fix this problem.
2016-05-09 20 51 20

@mdhorn mdhorn added the question label May 9, 2016
@mdhorn
Copy link

mdhorn commented May 9, 2016

Yes, this looks exactly like #26.

Did you attempt the solution noted?

Try adding your login account to the group video.

sudo adduser $USER video

You may need to log out and log back into the system to see the new group.

groups

In general, the video devices will be owned by root and set to group video:

$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 3 Apr 12 18:02 /dev/video3
crw-rw----+ 1 root video 81, 4 Apr 12 18:02 /dev/video4
crw-rw----+ 1 root video 81, 5 Apr 12 18:02 /dev/video5

@WeJay
Copy link
Author

WeJay commented May 10, 2016

I have attempted the solution noted. But I can not still solve my problem.

after I do ,
$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 5月 10 16:45 /dev/video0
crw-rw----+ 1 root video 81, 1 5月 10 16:45 /dev/video1
crw-rw----+ 1 root video 81, 2 5月 10 16:45 /dev/video2
crw-rw----+ 1 root video 81, 3 5月 10 16:45 /dev/video3

@mdhorn
Copy link

mdhorn commented May 10, 2016

Did you try logging out and logging back in after making the group change?
The group membership only takes effect on login.

@mdhorn mdhorn self-assigned this May 10, 2016
@WeJay
Copy link
Author

WeJay commented May 12, 2016

Sorry,I tried your steps. Then, I can't still solve.
I can not launch cpp-capture.launch.
My result show
2016-05-12 17 49 44

but running within QT creator works. show

2016-05-09 19 42 38

@mdhorn
Copy link

mdhorn commented May 12, 2016

The fact that cpp-capture is failing in rs_create_context would imply that something is holding or not release the device.

In this issue you stated that you are using Video4Linux backend and NOT libuvc; can you please confirm that. It looks more like your problem is similar to IntelRealSense/librealsense#81 where libuvc was in use.

Can you confirm you are aren't using libuvb (which we don't support):
dpkg -l | grep libuvc
And that you have a current and/or patch kernel?
uname -a

@WeJay
Copy link
Author

WeJay commented May 16, 2016

sorry , I'm not really good at linux.
Thank for your patient to teach me step by step.
problem1

I install by below
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md#video4linux-backend

I install both Video4Linux backend and LibUVC backend.

As problem IntelRealSense/librealsense#81, I need remove LibUVC backend?

How can i do ?

@mdhorn
Copy link

mdhorn commented May 16, 2016

Okay, there is the problem; the directions are an either/or, not both. When you did the second install following the directions for libuvc, you replaced the librealsense library with the libuvc version which we don't support.

Repeat the installation steps for "Video4Linux backend".

@WeJay
Copy link
Author

WeJay commented May 16, 2016

When I repeat the installation steps for "Video4Linux backend", it shows they exist. Then,I can not install again.

Should I change the file name , v4.4-wily , to v4.5-wily ?

Or how can I solve the problem?

Thank you.

@mdhorn
Copy link

mdhorn commented May 16, 2016

The kernel portion should already be installed.

Just change directory (cd) to where you you put librealsense source
cd
make clean
make && sudo make install

@WeJay
Copy link
Author

WeJay commented May 19, 2016

Hi , I have three problem.

Problem1
I run sudo dmesg | tail -n 50 after I repeat the installation steps for "Video4Linux backend" .
It shows "failed to excute"
problem5
How do I solve?
However , I can run cpp-capture.

Problem 2
I run roslaunch turtlebot_bringupminimal.launch`.
Then I meet this problem.
problem6
problem9
This turtlebot_state is error.

Problem3
I run roslaunch realsense_camera realsense_r200_navigation.launch.
problem7
The device R200 can light.
But I run roslaunch realsense_navigation gmapping.launch.
problem8
It shows 0 device connected.

Sorry , help me solve problems.

Thank you.

@mdhorn
Copy link

mdhorn commented Jun 6, 2016

It appears you got the RealSense ROS node working.

For the navigation example, did you follow all of the directions in the README.md?

@WeJay
Copy link
Author

WeJay commented Jun 6, 2016

Thank you, I have solved my problems. Thank you very much ~~
I wish that you can solve my problem that I meet for ROS development in the future.

@mdhorn mdhorn closed this as completed Jun 6, 2016
mdhorn pushed a commit to mdhorn/realsense that referenced this issue Jul 13, 2016
…meras

Updated code to enable multi camera functionality
icarpis pushed a commit to icarpis/realsense that referenced this issue Sep 17, 2017
Internal Fixes in order to work on realsense_ros_slam with calibrated cameras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants