Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
droid.Runtime.Prototyping.Sensors.Rays.Experimental.Ray Class Reference

Ray perception component. Attach this to agents to enable "local perception" via the use of ray casts directed outward from the agent. More...

Inheritance diagram for droid.Runtime.Prototyping.Sensors.Rays.Experimental.Ray:
Collaboration diagram for droid.Runtime.Prototyping.Sensors.Rays.Experimental.Ray:

Public Member Functions

List< float > Perceive (float ray_distance, IEnumerable< Single > ray_angles, string[] detectable_objects, float start_offset, float end_offset)
 Creates perception vector to be used as part of an observation of an agent. More...
 

Static Public Member Functions

static Vector3 PolarToCartesian (float radius, float angle)
 Converts polar coordinate to cartesian coordinate. More...
 
static float DegreeToRadian (float degree)
 Converts degrees to radians. More...
 

Detailed Description

Ray perception component. Attach this to agents to enable "local perception" via the use of ray casts directed outward from the agent.

Definition at line 11 of file Ray.cs.

Member Function Documentation

◆ DegreeToRadian()

static float droid.Runtime.Prototyping.Sensors.Rays.Experimental.Ray.DegreeToRadian ( float  degree)
static

Converts degrees to radians.

Definition at line 79 of file Ray.cs.

◆ Perceive()

List<float> droid.Runtime.Prototyping.Sensors.Rays.Experimental.Ray.Perceive ( float  ray_distance,
IEnumerable< Single >  ray_angles,
string []  detectable_objects,
float  start_offset,
float  end_offset 
)

Creates perception vector to be used as part of an observation of an agent.

Returns
The partial vector observation corresponding to the set of rays
Parameters
ray_distanceRadius of rays
ray_anglesAnlges of rays (starting from (1,0) on unit circle).
detectable_objectsList of tags which correspond to object types agent can see
start_offsetStarting heigh offset of ray from center of agent.
end_offsetEnding height offset of ray from center of agent.

Definition at line 25 of file Ray.cs.

◆ PolarToCartesian()

static Vector3 droid.Runtime.Prototyping.Sensors.Rays.Experimental.Ray.PolarToCartesian ( float  radius,
float  angle 
)
static

Converts polar coordinate to cartesian coordinate.

Definition at line 70 of file Ray.cs.


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