Skip to content

Commit 367153e

Browse files
committed
Drop Melodic support
- py_binding_tools is released into Noetic only - drop Python2 support - drop TYPED_TEST_CASE
1 parent 04a9593 commit 367153e

File tree

7 files changed

+1
-32
lines changed

7 files changed

+1
-32
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
env:
22-
- IMAGE: master-source
23-
TARGET_CMAKE_ARGS: >-
24-
-DCMAKE_BUILD_TYPE=Release
25-
-DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
2622
- IMAGE: noetic-source
2723
NAME: ccov
2824
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"

capabilities/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@ set(CMAKE_REQUIRED_INCLUDES ${catkin_INCLUDE_DIRS})
2626
set(CMAKE_REQUIRED_LIBRARIES ${catkin_LIBRARIES})
2727
set(CMAKE_REQUIRED_FLAGS -Wno-error)
2828
include(CheckCXXSymbolExists)
29-
check_cxx_symbol_exists(moveit::core::MoveItErrorCode::toString "moveit/utils/moveit_error_code.h" HAVE_MOVEIT_ERROR_CODE_TO_STRING)
30-
if(NOT HAVE_MOVEIT_ERROR_CODE_TO_STRING)
31-
set(HAVE_MOVEIT_ERROR_CODE_TO_STRING 0)
32-
endif()
3329

3430
add_library(${PROJECT_NAME}
3531
src/execute_task_solution_capability.cpp
3632
)
3733
add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS})
38-
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_MOVEIT_ERROR_CODE_TO_STRING=${HAVE_MOVEIT_ERROR_CODE_TO_STRING})
3934
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${catkin_INCLUDE_DIRS})
4035
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
4136

capabilities/src/execute_task_solution_capability.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,7 @@ void ExecuteTaskSolutionCapability::execCallback(
109109
result.error_code = context_->plan_execution_->executeAndMonitor(plan);
110110
}
111111

112-
#if HAVE_MOVEIT_ERROR_CODE_TO_STRING
113112
const std::string response = moveit::core::MoveItErrorCode::toString(result.error_code);
114-
#else
115-
const std::string response = context_->plan_execution_->getErrorCodeString(result.error_code);
116-
#endif
117-
118113
if (result.error_code.val == moveit_msgs::MoveItErrorCodes::SUCCESS)
119114
as_->setSucceeded(result, response);
120115
else if (result.error_code.val == moveit_msgs::MoveItErrorCodes::PREEMPTED)

core/python/bindings/src/properties.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,11 @@ boost::any PropertyConverterRegistry::fromPython(const py::object& po) {
129129

130130
if (PyBool_Check(o))
131131
return (o == Py_True);
132-
#if PY_MAJOR_VERSION >= 3
133132
if (PyLong_Check(o))
134133
return PyLong_AS_LONG(o);
135-
#else
136-
if (PyInt_Check(o))
137-
return PyInt_AS_LONG(o);
138-
#endif
139134
if (PyFloat_Check(o))
140135
return PyFloat_AS_DOUBLE(o);
141-
#if PY_MAJOR_VERSION >= 3
142136
if (PyUnicode_Check(o))
143-
#else
144-
if (PyString_Check(o))
145-
#endif
146137
return py::cast<std::string>(o);
147138

148139
const std::string& ros_msg_name = rosMsgName(o);

core/python/bindings/src/stages.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void export_stages(pybind11::module& m) {
114114
.def("addObject", &ModifyPlanningScene::addObject, R"(
115115
Add a CollisionObject_ to the planning scene
116116
117-
.. _CollisionObject: https://docs.ros.org/en/melodic/api/moveit_msgs/html/msg/CollisionObject.html
117+
.. _CollisionObject: https://docs.ros.org/en/noetic/api/moveit_msgs/html/msg/CollisionObject.html
118118
119119
)", "collision_object"_a)
120120
.def("removeObject", &ModifyPlanningScene::removeObject,

core/test/test_cost_queue.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include <gtest/gtest.h>
66
#include <gmock/gmock-matchers.h>
77

8-
#ifndef TYPED_TEST_SUITE
9-
#define TYPED_TEST_SUITE(SUITE, TYPES) TYPED_TEST_CASE(SUITE, TYPES)
10-
#endif
11-
128
namespace mtc = moveit::task_constructor;
139

1410
// type-trait functions for OrderedTest<T>

core/test/test_pruning.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
#include <list>
77
#include <memory>
88

9-
#ifndef TYPED_TEST_SUITE
10-
#define TYPED_TEST_SUITE(SUITE, TYPES) TYPED_TEST_CASE(SUITE, TYPES)
11-
#endif
12-
139
using namespace moveit::task_constructor;
1410

1511
using Pruning = TaskTestBase;

0 commit comments

Comments
 (0)