hello. I have recently acquired a rosbot-xl with intel d450 camare and rplidar s2.
I’m following the tutorials, but I can’t get rplidar to work.
I have cloned the github repository but when I run docker, the following appears:
husarion@mydevice:~/rplidar-docker/demo$ docker compose up
WARN[0000] Found orphan containers ([demo-realsense-1 demo-rviz2-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 2/0
Container demo-rviz-1 Created 0.0s
Container demo-rplidar-1 Created 0.0s
Attaching to demo-rplidar-1, demo-rviz-1
demo-rplidar-1 | Traceback (most recent call last):
demo-rplidar-1 | File “/opt/ros/humble/bin/ros2”, line 33, in
demo-rplidar-1 | sys.exit(load_entry_point(‘ros2cli==0.18.7’, ‘console_scripts’, ‘ros2’)())
demo-rplidar-1 | File “/opt/ros/humble/lib/python3.10/site-packages/ros2cli/cli.py”, line 89, in main
demo-rplidar-1 | rc = extension.main(parser=parser, args=args)
demo-rplidar-1 | File “/opt/ros/humble/lib/python3.10/site-packages/ros2launch/command/launch.py”, line 149, in main
demo-rplidar-1 | path = get_share_file_path_from_package(
demo-rplidar-1 | File “/opt/ros/humble/lib/python3.10/site-packages/ros2launch/api/api.py”, line 47, in get_share_file_path_from_package
demo-rplidar-1 | package_share_directory = get_package_share_directory(package_name)
demo-rplidar-1 | File “/opt/ros/humble/lib/python3.10/site-packages/ament_index_python/packages.py”, line 80, in get_package_share_directory
demo-rplidar-1 | path = os.path.join(get_package_prefix(package_name), ‘share’, package_name)
demo-rplidar-1 | File “/opt/ros/humble/lib/python3.10/site-packages/ament_index_python/packages.py”, line 55, in get_package_prefix
demo-rplidar-1 | raise ValueError(
demo-rplidar-1 | ValueError: ‘/husarion_utils/rplidar.launch.py’ is not a valid package name
demo-rviz-1 | [INFO] [launch]: All log files can be found below /root/.ros/log/2024-03-31-17-17-15-534756-mydevice-1
demo-rviz-1 | [INFO] [launch]: Default logging verbosity is set to INFO
demo-rplidar-1 exited with code 1
demo-rviz-1 | [INFO] [rviz2-1]: process started with pid [67]
demo-rviz-1 | [rviz2-1] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
demo-rviz-1 | [rviz2-1] qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 189, resource id: 0, major code: 140 (Unknown), minor code: 20
demo-rviz-1 | [ERROR] [rviz2-1]: process has died [pid 67, exit code -11, cmd ‘/opt/ros/humble/lib/rviz2/rviz2 -d /root/.rviz2/modified_default.rviz --ros-args -r __node:=rviz2 -r __ns:=/’].
demo-rviz-1 exited with code 0
husarion@mydevice:~/rplidar-docker/demo$
If you could help me I would appreciate it.