Skip to content

Commit

Permalink
revert test changes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <paul.gesel@picknik.ai>
  • Loading branch information
pac48 committed Nov 5, 2024
1 parent 9b47cde commit 4eef9ee
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 322 deletions.
1 change: 1 addition & 0 deletions moveit_ros/move_group/src/move_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ int main(int argc, char** argv)
// Initialize MoveItCpp
const auto moveit_cpp = std::make_shared<moveit_cpp::MoveItCpp>(nh, moveit_cpp_options);
const auto planning_scene_monitor = moveit_cpp->getPlanningSceneMonitorNonConst();

if (auto ps = planning_scene_monitor->getPlanningScene())
{
if (nh->has_parameter("default_planning_scene"))
Expand Down
23 changes: 3 additions & 20 deletions moveit_ros/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,18 @@ cmake_minimum_required(VERSION 3.22)
project(moveit_ros_tests LANGUAGES CXX)

# Common cmake code applied to all moveit packages
find_package(ament_cmake_python REQUIRED)
find_package(moveit_common REQUIRED)
moveit_package()

if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
find_package(ament_cmake_ros REQUIRED)
find_package(moveit_ros_planning REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(ros_testing REQUIRED)

include_directories(include)
ament_add_gtest_executable(move_group_api_test src/move_group_api_test.cpp)
ament_target_dependencies(move_group_api_test rclcpp)
add_ros_test(launch/move_group_api.py TIMEOUT 30 ENV "ROS_DOMAIN_ID=2")

ament_add_gtest_executable(move_group_default_planning_scene_test
src/move_group_default_planning_scene_test.cpp)
ament_target_dependencies(move_group_default_planning_scene_test rclcpp
moveit_ros_planning)
# run default_planning_scene test isolated test to avoid interference
add_ros_test(launch/move_group_default_planning_scene.py TIMEOUT 30 ENV
"ROS_DOMAIN_ID=2")

# install Python helper script and test
ament_python_install_package(moveit_ros_tests)
install(DIRECTORY data DESTINATION share/${PROJECT_NAME})
install(TARGETS move_group_api_test move_group_default_planning_scene_test
RUNTIME DESTINATION lib/${PROJECT_NAME})
add_ros_test(launch/move_group_api.test.py TIMEOUT 30 ARGS
"test_binary_dir:=${CMAKE_CURRENT_BINARY_DIR}")
endif()

ament_package()
22 changes: 0 additions & 22 deletions moveit_ros/tests/data/scene.txt

This file was deleted.

56 changes: 0 additions & 56 deletions moveit_ros/tests/launch/move_group_api.py

This file was deleted.

58 changes: 0 additions & 58 deletions moveit_ros/tests/launch/move_group_default_planning_scene.py

This file was deleted.

Empty file.
92 changes: 0 additions & 92 deletions moveit_ros/tests/moveit_ros_tests/move_group_test_description.py

This file was deleted.

74 changes: 0 additions & 74 deletions moveit_ros/tests/src/move_group_default_planning_scene_test.cpp

This file was deleted.

0 comments on commit 4eef9ee

Please sign in to comment.