Skip to content

nav2_utils build error  #3212

@muttistefano

Description

@muttistefano

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions