Skip to content

Conversation

tylerjw
Copy link
Member

@tylerjw tylerjw commented Nov 8, 2021

Description

I've tested this fixing this error on galactic. It needs to be also tested on rolling:

--- stderr: moveit2_tutorials                                                                                             
/home/tyler/code/m2/ws_tutorial/src/moveit2_tutorials/doc/planning_scene_ros_api/src/planning_scene_ros_api_tutorial.cpp: In function ‘int main(int, char**)’:
/home/tyler/code/m2/ws_tutorial/src/moveit2_tutorials/doc/planning_scene_ros_api/src/planning_scene_ros_api_tutorial.cpp:164:77: error: ‘using SharedFuture = class std::shared_future<std::shared_ptr<moveit_msgs::srv::ApplyPlanningScene_Response_<std::allocator<void> > > >’ {aka ‘class std::shared_future<std::shared_ptr<moveit_msgs::srv::ApplyPlanningScene_Response_<std::allocator<void> > > >’} has no member named ‘future’
  164 |   response_future = planning_scene_diff_client->async_send_request(request).future.share();
      |                                                                             ^~~~~~
make[2]: *** [doc/planning_scene_ros_api/CMakeFiles/planning_scene_ros_api_tutorial.dir/build.make:63: doc/planning_scene_ros_api/CMakeFiles/planning_scene_ros_api_tutorial.dir/src/planning_scene_ros_api_tutorial.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:332: doc/planning_scene_ros_api/CMakeFiles/planning_scene_ros_api_tutorial.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed   <<< moveit2_tutorials [21.1s, exited with code 2]

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • While waiting for someone to review your request, please consider reviewing another open pull request to support the maintainers

@tylerjw tylerjw self-assigned this Nov 8, 2021
@tylerjw tylerjw added the backport-galactic This label signals Mergify to backport this PR to Galactic label Nov 8, 2021
@vatanaksoytezer
Copy link
Contributor

Any idea why CI didn't catch this @tylerjw ?

@tylerjw
Copy link
Member Author

tylerjw commented Nov 8, 2021

No idea. I didn't look into why CI didn't catch this but I did reproduce it locally.

@vatanaksoytezer
Copy link
Contributor

This also happened in the scheduled build of foxy 2 days ago: https://github.com/ros-planning/moveit2_tutorials/runs/4126809816?check_suite_focus=true. So needs to be backported to foxy.

@vatanaksoytezer vatanaksoytezer added the backport-foxy This label signals Mergify to backport this PR to Foxy label Nov 8, 2021
@vatanaksoytezer
Copy link
Contributor

Seems foxy and galactic is broken, rolling is fine with this included or not. I say we merge this in all distros.

@tylerjw
Copy link
Member Author

tylerjw commented Nov 8, 2021

I tested this on rolling too.

@vatanaksoytezer vatanaksoytezer merged commit 9710af8 into moveit:main Nov 8, 2021
mergify bot pushed a commit that referenced this pull request Nov 8, 2021
(cherry picked from commit 9710af8)
mergify bot pushed a commit that referenced this pull request Nov 8, 2021
(cherry picked from commit 9710af8)
@tylerjw tylerjw deleted the fix_response_future branch November 8, 2021 19:06
tylerjw added a commit that referenced this pull request Nov 10, 2021
sjahr added a commit to sjahr/moveit2_tutorials that referenced this pull request Apr 7, 2022
Fixes: "warning: ‘rclcpp::Client<ServiceT>::FutureAndRequestId::operator rclcpp::Client<ServiceT>::SharedFuture() [with ServiceT = moveit_msgs::srv::ApplyPlanningScene; rclcpp::Client<ServiceT>::SharedFuture = std::shared_future<std::shared_ptr<moveit_msgs::srv::ApplyPlanningScene_Response_<std::allocator<void> > > >; typename ServiceT::Response::SharedPtr = std::shared_ptr<moveit_msgs::srv::ApplyPlanningScene_Response_<std::allocator<void> > >]’ is deprecated: FutureAndRequestId: use .future.share() instead of an implicit conversion [-Wdeprecated-declarations]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-foxy This label signals Mergify to backport this PR to Foxy backport-galactic This label signals Mergify to backport this PR to Galactic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants