-
Notifications
You must be signed in to change notification settings - Fork 555
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
Trajectory processing, port to ROS 2 #63
Merged
mlautman
merged 9 commits into
moveit:master
from
AcutronicRobotics:trajectory-processing
Jun 12, 2019
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
648862a
Port trajectory_processing to ROS 2
vmayoral c512827
trajectory_processing, fix logging according to https://github.com/ro…
vmayoral 4fc9f93
Merge branch 'moveit2' into trajectory-processing
vmayoral 990ec9c
Fix trajectory_processing tests
ahcorde 3abb84f
moveit_core trajectory processing - library as SHARED
ahcorde ae8a43d
Fixing trajectory_processing tests
ahcorde cadbebd
Merge branch 'master' into trajectory-processing
ahcorde 89c29ce
moveit_core trajectory_processing - fixing time
ahcorde db5104d
clang and whitespace
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,58 @@ | ||
set(MOVEIT_LIB_NAME moveit_trajectory_processing) | ||
|
||
add_library(${MOVEIT_LIB_NAME} | ||
add_library(${MOVEIT_LIB_NAME} SHARED | ||
src/iterative_time_parameterization.cpp | ||
src/iterative_spline_parameterization.cpp | ||
src/trajectory_tools.cpp | ||
src/time_optimal_trajectory_generation.cpp | ||
) | ||
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
|
||
target_link_libraries(${MOVEIT_LIB_NAME} moveit_robot_state moveit_robot_trajectory ${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${urdfdom_headers_LIBRARIES} ${Boost_LIBRARIES}) | ||
add_dependencies(${MOVEIT_LIB_NAME} ${catkin_EXPORTED_TARGETS}) | ||
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
ament_target_dependencies(${MOVEIT_LIB_NAME} | ||
moveit_robot_state | ||
moveit_robot_trajectory | ||
rclcpp | ||
rmw_implementation | ||
urdf | ||
urdfdom | ||
urdfdom_headers | ||
visualization_msgs | ||
Boost) | ||
|
||
install(TARGETS ${MOVEIT_LIB_NAME} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib) | ||
|
||
install(DIRECTORY include/ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}) | ||
install(DIRECTORY include/ DESTINATION include) | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
if(BUILD_TESTING) | ||
find_package(moveit_resources REQUIRED) | ||
include_directories(${moveit_resources_INCLUDE_DIRS}) | ||
catkin_add_gtest(test_time_parameterization test/test_time_parameterization.cpp) | ||
target_link_libraries(test_time_parameterization moveit_test_utils ${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${urdfdom_headers_LIBRARIES} ${MOVEIT_LIB_NAME}) | ||
catkin_add_gtest(test_time_optimal_trajectory_generation test/test_time_optimal_trajectory_generation.cpp) | ||
target_link_libraries(test_time_optimal_trajectory_generation ${catkin_LIBRARIES} ${console_bridge_LIBRARIES} ${MOVEIT_LIB_NAME}) | ||
find_package(resource_retriever REQUIRED) | ||
|
||
if(WIN32) | ||
# TODO add windows paths | ||
# 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}/../robot_trajectory;${CMAKE_CURRENT_BINARY_DIR}/../utils") | ||
endif() | ||
|
||
ament_add_gtest(test_time_parameterization test/test_time_parameterization.cpp | ||
APPEND_LIBRARY_DIRS "${append_library_dirs}") | ||
|
||
target_include_directories(test_time_parameterization PUBLIC | ||
${geometric_shapes_INCLUDE_DIRS} | ||
) | ||
|
||
target_link_libraries(test_time_parameterization | ||
moveit_test_utils | ||
moveit_robot_trajectory | ||
moveit_trajectory_processing | ||
${urdfdom_LIBRARIES} | ||
${srdfdom_LIBRARIES} | ||
${urdfdom_headers_LIBRARIES} | ||
${MOVEIT_LIB_NAME} | ||
${geometric_shapes_LIBRARIES} | ||
resource_retriever::resource_retriever | ||
) | ||
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
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.
Hardcoding relative paths is a bad idea.
I would recommend that for every library in this package that is used else ware you set a
<lib_name>_lib_dir
environment variable that can then be used by the testsA good example is the
rcl_lib_dir
I have taken the time to show how it is used below:The example uses rcl_add_custom_gtest but it works just as well with ament_add_gtest
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.
If you don't mind I prefer to merge this. And then I will fix them all together. Because we have other merged that use this style. I can open an issue to avoid forgetting it.
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.
#91