Skip to content
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

SL_RESULT_OPERATION_TIMEOUT! s2e lidar #24

Open
tugbakara opened this issue May 30, 2023 · 2 comments
Open

SL_RESULT_OPERATION_TIMEOUT! s2e lidar #24

tugbakara opened this issue May 30, 2023 · 2 comments

Comments

@tugbakara
Copy link

Hey, I am using this package with s2e lidar but I got this error while starting the launch:


$ ros2 launch sllidar_ros2 sllidar_s2e_launch.py
[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2023-05-30-16-45-39-485600-robot2-6754
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [sllidar_node-1]: process started with pid [6756]
[sllidar_node-1] [INFO] [1685454339.815974183] [sllidar_node]: SLLidar running on ROS2 package SLLidar.ROS2 SDK Version:1.0.1, SLLIDAR SDK Version:2.0.0
[sllidar_node-1] [ERROR] [1685454343.863196303] [sllidar_node]: Error, operation time out. SL_RESULT_OPERATION_TIMEOUT! 
[ERROR] [sllidar_node-1]: process has died [pid 6756, exit code 255, cmd '/home/ubuntu/Robot_Project/husorion_ws/install/sllidar_ros2/lib/sllidar_ros2/sllidar_node --ros-args -r __node:=sllidar_node --params-file /tmp/launch_params_5dcjgxza'].
@sardanian
Copy link

I am having this same issue. Has this been resolved or does anyone have a solution to this?

@JetForMe
Copy link

JetForMe commented Oct 18, 2023

I get this too, using the latest code, with a similar command. The viewer is displayed, but the RPLidar S3 does not start spinning or collecting data.

~/ros2_ws/src$ ros2 launch sllidar_ros2 view_sllidar_s3_launch.py serial_port:='/dev/ttyTSH0'
[INFO] [launch]: All log files can be found below /home/rmann/.ros/log/2023-10-18-00-33-04-349224-mouse-5752
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [sllidar_node-1]: process started with pid [5754]
[INFO] [rviz2-2]: process started with pid [5756]
[sllidar_node-1] [INFO] [1697614384.692106545] [sllidar_node]: SLLidar running on ROS2 package SLLidar.ROS2 SDK Version:1.0.1, SLLIDAR SDK Version:2.0.0
[sllidar_node-1] [ERROR] [1697614384.734661967] [sllidar_node]: Error, operation time out. SL_RESULT_OPERATION_TIMEOUT! 
[ERROR] [sllidar_node-1]: process has died [pid 5754, exit code 255, cmd '/home/rmann/ros2_ws/src/install/sllidar_ros2/lib/sllidar_ros2/sllidar_node --ros-args -r __node:=sllidar_node --params-file /tmp/launch_params_u5xsc0a2'].
[rviz2-2] [INFO] [1697614385.701906141] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-2] [INFO] [1697614385.702302534] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-2] [INFO] [1697614385.747318745] [rviz2]: Stereo is NOT SUPPORTED

If I ssh into the machine and invoke the same command, the RPLidar S3 does begin spinning, but of course the UI doesn’t show up.

The same thing happens if I use the sllidar_s3_launch.py launch file (which needed fixes to add the channel_type LaunchConfiguration): it runs if launched from ssh, but not from the console.

I was able to get something working by doing this (in my case, the RPLidar is connected to a Jetson Orin Nano on UART1, /dev/ttyTHS0, and I’m logging in from my Mac):

  1. On my Mac, ssh into the machine with the RPLidar connected, and execute:

    $ cd ~/ros2_ws/src
    $ ros2 launch sllidar_ros2 sllidar_s3_launch.py serial_port:='/dev/ttyTHS0'
  2. On the target (keyboard & display connected to Orin Nano):

    $ cd ~/ros2_ws/src
    $ ros2 run rviz2 rviz2 -d sllidar_ros2/rviz/sllidar_ros2.rviz

This sets the RPLidar scanning and displays the resulting data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants