Nav2 Navigation Stack - jazzy  jazzy
ROS 2 Navigation Stack
Public Member Functions | Public Attributes | List of all members
trajectory_generator.TrajectoryGenerator Class Reference

Public Member Functions

def __init__ (self, dict config)
 
Union[Trajectory, None] generate_trajectory (self, np.array end_point, float start_angle, float end_angle, float primitive_resolution)
 

Public Attributes

 turning_radius
 

Detailed Description

Handles all the logic for generating trajectories.

Definition at line 25 of file trajectory_generator.py.

Constructor & Destructor Documentation

◆ __init__()

def trajectory_generator.TrajectoryGenerator.__init__ (   self,
dict  config 
)

Member Function Documentation

◆ generate_trajectory()

Union[Trajectory, None] trajectory_generator.TrajectoryGenerator.generate_trajectory (   self,
np.array  end_point,
float  start_angle,
float  end_angle,
float  primitive_resolution 
)
Create a trajectory from (0,0, start_angle) to (end_point, end_angle).

The trajectory will consist of a path that contains discrete points
that are spaced primitive_resolution apart.

Args
----
end_point: np.array(2,)
    The desired end point of the trajectory
start_angle: float
    The start angle of the trajectory in radians
end_angle: float
    The end angle of the trajectory in radians
primitive_resolution: float
    The spacing between points along the trajectory

Returns
-------
Trajectory or None
    If a valid trajectory exists then the Trajectory is returned,
    otherwise None

Definition at line 527 of file trajectory_generator.py.

References trajectory_generator.TrajectoryGenerator._calculate_trajectory_params(), and trajectory_generator.TrajectoryGenerator._create_path().

Here is the call graph for this function:

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