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

cannot enable access on Orbecc Astra Camera

asked 2022-04-15 23:36:01 -0500

distro gravatar image

updated 2022-04-15 23:43:06 -0500

I was following the instructions for orbec astra pro here. I have [1] git cloned both ros_astra_camera and ros_astra_launch to my workspace. [2] I have roscd astra-camera and created scripts/create_udev_rules (which I just copied from the scripts folder in ros_astra_camera) [3] I sudo chmod 777 /opt/ros/kinetic/share/astra_camera/scripts/create_udev_rules [4] I catkin_make I then test roslaunch astra_camera astra.launch as the instructions say. I'm getting this below:

SUMMARY
========

PARAMETERS
 * /camera/camera_nodelet_manager/num_worker_threads: 4
 * /camera/depth_rectify_depth/interpolation: 0
 * /camera/depth_registered_rectify_depth/interpolation: 0
 * /camera/driver/auto_exposure: True
 * /camera/driver/auto_white_balance: True
 * /camera/driver/bootorder: 0
 * /camera/driver/color_depth_synchronization: False
 * /camera/driver/depth_camera_info_url: 
 * /camera/driver/depth_frame_id: camera_depth_opti...
 * /camera/driver/depth_registration: True
 * /camera/driver/device_id: #1
 * /camera/driver/devnums: 1
 * /camera/driver/rgb_camera_info_url: 
 * /camera/driver/rgb_frame_id: camera_rgb_optica...
 * /rosdistro: kinetic
 * /rosversion: 1.12.17

NODES
  /camera/
    camera_nodelet_manager (nodelet/nodelet)
    depth_metric (nodelet/nodelet)
    depth_metric_rect (nodelet/nodelet)
    depth_points (nodelet/nodelet)
    depth_rectify_depth (nodelet/nodelet)
    depth_registered_hw_metric_rect (nodelet/nodelet)
    depth_registered_metric (nodelet/nodelet)
    depth_registered_rectify_depth (nodelet/nodelet)
    driver (nodelet/nodelet)
    points_xyzrgb_hw_registered (nodelet/nodelet)
    rgb_rectify_color (nodelet/nodelet)
  /
    camera_base_link (tf2_ros/static_transform_publisher)
    camera_base_link1 (tf2_ros/static_transform_publisher)
    camera_base_link2 (tf2_ros/static_transform_publisher)
    camera_base_link3 (tf2_ros/static_transform_publisher)

auto-starting new master
process[master]: started with pid [15030]
ROS_MASTER_URI=http://10.130.184.118:11311

setting /run_id to 2d55baf8-bd3c-11ec-8062-24418c3afd95
process[rosout-1]: started with pid [15043]
started core service [/rosout]
process[camera/camera_nodelet_manager-2]: started with pid [15056]
process[camera/driver-3]: started with pid [15061]
process[camera/rgb_rectify_color-4]: started with pid [15062]
process[camera/depth_rectify_depth-5]: started with pid [15072]
process[camera/depth_metric_rect-6]: started with pid [15081]
process[camera/depth_metric-7]: started with pid [15094]
process[camera/depth_points-8]: started with pid [15107]
process[camera/depth_registered_rectify_depth-9]: started with pid [15128]
[ INFO] [1650082670.581596395]: Initializing nodelet with 4 worker threads.
process[camera/points_xyzrgb_hw_registered-10]: started with pid [15155]
process[camera/depth_registered_hw_metric_rect-11]: started with pid [15175]
process[camera/depth_registered_metric-12]: started with pid [15187]
process[camera_base_link-13]: started with pid [15201]
process[camera_base_link1-14]: started with pid [15209]
process[camera_base_link2-15]: started with pid [15221]
process[camera_base_link3-16]: started with pid [15236]
[ INFO] [1650082670.713284173]: Device "2bc5/0403@1/24" found.
[ INFO] [1650082670.721275083]: No matching device found.... waiting for devices. Reason: astra_wrapper::AstraDevice::AstraDevice(const string&) @ /home/turtlebot/catkin_ws/src/ros_astra_camera/src/astra_device.cpp @ 79 : Device open failed
    Could not open "2bc5/0403@1/24": Access denied (insufficient permissions)!


