Slamtec / rplidar_ros

BSD 2-Clause "Simplified" License
485 stars 527 forks source link

Unable to launch rplidar_s2.launch #106

Closed AnOrdinaryUsser closed 1 year ago

AnOrdinaryUsser commented 1 year ago

Hi,

I am working now with s2 lidar but I can't launch any launcher because I get the following error:

Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://julius-amarillo:37977/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.13
 * /rplidarNode/angle_compensate: True
 * /rplidarNode/frame_id: laser
 * /rplidarNode/inverted: False
 * /rplidarNode/scan_frequency: 10.0
 * /rplidarNode/serial_baudrate: 1000000
 * /rplidarNode/serial_port: /dev/serial/by-pa...

NODES
  /
    rplidarNode (rplidar_ros/rplidarNode)

auto-starting new master
process[master]: started with pid [13631]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to b0912ea4-c955-11ed-a162-30de4b84c0a4
process[rosout-1]: started with pid [13644]
started core service [/rosout]
RLException: Unable to launch [rplidarNode-2].
If it is a script, you may be missing a '#!' declaration at the top.
The traceback for the exception was written to the log file
[rplidarNode-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit

I have compiled my package with catkin_make and made the sources, but I don't know why this could be happening.

AnOrdinaryUsser commented 1 year ago

Good morning again,

In case someone gets this error, it's probably due to a bad compilation of the package with catkin_make.

How did I fix this error? 1) I removed the rplidar_ros package. 2) I have removed the build folder from my ros workspace. 3) I cloned the rplidar_ros package back into my src folder 4) I recompiled the workspace with catkin_make