Vision Follower#
A vision-based target following algorithm is available to be used from the Controller component. The method requires Detections or Trackings information from an external source, this can be provided using an object detection ML model.
Note
If the method is used with Trackings
information as an input, then the controller would follow the given object with the same ID. In case of using Detections
, the controller would follow the first detected object with the same given label
in the scene.
See also
See a full example of using the vision follower from the controller component along with a vision component here.
Supported Motion Models#
ACKERMANN
DIFFERENTIAL_DRIVE
OMNI
Supported Inputs#
Parameters and Default Values#
Name |
Type |
Default |
Description |
---|---|---|---|
control_time_step |
|
|
Time interval between control actions. Must be between |
control_horizon |
|
|
Number of future steps to consider in control. Must be between |
tolerance |
|
|
Acceptable error margin for target tracking. Must be between |
target_distance |
|
|
Desired distance to maintain from target. No validation constraints. |
target_search_timeout |
|
|
Maximum number of steps allowed for target search before timeout. Must be between |
target_search_pause |
|
|
Number of steps to pause between search actions. Must be between |
target_search_radius |
|
|
Radius of the search area for target detection. Must be between |
rotation_multiple |
|
|
Scaling factor for rotation commands. Must be between |
speed_depth_multiple |
|
|
Scaling factor for speed based on depth information. Must be between |
min_vel |
|
|
Minimum allowable velocity. Must be between |
enable_search |
|
|
Flag to enable or disable search behavior when the target is lost. |