Target#
#include "navground/core/target.h"
A generic, twice differentiable, curve (to follow), parametrized by length.
Public Types
The projection of a curve parametrized by length.
The function finds the coordinate in
[begin, end]
wherecurve(coordinate)
is nearest to the given point point:(point, begin, end) -> coordinate
The parametrization of a (G2) curve by length.
The function returns position, tangential orientation and curvature at a coordinate:
(coordinate) -> (point, orientation, curvature)
Public Functions
Constructs a new instance.
- Parameters:
projection – [in] The projection
curve_fn – [in] The parametrized curve
length – [in] The curve length
loop – [in] Whether the path is an infinite loop
Returns the coordinate ahead of a position.
It projects the point to the curve using project, updates coordinate with this value. It returns the value advanced by the look-ahead distance.
- Parameters:
position – [in] The position
look_ahead – [in] The look ahead distance
- Returns:
The coordinate.
Returns the point the point corresponding the track coordinate.
- Parameters:
position – [in] The position
look_ahead – [in] The look ahead distance
- Returns:
The point.
Public Members
The projection
The parametrized curve
The current coordinate during tracking. A negative value means undefined.
The curve length
Whether the path is an infinite loop
Represents the union of all targets supported by a generic Behavior.
poses
positions
orientations
directions
velocities
twists
paths to be followed to reach a position
Public Functions
Constructs a new instance.
- Parameters:
position – [in] The position
orientation – [in] The orientation
speed – [in] The speed
direction – [in] The direction
angular_speed – [in] The angular speed
path – [in] The path
position_tolerance – [in] The position tolerance
orientation_tolerance – [in] The orientation tolerance
Verify that a target is set.
- Returns:
True if the target is not empty.
Returns whether a given orientation satisfies the target.
The target is satisfied if it does not have an angular speed and if the given value is near to the target’s orientation.
- Parameters:
angle – [in] The orientation
- Returns:
True if the target is satisfied.
Returns whether a given position satisfies the target.
The target is satisfied if it does not have an linear speed and if the given value is near to the target’s position.
- Parameters:
point – [in] The position
- Returns:
True if the target is satisfied.
Returns whether a given pose satisfies the target.
The target is satisfied if the position and orientation are both satisfied.
- Parameters:
pose – [in] The pose
- Returns:
True if the target is satisfied.
Public Members
The position
The orientation
The speed
The direction
The angular speed
The path to follow.
The position tolerance
The orientation tolerance
Public Static Functions
Constructs a target to reach a point.
- Parameters:
position – [in] The target position
tolerance – [in] The tolerance
along_path – [in] The path to follow
- Returns:
The target
Constructs a target to reach a pose.
- Parameters:
pose – [in] The pose
position_tolerance – [in] The position tolerance
orientation_tolerance – [in] The orientation tolerance
along_path – [in] The path to follow
- Returns:
The target
Constructs a target to reach an orietation.
- Parameters:
orientation – [in] The orientation
tolerance – [in] The tolerance
- Returns:
The target
Constructs a target to follow a velocity.
- Parameters:
velocity – [in] The velocity
- Returns:
The target
Constructs a target to follow a direction.
- Parameters:
direction – [in] The direction
- Returns:
The target
Constructs a target to follow a twist.
- Parameters:
twist – [in] The twist
- Returns:
The target
Constructs a target to stop.
- Returns:
The target