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

error for rclcpp::AnyServiceCallback #328

Closed
bird-sheep opened this issue May 27, 2024 · 0 comments
Closed

error for rclcpp::AnyServiceCallback #328

bird-sheep opened this issue May 27, 2024 · 0 comments

Comments

@bird-sheep
Copy link

I build the project for ros2 foxy and the error occured:

/opt/ros/foxy/include/rclcpp/create_service.hpp:43:3: error: no matching function for call to ‘rclcpp::AnyServiceCallback<std_srvs::srv::Trigger>

It shows require from FAST_LIO/src/laserMapping.cpp:945:181

the code is :

"""cpp
map_save_srv_ = this->create_service<std_srvs::srv::Trigger>("map_save", std::bind(&LaserMappingNode::map_save_callback, this, std::placeholders::_1, std::placeholders::_2));
"""

after the first error,the followings are:

67:8: note: template argument deduction/substitution failed:
/opt/ros/foxy/include/rclcpp/any_service_callback.hpp:65:17: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
65 | >::type * = nullptr

the picture of error is bottom:
image

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

1 participant