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

which Nav2 topic message changes when reached the goal?

asked 2023-07-21 07:01:19 -0500

kenloumixx gravatar image

Hello,

I am using ROS2 humble navigation2 package.

I am now trying to check if the robot reached the goal by monitoring a specific topic.

I found out that the length of message which goes to /plan topic reduces as it gets closer to the target goal.

But I'd like to ask if there's better way to find out whether it reached a goal or not. Thank you!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-07-22 10:13:26 -0500

You should be using Nav2's action interface to request navigation commands which will provide you with feedback and ultimately a result once navigation is complete. You should not be monitoring topics or hacking into action server's internal topics.

edit flag offensive delete link more
-1

answered 2023-07-21 15:11:23 -0500

what_what_hbar gravatar image

you can subscribe to the topic in a node and automatically calculate the length of the message and trigger whatever you want to happen once it reached its goal, and then from that you should know that it reached its goal.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-07-21 07:01:19 -0500

Seen: 355 times

Last updated: Jul 22 '23