Skip to content

Commit d111c2c

Browse files
committed
Squashed 'src/fanuc_sim/' changes from 0b1e054c..6bf7e238
6bf7e238 Merge pull request #1 from PickNikRobotics/subtree-sync 6c95bd1c Sync 6.5 to main (#37) 964e43fb Sync V6.5 to main (#29) baf81139 patching fanuc (#22) 6db5e61f Removes visualization pane changes in teleoperation ca45e9aa version bump c19efc19 formatting git-subtree-dir: src/fanuc_sim git-subtree-split: 6bf7e238341a69ffc88faca491423f88de4a31d9
1 parent 52f447d commit d111c2c

File tree

10 files changed

+99
-51
lines changed

10 files changed

+99
-51
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@ cmake_minimum_required(VERSION 3.22)
22
project(fanuc_sim)
33

44
find_package(ament_cmake REQUIRED)
5+
find_package(picknik_accessories REQUIRED)
56

7+
# Install all XML files in directory
8+
set(PICKNIK_ACCESSORIES_SHARE_DIR
9+
"${CMAKE_INSTALL_PREFIX}/../picknik_accessories/share/picknik_accessories/mujoco_assets/"
10+
)
11+
# Destination directory
12+
set(DEST_DIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/description/")
13+
14+
install(DIRECTORY "${PICKNIK_ACCESSORIES_SHARE_DIR}"
15+
DESTINATION "${DEST_DIR}"
16+
FILES_MATCHING PATTERN "*")
617
install(
718
DIRECTORY
819
config

description/scene.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
<asset>
88
<!-- Define textures and materials -->
9-
<texture name="wood" type="cube" file="meshes/wood.png" />
9+
<texture name="wood" type="cube" file="assets/wood.png" />
1010
<material name="wood" texture="wood" texrepeat="1 1" />
1111

1212
<!-- Define AprilTag textures -->
13-
<texture name="apriltag1" type="2d" file="meshes/tag36_11_00000.png" />
14-
<texture name="apriltag2" type="2d" file="meshes/tag36_11_00001.png" />
13+
<texture name="apriltag1" type="2d" file="assets/tag36_11_00000.png" />
14+
<texture name="apriltag2" type="2d" file="assets/tag36_11_00001.png" />
1515

1616
<!-- Define block materials with AprilTags -->
1717
<material
@@ -63,7 +63,7 @@
6363
/>
6464
</asset>
6565
<asset>
66-
<mesh name="cube" file="meshes/Cube.stl" />
66+
<mesh name="cube" file="assets/Cube.stl" />
6767
</asset>
6868

6969
<worldbody>
@@ -117,6 +117,8 @@
117117
resolution="640 480"
118118
euler="-0.9 0 3.1415"
119119
/>
120-
<include file="lrmate200id/lrmate200id.xml" />
120+
<body name="arm_mount">
121+
<include file="lrmate200id/lrmate200id.xml" />
122+
</body>
121123
</worldbody>
122124
</mujoco>

objectives/interpolate_to_joint_state.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
<TreeNodesModel>
3535
<SubTree ID="Interpolate to Joint State">
3636
<input_port name="target_joint_state" default="{target_joint_state}" />
37+
<MetadataFields>
38+
<Metadata subcategory="Motion - Execute" />
39+
</MetadataFields>
3740
</SubTree>
3841
</TreeNodesModel>
3942
</root>

objectives/move_to_joint_state.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
<TreeNodesModel>
3333
<SubTree ID="Move to Joint State">
3434
<input_port name="target_joint_state" default="{target_joint_state}" />
35+
<MetadataFields>
36+
<Metadata subcategory="Motion - Execute" />
37+
</MetadataFields>
3538
</SubTree>
3639
</TreeNodesModel>
3740
</root>

objectives/move_to_pose.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
<TreeNodesModel>
3737
<SubTree ID="Move to Pose">
3838
<input_port name="target_pose" default="{target_pose}" />
39+
<MetadataFields>
40+
<Metadata subcategory="Motion - Execute" />
41+
</MetadataFields>
3942
</SubTree>
4043
</TreeNodesModel>
4144
</root>

objectives/move_to_waypoint.xml

Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,55 @@
11
<root BTCPP_format="4" main_tree_to_execute="Move to Waypoint">
2-
<BehaviorTree ID="Move to Waypoint" _description="This Objective is used when moving to one of the saved waypoints in your site configuration" _subtreeOnly="true">
3-
<Control ID="Sequence" name="root">
4-
<Action ID="RetrieveWaypoint" waypoint_joint_state="{target_joint_state}" waypoint_name="{waypoint_name}" joint_group_name="{joint_group_name}"/>
5-
<Action ID="InitializeMTCTask" task_id="move_to_named_pose" controller_names="{controller_names}" task="{move_to_waypoint_task}"/>
6-
<Action ID="SetupMTCCurrentState" task="{move_to_waypoint_task}"/>
7-
<Action ID="SetupMTCMoveToJointState" joint_state="{target_joint_state}" name="SetupMTCMoveToJointState" planning_group_name="{joint_group_name}" planner_interface="{planner_interface}" constraints="{constraints}" task="{move_to_waypoint_task}"/>
8-
<Action ID="PlanMTCTask" solution="{move_to_waypoint_solution}" task="{move_to_waypoint_task}"/>
9-
<Action ID="BlockingExecuteMTCTask" solution="{move_to_waypoint_solution}"/>
10-
</Control>
11-
</BehaviorTree>
12-
<TreeNodesModel>
13-
<SubTree ID="Move to Waypoint">
14-
<input_port name="waypoint_name" default="Point A"/>
15-
<input_port name="joint_group_name" default="manipulator"/>
16-
<input_port name="planner_interface" default="moveit_default"/>
17-
<input_port name="controller_names" default="/joint_trajectory_controller"/>
18-
</SubTree>
19-
</TreeNodesModel>
20-
</root>
2+
<BehaviorTree
3+
ID="Move to Waypoint"
4+
_description="This Objective is used when moving to one of the saved waypoints in your site configuration"
5+
_subtreeOnly="true"
6+
>
7+
<Control ID="Sequence" name="root">
8+
<Action
9+
ID="RetrieveWaypoint"
10+
waypoint_joint_state="{target_joint_state}"
11+
waypoint_name="{waypoint_name}"
12+
joint_group_name="{joint_group_name}"
13+
/>
14+
<Action
15+
ID="InitializeMTCTask"
16+
task_id="move_to_named_pose"
17+
controller_names="{controller_names}"
18+
task="{move_to_waypoint_task}"
19+
/>
20+
<Action ID="SetupMTCCurrentState" task="{move_to_waypoint_task}" />
21+
<Action
22+
ID="SetupMTCMoveToJointState"
23+
joint_state="{target_joint_state}"
24+
name="SetupMTCMoveToJointState"
25+
planning_group_name="{joint_group_name}"
26+
planner_interface="{planner_interface}"
27+
constraints="{constraints}"
28+
task="{move_to_waypoint_task}"
29+
/>
30+
<Action
31+
ID="PlanMTCTask"
32+
solution="{move_to_waypoint_solution}"
33+
task="{move_to_waypoint_task}"
34+
/>
35+
<Action
36+
ID="BlockingExecuteMTCTask"
37+
solution="{move_to_waypoint_solution}"
38+
/>
39+
</Control>
40+
</BehaviorTree>
41+
<TreeNodesModel>
42+
<SubTree ID="Move to Waypoint">
43+
<input_port name="waypoint_name" default="Point A" />
44+
<input_port name="joint_group_name" default="manipulator" />
45+
<input_port name="planner_interface" default="moveit_default" />
46+
<input_port
47+
name="controller_names"
48+
default="/joint_trajectory_controller"
49+
/>
50+
<MetadataFields>
51+
<Metadata subcategory="Motion - Execute" />
52+
</MetadataFields>
53+
</SubTree>
54+
</TreeNodesModel>
55+
</root>

objectives/request_teleoperation.xml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
<!--Joint sliders interpolate to joint state-->
3030
<Decorator ID="ForceSuccess" _while="teleop_mode == 5">
3131
<Control ID="Sequence">
32-
<Action
33-
ID="SwitchUIPrimaryView"
34-
primary_view_name="Visualization"
35-
/>
3632
<Control ID="Fallback" name="root">
3733
<Control ID="Sequence">
3834
<Action
@@ -67,10 +63,6 @@
6763
<!--Interactive markers move to pose-->
6864
<Decorator ID="ForceSuccess" _while="teleop_mode == 4">
6965
<Control ID="Sequence">
70-
<Action
71-
ID="SwitchUIPrimaryView"
72-
primary_view_name="Visualization"
73-
/>
7466
<Control ID="Fallback" name="root">
7567
<Control ID="Sequence">
7668
<Action
@@ -105,10 +97,6 @@
10597
<!--Waypoint buttons move to joint state-->
10698
<Decorator ID="ForceSuccess" _while="teleop_mode == 3">
10799
<Control ID="Sequence">
108-
<Action
109-
ID="SwitchUIPrimaryView"
110-
primary_view_name="Visualization"
111-
/>
112100
<Control ID="Fallback" name="root">
113101
<Control ID="Sequence">
114102
<Action
@@ -142,20 +130,12 @@
142130
</Decorator>
143131
<!--Cartesian and joint jogging-->
144132
<Control ID="Sequence" _while="teleop_mode == 2">
145-
<Action
146-
ID="SwitchUIPrimaryView"
147-
primary_view_name="Visualization"
148-
/>
149133
<Action
150134
ID="TeleoperateTwist"
151135
controller_name="servo_controller"
152136
/>
153137
</Control>
154138
<Control ID="Sequence" _while="teleop_mode == 1">
155-
<Action
156-
ID="SwitchUIPrimaryView"
157-
primary_view_name="Visualization"
158-
/>
159139
<Action
160140
ID="TeleoperateJointJog"
161141
controller_name="servo_controller"

objectives/teleoperate.xml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
<root BTCPP_format="4" main_tree_to_execute="Teleoperate">
2-
<!--//////////-->
3-
<BehaviorTree ID="Teleoperate" _description="Handles the different variations of teleoperation from the web UI. Can be used standalone." _favorite="false" _hardcoded="false">
4-
<SubTree ID="Request Teleoperation" enable_user_interaction="false" user_interaction_prompt="" initial_teleop_mode="3"/>
5-
</BehaviorTree>
6-
</root>
2+
<!--//////////-->
3+
<BehaviorTree
4+
ID="Teleoperate"
5+
_description="Handles the different variations of teleoperation from the web UI. Can be used standalone."
6+
_favorite="false"
7+
_hardcoded="false"
8+
>
9+
<SubTree
10+
ID="Request Teleoperation"
11+
enable_user_interaction="false"
12+
user_interaction_prompt=""
13+
initial_teleop_mode="3"
14+
/>
15+
</BehaviorTree>
16+
</root>

package.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" ?>
22
<package format="3">
33
<name>fanuc_sim</name>
4-
<version>6.0.0</version>
4+
<version>6.5.0</version>
55

66
<description>Base configuration package for Picknik's Fanuc arms</description>
77

@@ -11,6 +11,7 @@
1111

1212
<buildtool_depend>ament_cmake</buildtool_depend>
1313

14+
<depend>picknik_accessories</depend>
1415
<exec_depend>admittance_controller</exec_depend>
1516
<exec_depend>kinematics_interface_kdl</exec_depend>
1617
<exec_depend>moveit_planners_stomp</exec_depend>

waypoints/waypoints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[]
1+
[]

0 commit comments

Comments
 (0)