FollowObject
Invokes the FollowObject ROS 2 action server, it will dynamically follow an object while maintaining a defined distance.
The server address can be remapped using the server_name input port.
Input Ports
pose_topic
- Type:
stringDefault:"dynamic_pose" -
Topic to publish the pose of the object to follow.
max_duration
- Type:
floatDefault:0.0 -
The maximum duration to follow the object (Optional).
tracked_frame
- Type:
stringDefault:N/A -
Target frame to follow (Optional, used if pose_topic is not set).
server_name
- Type:
stringDefault:N/A -
Action server name. If not specified,
follow_objectis used.
server_timeout
- Type:
chrono::millisecondsDefault:N/A -
Action server timeout (ms). If not provided, uses the BT Navigator's
default_server_timeoutparameter value (20 ms by default).
Output Ports
total_elapsed_time
- Type:
builtin_interfaces::msg::DurationDefault:N/A -
Total elapsed time.
error_code_id
- Type:
uint16Default:N/A -
Follow object error code. See
FollowObjectaction for the enumerated set of error code definitions.
error_msg
- Type:
stringDefault:N/A -
Follow object error message. See
FollowObjectaction for the enumerated set of error code definitions.
Example
<FollowObject name="FollowPerson" pose_topic="/person_pose" max_duration="0.0"/>