Commit ec3fe062 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

Update to changes in gepetto-viewer loadObstacleModel API

parent 45768110
......@@ -109,7 +109,8 @@ class AbstractPathPlanner:
vf = ViewerFactory(self.ps)
self.afftool = AffordanceTool()
self.afftool.setAffordanceConfig('Support', [0.5, 0.03, 0.00005])
self.afftool.loadObstacleModel(env_package, env_name, "planning", vf, reduceSizes=reduce_sizes)
self.afftool.loadObstacleModel("package://"+env_package + "/urdf/" + env_name + ".urdf",
"planning", vf, reduceSizes=reduce_sizes)
try:
self.v = vf.createViewer(displayArrows=True)
self.pp = PathPlayer(self.v)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment