Companion#
Follows a person: picks them out among the people detected, tells them apart by their appearance, keeps a distance from them with the base and looks at them with the head.
Runs in the start profiles companion.
Node companion#
The following behavior. Its parameters are only read when it starts, except head_debug_csv: changing the others while it runs has no effect.
Name |
Kind |
Type |
|
|---|---|---|---|
Publishes |
topic |
||
Publishes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Subscribes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Serves |
action |
||
Serves |
service |
||
Serves |
service |
Parameters#
Name |
Type |
Default |
Description |
|---|---|---|---|
|
double |
|
Distance that following keeps from the user. |
|
double |
|
How far from target_distance_m the base does not move. |
|
double |
|
Beyond this distance for 0.5 s, hanging out turns into following. |
|
double |
|
Closer than this, the base stops at once. |
|
double |
|
Farther people are not candidates to be the user. |
|
double |
|
Without seeing the user for this long, they are lost. It is 4 s instead while they are being identified, or if they were last seen within 1.2 m with their box clear of the image’s sides, as the detector often misses people that close for a while. |
|
double |
|
The user is still if they stay within stationary_radius_m for this long. |
|
double |
|
See stationary_seconds. |
|
double |
|
The user’s height before it is measured. |
|
double |
|
The head’s pitch while looking around. |
|
double |
|
Beyond this head yaw, the base turns. |
|
double |
|
Highest speed of the base. |
|
double |
|
Width of the band at the left of the depth images without depth, which the head keeps people out of. |
|
double |
|
The head’s yaw range, within the firmware’s ±90°. |
|
double |
|
How far up the head looks, within the firmware’s 60°. |
|
double |
|
How far down the head looks, within the firmware’s 60°. |
|
bool |
|
false moves only the head, so following only looks at the user. |
|
bool |
|
false runs the behavior without sending anything to the motion module. |
|
bool |
|
Tell the user from other people by their appearance, as well as by their track and position. |
|
string |
empty |
A CSV file to log the head’s commands to at every tick. Empty for none. Can be changed while running. |
Read and set them with ros2 param, or with the node’s parameter services (/companion/set_parameters):
ros2 param get /companion target_distance_m
ros2 param set /companion target_distance_m 1.0