Skip to content

Commit

Permalink
Merge pull request #154 from cmower/fix-142
Browse files Browse the repository at this point in the history
Fix #142
  • Loading branch information
cmower authored Aug 11, 2023
2 parents 3e7608f + d9048af commit d844ec1
Show file tree
Hide file tree
Showing 30 changed files with 21,791 additions and 13 deletions.
9 changes: 7 additions & 2 deletions example/pybullet_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def reset(self, base_position, base_orientation=[0, 0, 0, 1]):
base_orientation,
)


class FixedBaseRobot:
def __init__(self, urdf_filename, base_position=[0.0] * 3):
self._id = p.loadURDF(
Expand Down Expand Up @@ -172,6 +171,11 @@ def __init__(self, base_position=[0.0] * 3):
self.urdf_filename = f
super().__init__(f, base_position=base_position)

class Nextage(FixedBaseRobot):
def __init__(self, base_position=[0.0, 0.0, 0.85]):
f = os.path.join(cwd, "robots", "nextage", "nextage.urdf")
self.urdf_file_name = f
super().__init__(f, base_position=base_position)

class KukaLWR(FixedBaseRobot):
def __init__(self, base_position=[0.0] * 3):
Expand Down Expand Up @@ -213,7 +217,8 @@ def main(gui=True):
pb = PyBullet(dt, gui=gui)
# robot = KukaLWR()
# robot = KukaLBR()
robot = R2D2([0, 0, 0.5])
# robot = R2D2([0, 0, 0.5])
robot = Nextage()

q0 = np.zeros(robot.ndof)
qF = np.random.uniform(-np.pi, np.pi, size=(robot.ndof,))
Expand Down
132 changes: 132 additions & 0 deletions example/robots/nextage/meshes/BASE_Link_mesh.dae

Large diffs are not rendered by default.

Loading

0 comments on commit d844ec1

Please sign in to comment.