-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port kinematic_constraints to ROS2 #42
Merged
mlautman
merged 15 commits into
moveit:master
from
AcutronicRobotics:kinematic-constraints
Jun 25, 2019
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7cdb756
Port kinematic_constraints to ROS2
vmayoral 0f079c9
Merge branch 'moveit2' into kinematic-constraints
vmayoral 5ace7e8
kinematic-constraints, first steps towards unit tests
vmayoral 8d49463
Fixing kinematic constraints tests
ahcorde d70f888
kinematic_constraints adding library dependencies
ahcorde beb3bca
moveit_core kinematics_constraints - addressing some issues
ahcorde 61cdfba
Merge branch 'master' into kinematic-constraints
ahcorde 6b1dd61
moveit_core kinematics_constraints - logger_kinematic_constraints to …
ahcorde 57f271e
moveit_core kinematics_constraints - remove duplicated getMarkers
ahcorde c6aa8e6
moveit_core kinematics_constraints - fix whitespaces in CMakeLists.txt
ahcorde df09d3a
moveit_core kinematics_constraints - fix whitespaces in CMakeLists.txt
ahcorde da78630
moveit_core kinematic_constraints - Fix getMarkers header
ahcorde b3855c3
moveit_core kinematics constraints - converting boost to std
ahcorde 4ff5652
Merge branch 'master' into kinematic-constraints
ahcorde f4a7b2d
Remove not necessary stamp
anasarrak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,61 @@ | ||
set(MOVEIT_LIB_NAME moveit_kinematic_constraints) | ||
|
||
add_library(${MOVEIT_LIB_NAME} | ||
if(WIN32) | ||
# set(append_library_dirs "$<TARGET_FILE_DIR:${PROJECT_NAME}>;$<TARGET_FILE_DIR:${PROJECT_NAME}_TestPlugins1>") | ||
else() | ||
set(append_library_dirs "${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_BINARY_DIR}/../utils;${CMAKE_CURRENT_BINARY_DIR}/../robot_model;${CMAKE_CURRENT_BINARY_DIR}/../robot_state;${CMAKE_CURRENT_BINARY_DIR}/../collision_detection_fcl") | ||
endif() | ||
|
||
add_library(${MOVEIT_LIB_NAME} SHARED | ||
src/kinematic_constraint.cpp | ||
src/utils.cpp) | ||
src/utils.cpp | ||
) | ||
|
||
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
|
||
ament_target_dependencies(${MOVEIT_LIB_NAME} | ||
urdf | ||
urdfdom | ||
urdfdom_headers | ||
tf2_geometry_msgs | ||
visualization_msgs | ||
tf2_eigen | ||
) | ||
|
||
target_link_libraries(${MOVEIT_LIB_NAME} | ||
moveit_robot_model moveit_kinematics_base moveit_robot_state moveit_collision_detection_fcl moveit_utils | ||
${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${urdfdom_headers_LIBRARIES} ${Boost_LIBRARIES}) | ||
add_dependencies(${MOVEIT_LIB_NAME} ${catkin_EXPORTED_TARGETS}) | ||
moveit_collision_detection_fcl | ||
moveit_kinematics_base | ||
moveit_robot_state | ||
moveit_robot_model | ||
) | ||
|
||
install(TARGETS ${MOVEIT_LIB_NAME} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib | ||
) | ||
|
||
install(DIRECTORY include/ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}) | ||
install(DIRECTORY include/ DESTINATION include) | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
if(BUILD_TESTING) | ||
find_package(ament_cmake_gtest REQUIRED) | ||
find_package(moveit_resources REQUIRED) | ||
find_package(resource_retriever REQUIRED) | ||
|
||
include_directories(${moveit_resources_INCLUDE_DIRS}) | ||
|
||
catkin_add_gtest(test_constraints test/test_constraints.cpp) | ||
target_link_libraries(test_constraints moveit_test_utils ${MOVEIT_LIB_NAME}) | ||
ament_add_gtest(test_constraints test/test_constraints.cpp | ||
APPEND_LIBRARY_DIRS "${append_library_dirs}" | ||
) | ||
|
||
target_link_libraries(test_constraints | ||
moveit_kinematic_constraints | ||
moveit_collision_detection_fcl | ||
moveit_robot_model | ||
moveit_robot_state | ||
moveit_utils | ||
moveit_test_utils | ||
${geometric_shapes_LIBRARIES} | ||
resource_retriever::resource_retriever | ||
${MOVEIT_LIB_NAME} | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TODO with missing dependency. Was this removed because xmlrpc is not available? If so, it looks like it is used in the ros1_bridge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can actually use the rclcpp parameters to fix these kind of things, or at least, the way that I'm following.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@v4hn spent a lot of time on this feature. Perhaps you and he can collaborate on the best path for porting this. In the mean time, any time you comment out a feature, please add comments explaining why the feature is being removed and what steps would be necessary before re-enabling the feature