Use the trajectories' positions (per the first trajectory's DOF).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TrajectoryFollower), | intent(inout) | :: | self |
subroutine set_default_data(self) class(TrajectoryFollower), intent(inout) :: self if (self%n > 0) then self%sources_ = position_sources(self%trajs(1)%p%dof()) else self%sources_ = position_sources(0) end if self%default_data = .true. self%stamp_ = next_motion_stamp() end subroutine set_default_data