Robotics StackExchange | Archived questions

[ROS2] How does Rviz calculate ETA and how to access from code?

As the title says. How do I access the information that publishes to ETA in Rviz2?

image description

Asked by WarTurtle on 2022-05-02 08:40:28 UTC

Comments

Answers

RViz2 sends the goal to the action server of Nav2. Nav2 uses the feedback function of the action server to give the ETA (among other things).

The easiest way I know to get access is to write your own action client that also sends the goal to Nav2. That way your node will be the one to receive the feedback messages.

ETA: Actually, you can also simply subscribe to /navigate_to_pose/_action/feedback you can also use ros2 topic echo /navigate_to_pose/_action/feedback to check.

Asked by Joe28965 on 2022-05-02 09:23:34 UTC

Comments