Skip to content

Commit 413b62b

Browse files
committed
Fix a few issues
1 parent 7ce8ebc commit 413b62b

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

src/factory_sim/objectives/pick_up_tool_from_holder.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
ID="AttachTool"
6868
parent_link_name="tool0"
6969
tool_name="{tool_name}"
70-
allowed_collision_links="link_6"
70+
allowed_collision_links="link_5;link_6"
7171
/>
7272
<SubTree ID="Retract" _collapsed="true" distance="0.35" />
7373
</Control>
@@ -78,8 +78,8 @@
7878
<Metadata subcategory="Grasping" />
7979
<Metadata runnable="false" />
8080
</MetadataFields>
81-
<inout_port name="tool_name" default="" />
8281
<inout_port name="tool_attach_site" default="" />
82+
<inout_port name="tool_name" default="" />
8383
</SubTree>
8484
</TreeNodesModel>
8585
</root>

src/factory_sim/objectives/place_tool_in_tool_holder.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@
2020
trajectory_monitoring="false"
2121
/>
2222
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
23-
<Action
24-
ID="SetupMTCIgnoreCollisionsBetweenObjects"
25-
allow_collision="true"
26-
task="{mtc_task}"
27-
object_names="{ignore_collisions_between_these_objects}"
28-
/>
23+
<Decorator
24+
ID="Precondition"
25+
else="SUCCESS"
26+
if="ignore_collisions_between_these_objects!=&quot;&quot;"
27+
>
28+
<Action
29+
ID="SetupMTCIgnoreCollisionsBetweenObjects"
30+
allow_collision="true"
31+
task="{mtc_task}"
32+
object_names="{ignore_collisions_between_these_objects}"
33+
/>
34+
</Decorator>
2935
<Action
3036
ID="SetupMTCPlanToPose"
3137
acceleration_scale_factor="0.5"

src/factory_sim/objectives/tool_attachment_example.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<Action ID="WaitForDuration" delay_duration="2" />
2323
<SubTree
2424
ID="Place Tool in Tool Holder"
25-
_collapsed="true"
26-
ignore_collisions_between_these_objects=""
25+
_collapsed="false"
26+
ignore_collisions_between_these_objects="link_5;link_6;suction_gripper"
2727
tool_name="suction_gripper"
2828
tool_return_site="suction_gripper_holder_site"
2929
/>

0 commit comments

Comments
 (0)