ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

asked 2022-05-02 08:40:28 -0600

WarTurtle gravatar image

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

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-02 09:23:34 -0600

Joe28965 gravatar image

updated 2022-05-02 09:38:29 -0600

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.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-05-02 08:40:28 -0600

Seen: 200 times

Last updated: May 02 '22