(self)
return state
Retrieves the state of the point mass
Retrieves the state of the point mass
Retrieves the state of the point mass
def get_state(self):
        """Retrieves the state of the point mass"""
        state = {JOINT_ANGLES: np.array([self.joint1.angle,
                                         self.joint2.angle]),
                 JOINT_VELOCITIES: np.array([self.joint1.speed,
                                             self.joint2.speed]),
                 END_EFFECTOR_POINTS: np.append(np.array(self.body2.position),[0])}

        return state
def get_state ( self ) : state = { JOINT_ANGLES : np . array ( [ self . joint1 . angle , self . joint2 . angle ] ) , JOINT_VELOCITIES : np . array ( [ self . joint1 . speed , self . joint2 . speed ] ) , END_EFFECTOR_POINTS : np . append ( np . array ( self . body2 . position ) , [ 0 ] ) } return state