Getting a real time position feedback from rviz?
We all know that if we want to get the position of your robot we are using the amcl, now my goal is to get a real time x,y position of the robot as shown in rviz interface itself and display it in a loop in the Linux terminal, how do I do it. I have create a listener.cpp file, do I change amcl file to work like a talker since whatever the talker publish, the listener will receive? Or do I implant the cl codes into my listener.cpp? I'm a bit confused.