Add or create waypoints to a trajectory

Add or create waypoints to a trajectory

Waypoints are spread equally over the whole trajectory

add_waypoints(trajectory, n_waypoints = 100,
  resolution = sum(trajectory$milestone_network$length)/n_waypoints)

is_wrapper_with_waypoints(trajectory)

select_waypoints(trajectory, n_waypoints = 100,
  resolution = sum(trajectory$milestone_network$length)/n_waypoints)

Arguments

trajectory

The trajectory as created by infer_trajectory() or add_trajectory()

n_waypoints

The number of waypoints

resolution

The resolution of the waypoints, measured in the same units as the lengths of the milestone network edges, will be automatically computed using n_waypoints