pal-robotics / play_motion2

A tool to play and handle pre-recorded motions in ROS2
Apache License 2.0
18 stars 2 forks source link

Humble build fails #2

Open adamkrawczyk opened 1 week ago

adamkrawczyk commented 1 week ago

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 commented 1 week ago

After applying the #3 it builds fine