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

Build error in ROS2 rolling version with the master branch #39

Open
ywiyogo opened this issue Dec 25, 2023 · 2 comments
Open

Build error in ROS2 rolling version with the master branch #39

ywiyogo opened this issue Dec 25, 2023 · 2 comments

Comments

@ywiyogo
Copy link

ywiyogo commented Dec 25, 2023

I run in my dockerfile this command

RUN mkdir -p /home/${USERNAME}/ros2_ws/src && cd /home/${USERNAME}/ros2_ws/src \
  && git clone https://github.com/YDLIDAR/ydlidar_ros2_driver.git -b master\
  && cd .. && . /opt/ros/rolling/setup.bash \
  && rosdep update && rosdep install -y -r --from-paths src --ignore-src \
  && colcon build --symlink-install

and got this compiler error:

17.78 /home/ros/ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp: In function ‘int main(int, char**)’:
17.78 /home/ros/ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:44:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [5])’
17.78    44 |   node->declare_parameter("port");
17.78       |   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

Is the master branch compatible to the ROS2 rolling?

I can build the humble branch without any issue.

@jieunko
Copy link

jieunko commented Dec 28, 2023

There is a branch humble
Maybe you can try that branch too

@ywiyogo
Copy link
Author

ywiyogo commented Dec 29, 2023

@jieunko yes, as I wrote already, I can build the branch humble. But, for the master branch, which ROS version is it suitable for?

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

2 participants