File tree Expand file tree Collapse file tree 7 files changed +1
-32
lines changed Expand file tree Collapse file tree 7 files changed +1
-32
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -26,16 +26,11 @@ set(CMAKE_REQUIRED_INCLUDES ${catkin_INCLUDE_DIRS})
2626set (CMAKE_REQUIRED_LIBRARIES ${catkin_LIBRARIES} )
2727set (CMAKE_REQUIRED_FLAGS -Wno-error)
2828include (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
3430add_library (${PROJECT_NAME}
3531 src/execute_task_solution_capability.cpp
3632)
3733add_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} )
3934target_include_directories (${PROJECT_NAME} SYSTEM PUBLIC ${catkin_INCLUDE_DIRS} )
4035target_link_libraries (${PROJECT_NAME} ${catkin_LIBRARIES} )
4136
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change 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-
128namespace mtc = moveit::task_constructor;
139
1410// type-trait functions for OrderedTest<T>
Original file line number Diff line number Diff line change 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-
139using namespace moveit ::task_constructor;
1410
1511using Pruning = TaskTestBase;
You can’t perform that action at this time.
0 commit comments