Hi @ghassan11 ,
For the sake of God (or for the sake of yourself if you don’t believe in God), please use punctuation in your paragraph. There are things called phrases, sentences, full stop / period, comma, hyphen / dash in English. Make use of them. Please STOP making sentences with about 100 words without punctuation marks. I cannot understand where you are starting a sentence and where the sentence ends. If you continue this practice, I will flag you.
Clarity in communication is a MUST, when you are requesting help from others.
Clarity in communication is a MUST, when you are requesting help from others.
If you are running Rviz along with the Nav2 Stack, then you can do the following:
- Subscribe to
/clicked_pointto get the point chosen on the Rviz map. - Subscribe to
/goal_poseto get the goal pose from Rviz map. - Subscribe to
/initialposeto get the robot’s starting pose only - this will not give the robot’s current pose. - Subscribe to
/amcl_poseto get the robot’s current pose. You can also subscribe to/odomto get the current robot pose, but that will be unfiltered data.
Now to navigate to a clicked point on the RViz map, you need to:
- Subscribe to
/goal_poseto get the requested goal pose on Rviz. - Save the requested goal pose coordinates into the
yamlfile. - Use the action call to send the goal pose to the Nav2 Stack to make the robot navigate to the requested goal pose, using
/navigate_to_poseaction topic.
I hope this solves your doubt / issue / confusion.
Regards,
Girish