How it works…

If all the above steps are executed, we will see a topic named /fix in the topic list by executing the following command:

$ rostopic list
$ rostopic type /fix

The /fix topic has a message type of sensor_msg/NavSatFix.

We can echo this message to see a real stream of the data sent:

$ rostopic echo /fix

The output is shown in the following screenshot:

GPS data stream
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.216.229