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

Humble build fails #2

Open
adamkrawczyk opened this issue Jun 25, 2024 · 1 comment
Open

Humble build fails #2

adamkrawczyk opened this issue Jun 25, 2024 · 1 comment

Comments

@adamkrawczyk
Copy link

adamkrawczyk commented Jun 25, 2024

Hi, I have encountered an error when building the TiagoSimulation (followed the readme).

Humble
Ubuntu 22

The log:

In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/src/play_motion2/play_motion2.cpp:17:
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/include/play_motion2/motion_loader.hpp:23:
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:41:10: error: no template named 'function' in namespace 'std'
    std::function<
    ~~~~~^
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:45:3: error: unknown type name 'OnParametersSetCallbackType'
  OnParametersSetCallbackType callback;
  ^
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:188:70: error: no type named 'OnParametersSetCallbackType' in 'rclcpp::node_interfaces::OnSetParametersCallbackHandle'
  using OnParametersSetCallbackType = OnSetParametersCallbackHandle::OnParametersSetCallbackType;
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:197:34: error: unknown type name 'OnParametersSetCallbackType'
  add_on_set_parameters_callback(OnParametersSetCallbackType callback) = 0;
                                 ^
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/src/play_motion2/motion_loader.cpp:18:
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/include/play_motion2/motion_loader.hpp:23:
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:41:10: error: no template named 'function' in namespace 'std'
    std::function<
    ~~~~~^
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:45:3: error: unknown type name 'OnParametersSetCallbackType'
  OnParametersSetCallbackType callback;
  ^
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:188:70: error: no type named 'OnParametersSetCallbackType' in 'rclcpp::node_interfaces::OnSetParametersCallbackHandle'
  using OnParametersSetCallbackType = OnSetParametersCallbackHandle::OnParametersSetCallbackType;
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp:197:34: error: unknown type name 'OnParametersSetCallbackType'
  add_on_set_parameters_callback(OnParametersSetCallbackType callback) = 0;
                                 ^
4 errors generated.
gmake[2]: *** [CMakeFiles/play_motion2.dir/build.make:76: CMakeFiles/play_motion2.dir/src/play_motion2/motion_loader.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/src/play_motion2/play_motion2.cpp:18:
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/include/play_motion2/motion_planner.hpp:25:
In file included from /opt/ros/humble/include/moveit/move_group_interface/move_group_interface.h:41:
In file included from /opt/ros/humble/include/moveit/robot_state/robot_state.h:40:
In file included from /opt/ros/humble/include/moveit/robot_model/robot_model.h:45:
In file included from /opt/ros/humble/include/moveit/robot_model/joint_model_group.h:42:
In file included from /opt/ros/humble/include/moveit/kinematics_base/kinematics_base.h:43:
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:865:55: error: no type named 'OnParametersSetCallbackType' in 'rclcpp::node_interfaces::NodeParametersInterface'
    rclcpp::node_interfaces::NodeParametersInterface::OnParametersSetCallbackType;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:934:34: error: unknown type name 'OnParametersSetCallbackType'
  add_on_set_parameters_callback(OnParametersSetCallbackType callback);
                                 ^
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/src/play_motion2/play_motion2.cpp:18:
In file included from /home/adam/tiago_public_ws/src/play_motion2/play_motion2/include/play_motion2/motion_planner.hpp:29:
/opt/ros/humble/include/rclcpp_lifecycle/rclcpp_lifecycle/lifecycle_node.hpp:514:55: error: no type named 'OnParametersSetCallbackType' in 'rclcpp::node_interfaces::NodeParametersInterface'
    rclcpp::node_interfaces::NodeParametersInterface::OnParametersSetCallbackType;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/opt/ros/humble/include/rclcpp_lifecycle/rclcpp_lifecycle/lifecycle_node.hpp:524:38: error: no type named 'OnParametersSetCallbackType' in 'rclcpp_lifecycle::LifecycleNode'
    rclcpp_lifecycle::LifecycleNode::OnParametersSetCallbackType callback);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
8 errors generated.
@adamkrawczyk
Copy link
Author

After applying the #3 it builds fine

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