Class that is used to evaluate an arm.
More...
|
| None | __init__ (self, str env_path, bool use_graphics=True, int sample_size=100) |
| |
| Tuple[np.ndarray, np.ndarray] | parse_observation (self, np.ndarray observations) |
| | Function to parse an observation from unity. More...
|
| |
| Arm | eval_arm (self, Arm arm) |
| | Evaluate an arm by sampling an amount of angle configurations which will be tried to reach. More...
|
| |
|
|
| env_path |
| |
|
| env |
| |
|
| use_graphics |
| |
|
| sample_size |
| |
Class that is used to evaluate an arm.
◆ __init__()
| None morphevo.evaluator.Evaluator.__init__ |
( |
|
self, |
|
|
str |
env_path, |
|
|
bool |
use_graphics = True, |
|
|
int |
sample_size = 100 |
|
) |
| |
- Parameters
-
| env_path | Path to the unity executable. |
| use_graphics | To show the environment or not. |
| sample_size | Amount of samples that will be used to evaluate arm. |
◆ eval_arm()
| Arm morphevo.evaluator.Evaluator.eval_arm |
( |
|
self, |
|
|
Arm |
arm |
|
) |
| |
Evaluate an arm by sampling an amount of angle configurations which will be tried to reach.
- Parameters
-
| arm | The arm that will be evaluated. |
- Returns
- The evaluated arm.
◆ parse_observation()
| Tuple[np.ndarray, np.ndarray] morphevo.evaluator.Evaluator.parse_observation |
( |
|
self, |
|
|
np.ndarray |
observations |
|
) |
| |
Function to parse an observation from unity.
- Parameters
-
| observations | The observation form unity |
- Returns
- The joint angles configuration and the end effector position
The documentation for this class was generated from the following file:
- src/morphevo/evaluator.py