SELAB3 Python Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
morphevo.evaluator.Evaluator Class Reference

Class that is used to evaluate an arm. More...

Public Member Functions

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...
 

Public Attributes

 env_path
 
 env
 
 use_graphics
 
 sample_size
 

Detailed Description

Class that is used to evaluate an arm.

Constructor & Destructor Documentation

◆ __init__()

None morphevo.evaluator.Evaluator.__init__ (   self,
str  env_path,
bool   use_graphics = True,
int   sample_size = 100 
)
Parameters
env_pathPath to the unity executable.
use_graphicsTo show the environment or not.
sample_sizeAmount of samples that will be used to evaluate arm.

Member Function Documentation

◆ 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
armThe 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
observationsThe observation form unity
Returns
The joint angles configuration and the end effector position

The documentation for this class was generated from the following file: