PyBullet Humanoid Flagrun Harder: disable collision on target red sphere
This commit is contained in:
21
examples/pybullet/gym/pybullet_data/sphere2red_nocol.urdf
Normal file
21
examples/pybullet/gym/pybullet_data/sphere2red_nocol.urdf
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="0.0" ?>
|
||||
<robot name="urdf_robot">
|
||||
<link name="baseLink">
|
||||
<inertial>
|
||||
<origin rpy="0 0 0" xyz="0 0 0"/>
|
||||
<mass value="0.0"/>
|
||||
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
|
||||
</inertial>
|
||||
<visual>
|
||||
<origin rpy="0 0 0" xyz="0 0 0"/>
|
||||
<geometry>
|
||||
<mesh filename="sphere_smooth.obj" scale="0.5 0.5 0.5"/>
|
||||
</geometry>
|
||||
<material name="red">
|
||||
<color rgba="1 0.2 0.2 1"/>
|
||||
<specular rgb="1 1 1"/>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</robot>
|
||||
|
||||
@@ -202,7 +202,7 @@ def get_cube(x, y, z):
|
||||
|
||||
|
||||
def get_sphere(x, y, z):
|
||||
body = p.loadURDF(os.path.join(pybullet_data.getDataPath(),"sphere2red.urdf"), x, y, z)
|
||||
body = p.loadURDF(os.path.join(pybullet_data.getDataPath(),"sphere2red_nocol.urdf"), x, y, z)
|
||||
part_name, _ = p.getBodyInfo(body, 0)
|
||||
part_name = part_name.decode("utf8")
|
||||
bodies = [body]
|
||||
|
||||
Reference in New Issue
Block a user