Geometric#
A static obstacle of linear shape.
Constructs a new instance.
- Parameters:
p1 – The first vertex
p2 – The second vertex
Computes the free distance along a ray before possibly colliding
- Parameters:
point – The ray origin
direction – The ray direction
orientation – The ray orientation
- Returns:
The free distance along the ray before colliding with this line or -1 if no collision will happen.
Dumps the object to a YAML-string.
- Returns:
The YAML representation
- Return type:
Load a line modulation from a YAML string.
- Returns:
The loaded line or
None
if loading fails.- Return type:
LineSegment| None
Returns the json-schema
- Returns:
json-schema
- Return type:
dict[str, typing.Any]
- Type:
The unit vector along the segment
- Type:
The unit vector perpendicular to the segment. Oriented to the left with respect to e1
- Type:
The segment length
- Type:
The position of the first vertex
- Type:
The position of the second vertex
A circular shape. Used to represent obstacles.
Constructs a new instance.
- Parameters:
position – The position
radius – The radius
Returns the signed distance to another disc. Negative if the discs overlaps.
- Parameters:
other – The other disc
- Returns:
The distance between the centers minus the radii.
Dumps the object to a YAML-string.
- Returns:
The YAML representation
- Return type:
Load a disc modulation from a YAML string.
- Returns:
The loaded disc or
None
if loading fails.- Return type:
Disc| None
Returns the json-schema
- Returns:
json-schema
- Return type:
dict[str, typing.Any]
- Type:
The center of the disc in world frame
- Type:
Radius
A neighbor agent of circular shape.
Constructs a new instance.
- Parameters:
position – The position
radius – The radius
velocity – The velocity
id – The identifier
Dumps the object to a YAML-string.
- Returns:
The YAML representation
- Return type:
Load a neighbor modulation from a YAML string.
- Returns:
The loaded neighbor or
None
if loading fails.- Return type:
Neighbor| None
Returns the same neighbor in a frame relative to a pose.
- Parameters:
reference – The reference pose
- Returns:
The neighbor with transformed position and velocity
Returns the json-schema
- Returns:
json-schema
- Return type:
dict[str, typing.Any]
- Type:
An identifier for the id of agents or the individual agent. The interpretation is up to the behavior.
- Type:
The velocity
- Type:
The current list of line obstacles. positions are in the world fixed frame.
- Type:
The current list of neighbors. positions are in the world fixed frame.
- Type:
The current list of static obstacles. positions are in the world fixed frame.