Skip to content

Commit

Permalink
force collision checker ode in depth py examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Dec 17, 2019
1 parent fd3a5d8 commit 8e7dd25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/python/openraveYarpPluginLoader-rgbdsensor-noRGB.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
env=Environment()
env.SetViewer('qtcoin')

# Force CollisionChecker "ode" for Depth sensor
collisionChecker = RaveCreateCollisionChecker(env,'ode')
env.SetCollisionChecker(collisionChecker)

example = "default" # "default" or "ecro"

if example == "ecro":
Expand Down
6 changes: 6 additions & 0 deletions examples/python/openraveYarpPluginLoader-rgbdsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
raveLogError("Plugin not correctly loaded")

env=Environment()

# Force viewer "qtcoin" for RGB sensor
env.SetViewer('qtcoin')

# Force CollisionChecker "ode" for Depth sensor
collisionChecker = RaveCreateCollisionChecker(env,'ode')
env.SetCollisionChecker(collisionChecker)

example = "default" # "default" or "ecro"

if example == "ecro":
Expand Down

0 comments on commit 8e7dd25

Please sign in to comment.