File size: 330 Bytes
dfeaf40
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import numpy as np

class RobotEnv:
    def __init__(self, num_dof=6):
        self.num_dof = num_dof

    def get_random_start_state(self):
        return np.random.uniform(-1, 1, self.num_dof)  # Random start state

    def get_random_goal_state(self):
        return np.random.uniform(-1, 1, self.num_dof)  # Random goal state