-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Pilz examples and update to ROS2 (#548) * Add bare-bones Pilz code examples * Fill in Pilz MTC example * Clean up MTC example * Fill in MoveGroup Interface example + more cleanup * Update docs * clang-format * Fix HTML targets * Update code links to use codedir * PR comments * Fix URL (cherry picked from commit 7498cc2) # Conflicts: # CMakeLists.txt * Fix conflicts from mergify bot --------- Co-authored-by: Sebastian Castro <4603398+sea-bass@users.noreply.github.com> Co-authored-by: Sebastian Castro <sebas.a.castro@gmail.com>
- Loading branch information
1 parent
e6041e7
commit e9c7525
Showing
7 changed files
with
635 additions
and
72 deletions.
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
19 changes: 19 additions & 0 deletions
19
doc/examples/pilz_industrial_motion_planner/CMakeLists.txt
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
add_executable(pilz_move_group src/pilz_move_group.cpp) | ||
target_include_directories(pilz_move_group PUBLIC include) | ||
ament_target_dependencies(pilz_move_group ${THIS_PACKAGE_INCLUDE_DEPENDS}) | ||
|
||
add_executable(pilz_mtc src/pilz_mtc.cpp) | ||
target_include_directories(pilz_mtc PUBLIC include) | ||
ament_target_dependencies(pilz_mtc ${THIS_PACKAGE_INCLUDE_DEPENDS}) | ||
|
||
install( | ||
TARGETS | ||
pilz_move_group | ||
pilz_mtc | ||
DESTINATION | ||
lib/${PROJECT_NAME} | ||
) | ||
|
||
install(DIRECTORY launch | ||
DESTINATION share/${PROJECT_NAME} | ||
) |
19 changes: 19 additions & 0 deletions
19
doc/examples/pilz_industrial_motion_planner/launch/pilz_mtc.launch.py
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
from moveit_configs_utils import MoveItConfigsBuilder | ||
|
||
|
||
def generate_launch_description(): | ||
moveit_config = MoveItConfigsBuilder("moveit_resources_panda").to_dict() | ||
|
||
# Pilz + MTC Demo node | ||
pilz_mtc_demo = Node( | ||
package="moveit2_tutorials", | ||
executable="pilz_mtc", | ||
output="screen", | ||
parameters=[ | ||
moveit_config, | ||
], | ||
) | ||
|
||
return LaunchDescription([pilz_mtc_demo]) |
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
Binary file modified
BIN
+33.4 KB
(120%)
doc/examples/pilz_industrial_motion_planner/rviz_planner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.