Robotics StackExchange | Archived questions

cannot enable access on Orbecc Astra Camera

I was following the instructions for orbec astra pro here. I have [1] git cloned both rosastracamera and rosastralaunch to my workspace. [2] I have roscd astra-camera and created scripts/createudevrules (which I just copied from the scripts folder in rosastracamera) [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?

Asked by distro on 2022-04-15 23:36:01 UTC

Comments

Answers

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

Asked by bribri123 on 2022-04-16 21:18:48 UTC

Comments

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

Asked by distro on 2022-04-16 21:21:31 UTC

@distro yes in the package

Asked by bribri123 on 2022-04-17 10:58:26 UTC

@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

Asked by distro on 2022-04-17 19:09:10 UTC

(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

Asked by bribri123 on 2022-04-18 00:25:13 UTC

@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?

Asked by distro on 2022-04-18 11:12:58 UTC

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

Asked by distro on 2022-04-20 03:24:19 UTC

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.

Asked by Armin Wolf on 2022-04-20 05:06:08 UTC

@Armin Wolf @bribri123 it didnt work

Asked by distro on 2022-04-20 20:28:15 UTC