set_x_data Function

private function set_x_data(self, src) result(valid)

Where the x, y and z of the followed position come from (default: the trajectories' positions). Returns whether all followed trajectories have those data.

Type Bound

TrajectoryFollower

Arguments

Type IntentOptional Attributes Name
class(TrajectoryFollower), intent(inout) :: self
type(DataSource), intent(in) :: src

where the x comes from

Return Value logical


Calls

proc~~set_x_data~2~~CallsGraph proc~set_x_data~2 TrajectoryFollower%set_x_data proc~data_valid TrajectoryFollower%data_valid proc~set_x_data~2->proc~data_valid proc~next_motion_stamp next_motion_stamp proc~set_x_data~2->proc~next_motion_stamp proc~verify_data Trajectory%verify_data proc~data_valid->proc~verify_data

Source Code

    logical function set_x_data(self, src) result(valid)
        class(TrajectoryFollower), intent(inout) :: self
        type(DataSource), intent(in) :: src                 !! where the x comes from
        self%sources_(1) = src
        self%default_data = .false.
        self%stamp_ = next_motion_stamp()
        valid = self%data_valid()
    end function set_x_data