I've successfully install the SDK and the ros2_driver in my docker container.
However, I still cannot start my lidar probably due to a permission error.
Running sudo tri_test works, but not without sudo, which returns:
[YDLIDAR] Error, cannot bind to the specified [serial port:/dev/ttyUSB0] and [baudrate:230400]
The command ros2 launch ydlidar_ros2_driver ydlidar_launch_view.py returns this error:
$ sudo ros2 launch ydlidar_ros2_driver ydlidar_launch_view.py
sudo: ros2: command not found
and running the ./initenv.sh doesn't work in the docker container:
ydlidar_ros2_driver/startup$ ./initenv.sh
./initenv.sh: line 2: /etc/udev/rules.d/ydlidar.rules: Permission denied
./initenv.sh: line 4: /etc/udev/rules.d/ydlidar-V2.rules: Permission denied
./initenv.sh: line 6: /etc/udev/rules.d/ydlidar-2303.rules: Permission denied
udev: unrecognized service
udev: unrecognized service
ydlidar_ros2_driver/startup$ sudo ./initenv.sh
udev: unrecognized service
udev: unrecognized service
I've successfully install the SDK and the ros2_driver in my docker container. However, I still cannot start my lidar probably due to a permission error. Running
sudo tri_test
works, but not without sudo, which returns:The command
ros2 launch ydlidar_ros2_driver ydlidar_launch_view.py
returns this error:Unfortunantely, using
sudo
andros2
doesn'T work:and running the
./initenv.sh
doesn't work in the docker container: