Table of Contents
- TRAJECTORY
- Public Attributes
- Public Attributes Documentation
- variable start_time
- variable start
- variable points
- variable nb_points_allocated
- variable nb_points
- variable nb_components
- variable mode
- variable m1_orient
- variable m1
- variable m0_orient
- variable m0
- variable end_time
- variable end
- variable duration
- variable current_time
- variable current_segment
- variable current
TRAJECTORY
Module: TRAJECTORY: cubic Hermite spline dead reckoning and movement simulation for 2D/3D
structure holding all data for trajectory interpolation / extrapolation
#include "n_trajectory.h"
Public Attributes
| Name | |
|---|---|
| double | start_time timestamp of start state |
| PHYSICS | start state at trajectory start (initial known state) |
| TRAJECTORY_POINT * | points array of waypoints for multi-point paths (NULL if single segment) |
| int | nb_points_allocated allocated capacity of the points array |
| int | nb_points number of waypoints in the points array |
| int | nb_components number of components to process: TRAJECTORY_2D (2) or TRAJECTORY_3D (3) |
| int | mode current computation mode: TRAJECTORY_INTERP, TRAJECTORY_EXTRAP, or TRAJECTORY_BEFORE |
| VECTOR3D | m1_orient Hermite tangent at end for orientation (end.angular_speed * duration). |
| VECTOR3D | m1 Hermite tangent at end for position (end.speed * duration). |
| VECTOR3D | m0_orient Hermite tangent at start for orientation (start.angular_speed * duration). |
| VECTOR3D | m0 Hermite tangent at start for position (start.speed * duration). |
| double | end_time timestamp of end state |
| PHYSICS | end state at trajectory end (terminal known state) |
| double | duration duration = end_time - start_time |
| double | current_time last computed time |
| int | current_segment index of the currently loaded segment (points[i] -> points[i+1]), -1 if none |
| PHYSICS | current current computed state at current_time |
Public Attributes Documentation
variable start_time
double start_time;
timestamp of start state
variable start
PHYSICS start;
state at trajectory start (initial known state)
variable points
TRAJECTORY_POINT * points;
array of waypoints for multi-point paths (NULL if single segment)
variable nb_points_allocated
int nb_points_allocated;
allocated capacity of the points array
variable nb_points
int nb_points;
number of waypoints in the points array
variable nb_components
int nb_components;
number of components to process: TRAJECTORY_2D (2) or TRAJECTORY_3D (3)
variable mode
int mode;
current computation mode: TRAJECTORY_INTERP, TRAJECTORY_EXTRAP, or TRAJECTORY_BEFORE
variable m1_orient
VECTOR3D m1_orient;
Hermite tangent at end for orientation (end.angular_speed * duration).
variable m1
VECTOR3D m1;
Hermite tangent at end for position (end.speed * duration).
variable m0_orient
VECTOR3D m0_orient;
Hermite tangent at start for orientation (start.angular_speed * duration).
variable m0
VECTOR3D m0;
Hermite tangent at start for position (start.speed * duration).
variable end_time
double end_time;
timestamp of end state
variable end
PHYSICS end;
state at trajectory end (terminal known state)
variable duration
double duration;
duration = end_time - start_time
variable current_time
double current_time;
last computed time
variable current_segment
int current_segment;
index of the currently loaded segment (points[i] -> points[i+1]), -1 if none
variable current
PHYSICS current;
current computed state at current_time
Modules
- AABB3D
- ACCEPT_POOL
- ALLEGRO4
- ALLEGRO5
- ANIM_LIB
- ASTAR
- ATLAS_LIB
- AVRO
- CLOCK_SYNC
- COMMONS
- CONFIGFILE
- CYPHER_BASE64
- CYPHER_VIGENERE
- DEAD_RECKONING
- ENUMS
- EXCEPTIONS
- GAME_ENV
- GIT
- GUI
- HASH_TABLE
- ISOMETRIC_ENGINE
- LIST
- LOG
- LOGNODUP
- LZ4
- NETWORKING
- NETWORK_MSG
- N_COOKIES
- N_DIFF
- N_DIGEST
- N_DISK_CACHE
- N_DNS
- N_ECC
- N_ENTROPY
- N_FILES
- N_FLUIDS
- N_GUI_COLOR
- N_GUI_COLORWHEEL
- N_GUI_CURVE
- N_GUI_GRID
- N_GUI_POPUP
- N_HEX
- N_HTTP3
- N_HTTP_COOKIE
- N_HTTP_FORM
- N_HTTP_MIME
- N_HTTP_REQ
- N_HTTP_RESP
- N_HTTP_ROUTER
- N_HTTP_SERVER
- N_ICC
- N_JSON
- N_KAFKA
- N_LINALG
- N_MODULE
- N_OPENSSL_COMPAT
- N_PRETTY
- N_PTH
- N_QUERY
- N_RANDOM
- N_SHA256
- N_STR
- N_TIFF
- N_TIME
- N_USER
- N_X509
- N_ZIP
- PARTICLES
- PCRE
- PHYSICS
- SIGNALS
- STACK
- THREADS
- TRAJECTORY
- TREE
- ZLIB