fix bug when loading robots

This commit is contained in:
Brian Delhaisse
2019-07-15 17:56:39 +02:00
parent 71f50a6ccc
commit 6679f54334
+6 -6
View File
@@ -115,6 +115,12 @@ class Robot(ControllableBody):
# print("FORWARD VECTOR: {}".format(self.base_forward_vector))
self.com = None # center of mass
# State of the robot
self._prev_state = {}
self._state = {}
self._prev_jacobian = {}
self._jacobian = {}
# set useful variables
self.joints = [] # non-fixed joint/link indices in the simulator
self.joint_names = {} # joint name to id in the simulator
@@ -160,12 +166,6 @@ class Robot(ControllableBody):
# Gains
self.kp, self.kd = None, None
# State of the robot
self._prev_state = {}
self._state = {}
self._prev_jacobian = {}
self._jacobian = {}
# sensors and actuators
self.sensors = [] # list of sensors
self.actuators = [] # list of actuators