mirror of
https://github.com/wassname/pyrobolearn.git
synced 2026-09-09 11:31:38 +08:00
fix bug when loading robots
This commit is contained in:
@@ -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