skip to Main Content

I have successfully built the ydlidar sdk and had my X2 running with the SDK test files. I have downloaded the ydlidar_ros2_ws using git clone https://github.com/YDLIDAR/ydlidar_ros2.

When I try colcon build in the workspace I get lots of errors relating to rclcpp/node.hpp such as

no matching function for call to ‘rclcpp::Node::declare_parameter(const charge [15])’

There are too many to list. Why is this happening? Is there any way to fix it?

I was wondering if this version is for another flavour of ros2. If so is there a URL that will work with my software?

I tried looking for other versions of the ydlidar ros2 package but this seems to be the official one.

2

Answers


  1. I also face the same issue . Please someone help

    Login or Signup to reply.
  2. I found a solution.
    I’m using ros2 humble
    The error is solved by using humble branch of ydlidar_ros2_driver.
    I used this command for cloning

    git clone -b humble https://github.com/YDLIDAR/ydlidar_ros2_driver.git
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search