Skip to content

Commit 878d137

Browse files
authored
patching fanuc (#22)
1 parent 632bc53 commit 878d137

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

src/fanuc_sim/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@ 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 "*")
17+
618
install(
719
DIRECTORY
820
config

src/fanuc_sim/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>

src/fanuc_sim/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

0 commit comments

Comments
 (0)