def _get_obs()

in gym-compete/gym_compete/new_envs/agents/ant.py [0:0]


    def _get_obs(self):
        '''
        Return agent's observations
        '''
        my_pos = self.get_qpos()
        other_pos = self.get_other_qpos()
        my_vel = self.get_qvel()
        cfrc_ext = np.clip(self.get_cfrc_ext(), -1, 1)

        obs = np.concatenate(
            [my_pos.flat, my_vel.flat, cfrc_ext.flat,
             other_pos.flat]
        )
        return obs