-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Hi all,
i am building ros rolling from source on ubuntu 18.
I bumped into this building error and i cannot tell if im using a wrong branch or what.
Currently i am on the "main" branch of nav2.
The error is the following:
In file included from /home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/lifecycle_service_client.hpp:24:0,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/src/lifecycle_service_client.cpp:15:
/home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/service_client.hpp: In instantiation of ‘nav2_util::ServiceClient<ServiceT>::ServiceClient(const string&, const SharedPtr&) [with ServiceT = lifecycle_msgs::srv::ChangeState; std::__cxx11::string = std::__cxx11::basic_string<char>; rclcpp::Node::SharedPtr = std::shared_ptr<rclcpp::Node>]’:
/home/pauli/ros2_rolling/src/navigation2/nav2_util/src/lifecycle_service_client.cpp:36:55: required from here
/home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/service_client.hpp:47:13: error: ‘typename rclcpp::Client<ServiceT>::SharedPtr rclcpp::Node::create_client(const string&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = lifecycle_msgs::srv::ChangeState; typename rclcpp::Client<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Client<lifecycle_msgs::srv::ChangeState> >; std::__cxx11::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>]’ is deprecated: use rclcpp::QoS instead of rmw_qos_profile_t [-Werror=deprecated-declarations]
client_ = node_->create_client<ServiceT>(
In file included from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/node.hpp:1594:0,
from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/executors.hpp:22,
from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/service_client.hpp:20,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/lifecycle_service_client.hpp:24,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/src/lifecycle_service_client.cpp:15:
/home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/node_impl.hpp:157:1: note: declared here
Node::create_client(
^~~~
In file included from /home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/lifecycle_service_client.hpp:24:0,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/src/lifecycle_service_client.cpp:15:
/home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/service_client.hpp: In instantiation of ‘nav2_util::ServiceClient<ServiceT>::ServiceClient(const string&, const SharedPtr&) [with ServiceT = lifecycle_msgs::srv::GetState; std::__cxx11::string = std::__cxx11::basic_string<char>; rclcpp::Node::SharedPtr = std::shared_ptr<rclcpp::Node>]’:
/home/pauli/ros2_rolling/src/navigation2/nav2_util/src/lifecycle_service_client.cpp:36:55: required from here
/home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/service_client.hpp:47:13: error: ‘typename rclcpp::Client<ServiceT>::SharedPtr rclcpp::Node::create_client(const string&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = lifecycle_msgs::srv::GetState; typename rclcpp::Client<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Client<lifecycle_msgs::srv::GetState> >; std::__cxx11::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>]’ is deprecated: use rclcpp::QoS instead of rmw_qos_profile_t [-Werror=deprecated-declarations]
client_ = node_->create_client<ServiceT>(
In file included from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/node.hpp:1594:0,
from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/executors.hpp:22,
from /home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/service_client.hpp:20,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/include/nav2_util/lifecycle_service_client.hpp:24,
from /home/pauli/ros2_rolling/src/navigation2/nav2_util/src/lifecycle_service_client.cpp:15:
/home/pauli/ros2_rolling/install/rclcpp/include/rclcpp/rclcpp/node_impl.hpp:157:1: note: declared here
Node::create_client(
Thanks
Reactions are currently unavailable