Detection#

Detects and tracks people in the depth-aligned colour images, and places them in 3D with the depth.

Runs in the start profiles companion.

Node person_tracker#

Detects people with YOLO-World and tracks them with BoT-SORT. min_confidence, use_appearance and lost_track_seconds are only read at startup. min_track_confidence can be raised while running, but not lowered below its value at startup. The other parameters can be changed while running, but changing detect_every_n_frames also scales how long lost tracks are kept.

Parameters#

Name

Type

Default

Description

output_frame

string

odom

Frame of detection/people and its markers. Empty keeps the camera’s frame.

min_confidence

double

0.25

Detections at or above this confidence start and continue tracks.

min_track_confidence

double

0.1

Detections between this and min_confidence only continue the tracks they match; lower ones are discarded.

detect_every_n_frames

int

1

Detect on every n-th frame, and predict the tracks in between.

use_appearance

bool

true

Match detections to tracks by appearance as well as by overlap.

lost_track_seconds

double

2.0

How long a track without detections is kept, predicted, before it is dropped.

max_person_volume_m3

double

2.2

Detections whose 3D box is larger than this are discarded, as no person is that large.

max_contained_fraction

double

0.7

A detection with more than this fraction of its area inside a higher-scoring one is dropped, as part of the same person.

motion_compensation

string

head

How the tracker predicts the boxes’ motion as the camera turns: head (from the camera’s orientation), image (from optical flow) or none. Can be changed while running.

Read and set them with ros2 param, or with the node’s parameter services (/person_tracker/set_parameters):

ros2 param get /person_tracker output_frame
ros2 param set /person_tracker output_frame odom