Skip to content

Commit

Permalink
Fix pybullet_example.py after renderer changes (#746)
Browse files Browse the repository at this point in the history
* Attempt to fix test_notebook test

* Fix pybullet example

* Add the make tests

* Add justification for PYTHONHASHSEED back

* Add pykernel to the requirements
  • Loading branch information
Gamenot authored Apr 28, 2021
1 parent fafcbfc commit 623cdcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
extras_require={
"test": [
# The following are for testing
"ipykernel",
"pytest",
"pytest-benchmark",
"pytest-cov",
Expand Down
6 changes: 2 additions & 4 deletions tools/pybullet_vehicle_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def look_at(client, position=(0, 0, 0), top_down=True):
)


def run(base, client, vehicle, plane_body_id, sliders, n_steps=1e6):
def run(client, vehicle, plane_body_id, sliders, n_steps=1e6):
prev_friction_sum = None

controller_state = ActuatorDynamicControllerState()
Expand All @@ -53,8 +53,7 @@ def run(base, client, vehicle, plane_body_id, sliders, n_steps=1e6):
)

client.stepSimulation()
vehicle.sync_to_panda3d()
showbase.taskMgr.step()
vehicle.sync_to_renderer()

frictions_ = frictions(sliders)

Expand Down Expand Up @@ -145,7 +144,6 @@ def frictions(sliders):
)

run(
showbase,
client,
vehicle,
plane_body_id,
Expand Down

0 comments on commit 623cdcf

Please sign in to comment.