Add or create waypoints to a trajectory

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

Arguments

trajectory

Wrapper with 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