personalrobotics / prpy

Python utilities used by the Personal Robotics Laboratory.
BSD 3-Clause "New" or "Revised" License
62 stars 19 forks source link

'Environment' object has no attribute 'Cloned' #283

Closed DavidB-CMU closed 8 years ago

DavidB-CMU commented 8 years ago

The grasp fuze bottle example in HERBpy is broken due to recent changes in prpy clone.py

Traceback (most recent call last): File "/home/USER/catkin_workspaces/herb_ws/src/herbpy/examples/graspFuzeBottle.py", line 87, in robot.right_arm.PushGrasp(fuze, push_required=False, preshape=grasp_vals) File "/home/USER/catkin_workspaces/herb_ws/src/prpy/src/prpy/base/manipulator.py", line 82, in wrapper_method return delegate_method(robot, obj, manip=self, _args, _kwargs) File "/home/USER/catkin_workspaces/herb_ws/src/herbpy/src/herbpy/action/grasping.py", line 50, in PushGrasp tsrlist=tsrlist, render=render,_kw_args) File "/home/USER/catkin_workspaces/herb_ws/src/herbpy/src/herbpy/action/grasping.py", line 126, in HerbGrasp *_kw_args) File "/home/USER/catkin_workspaces/herb_ws/src/prpy/src/prpy/base/manipulator.py", line 73, in wrapper_method return self._PlanWrapper(delegate_method, args, kwargs) File "/home/USER/catkin_workspaces/herb_ws/src/prpy/src/prpy/base/manipulator.py", line 165, in _PlanWrapper with Clone(robot.GetEnv()) as cloned_env: File "/home/USER/catkin_workspaces/herb_ws/src/prpy/src/prpy/clone.py", line 111, in init cloned_robot = self.clone_env.Cloned(robot) AttributeError: 'Environment' object has no attribute 'Cloned' [INFO] [rospy.core:core.py:390]:signal_shutdown: signal_shutdown [atexit]

psigen commented 8 years ago

Oops, @DavidB-CMU can you check if #284 addresses this?

mkoval commented 8 years ago

I merged #284. Try the latest master.

DavidB-CMU commented 8 years ago

Yes that fixed it.