Geometric#
#include "navground/core/states/geometric.h"
- A static obstacle of linear shape. - Public Functions - Constructs a new instance. - Parameters:
- p1 – [in] The first vertex 
- p2 – [in] The second vertex 
 
 
 - Computes the free distance along a ray before possibly colliding. - Parameters:
- point – [in] The ray origin 
- direction – [in] The ray direction 
- orientation – [in] The ray orientation 
 
- Returns:
- The free distance along the ray before colliding with this line or -1 if no collision will happen. 
 
 - Public Members - The position of the first vertex 
 - The position of the second vertex 
 - The unit vector along the segment 
 - The unit vector perpendicular to the segment. Oriented to the left with respect to - e1
 - The segment length 
 
- A circular shape. Used to represent obstacles. - Subclassed by navground::core::Neighbor - Public Functions - Constructs a new instance. - Parameters:
- position – The position 
- radius – The radius 
 
 
 - Equality operator. - Parameters:
- other – [in] The other disc 
- Returns:
- True if positions and radii are equal 
 
 - Addition operator. - Parameters:
- delta – [in] A translation vector 
- Returns:
- A copy of the disc translated by delta 
 
 - Addition assignment operator. - Parameters:
- delta – [in] A translation vector 
- Returns:
- The same disc translated by delta 
 
 - Subtraction operator. - Parameters:
- delta – [in] A translation vector 
- Returns:
- A copy of the disc translated by -delta 
 
 - Subtraction assignment operator. - Parameters:
- delta – [in] A translation vector 
- Returns:
- The same disc translated by delta 
 
 - Inequality operator. - Parameters:
- other – [in] The other disc 
- Returns:
- Negation of equality 
 
 - Returns the signed distance to another disc. Negative if the discs overlaps. - Parameters:
- other – [in] The other disc 
- Returns:
- The distance between the centers minus the radii. 
 
 - Public Members - The center of the disc in world frame 
 - Velocity in world frame Radius 
 
- A neighbor agent of circular shape. - Public Functions - Constructs a new instance. - Parameters:
- position – [in] The position 
- radius – [in] The radius 
- velocity – [in] The velocity 
- id – [in] The identifier 
 
 
 - Constructs a new instance from a disc. - Parameters:
- disc – [in] The disc 
- velocity – [in] The velocity 
- id – [in] The id 
 
 
 - Assignment operator from a disc. - Parameters:
- other – [in] The other disc 
- Returns:
- The result of the assignment 
 
 - Returns the same neighbor in a frame relative to a pose. - Parameters:
- reference – [in] The reference pose 
- Returns:
- The neighbor with transformed position and velocity 
 
 - Public Members - The velocity 
 - An identifier for the id of agents or the individual agent. The interpretation is up to the behavior. 
 
- Public Functions - Gets the current list of neighbors. Positions are in the world fixed frame. - Returns:
- The neighbors. 
 
 - Sets the neighbors. Positions are in the world fixed frame. - Parameters:
- value – [in] 
 
 - Gets the current list of static obstacles. Positions are in the world fixed frame. - Returns:
- The static obstacles 
 
 - Sets the static obstacles. Positions are in the world fixed frame. - Parameters:
- value – [in] 
 
 - Gets the current list of line obstacles. Positions are in the world fixed frame. - Returns:
- The line obstacles 
 
 - Sets the line obstacles. Positions are in the world fixed frame. - Parameters:
- value – [in]