mirror of
https://github.com/wassname/pyrobolearn.git
synced 2026-10-29 13:30:12 +08:00
fix bug when loading robots
This commit is contained in:
1 parent
71f50a6ccc
commit
6679f54334
1 file changed
+6
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user