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

navigation2 source build error #1711

Closed
gokul-gokz opened this issue May 9, 2020 · 2 comments
Closed

navigation2 source build error #1711

gokul-gokz opened this issue May 9, 2020 · 2 comments

Comments

@gokul-gokz
Copy link
Contributor

gokul-gokz commented May 9, 2020

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04
  • Version or commit hash:
  • DDS implementation:

Steps to reproduce issue

Followed the quick installation steps given in navigation2:
mkdir ros2
cd ros2
wget https://raw.githubusercontent.com/ros-planning/navigation2/master/tools/initial_ros_setup.sh
chmod a+x initial_ros_setup.sh
./initial_ros_setup.sh

Error Message

--- stderr: nav2_behavior_tree                                                
In file included from /home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/plugins/action/reinitialize_global_localization_service.cpp:22:0:
/home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp: In member function ‘virtual BT::NodeStatus nav2_behavior_tree::BtServiceNode<ServiceT>::check_future(std::shared_future<typename ServiceT::Response::SharedPtr>)’:
/home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp:101:40: error: ‘using FutureReturnCode = enum class rclcpp::FutureReturnCode’ is deprecated: use rclcpp::FutureReturnCode instead [-Werror=deprecated-declarations]
     rclcpp::executor::FutureReturnCode rc;
                                        ^~
In file included from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/executor.hpp:34:0,
                 from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/executors/multi_threaded_executor.hpp:25,
                 from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/executors.hpp:21,
                 from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/rclcpp.hpp:146,
                 from /home/gokul/ros2/navigation2_ws/install/nav2_util/include/nav2_util/node_utils.hpp:19,
                 from /home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp:22,
                 from /home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/plugins/action/reinitialize_global_localization_service.cpp:22:
/home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/future_return_code.hpp:48:97: note: declared here
 using FutureReturnCode [[deprecated("use rclcpp::FutureReturnCode instead")]] = FutureReturnCode;
                                                                                                 ^
In file included from /home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/plugins/action/clear_costmap_service.cpp:22:0:
/home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp: In member function ‘virtual BT::NodeStatus nav2_behavior_tree::BtServiceNode<ServiceT>::check_future(std::shared_future<typename ServiceT::Response::SharedPtr>)’:
/home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp:101:40: error: ‘using FutureReturnCode = enum class rclcpp::FutureReturnCode’ is deprecated: use rclcpp::FutureReturnCode instead [-Werror=deprecated-declarations]
     rclcpp::executor::FutureReturnCode rc;
                                        ^~
In file included from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/executor.hpp:34:0,
                 from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/executors/multi_threaded_executor.hpp:25,
                 from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/executors.hpp:21,
                 from /home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/rclcpp.hpp:146,
                 from /home/gokul/ros2/navigation2_ws/install/nav2_util/include/nav2_util/node_utils.hpp:19,
                 from /home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp:22,
                 from /home/gokul/ros2/navigation2_ws/src/navigation2/nav2_behavior_tree/plugins/action/clear_costmap_service.cpp:22:
/home/gokul/ros2/ros2_ws/install/rclcpp/include/rclcpp/future_return_code.hpp:48:97: note: declared here
 using FutureReturnCode [[deprecated("use rclcpp::FutureReturnCode instead")]] = FutureReturnCode;
         

Things done so far

  1. Installation through binaries work but the source installation fails.
  2. Tried the manual installation steps as well but received the same error.
@shivaang12 shivaang12 self-assigned this May 9, 2020
@SteveMacenski
Copy link
Member

This PR resolves: #1702 but our CI for some reason hasn't picked it up yet when it was submitted a few days ago. Trying again now.

@shivaang12 shivaang12 removed their assignment May 9, 2020
@SteveMacenski
Copy link
Member

SteveMacenski commented May 9, 2020

Hang tight - what I recommend right now is to install Eloquent and use those binaries to develop. That will work fine for you until we sort this out.

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

3 participants