[ INFO] [1650082673.726782188]: No matching device found.... waiting for devices. Reason: astra_wrapper::AstraDevice::AstraDevice(const string&) @ /home/turtlebot/catkin_ws/src/ros_astra_camera/src/astra_device.cpp @ 79 : Device open failed
    Could not open "2bc5/0403@1/24": Access denied (insufficient permissions)!


[ INFO] [1650082676.732613420]: No matching device found.... waiting for devices. Reason: astra_wrapper::AstraDevice::AstraDevice(const string&) @ /home/turtlebot/catkin_ws/src/ros_astra_camera/src/astra_device.cpp @ 79 : Device open failed
    Could not open "2bc5/0403@1/24": Access denied (insufficient permissions)!

How do I enable access?

Do I have to copy 56-orbec-usb.rules from ros_astra_camera in my workspace and place it in /opt/ros/kinetic/share/astra_camera?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-04-16 21:18:48 -0500

bribri123 gravatar image

updated 2022-04-16 21:23:32 -0500

unconnect the cammera and inside 56-orbbec-usb.rules in the package replace it with this (ignore line breaks)

SUBSYSTEM==“usb”, ATTR{idProduct}==“0403”, ATTR{idVendor}==“2bc5”, MODE:=“0666”, OWNER:=“root”, GROUP:=“video”
SUBSYSTEM==“usb”, ATTR{idProduct}==“0403”, ATTR{idVendor}==“2bc5”, MODE:=“0666”, OWNER:=“root”, GROUP:=“video”
SUBSYSTEM==“usb”, ATTR{idProduct}==“0403”, ATTR{idVendor}==“2bc5”, MODE:=“0666”, OWNER:=“root”, GROUP:=“video”
SUBSYSTEM==“usb”, ATTR{idProduct}==“0403”, ATTR{idVendor}==“2bc5”, MODE:=“0666”, OWNER:=“root”, GROUP:=“video”
SUBSYSTEM==“usb”, ATTR{idProduct}==“0403”, ATTR{idVendor}==“2bc5”, MODE:=“0666”, OWNER:=“root”, GROUP:=“video”

then use this command (do not plug in cammera yet)

sudo cp orbbec-usb.rules /etc/udev/rules.d/

reconect camera then type this other command

udevadm control --reload-rules

then try again

edit flag offensive delete link more

Comments

@bribri123 So I should use this in the ros-astra_camera package I have in my workspace?

distro gravatar image distro  ( 2022-04-16 21:21:31 -0500 )edit

@distro yes in the package

bribri123 gravatar image bribri123  ( 2022-04-17 10:58:26 -0500 )edit

@bribri123 I don't know where to input these commands, am I to cd catkin_ws/src/ros-astra-camera and then input these commands there? I tried this and I get cp: cannot stat 'orbbec-usb.rules': No such file or directory

distro gravatar image distro  ( 2022-04-17 19:09:10 -0500 )edit

(it is not a command) there is a file called 56-orbbec-usb.rules inside ros-astra-orbec package delete everything in the 56-orbec-usb.rules and replace with the formatted chunk of text above

bribri123 gravatar image bribri123  ( 2022-04-18 00:25:13 -0500 )edit

@bribri123 I did that, I'm talking about the commands you adviced I use: sudo cp orbbec-usb.rules /etc/udev/rules.d/ and udevadm control --reload-rules. when I use the first command I got this: cp: cannot stat 'orbbec-usb.rules': No such file or directory. What am I doing wrong, Is there a specific directorty I am to go in my terminal before I input these commands in the terminal. As in do I cd to somewhere and then type these commands?

distro gravatar image distro  ( 2022-04-18 11:12:58 -0500 )edit

@bribri123 its still unclear to me what I should do with these two commands

distro gravatar image distro  ( 2022-04-20 03:24:19 -0500 )edit

I think the file is called "56-orbbec-usb.rules", not "orbbec-usb.rules", use

sudo cp 56-orbbec-usb.rules /etc/udev/rules.d/

The first command copies the file to "/etc/udev/rules.d/", where the udev rules reside. The second command makes udev reload its rules so it knowns about our new rule. udev then makes your camera accessible once its plugged in.

Armin Wolf gravatar image Armin Wolf  ( 2022-04-20 05:06:08 -0500 )edit

@Armin Wolf@bribri123 it didnt work

distro gravatar image distro  ( 2022-04-20 20:28:15 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-04-15 23:36:01 -0500

Seen: 319 times

Last updated: Apr 16 '22