add a normalize in the setRotation axis/angle to be sure. Add more code from the DeepMimic project, training doesn't work yet.
13 lines
277 B
Python
13 lines
277 B
Python
from abc import ABC, abstractmethod
|
|
import numpy as np
|
|
from enum import Enum
|
|
|
|
class Env(ABC):
|
|
class Terminate(Enum):
|
|
Null = 0
|
|
Fail = 1
|
|
Succ = 2
|
|
|
|
def __init__(self, args, enable_draw):
|
|
self.enable_draw = enable_draw
|
|
return |