... | @@ -44,7 +44,7 @@ Use following steps to add new stimuli to Vadere: |
... | @@ -44,7 +44,7 @@ Use following steps to add new stimuli to Vadere: |
|
3. Use an existing perception model like `SimplePerceptionModel` or implement your own and make the stimulus available for agents by using `agent.setMostImportantStimulus()`. On cognition layer, `agent.getMostImportantStimulus()` can be used to process this information further to set an agent's self category. This self category influences the motion of an agent on the locomotion layer. For instance, `SELF_CATEGORY.COOPERATIVE` causes agents to swap positions to reach a target.
|
|
3. Use an existing perception model like `SimplePerceptionModel` or implement your own and make the stimulus available for agents by using `agent.setMostImportantStimulus()`. On cognition layer, `agent.getMostImportantStimulus()` can be used to process this information further to set an agent's self category. This self category influences the motion of an agent on the locomotion layer. For instance, `SELF_CATEGORY.COOPERATIVE` causes agents to swap positions to reach a target.
|
|
|
|
|
|
### Adding stimuli dynamically
|
|
### Adding stimuli dynamically
|
|
The flowcontrol repository is a python package that allows to add stimuli dynamically. In particular, stimuli can be introduced during run-time. This enables the user to specify state-dependent stimuli, e.g. waiting behavior that depends on a density measured in a local area.
|
|
The [flowcontrol repository](https://github.com/roVer-HM/flowcontrol) is a Python package that allows to add stimuli dynamically. In particular, stimuli can be introduced during run-time. This enables the user to specify state-dependent stimuli, e.g. waiting behavior that depends on a density measured in a local area.
|
|
|
|
|
|
*Please note* that dynamic stimuli are set at the end of the time step in Vadere. However, they are not executed until the following time step.
|
|
*Please note* that dynamic stimuli are set at the end of the time step in Vadere. However, they are not executed until the following time step.
|
|
|
|
|
... | | ... | |