Ray perception component. Attach this to agents to enable "local perception" via the use of ray casts directed outward from the agent.
More...
|
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...
|
|
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.
◆ 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_distance | Radius of rays |
ray_angles | Anlges of rays (starting from (1,0) on unit circle). |
detectable_objects | List of tags which correspond to object types agent can see |
start_offset | Starting heigh offset of ray from center of agent. |
end_offset | Ending 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:
- /home/heider/Projects/Neodroid/Unity/Examples/Assets/droid/Runtime/Prototyping/Sensors/Rays/Experimental/Ray.cs