[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?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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: 2022-05-02 08:40:28 -0500
Seen: 118 times
Last updated: May 02 '22
ROS2 Galactic demo_nodes_cpp talker does not output anything.
octomap_server problems [closed]
URDF model not visible in RViz
Build debian package on ROS2 without recompiling
Rviz | tf | scan - (No transform to fixed base)
Nav2 lifecycle nodes don't autostart
How to visualise a driven path?