Skip to content

Commit

Permalink
push updates
Browse files Browse the repository at this point in the history
  • Loading branch information
budzianowski committed May 17, 2024
1 parent f9cc967 commit fc85f02
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
3 changes: 2 additions & 1 deletion sim/deploy/config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""This module contains the configuration dataclasses for the robot."""

import numpy as np
from dataclasses import dataclass, field

import numpy as np


# Default velocity command
@dataclass
Expand Down
5 changes: 2 additions & 3 deletions sim/deploy/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
import math
from abc import ABC, abstractmethod
from collections import deque

from pathlib import Path
from typing import Union

import numpy as np
import torch

import utils
from sim.deploy.config import cmd, RobotConfig

from sim.deploy.config import RobotConfig, cmd


class Policy(ABC):
Expand Down
10 changes: 4 additions & 6 deletions sim/deploy/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@
import mujoco
import mujoco.viewer
import numpy as np
from tqdm import tqdm
from sim.env import stompy_mjcf_path
from sim.stompy.joints import StompyFixed

from humanoid.envs import *
from humanoid.utils import task_registry
from isaacgym.torch_utils import *
from isaacgym import gymapi

from isaacgym.torch_utils import *
from policy import SimPolicy
from tqdm import tqdm

from sim.deploy.config import RobotConfig
from sim.env import stompy_mjcf_path
from sim.stompy.joints import StompyFixed


class Worlds(Enum):
Expand Down
6 changes: 3 additions & 3 deletions sim/scripts/create_mjcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"""Defines common types and functions for exporting MJCF files.
Run:
python sim.scripts/create_mjcf.py
python sim/scripts/create_mjcf.py
TODO:
Todo:
0. Add IMU right position - base
1. Add all geoms
2. Condim 3 and 4 and difference in results
Expand All @@ -18,8 +18,8 @@

from kol.formats import mjcf

from sim.stompy.joints import StompyFixed
from sim.env import stompy_mjcf_path
from sim.stompy.joints import StompyFixed

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit fc85f02

Please sign in to comment.