Object is not colliding with each other and is static

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
AisyJeff
Posts: 4
Joined: Sat Apr 02, 2022 1:13 pm

Object is not colliding with each other and is static

Post by AisyJeff »

I had created an object in blender and imported it in pybullet, using urdf file I generated from blender. However, the object is static and is not colliding like a rigid body. It overlapped each other. I had tried several methods including flags, but it doesn`t work. Hope anyone could help me with this issue!

This is my loadURDF line:

Code: Select all

p.loadURDF("stack_5.urdf", globalScaling=5)
I also tried this:

Code: Select all

p.loadURDF("stack_5.urdf", globalScaling=5, useMaximalCoordinates=True, useFixedBase=False)
I can`t move the object with my mouse and it can`t collide with others too.

this is my stack_5.urdf file:

Code: Select all

<?xml version="1.0" ?>
<robot name="stack_5.urdf">
  <link name="baseLink">
    <contact>
      <lateral_friction value=".5"/>
    </contact>
    <inertial>
      <origin rpy="0 0 0" xyz="0 0 0"/>
       <mass value="1.5"/>
       <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="stack_5.obj" scale="1 1 1"/>
      </geometry>
       <material name="white">
        <color rgba="0.5 0.5 1 1"/>
      </material>
    </visual>
    <collision>
      <origin rpy="0 0 0" xyz="0 0 0"/>
      <geometry>
	 	<box size="0.15 0.05 0.03"/>
      </geometry>
    </collision>
  </link>
</robot>
Post Reply