Skip to content

Commit bcc652b

Browse files
committed
cleanup demo
1 parent 8ac9957 commit bcc652b

File tree

4 files changed

+30
-81
lines changed

4 files changed

+30
-81
lines changed

demo/CMakeLists.txt

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ find_package(catkin REQUIRED COMPONENTS
1111
rosparam_shortcuts
1212
)
1313

14-
catkin_package(
15-
)
14+
catkin_package()
1615

1716
include_directories(
1817
include
@@ -25,29 +24,15 @@ target_link_libraries(cartesian ${catkin_LIBRARIES})
2524
add_executable(modular src/modular.cpp)
2625
target_link_libraries(modular ${catkin_LIBRARIES})
2726

28-
add_library(${PROJECT_NAME}_lib src/pick_place_task.cpp)
29-
set_target_properties(${PROJECT_NAME}_lib PROPERTIES OUTPUT_NAME moveit_task_constructor_demo_pick_place)
30-
add_dependencies(${PROJECT_NAME}_lib ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
31-
32-
add_executable(${PROJECT_NAME}_demo src/moveit_task_constructor_demo.cpp)
33-
target_link_libraries(${PROJECT_NAME}_demo
34-
${PROJECT_NAME}_lib
35-
${catkin_LIBRARIES}
36-
)
37-
set_target_properties(${PROJECT_NAME}_demo PROPERTIES OUTPUT_NAME moveit_task_constructor_demo)
38-
add_dependencies(${PROJECT_NAME}_demo ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
27+
add_executable(pick_place_demo src/pick_place_demo.cpp src/pick_place_task.cpp)
28+
target_link_libraries(pick_place_demo ${catkin_LIBRARIES})
3929

40-
install(TARGETS ${PROJECT_NAME}_lib ${PROJECT_NAME}_demo
30+
install(TARGETS cartesian modular pick_place_demo
4131
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
4232
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
4333
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
4434
)
4535

46-
install(DIRECTORY include/${PROJECT_NAME}/
47-
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
48-
FILES_MATCHING PATTERN "*.h"
49-
)
50-
5136
install(DIRECTORY launch config
5237
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
5338
)

demo/config/mtc.rviz

Lines changed: 25 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,38 @@ Visualization Manager:
6262
Plane Cell Count: 10
6363
Reference Frame: <Fixed Frame>
6464
Value: true
65+
- Class: moveit_rviz_plugin/PlanningScene
66+
Enabled: true
67+
Move Group Namespace: ""
68+
Name: PlanningScene
69+
Planning Scene Topic: move_group/monitored_planning_scene
70+
Robot Description: robot_description
71+
Scene Geometry:
72+
Scene Alpha: 0.8999999761581421
73+
Scene Color: 50; 230; 50
74+
Scene Display Time: 0.20000000298023224
75+
Show Scene Geometry: true
76+
Voxel Coloring: Z-Axis
77+
Voxel Rendering: Occupied Voxels
78+
Scene Robot:
79+
Attached Body Color: 150; 50; 150
80+
Links:
81+
All Links Enabled: true
82+
Expand Joint Details: false
83+
Expand Link Details: false
84+
Expand Tree: false
85+
Link Tree Style: Links in Alphabetic Order
86+
Robot Alpha: 1
87+
Show Robot Collision: false
88+
Show Robot Visual: true
89+
Value: true
6590
- Class: moveit_task_constructor/Motion Planning Tasks
6691
Enabled: true
6792
Interrupt Display: false
6893
Loop Animation: false
6994
Markers:
7095
All at once?: false
7196
Value: true
72-
x +0.2: true
73-
y -0.3: true
7497
Name: Motion Planning Tasks
7598
Robot:
7699
Fixed Robot Color: 150; 50; 150
@@ -80,65 +103,6 @@ Visualization Manager:
80103
Expand Link Details: false
81104
Expand Tree: false
82105
Link Tree Style: Links in Alphabetic Order
83-
panda_hand:
84-
Alpha: 1
85-
Show Axes: false
86-
Show Trail: false
87-
Value: true
88-
panda_leftfinger:
89-
Alpha: 1
90-
Show Axes: false
91-
Show Trail: false
92-
Value: true
93-
panda_link0:
94-
Alpha: 1
95-
Show Axes: false
96-
Show Trail: false
97-
Value: true
98-
panda_link1:
99-
Alpha: 1
100-
Show Axes: false
101-
Show Trail: false
102-
Value: true
103-
panda_link2:
104-
Alpha: 1
105-
Show Axes: false
106-
Show Trail: false
107-
Value: true
108-
panda_link3:
109-
Alpha: 1
110-
Show Axes: false
111-
Show Trail: false
112-
Value: true
113-
panda_link4:
114-
Alpha: 1
115-
Show Axes: false
116-
Show Trail: false
117-
Value: true
118-
panda_link5:
119-
Alpha: 1
120-
Show Axes: false
121-
Show Trail: false
122-
Value: true
123-
panda_link6:
124-
Alpha: 1
125-
Show Axes: false
126-
Show Trail: false
127-
Value: true
128-
panda_link7:
129-
Alpha: 1
130-
Show Axes: false
131-
Show Trail: false
132-
Value: true
133-
panda_link8:
134-
Alpha: 1
135-
Show Axes: true
136-
Show Trail: false
137-
panda_rightfinger:
138-
Alpha: 1
139-
Show Axes: false
140-
Show Trail: false
141-
Value: true
142106
Robot Alpha: 1
143107
Show Robot Collision: false
144108
Show Robot Visual: true

demo/launch/pickplace.launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<launch>
33
<!-- Run MTC pick and place -->
4-
<node name="mtc_tutorial" pkg="moveit_task_constructor_demo" type="moveit_task_constructor_demo" output="screen">
4+
<node name="mtc_tutorial" pkg="moveit_task_constructor_demo" type="pick_place_demo" output="screen">
55
<param name="execute" value="true" />
66
<rosparam command="load" file="$(find moveit_task_constructor_demo)/config/panda_config.yaml" />
77
</node>
File renamed without changes.

0 commit comments

Comments
 (0)