-
Notifications
You must be signed in to change notification settings - Fork 18
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
No imu topic published #5
Comments
You are right the container currently does not have permissions to access the IMU. On my Realsense D435i I had to add realsense-ros2-docker/docker/docker-compose.yml Lines 11 to 13 in f459a56
or you could clearly run the container as Which permissions a device needs can be determined by following my guide here or by comparing the output of When just testing I had then the same issue as IntelRealSense/realsense-ros#2542 where the $ ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true enable_gyro:=true enable_accel:=true unite_imu_method:=2 Let me know if this solves your problems. I will add a corresponding section to the read-me. |
Thanks for the info. Unfortunately adding device-cgroup-rules did not help but privileged helps but as you said it's not the recommended way. |
Could you send me the full output of |
Yes there is With realsense connected
Without realsense
|
So the character devices of the D456 are: crwxrwxrwx 1 root root 10, 117 Jan 31 21:55 HID-SENSOR-2000e1.9.auto
crw-rw-rw- 1 root plugdev 237, 1 Jan 31 21:55 iio:device1
crw-rw-rw- 1 root plugdev 237, 2 Jan 31 21:55 iio:device2
crw-rw-rw-+ 1 root plugdev 511, 2 Jan 31 21:55 media2
crw-rw-rw-+ 1 root plugdev 511, 3 Jan 31 21:55 media3
crw-rw-rw-+ 1 root plugdev 81, 4 Jan 31 21:55 video4
crw-rw-rw-+ 1 root plugdev 81, 5 Jan 31 21:55 video5
crw-rw-rw-+ 1 root plugdev 81, 6 Jan 31 21:55 video6
crw-rw-rw-+ 1 root plugdev 81, 7 Jan 31 21:55 video7
crw-rw-rw-+ 1 root plugdev 81, 8 Jan 31 21:55 video8
crw-rw-rw-+ 1 root plugdev 81, 9 Jan 31 21:55 video9 Similarly for my D435i they are: crw------- 1 root root 10, 122 Jan 31 00:26 HID-SENSOR-2000e1.7.auto
crw------- 1 root root 511, 0 Jan 31 00:26 iio:device0
crw------- 1 root root 511, 1 Jan 31 00:26 iio:device1
crw-rw----+ 1 root video 234, 0 Jan 31 00:26 media0
crw-rw----+ 1 root video 234, 1 Jan 31 00:26 media1
drwxr-xr-x 4 root root 80 Jan 31 00:26 v4l
crw-rw----+ 1 root video 81, 0 Jan 31 00:26 video0
crw-rw----+ 1 root video 81, 1 Jan 31 00:26 video1
crw-rw----+ 1 root video 81, 2 Jan 31 00:26 video2
crw-rw----+ 1 root video 81, 3 Jan 31 00:26 video3
crw-rw----+ 1 root video 81, 4 Jan 31 00:26 video4
crw-rw----+ 1 root video 81, 5 Jan 31 00:26 video5 Your initial error message complained about version: "3.9"
services:
realsense_ros2:
build:
context: ..
dockerfile: docker/Dockerfile
#target: librealsense
tty: true
volumes:
- /dev:/dev
device_cgroup_rules:
- 'c 10:* rmw'
- 'c 81:* rmw'
- 'c 189:* rmw'
- 'c 237:* rmw'
- 'c 511:* rmw' Are you using the very same image and docker-compose file as in my example where you are |
Sorry @ashBabu I then tried to mount So I assume in case you want to use the Realsense IMU sadly currently you will have to run your container as |
No worries and thank you for your time as well |
ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true enable_gyro:=true enable_accel:=true
Running the above straight away throws error. I would like to get the
/camera/imu
topic.The text was updated successfully, but these errors were encountered: