Hello, I encountered this error, and lidar doesn’t work
rplidar | error: failed switching to “root”: operation not permitted
Hello, I encountered this error, and lidar doesn’t work
rplidar | error: failed switching to “root”: operation not permitted
Hello @yongyun_song,
Please write instructions that will help reproduce the error.
I was running this command:
docker compose up rplidar
And the docker setup is built-in setup in the home directory
privileged
permission.rplidar
service differs from following description: rplidar:
image: husarion/rplidar:humble
container_name: rplidar
<<: *common-config
devices:
- /dev/ttyRPLIDAR:/dev/ttyUSB0
command: >
ros2 launch sllidar_ros2 sllidar_launch.py
serial_baudrate:=${RPLIDAR_BAUDRATE:-256000}
If nothing helps, please send me the robot’s serial number along with the entire compose file.
I am having the same exact issue. The compose file does not contain the privileged
permission. The rplidar service matches the description that was provided. This is a new issue that was not occurring last week. I have confirmed that lidar is showing up on the devices section, so it does not appear to be a hardware issue. What should I do?
Hello @das.lab,
Please answer the following questions:
ros2 topic list
command does not return the /scan
topic, it is probably OK.I have 2 ROSbot 2.0 Pros. The serial numbers are 4b6e3f and 86084d. Both ROSbots are encountering the same exact issue.
I am trying to run rplidar through the docker container.
The docker error logs only show “error: failed switching to “root”: operation not permitted”.
Hello @das.lab,
I managed to determine the problem. Please execute the docker compose pull
command and start the docker compose up rplidar
container. Everything should be working now.
I would be grateful if you could confirm whether the lidar is already working, and thank you for pointing out this error.
Regards