Trajectory definition as a states with interleaving inputs. More...
#include <trajectory.h>
Public Member Functions | |
int | clear () |
Clears the trajectory. | |
int | clear_delete () |
Clears the trajectory and frees the memory. | |
Public Attributes | |
list< state_t * > | list_states |
A list of the states in the trajectory. | |
list< input_t * > | list_inputs |
A list of the inputs in the trajectory. |
Trajectory definition as a states with interleaving inputs.
The trajectory class, composed of a list of states and a list of inputs, is an implementation of the notion of a trajectory that connects two given states in the graph.
libbot_rrg_double_integrator.cpp, libbot_rrg_dubins_car.cpp, libbot_rrg_dubins_double_integrator_airplane.cpp, libbot_rrg_single_integrator.cpp, libbot_rrg_single_integrator_mu_calculus.cpp, libbot_rrt_double_integrator.cpp, libbot_rrt_dubins_car.cpp, libbot_rrt_dubins_double_integrator_airplane.cpp, libbot_rrt_single_integrator.cpp, libbot_rrtstar_double_integrator.cpp, libbot_rrtstar_dubins_car.cpp, libbot_rrtstar_dubins_double_integrator_airplane.cpp, libbot_rrtstar_single_integrator.cpp, libbot_rrtstar_single_integrator_halton.cpp, libbot_rrtstar_single_integrator_trajectory_biasing.cpp, libbot_rrtstar_single_integrator_trajectory_biasing_and_bnb.cpp, standalone_rrg_double_integrator.cpp, standalone_rrg_dubins_car.cpp, standalone_rrg_dubins_double_integrator_airplane.cpp, standalone_rrg_single_integrator.cpp, standalone_rrg_single_integrator_mu_calculus.cpp, standalone_rrt_double_integrator.cpp, standalone_rrt_dubins_car.cpp, standalone_rrt_dubins_double_integrator_airplane.cpp, standalone_rrt_single_integrator.cpp, standalone_rrtstar_double_integrator.cpp, standalone_rrtstar_dubins_car.cpp, standalone_rrtstar_dubins_double_integrator_airplane.cpp, standalone_rrtstar_single_integrator.cpp, standalone_rrtstar_single_integrator_halton.cpp, standalone_rrtstar_single_integrator_trajectory_biasing.cpp, and standalone_rrtstar_single_integrator_trajectory_biasing_and_bnb.cpp.
int smp::trajectory< typeparams >::clear | ( | ) |
Clears the trajectory.
This function clears both the state list and the input list in the trajectory. But, it does NOT attempt to free the memory occupied by the said states and inputs.
int smp::trajectory< typeparams >::clear_delete | ( | ) |
Clears the trajectory and frees the memory.
This function clears both the state list and the input list in the trajectory. It also frees the memory occupied by the said states and the inputs, by calling the delete operator with each state and input present in the lists.