Skip to content
Open
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
30 changes: 19 additions & 11 deletions snp_motion_planning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

include_directories(
include
)

set(ROS2_DEPS
rclcpp
snp_msgs
Expand Down Expand Up @@ -70,18 +74,9 @@ target_link_libraries(
tesseract::tesseract_kinematics_kdl
yaml-cpp)

# Plugin Library
add_library(${PROJECT_NAME}_plugins SHARED src/plugins/kinematics/motoman_hc10_ikfast_plugin.cpp)
target_link_libraries(${PROJECT_NAME}_plugins PUBLIC ${LAPACK_LIBRARIES} tesseract::tesseract_common
tesseract::tesseract_kinematics_ikfast)
target_include_directories(${PROJECT_NAME}_plugins SYSTEM PUBLIC ${LAPACK_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS})

# Install the executable(s)
install(TARGETS ${PROJECT_NAME}_node DESTINATION lib/${PROJECT_NAME})

# Install the library(ies)
install(TARGETS ${PROJECT_NAME}_plugins ${PROJECT_NAME}_tasks EXPORT ${PROJECT_NAME}-targets DESTINATION lib)

# Install Python modules
ament_python_install_package(${PROJECT_NAME})
# Install Python executables
Expand All @@ -91,14 +86,27 @@ install(PROGRAMS
DESTINATION lib/${PROJECT_NAME}
)

install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)


if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_export_include_directories(include)
ament_export_dependencies(${ROS2_DEPS})
ament_export_targets(${PROJECT_NAME}-targets HAS_LIBRARY_TARGET)
ament_package()
ament_export_targets(${PROJECT_NAME}_tasks HAS_LIBRARY_TARGET)

install(DIRECTORY config launch DESTINATION share/${PROJECT_NAME}/)

install(
TARGETS ${PROJECT_NAME}_tasks
EXPORT ${PROJECT_NAME}_tasks
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include

)
ament_package()
8 changes: 4 additions & 4 deletions snp_motion_planning/src/planning_server.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "planner_profiles.hpp"
#include "plugins/tasks/constant_tcp_speed_time_parameterization_profile.h"
#include "plugins/tasks/kinematic_limits_check_profile.h"
#include "plugins/tasks/tcp_speed_limiter_profile.h"
#include "snp_motion_planning/planner_profiles.hpp"
#include "snp_motion_planning/plugins/tasks/constant_tcp_speed_time_parameterization_profile.h"
#include "snp_motion_planning/plugins/tasks/kinematic_limits_check_profile.h"
#include "snp_motion_planning/plugins/tasks/tcp_speed_limiter_profile.h"

#include <rclcpp/rclcpp.hpp>
#include <snp_msgs/srv/generate_motion_plan.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#include <tesseract_kinematics/core/kinematics_plugin_factory.h>
#include <tesseract_scene_graph/graph.h>
#include <tesseract_scene_graph/joint.h>
#include "motoman_hc10_ikfast_solver.hpp"
#include "snp_motion_planning/plugins/kinematics/motoman_hc10_ikfast_solver.hpp"
#include <vector>
TESSERACT_COMMON_IGNORE_WARNINGS_POP

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "constant_tcp_speed_time_parameterization_profile.h"
#include "snp_motion_planning/plugins/tasks/constant_tcp_speed_time_parameterization_profile.h"
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/nvp.hpp>
#include <typeindex>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "constant_tcp_speed_time_parameterization.hpp"
#include "constant_tcp_speed_time_parameterization_profile.h"
#include "snp_motion_planning/plugins/tasks/constant_tcp_speed_time_parameterization.hpp"
#include "snp_motion_planning/plugins/tasks/constant_tcp_speed_time_parameterization_profile.h"

#include <tesseract_task_composer/core/task_composer_plugin_factory_utils.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "kinematic_limits_check_profile.h"
#include "snp_motion_planning/plugins/tasks/kinematic_limits_check_profile.h"
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/nvp.hpp>
#include <typeindex>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "kinematic_limits_check_profile.h"
#include "snp_motion_planning/plugins/tasks/kinematic_limits_check_profile.h"

#include <tesseract_task_composer/core/task_composer_plugin_factory_utils.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <tesseract_task_composer/task_composer_task_plugin_factory.h>
#include <tesseract_task_composer/task_composer_graph.h>

#include "constant_tcp_speed_time_parameterization_task.hpp"
#include "snp_motion_planning/plugins/tasks/constant_tcp_speed_time_parameterization_task.hpp"

namespace snp_motion_planning
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tcp_speed_limiter_profile.h"
#include "snp_motion_planning/plugins/tasks/tcp_speed_limiter_profile.h"
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/nvp.hpp>
#include <typeindex>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "tcp_speed_limiter_profile.h"
#include "tcp_speed_limiter.hpp"
#include "snp_motion_planning/plugins/tasks/tcp_speed_limiter_profile.h"
#include "snp_motion_planning/plugins/tasks/tcp_speed_limiter.hpp"

#include <tesseract_task_composer/core/task_composer_plugin_factory_utils.h>

Expand Down