diff --git a/python/example_robot_data/robots_loader.py b/python/example_robot_data/robots_loader.py index c93cb22dce149773fac7755163d5f16a679d79de..81d71d6621d6e0daa9084db68aa0ce04927769a5 100644 --- a/python/example_robot_data/robots_loader.py +++ b/python/example_robot_data/robots_loader.py @@ -66,11 +66,11 @@ class RobotLoader(object): if self.srdf_filename: self.srdf_path = join(self.model_path, self.path, self.srdf_subpath, self.srdf_filename) - self.robot.q0 = readParamsFromSrdf(self.robot.model, self.srdf_path, self.verbose, - self.has_rotor_parameters, self.ref_posture) + self.robot.q0 = readParamsFromSrdf(self.robot.model, self.srdf_path, self.verbose, self.has_rotor_parameters, + self.ref_posture) else: self.srdf_path = None - self.robot.q0 = None + self.robot.q0 = pin.neutral(self.robot.model) if self.free_flyer: self.addFreeFlyerJointLimits()