Slamtec / rplidar_ros

BSD 2-Clause "Simplified" License
497 stars 532 forks source link

Service stop_motor is not working with 2.0.0 #83

Open MichaelT64 opened 2 years ago

MichaelT64 commented 2 years ago

Hi, The service "stop_motor" is not working with release 2.0.0 for Noetic and at least A1. There is a message in the debug-log after calling the service and also the expected empty response but the motor is spinning further. Going back to version 1.7.0 it works again.

Michael

Lukewal99 commented 1 year ago

Just to agree, /stop_motor isn't working in 2.0.0 :)

pi@pi-ros-luke:~/edukit_bot_ws/src/rplidar_ros/src$ rosservice call /stop_motor
[DEBUG] [1688888391.894393248]: Stop motor

pi@pi-ros-luke:~/edukit_bot_ws/src/rplidar_ros/src$

Unfortunately v1.7.0 doesn't compile for me

make[2]: *** No rule to make target '/home/pi/edukit_bot_ws/src/rplidar_ros/sdk/src/sl_crc.cpp', needed by 'rplidar_ros/CMakeFiles/rplidarNode.dir/sdk/src/sl_crc.cpp.o'.  Stop.

Thanks very much

MaximBolduc commented 10 months ago

Hi,

We had the same problem with the latest ROS1 version.

We fixed it by adding the drv->stop() that they added in the ROS2 version.

See PR #140

Have a nice day

image