Slamtec / rplidar_ros

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

Ros2-Humble Support missing #91

Closed aagrawa3-dev closed 1 year ago

aagrawa3-dev commented 2 years ago

Ros2-Humble is released in May22, I see no news on this repo for its support. Please comment about plans to support it..

lopenguin commented 2 years ago

Here's a repo with a couple of changes that allow the code to be compiled/work with ROS 2 Humble: https://github.com/lopenguin/rplidar_ros2 (see the ros2 branch).

Note that I also made a change to the start/stop motor service, combining the two into one service (toggle_motor). This can be removed by commenting out anything with toggle motor and uncommenting the start/stop motor services. See the commit for details.

mrmara commented 1 year ago

On ROS Humble I get the following error:

terminate called after throwing an instance of 'rclcpp::exceptions::UninitializedStaticallyTypedParameterException'
  what():  Statically typed parameter 'channel_type' must be initialized.
deyouslamtec commented 1 year ago

It has been fixed