Commit b5fa49f1 authored by Joseph Mirabel's avatar Joseph Mirabel

[Python] Fix initialization of AbstractRobot

parent 93632943
......@@ -255,10 +255,9 @@ class AbstractRobot(ABC):
if not hasattr(self, 'dynamic'):
raise RuntimeError("Dynamic robot model must be initialized first")
if hasattr(self, 'device'):
raise RuntimeError("A device is already defined.")
self.device = RobotSimu(self.name + '_device')
if not hasattr(self, 'device') or self.device is None:
#raise RuntimeError("A device is already defined.")
self.device = RobotSimu(self.name + '_device')
self.device.resize(self.dynamic.getDimension())
"""
Robot timestep
......
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