Skip to content

1.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Mar 01:10
· 3438 commits to master since this release

Description

Abstract

Enable reset behavior plugin of entity.

Background

Previously, no means was provided to reset the behavior plugin, and the state had to be saved and respawned.
This pull request provides functionality to allow plugins to be replaced more easily.

Details

Enable reset behavior plugin of entity.
You can use this feature by function below.

void API::resetBehaviorPlugin(const std::string & name, const std::string & behavior_plugin_name)

First argument is the name of the entity you want to reset behavior plugin.
Second argument is the name of the behavior plugin you want to set.

Internally, the following operations are performed

  1. Save entity state and parameters.
  2. Despawn and respawn target entity.
  3. Reset acceleration/twist/behavior parameters to the target entity.

References

Regression test result

Destructive Changes

N/A

Known Limitations

  • API::resetBehaviorPlugin function cannot be called on non-spawned Entity
  • API::resetBehaviorPlugin function cannot be called for entities other than vehicle/pedestrian because behavior plugin does not exist for entities other than vehicle/pedestrian.

Related Issues