Skip to content

Commit f2aadb1

Browse files
erez-tomcopybara-github
authored andcommitted
Add visual geom to ALOHA table, tighten the smooth-abs tolerance.
PiperOrigin-RevId: 607448054 Change-Id: Ie631974aae77832973b572adfd8cacc4cf4d3c46
1 parent a19e7e3 commit f2aadb1

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

mjpc/tasks/bimanual/bimanual.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ void Bimanual::ResidualFn::Residual(const mjModel* model, const mjData* data,
4848
}
4949

5050
void mjpc::Bimanual::TransitionLocked(mjModel* model, mjData* data) {
51-
data->mocap_pos[0] = -0.4;
52-
data->mocap_pos[1] = -0.2;
53-
data->mocap_pos[2] = 0.3;
5451
}
5552

5653
} // namespace mjpc

mjpc/tasks/bimanual/task.xml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<numeric name="agent_sample_width" data="0.0025" />
1616
<numeric name="agent_policy_width" data="0.0035" />
1717
<numeric name="sampling_exploration" data="0.5" />
18-
<numeric name="sampling_trajectories" data="100"/>
18+
<numeric name="sampling_trajectories" data="120"/>
1919
<numeric name="sampling_spline_points" data="4" />
2020
<numeric name="gradient_spline_points" data="6" />
2121
</custom>
@@ -36,30 +36,31 @@
3636
<geom name="floor" pos="0 0 -0.75" size="0 0 0.05" type="plane" material="groundplane"/>
3737
<body name="table" pos="0 0 -0.75">
3838
<geom name="table" pos="0 0 0.6509" size="0.61 0.37 0.1" type="box" class="collision"/>
39+
<geom name="table_visual" pos="0 0 0.6509" size="0.61 0.37 0.1" type="box" rgba="0.4 0.4 0.4 1" conaffinity="0" contype="0"/>
3940
</body>
4041
<body mocap="true" name="box_goal_mocap">
41-
<geom group="5" size="0.02" rgba="1 0.4 0.4 1" conaffinity="0" contype="0"/>
42+
<geom group="2" size="0.02" rgba="1 0.4 0.4 1" conaffinity="0" contype="0"/>
4243
</body>
4344
<body name="box">
4445
<freejoint/>
45-
<geom name="box" type="box" size="0.025 0.025 0.025" priority="1" condim="6"
46+
<geom name="box" type="box" size="0.015 0.015 0.015" priority="1" condim="6"
4647
friction="1.5 .03 .003" rgba="0 1 0 1"/>
4748
</body>
4849
</worldbody>
4950
<keyframe>
5051
<key name="home" qpos=
5152
"0 -0.96 1.16 0 -0.3 0 0.002 0.002
5253
0 -0.96 1.16 0 -0.3 0 0.002 0.002
53-
0.1 0.2 0.3 1 0 0 0"
54-
ctrl="-0.1 0 0 0 0 0 0.01 0.1 0 0 0 0 0 0.01"/>
54+
-0.25 0.2 0.3 1 0 0 0"
55+
mpos="0.4 -0.25 0.3"
56+
act= "-0.1 0 0 0 0 0 0.03 0.1 0 0 0 0 0 0.03"
57+
ctrl="-0.1 0 0 0 0 0 0.03 0.1 0 0 0 0 0 0.03"/>
5558
</keyframe>
5659

5760
<sensor>
58-
<user name="Reach L" dim="3" user="2 0.1 0 5 0.01"/>
59-
<user name="Reach R" dim="3" user="2 0.1 0 5 0.01"/>
61+
<user name="Reach L" dim="3" user="2 0.1 0 .5 0.005"/>
62+
<user name="Reach R" dim="3" user="2 0.1 0 .5 0.005"/>
6063
<user name="Bring" dim="3" user="2 1 0 1 0.003"/>
61-
<!-- <user name="arm_table_contact" dim="2" user="2 0.5 0 1 0.01"/>
62-
<user name="arm_arm_contact" dim="1" user="2 0.5 0 1 0.01"/> -->
6364
<framepos name="left/gripper" objtype="site" objname="left/gripper"/>
6465
<framepos name="right/gripper" objtype="site" objname="right/gripper"/>
6566
<framepos name="box" objtype="body" objname="box"/>

0 commit comments

Comments
 (0)