🐕 Adds way to simulate the model

This commit is contained in:
Rune Harlyk
2024-03-04 23:41:48 +01:00
parent 5449658df7
commit f28d5e345b
11 changed files with 178 additions and 119 deletions
+1 -1
View File
@@ -13,6 +13,7 @@ https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/examples/
import pybullet as p
import pybullet_data as pd
import random
textureId = -1
@@ -24,7 +25,6 @@ updateHeightfield = False
heightfieldSource = useProgrammatic
numHeightfieldRows = 256
numHeightfieldColumns = 256
import random
random.seed(10)
+1 -1
View File
@@ -6,7 +6,7 @@ import time
import numpy as np
import pybullet_data
from gym import spaces
import spot
import entities.spot as spot
from gym.envs.registration import register
from simulation.GymEnvs.spot_gym_env import spotGymEnv
+1 -2
View File
@@ -20,13 +20,12 @@ import pybullet_data
from gym import spaces
from gym.utils import seeding
from pkg_resources import parse_version
import spot
import simulation.entities.spot as spot
import pybullet_utils.bullet_client as bullet_client
from gym.envs.registration import register
from simulation.GymEnvs.heightfield import HeightField
from OpenLoopSM.SpotOL import BezierStepper
from raspberry_pi.src.Kinematics import LieAlgebra as LA
from simulation.GymEnvs.spot_env_randomizer import SpotEnvRandomizer
NUM_SUBSTEPS = 5
NUM_MOTORS = 12