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

Port moveit_ros_warehouse #273

Merged
merged 31 commits into from Oct 21, 2020

Conversation

RoboticsYY
Copy link
Member

@RoboticsYY RoboticsYY commented Sep 2, 2020

Description

This PR intends to port moveit_ros_warehouse to ROS2.

  • Depends on warehouse_ros PR#48 and warehouse_ros_mongo PR#38.

  • Run tests:

    • ros2 launch run_move_group run_move_group.launch.py
    • On Context tab of motion planning rviz panel, click connect button to connect to the mongodb server.
    • Please try save robot states or planning scene to the database in their own rviz tabs.

Checklist

@RoboticsYY RoboticsYY force-pushed the pr-moveit_ros_warehouse branch 2 times, most recently from e1beb14 to cc982c0 Compare September 2, 2020 14:21
@codecov
Copy link

codecov bot commented Sep 2, 2020

Codecov Report

Merging #273 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #273   +/-   ##
=======================================
  Coverage   47.64%   47.64%           
=======================================
  Files         154      154           
  Lines       14844    14844           
=======================================
  Hits         7073     7073           
  Misses       7771     7771           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8b5137...aa4dd7d. Read the comment docs.

ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
TARGETS ${MOVEIT_LIB_NAME}
EXPORT ${MOVEIT_LIB_NAME}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on this page - https://index.ros.org/doc/ros2/Tutorials/Ament-CMake-Documentation -- I think you are supposed to use "export_${MOVEIT_LIB_NAME}"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the export prefix is necessary. This has been corrected. Thanks for pointing out!

ros::AsyncSpinner spinner(1);
spinner.start();
rclcpp::executors::StaticSingleThreadedExecutor executor;
executor.add_node(node);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so - just a note - this changes the threading behavior from ROS1 - there would be 2 threads in ROS1, not sure if this leads to any blocking/deadlock at runtime.

rclcpp::init(argc, argv);
rclcpp::NodeOptions node_options;
node_options.allow_undeclared_parameters(true);
node_options.automatically_declare_parameters_from_overrides(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long term, it would be good to move away from needing this - the introspection of parameters is very useful.

@henningkayser henningkayser changed the base branch from master to main September 4, 2020 12:38
@RoboticsYY RoboticsYY force-pushed the pr-moveit_ros_warehouse branch 4 times, most recently from a5090ba to 234131e Compare September 24, 2020 00:26
@RoboticsYY RoboticsYY force-pushed the pr-moveit_ros_warehouse branch 3 times, most recently from f928711 to 8491891 Compare October 14, 2020 13:25
@RoboticsYY RoboticsYY changed the title [WIP] Port moveit_ros_warehouse Port moveit_ros_warehouse Oct 14, 2020
@henningkayser
Copy link
Member

henningkayser commented Oct 15, 2020

@lilustga This adds a dependency to https://github.com/ros-planning/warehouse_ros/tree/ros2. Could you check if this works on Windows, or how we could fix this? Exporting moveit_common is probably not an option. We could temporarily comment warehouse features from Windows build to not break support.

moveit2.repos Outdated Show resolved Hide resolved
moveit_ros/warehouse/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Collaborator

@sjahr sjahr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test worked for me, thank you.

@RoboticsYY RoboticsYY force-pushed the pr-moveit_ros_warehouse branch 2 times, most recently from 1bd7905 to f7fb724 Compare October 21, 2020 09:35
@henningkayser henningkayser merged commit 7dba4db into ros-planning:main Oct 21, 2020
@RoboticsYY RoboticsYY deleted the pr-moveit_ros_warehouse branch November 11, 2020 02:06
MikeWrock pushed a commit to MikeWrock/moveit2 that referenced this pull request Aug 15, 2022
Co-authored-by: Tyler Weaver <squirrel428@protonmail.com>
Co-authored-by: Jack <jack.center@picknik.ai>
Co-authored-by: Cassidy Elliott <cassidy@picknik.ai>
Co-authored-by: Mike Lautman <mikeblautman@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

4 participants