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.
Name |
Kind |
Type |
|
|---|---|---|---|
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Serves |
service |
||
Serves |
service |
Parameters#
Name |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Frame of detection/people and its markers. Empty keeps the camera’s frame. |
|
double |
|
Detections at or above this confidence start and continue tracks. |
|
double |
|
Detections between this and min_confidence only continue the tracks they match; lower ones are discarded. |
|
int |
|
Detect on every n-th frame, and predict the tracks in between. |
|
bool |
|
Match detections to tracks by appearance as well as by overlap. |
|
double |
|
How long a track without detections is kept, predicted, before it is dropped. |
|
double |
|
Detections whose 3D box is larger than this are discarded, as no person is that large. |
|
double |
|
A detection with more than this fraction of its area inside a higher-scoring one is dropped, as part of the same person. |
|
string |
|
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