Commit 1464d907 authored by Mehdi Benallegue's avatar Mehdi Benallegue
Browse files

Make error message more explicit.

parent fb607c4c
......@@ -102,7 +102,7 @@ class Hrp2(AbstractHumanoidRobot):
self.dimension = self.dynamic.getDimension()
if self.dimension != len(self.halfSitting):
raise RuntimeError("invalid half-sitting pose")
raise RuntimeError("Dimension of half-sitting: {0} differs from dimension of robot: {1}".format (len(self.halfSitting), self.dimension))
self.initializeRobot()
__all__ = [Hrp2]
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