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.

Parameters#

Name

Type

Default

Description

target_distance_m

double

1.0

Distance that following keeps from the user.

distance_deadband_m

double

0.15

How far from target_distance_m the base does not move.

hang_out_max_distance_m

double

2.0

Beyond this distance for 0.5 s, hanging out turns into following.

min_distance_m

double

0.5

Closer than this, the base stops at once.

max_candidate_distance_m

double

4.0

Farther people are not candidates to be the user.

lost_seconds

double

1.5

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.

stationary_seconds

double

1.0

The user is still if they stay within stationary_radius_m for this long.

stationary_radius_m

double

0.15

See stationary_seconds.

height_prior_m

double

1.8

The user’s height before it is measured.

look_around_pitch_up_deg

double

10.0

The head’s pitch while looking around.

head_comfort_yaw_deg

double

50.0

Beyond this head yaw, the base turns.

max_base_speed_mps

double

0.5

Highest speed of the base.

depth_margin_left_pixels

double

76.0

Width of the band at the left of the depth images without depth, which the head keeps people out of.

head_yaw_limit_deg

double

85.0

The head’s yaw range, within the firmware’s ±90°.

head_pitch_up_limit_deg

double

55.0

How far up the head looks, within the firmware’s 60°.

head_pitch_down_limit_deg

double

45.0

How far down the head looks, within the firmware’s 60°.

enable_base

bool

true

false moves only the head, so following only looks at the user.

enable_motion

bool

true

false runs the behavior without sending anything to the motion module.

use_appearance

bool

true

Tell the user from other people by their appearance, as well as by their track and position.

head_debug_csv

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