Skip to content

Commit 231dd25

Browse files
committed
Added pedestal, for reference.
1 parent cf3df90 commit 231dd25

File tree

4 files changed

+61
-11
lines changed

4 files changed

+61
-11
lines changed

src/moveit_pro_franka_configs/franka_arm_sim/config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ hardware:
3434
# [Optional]
3535
urdf_params:
3636
- mujoco_model: "description/mujoco/scene.xml"
37-
- mujoco_viewer: true
37+
- mujoco_viewer: false
3838
simulated_hardware_launch_file:
3939
package: "moveit_studio_agent"
4040
path: "launch/blank.launch.py"

src/moveit_pro_franka_configs/franka_arm_sim/description/franka.urdf.xacro

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,45 @@
2626
xyz="0 0 0.9">
2727
</xacro:franka_robot>
2828

29+
<!-- Pedestal the robot stands on -->
30+
<link name="pedestal">
31+
<!-- simple mass/inertia for a solid cylinder -->
32+
<inertial>
33+
<mass value="30.0"/> <!-- adjust as needed -->
34+
<!-- Inertia for solid cylinder: Ixx=Iyy=(1/12)m(3r^2+h^2), Izz=(1/2)m r^2 -->
35+
<!-- For r=0.2 m, h=0.9 m, m=30 kg: Ixx=Iyy≈2.325, Izz≈0.6 -->
36+
<origin xyz="0 0 0.45"/> <!-- center of mass at half height -->
37+
<inertia ixx="2.325" ixy="0.0" ixz="0.0"
38+
iyy="2.325" iyz="0.0"
39+
izz="0.6"/>
40+
</inertial>
41+
42+
<visual>
43+
<!-- place the cylinder so its base sits at z=0 and top at z=0.9 -->
44+
<origin xyz="0 0 0.45"/>
45+
<geometry>
46+
<cylinder radius="0.2" length="0.9"/>
47+
</geometry>
48+
<material name="pedestal_grey">
49+
<color rgba="0.7 0.7 0.7 1.0"/>
50+
</material>
51+
</visual>
52+
53+
<collision>
54+
<origin xyz="0 0 0.45"/>
55+
<geometry>
56+
<cylinder radius="0.2" length="0.9"/>
57+
</geometry>
58+
</collision>
59+
</link>
60+
61+
<!-- Fix pedestal to the world at the origin -->
62+
<joint name="pedestal_to_world" type="fixed">
63+
<parent link="world"/>
64+
<child link="pedestal"/>
65+
<origin xyz="0 0 0" rpy="0 0 0"/>
66+
</joint>
67+
2968
<!-- This link aligns the axes of the grasp frame to our required convention for motion planning tasks. -->
3069
<link name="grasp_link" />
3170
<joint name="grasp_link_joint" type="fixed">

src/moveit_pro_franka_configs/franka_arm_sim/description/mujoco/scene.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@
6767
xyaxes="0.510 -0.860 0.000 0.666 0.395 0.633"
6868
/>
6969

70+
<!-- Cylindrical pedestal: radius=0.2, length=0.9 (size takes half-length=0.45) -->
71+
<body name="pedestal" pos="0 0 0">
72+
<!-- place geom so the cylinder stands from z=0 to z=0.9 -->
73+
<geom name="pedestal_geom"
74+
type="cylinder"
75+
size="0.2 0.45"
76+
pos="0 0 0.45"
77+
rgba="0.7 0.7 0.7 1"/>
78+
<!-- useful marker at the top of the pedestal -->
79+
<site name="pedestal_top" pos="0 0 0.9" size="0.01" type="sphere" rgba="0.1 0.8 0.1 1"/>
80+
</body>
81+
7082
<body name="desk" pos="0.8 0.1 0" euler="0 0 -1.5708">
7183
<body name="counters1" pos="0 0 0">
7284
<include file="assets/kitchen_assets/item_assets/counters_chain.xml" />
@@ -120,8 +132,7 @@
120132
fr3_joint5,
121133
fr3_joint6,
122134
fr3_joint7,
123-
fr3_finger1,
124-
fr3_finger2
135+
fr3_finger1 - We control only one finger.
125136
-->
126137
<key
127138
name="home"

src/moveit_pro_franka_configs/franka_arm_sim/waypoints/waypoints.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
- fr3_joint7
6161
- fr3_finger_joint1
6262
position:
63-
- -2.2161396085498604
64-
- 1.5466183464436773
65-
- -0.22145440706027172
66-
- -1.6205947051727179
67-
- -0.004699868288038443
68-
- 1.581359852803185
69-
- 0.7845073181465004
70-
- 0.034967833251422394
63+
- -2.2283963696816342
64+
- 1.563234326437979
65+
- -0.21066213082094074
66+
- -1.4035234551463138
67+
- -0.0034359985486580383
68+
- 1.6199226560931328
69+
- 0.7839630999178752
70+
- 0.035000000000000066
7171
velocity: []
7272
multi_dof_joint_state:
7373
header:

0 commit comments

Comments
 (0)