当前位置:网站首页>ROS package NMEA_ navsat_ Driver reads GPS and Beidou Positioning Information Notes
ROS package NMEA_ navsat_ Driver reads GPS and Beidou Positioning Information Notes
2022-04-23 17:53:00 【ppipp1109】
Hardware :ATGM332D + Serial debugging tools + GPS The antenna
Software : ubunutu 18.04 + ros
1. A serial port Reading data
sudo apt install cutecom
sudo cutecom // Set up Baud rate 9600 You can see the feedback data
2. nmea_navsat_driver Use of the bag
sudo apt-get install ros-melodic-nmea-navsat-driver libgps-dev
Be careful :nmea_navsat_driver Provide four nodes :nmea_topic_driver,
nmea_serial_driver,nmea_topic_serial_reader and nmea_socket_drivernmea_topic_serial_reader node
This node reads... From the serial port GPS data , And then it's packaged as nmea_msgs/Sentence data format , Post topics nmea_sentence.
nmea_topic_driver node
This node subscribes to topic nmea_sentence, And then according to NMEA0184 Protocol analysis , And publish the parsed data , The release topic is : Longitude and latitude /fix, Speed /vel,gps Time /time_reference And heading angle /heading.
nmea_serial_driver node
This node reads data from the serial port , Directly analyze the published data , amount to nmea_topic_driver Nodes and nmea_topic_serial_reader A combination of nodes .
github Source code :https://github.com/ros-drivers/nmea_navsat_driver
3. Open new Terminal The window opens ROS System ( relevant ROS The environment create 、ROS Package compilation and other basic knowledge must be checked on the Internet first ), Input
roscore
Open another new Terminal Window Publishing (Publish) Locate module information , Input
rosrun nmea_navsat_driver nmea_topic_serial_reader _port:=/dev/ttyUSB0 _baud:=9600
When publishing positioning module information , The window will not look like cutecom Keep displaying the latest positioning data as in , Will prompt SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'., Can be ignored . The ROS The packet passes the data through /nmea_sentence This Topic released , To verify that the location data is published successfully , Let's open a new Terminal Window read /nmea_sentence Information in , Input
rostopic echo /nmea_sentence
4. function nmea_serial_driver node ;
It is necessary to close the second 3 All terminals in this section ,
roscd nmea_navsat_driver/launch/
sudo vim nmea_serial_driver.launch
The baud rate is modified as follows 9600
<launch>
<!-- A simple launch file for the nmea_serial_driver node. -->
<arg name="port" default="/dev/ttyUSB0" />
<arg name="baud" default="9600" />
<arg name="frame_id" default="gps" />
<arg name="use_GNSS_time" default="False" />
<arg name="time_ref_source" default="gps" />
<arg name="useRMC" default="False" />
<node name="nmea_serial_driver_node" pkg="nmea_navsat_driver" type="nmea_serial_driver" output="screen">
<param name="port" value="$(arg port)"/>
<param name="baud" value="$(arg baud)" />
<param name="frame_id" value="$(arg frame_id)" />
<param name="use_GNSS_time" value="$(arg use_GNSS_time)" />
<param name="time_ref_source" value="$(arg time_ref_source)" />
<param name="useRMC" value="$(arg useRMC)" />
</node>
Open a terminal usb assignment , start-up launch file
sudo chmod 777 /dev/ttyUSB0
roslaunch nmea_navsat_driver nmea_serial_driver.launch
Open a new terminal , View the current gps Information
rostopic echo /fix
Reference link :
2. # Call sensor data _ROS Of sensors GPS practice _glietwx The blog of -CSDN Blog
3.(1)GNSS drive nmea_navsat_driver Use of feature packs _Qi Xiang Qi Xiang's blog -CSDN Blog
4. week50 nmea_navsat_driver Read GNSS Location information - Simple books
版权声明
本文为[ppipp1109]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230549075769.html
边栏推荐
- 高德地图搜索、拖拽 查询地址
- Remember using Ali Font Icon Library for the first time
- Add animation to the picture under V-for timing
- 239. Maximum value of sliding window (difficult) - one-way queue, large top heap - byte skipping high frequency problem
- 198. Looting - Dynamic Planning
- 122. The best time to buy and sell stocks II - one-time traversal
- 01 - get to know the advantages of sketch sketch
- Ring back to origin problem - byte jumping high frequency problem
- Timestamp to formatted date
- 索引:手把手教你索引从零基础到精通使用
猜你喜欢
Allowed latency and side output
关于gcc输出typeid完整名的方法
The JS timestamp of wechat applet is converted to / 1000 seconds. After six hours and one day, this Friday option calculates the time
HCIP第五次实验
Kubernetes 服务发现 监控Endpoints
Tdan over half
Go的Gin框架学习
Gaode map search, drag and drop query address
[appium] write scripts by designing Keyword Driven files
SystemVerilog(六)-变量
随机推荐
Kubernetes service discovery monitoring endpoints
587. Install fence / Sword finger offer II 014 Anagrams in strings
2022 judgment questions and answers for operation of refrigeration and air conditioning equipment
Operation of 2022 mobile crane driver national question bank simulation examination platform
JS high frequency interview questions
Vite configure proxy proxy to solve cross domain
958. 二叉树的完全性检验
Compilation principle first set follow set select set prediction analysis table to judge whether the symbol string conforms to the grammar definition (with source code!!!)
Laser slam theory and practice of dark blue College Chapter 3 laser radar distortion removal exercise
The ultimate experience, the audio and video technology behind the tiktok
Allowed latency and side output
Double pointer advanced -- leetcode title -- container with the most water
20222 return to the workplace
Matlab / Simulink simulation of double closed loop DC speed regulation system
Remember using Ali Font Icon Library for the first time
209. Minimum length subarray - sliding window
MySQL进阶之索引【分类,性能分析,使用,设计原则】
41. The first missing positive number
Gaode map search, drag and drop query address
剑指 Offer 22. 链表中倒数第k个节点-快慢指针