src/control/motion_model_testing_simulator/motion_model_testing_simulator/minisim.py
def simulate_one_timestep(
        self,
        current_state: SerdeInterface,
        current_command: SerdeInterface,
        current_time: float,
    ) -> SerdeInterface:
        """
        Perform one iteration of the simulation.

        Takes the current state and command as an input and returns the next
        state. This function can be used for externally-controlled simulations,
        where the main loop is implemented as part of something else and the
        simulation object is just used in a re-entrant manner.

        This function is pure if the dynamics evaluation is also pure.
        """
        if "recorder" in self.listeners:
            self.listeners["recorder"].record_instant(
                SimulationInstant(current_state, current_command, current_time)
            )

        next_state = self._integrate_dynamics(current_state, current_command)
        return next_state

        Perform one iteration of the simulation.

        Takes the current state and command as an input and returns the next
        state. This function can be used for externally-controlled simulations,
        where the main loop is implemented as part of something else and the
        simulation object is just used in a re-entrant manner.

        This function is pure if the dynamics evaluation is also pure.
        
Perform one iteration of the simulation.
Takes the current state and command as an input and returns the next
state. This function can be used for externally-controlled simulations,
where the main loop is implemented as part of something else and the
simulation object is just used in a re-entrant manner.

This function is pure if the dynamics evaluation is also pure.
Perform one iteration of the simulation . Takes the current state and command as an input and returns the next state . This function can be used for externally - controlled simulations where the main loop is implemented as part of something else and the simulation object is just used in a re - entrant manner . This function is pure if the dynamics evaluation is also pure .
def simulate_one_timestep(
        self,
        current_state: SerdeInterface,
        current_command: SerdeInterface,
        current_time: float,
    ) -> SerdeInterface:
        if "recorder" in self.listeners:
            self.listeners["recorder"].record_instant(
                SimulationInstant(current_state, current_command, current_time)
            )
        next_state = self._integrate_dynamics(current_state, current_command)
        return next_state
def simulate_one_timestep ( self , current_state : SerdeInterface , current_command : SerdeInterface , current_time : float , ) -> SerdeInterface : if "recorder" in self . listeners : self . listeners [ "recorder" ] . record_instant ( SimulationInstant ( current_state , current_command , current_time ) ) next_state = self . _integrate_dynamics ( current_state , current_command ) return next_state
Perform one iteration of the simulation.
Perform one iteration of the simulation .
"""
        Perform one iteration of the simulation.

        Takes the current state and command as an input and returns the next
        state. This function can be used for externally-controlled simulations,
        where the main loop is implemented as part of something else and the
        simulation object is just used in a re-entrant manner.

        This function is pure if the dynamics evaluation is also pure.
        """
self
current_state
SerdeInterface
current_command
SerdeInterface
current_time
float