This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gymnasium as gym | |
import panda_gym | |
from time import sleep | |
# see https://panda-gym.readthedocs.io/en/latest/ for available environments | |
env = gym.make("PandaPush-v3", render_mode="human") | |
observation, info = env.reset() | |
def controller(observation_vector, achieved_goal, desired_goal): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import time | |
import keyboard | |
import pygame | |
videos = [["./CLIPS/1.mp4",28],['./CLIPS/2.mp4',691],['./CLIPS/3.mp4',236], ['./CLIPS/4.mp4',919], ['./CLIPS/5.mp4',390], ['./CLIPS/6.mp4',923]] | |
def play(vidnumber): | |
pygame.init() | |
pygame.joystick.init() |