Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

#include <moveit/trajectory_processing/time_optimal_trajectory_generation.h>

#include <unordered_map>

namespace trajectory_processing
{
class IterativeTorqueLimitParameterization
Expand Down
15 changes: 13 additions & 2 deletions moveit_ros/planning_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_package(catkin REQUIRED COMPONENTS
rosconsole
)

find_package(PythonInterp REQUIRED)
find_package(PythonInterp ${CHEF_FORCE_PYTHON_VERSION} REQUIRED)
Copy link
Author

Choose a reason for hiding this comment

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

FORCE_PYTHON_VERSION isn't strictly necessary, but helps make it obvious when you need to wipe the build dir

find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED)

find_package(Boost REQUIRED)
Expand All @@ -46,8 +46,11 @@ find_package(Boost REQUIRED COMPONENTS
system
thread
)


find_package(Eigen3 REQUIRED)
find_package(eigenpy REQUIRED)
# TODO: probably need different eigenpy
Copy link
Author

Choose a reason for hiding this comment

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

This is done


set(THIS_PACKAGE_INCLUDE_DIRS
py_bindings_tools/include
Expand All @@ -58,13 +61,19 @@ set(THIS_PACKAGE_INCLUDE_DIRS
)

catkin_python_setup()
# Set boost_python_component if needed

if("${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}" EQUAL "37")
set(Boost_PYTHON_LIBRARY "/usr/local/lib/libboost_python3.so")
set(Boost_LIBRARIES "${Boost_PYTHON_LIBRARY}")
endif()
link_directories("/usr/local/lib")
catkin_package(
LIBRARIES
moveit_common_planning_interface_objects
moveit_planning_scene_interface
moveit_move_group_interface
moveit_py_bindings_tools
# moveit_py_bindings_tools_py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}
Copy link
Author

Choose a reason for hiding this comment

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

I can't figure out the proper syntax to export this, but we don't need to anyhow

moveit_cpp
INCLUDE_DIRS
${THIS_PACKAGE_INCLUDE_DIRS}
Expand All @@ -82,6 +91,8 @@ catkin_package(
EIGEN3
)

list(REMOVE_ITEM catkin_LIBRARIES /usr/lib/x86_64-linux-gnu/libpython2.7.so)

include_directories(${THIS_PACKAGE_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
set(MOVEIT_LIB_NAME moveit_py_bindings_tools)

add_library(${MOVEIT_LIB_NAME} src/roscpp_initializer.cpp)

set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES OUTPUT_NAME moveit_py_bindings_tools_py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.so )
Copy link
Author

Choose a reason for hiding this comment

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

If we remove the boost::python dev from this library, we likely don't need to rename it


install(TARGETS ${MOVEIT_LIB_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
Expand Down